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 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
|
#!/usr/bin/make -f
PWD=$(shell pwd)
configure-stamp:
dh_testdir
mkdir -p build
cd m4 && rm -f audiofile.m4 esd.m4 gtk.m4 libmikmod.m4 libtool.m4 ogg.m4 vorbis.m4
cd build && \
env CFLAGS='-Wall -O0 -g3 -fomit-frame-pointer' LDFLAGS='-g3' \
../configure --prefix=/usr --mandir=/usr/share/man \
--enable-alsa --enable-oss --enable-esd --enable-nas \
--enable-jack \
--cache-file=../config.cache \
--enable-oggvorbis=yes --enable-audiofile \
--enable-static --enable-shared
touch configure-stamp
maintainerclean: clean
aclocal -I m4
libtoolize --force --copy
automake --add-missing --copy
autoheader
autoconf
build: configure-stamp
dh_testdir
$(MAKE) -C build
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -rf build
rm -f configure-stamp
rm -f build-stamp install-stamp aclocal.m4
rm -f config.cache
cd m4 && rm -f audiofile.m4 esd.m4 gtk.m4 libmikmod.m4 libtool.m4 ogg.m4 vorbis.m4
dh_clean
install: install-stamp
install-stamp: build-stamp
dh_testdir
dh_testroot
dh_clean -k
install -d debian/tmp
dh_installdirs
$(MAKE) -C build DESTDIR=$(PWD)/debian/tmp install
# Remove files we won't include in a package
for dir in input output reader scopes interface; do \
rm -f debian/tmp/usr/lib/alsaplayer/$$dir/lib*.a \
debian/tmp/usr/lib/alsaplayer/$$dir/lib*.la ; \
done
touch install-stamp
binary-indep: build install
# Nothing to see here, move along
binary-arch: build install
dh_testdir
dh_testroot
dh_install -a --sourcedir=debian/tmp --list-missing
dh_installdocs -palsaplayer-common debian/README.Debian
dh_installdocs -plibalsaplayer0-dev -plibalsaplayer0
dh_installexamples -palsaplayer-common
dh_installmenu -a
dh_installchangelogs -palsaplayer-common ChangeLog
dh_installchangelogs -plibalsaplayer0 ChangeLog
dh_link -a
dh_strip -a
dh_compress -a
dh_installmime -palsaplayer-gtk -palsaplayer-text -palsaplayer-daemon -palsaplayer-xosd
for d in "" -gtk -esd -oss -alsa -text -nas -jack -daemon -xosd ; do \
mkdir -p $(PWD)/debian/alsaplayer$$d/usr/share/doc ;\
ln -s alsaplayer-common $(PWD)/debian/alsaplayer$$d/usr/share/doc/alsaplayer$$d ;\
done
mkdir -p $(PWD)/debian/libalsaplayer-dev/usr/share/doc
ln -s libalsaplayer0 $(PWD)/debian/libalsaplayer-dev/usr/share/doc/libalsaplayer-dev
dh_fixperms -a
dh_makeshlibs -a
dh_installdeb -a
dh_shlibdeps -a
dh_gencontrol -a
dh_md5sums -a
dh_builddeb -a
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary
|