3 # Sample debian/rules that uses debhelper.
4 # This file was originally written by Joey Hess and Craig Small.
5 # As a special exception, when this file is copied by dh-make into a
6 # dh-make output file, you may use that output file without restriction.
7 # This special exception was added by Craig Small in version 0.37 of dh-make.
9 # Uncomment this to turn on verbose mode.
12 CFLAGS += -Wall -fPIC -fpie
13 CXXFLAGS += -Wall -fPIC -fpie
18 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
26 ifneq (,$(findstring arm,$(DEB_HOST_ARCH)))
32 LDFLAGS += -Wl,--rpath=$(PREFIX)/lib -Wl,--hash-style=both -Wl,--as-needed -pie
34 configure: configure-stamp
37 # Add here commands to configure the package.
38 CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" cmake . -DCMAKE_INSTALL_PREFIX=$(PREFIX)
44 build-stamp: configure-stamp
47 # Add here commands to compile the package.
49 #docbook-to-man debian/wavplayer.sgml > wavplayer.1
51 for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
52 cat $$f > $${f%.in}; \
53 sed -i -e "s#@PREFIX@#$(PREFIX)#g" $${f%.in}; \
54 sed -i -e "s#@DATADIR@#$(DATADIR)#g" $${f%.in}; \
63 rm -f build-stamp configure-stamp
65 # Add here commands to clean up after the build process.
69 rm -rf cmake_install.cmake
71 rm -rf install_manifest.txt
73 rm -rf data/CMakeCache.txt
74 rm -rf data/CMakeFiles
75 rm -rf data/cmake_install.cmake
76 rm -rf data/install_manifest.txt
79 rm -rf data/themes/CMakeCache.txt
80 rm -rf data/themes/CMakeFiles
81 rm -rf data/themes/cmake_install.cmake
82 rm -rf data/themes/install_manifest.txt
83 rm -rf data/themes/Makefile
85 rm -rf data/kdm/CMakeCache.txt
86 rm -rf data/kdm/CMakeFiles
87 rm -rf data/kdm/cmake_install.cmake
88 rm -rf data/kdm/install_manifest.txt
89 rm -rf data/kdm/Makefile
91 rm -rf data/po/CMakeCache.txt
92 rm -rf data/po/CMakeFiles
93 rm -rf data/po/cmake_install.cmake
94 rm -rf data/po/install_manifest.txt
95 rm -rf data/po/Makefile
97 rm -rf data/themes/*.edj
101 for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
113 # Add here commands to install the package into debian/wavplayer.
114 $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
117 # Build architecture-independent files here.
118 binary-indep: build install
119 # We have nothing to do by default.
121 # Build architecture-dependent files here.
122 binary-arch: build install
125 # dh_installchangelogs
128 dh_install --sourcedir=debian/tmp
131 # dh_installlogrotate
141 dh_strip --dbg-package=org.tizen.menu-screen-dbg
152 binary: binary-indep binary-arch
153 .PHONY: build clean binary-indep binary-arch binary install configure