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.
15 PREFIX ?= /opt/apps/org.tizen.call
16 RESDIR ?= ${PREFIX}/res
17 DATADIR ?= ${PREFIX}/data
19 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
30 LDFLAGS += -Wl,--rpath=$(/PREFIX)/lib -Wl,--hash-style=both -Wl,--as-needed
32 CMAKE_TMP_DIR = $(CURDIR)/cmake_tmp
35 configure: configure-stamp
38 # Add here commands to configure the package.
39 mkdir -p $(CMAKE_TMP_DIR);
40 cd $(CMAKE_TMP_DIR); CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" cmake .. -DCMAKE_INSTALL_PREFIX=$(PREFIX)
46 build-stamp: configure-stamp
49 # Add here commands to compile the package.
50 cd $(CMAKE_TMP_DIR) && $(MAKE)
51 #docbook-to-man debian/wavplayer.sgml > wavplayer.1
53 for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
54 cat $$f > $${f%.in}; \
55 sed -i -e "s#@PREFIX@#$(PREFIX)#g" $${f%.in}; \
56 sed -i -e "s#@PREFIX@#$(RESDIR)#g" $${f%.in}; \
57 sed -i -e "s#@DATADIR@#$(DATADIR)#g" $${f%.in}; \
66 rm -f build-stamp configure-stamp
68 # Add here commands to clean up after the build process.
69 -cd $(CMAKE_TMP_DIR) && $(MAKE) clean
70 rm -rf $(CMAKE_TMP_DIR)
74 rm -rf cmake_install.cmake
76 rm -rf install_manifest.txt
78 rm -rf daemon/CMakeFiles
79 rm -rf daemon/cmake_install.cmake
80 rm -rf daemon/Makefile
81 rm -rf daemon/install_manifest.txt
84 rm -rf ui/cmake_install.cmake
86 rm -rf ui/install_manifest.txt
89 rm -rf ui/themes/*.edj
91 rm -rf ui/po/CMakeFiles
92 rm -rf ui/po/cmake_install.cmake
95 rm -rf ui/org.tizen.call.desktop
101 for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
113 # Add here commands to install the package into debian/wavplayer.
114 cd $(CMAKE_TMP_DIR) && $(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
142 dh_strip --dbg-package=org.tizen.call-dbg
153 binary: binary-indep binary-arch
154 .PHONY: build clean binary-indep binary-arch binary install configure