2 # Sample debian/rules that uses debhelper.
3 # GNU copyright 1997 by Joey Hess.
4 # Modified for Ogg Vorbis, 2000 by Michael Beattie
6 # Uncomment this to turn on verbose mode.
9 # This is the debhelper compatability version to use.
12 # This has to be exported to make some magic below work.
19 ./configure --disable-alsa --prefix=/usr \
20 --mandir=\$${prefix}/share/man \
21 --infodir=\$${prefix}/share/info
22 # Add here commands to compile the package.
24 cd vorbis-tools && $(MAKE) && $(MAKE) ogg123
34 # Add here commands to clean up after the build process.
40 # Build architecture-independent files here.
41 binary-arch: libvorbis-dev ogg123 vorbis-tools xmms-vorbis
43 libvorbis-dev: DH_OPTIONS=-plibvorbis-dev
45 # Need this version of debhelper for DH_OPTIONS to work.
52 -cp -a include/vorbis/*.h `pwd`/debian/tmp/usr/include/vorbis/
53 -cp -a include/vorbis/book/*.vqh `pwd`/debian/tmp/usr/include/vorbis/book/
54 -cp lib/*.a `pwd`/debian/tmp/usr/lib/
56 -cp docs/*.html docs/*.png `pwd`/debian/tmp/usr/share/doc/libvorbis-dev/html/
77 ogg123: DH_OPTIONS=-pogg123
79 # Need this version of debhelper for DH_OPTIONS to work.
86 install -m 755 vorbis-tools/ogg123 `pwd`/debian/ogg123/usr/bin/
88 dh_installdocs vorbis-tools/README
90 dh_installmanpages vorbize.1 oggenc.1
93 dh_installchangelogs vorbis-tools/Changelog
101 dh_gencontrol -u -isp
107 vorbis-tools: DH_OPTIONS=-pvorbis-tools
109 # Need this version of debhelper for DH_OPTIONS to work.
110 dh_testversion 1.1.17
116 install -m 755 vorbis-tools/vorbize `pwd`/debian/vorbis-tools/usr/bin/
117 install -m 755 vorbis-tools/oggenc `pwd`/debian/vorbis-tools/usr/bin/
118 install -m 755 vorbis-tools/vorbiscomment `pwd`/debian/vorbis-tools/usr/bin/
120 dh_installdocs vorbis-tools/README
121 dh_installexamples vorbis-tools/mp3tovorbis
123 dh_installmanpages ogg123.1
126 dh_installchangelogs vorbis-tools/Changelog
134 dh_gencontrol -u -isp
140 xmms-vorbis: DH_OPTIONS=-pxmms-vorbis
141 xmms-vorbis: build install
142 # Need this version of debhelper for DH_OPTIONS to work.
143 dh_testversion 1.1.17
149 install -m 644 xmms/libvorbis.so `pwd`/debian/xmms-vorbis/usr/lib/xmms/Input/
160 dh_gencontrol -u -isp
165 # Build architecture-dependent files here.
169 binary: binary-indep binary-arch
170 .PHONY: build clean binary-indep binary-arch binary install