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.
16 LDFLAGS += -Wl,--rpath=$(PREFIX)/lib -Wl,--as-needed
18 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
24 configure: configure-stamp
27 # Add here commands to configure the package.
28 LDFLAGS="$(LDFLAGS)" cmake . -DCMAKE_INSTALL_PREFIX=$(PREFIX)
34 build-stamp: configure-stamp
37 # Add here commands to compile the package.
39 #docbook-to-man debian/wavplayer.sgml > wavplayer.1
41 for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
42 cat $$f > $${f%.in}; \
43 sed -i -e "s#@PREFIX@#$(PREFIX)#g" $${f%.in}; \
44 sed -i -e "s#@DATADIR@#$(DATADIR)#g" $${f%.in}; \
53 rm -f build-stamp configure-stamp
55 # Add here commands to clean up after the build process.
59 rm -rf cmake_install.cmake
61 rm -rf install_manifest.txt
66 rm -rf set_pmon/CMakeCache.txt
67 rm -rf set_pmon/CMakeFiles
68 rm -rf set_pmon/cmake_install.cmake
69 rm -rf set_pmon/Makefile
70 rm -rf set_pmon/install_manifest.txt
71 rm -rf set_pmon/*.desktop
73 rm -rf test/CMakeCache.txt
74 rm -rf test/CMakeFiles
75 rm -rf test/cmake_install.cmake
77 rm -rf test/install_manifest.txt
79 for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
91 # Add here commands to install the package into debian/wavplayer.
92 $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
93 mkdir -p $(CURDIR)/debian/tmp/etc/rc.d/rc3.d/
94 mkdir -p $(CURDIR)/debian/tmp/etc/rc.d/rc5.d/
95 ln -s /usr/bin/regpmon.sh $(CURDIR)/debian/tmp/etc/rc.d/rc3.d/S99regpmon
96 ln -s /usr/bin/regpmon.sh $(CURDIR)/debian/tmp/etc/rc.d/rc5.d/S99regpmon
99 # Build architecture-independent files here.
100 binary-indep: build install
101 # We have nothing to do by default.
103 # Build architecture-dependent files here.
104 binary-arch: build install
110 dh_install --sourcedir=debian/tmp
113 # dh_installlogrotate
124 dh_strip --dbg-package=libslp-sysman-dbg
135 binary: binary-indep binary-arch
136 .PHONY: build clean binary-indep binary-arch binary install configure