1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
|
#!/usr/bin/make -f
package=alsa-utils
GTK_LIBS = '-L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm'
config:
dh_testdir
# aclocal $$ACLOCAL_FLAGS
# automake --foreign
# autoconf
GTK_LIBS=$(GTK_LIBS) ./configure --prefix=/usr --sysconfdir=/etc/alsa/0.9/ --program-suffix=-0.9
touch config
build: config
$(MAKE) MAKE="$(MAKE) CFLAGS='-g -O2 -I/usr/lib/glib/include/' GTK_LIBS=$(GTK_LIBS)"
touch build
clean: config
dh_testdir
dh_clean
# dh_clean -pgamix
# dh_clean -pxamixer
-rm -f config build
-make clean
-rm -f config.cache config.log config.status Makefile.conf
# -rm -fr gamix/.deps xamixer2/.deps
# -rm -fr gamix/.deps xamixer2/.deps configure `find . -name Makefile.in -o -name Makefile`
-rm -f alsactl/alsactl_parser.[ch] alsactl/alsactl_lexer.c
# -rm -f aclocal.m4 version
# -rm -f include/version.h include/stamp-vh
binary: binary-indep binary-arch
binary-indep:
binary-arch: build
# Setup everything first
dh_testdir
dh_testroot
dh_clean
dh_installdirs
dh_installdirs
# dh_installdirs -pxamixer usr/bin usr/man/man1
# Install the software
make prefix=`pwd`/debian/tmp/usr mandir=`pwd`/debian/tmp/usr/share/man sysconfdir=`pwd`/debian/tmp/etc install
for p in aplay arecord amixer alsamixer aconnect aseqnet; do \
dh_link usr/share/alsa-base/program-wrapper usr/bin/$$p; \
done
dh_link usr/share/alsa-base/program-wrapper usr/sbin/alsactl
# Move xamixer into its rightful place
# mv debian/tmp/usr/etc debian/tmp/etc/
# rm debian/tmp/usr/bin/gamix
# Install the manual
dh_installdocs --all README
dh_installchangelogs --all ChangeLog
dh_installmanpages -p$(package) -v
# dh_undocumented gamix.1
dh_movefiles
dh_installmenu
dh_strip
dh_compress
dh_fixperms
dh_shlibdeps
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
.PHONY: binary binary-arch binary-indep clean
|