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 --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
20 # Add here commands to compile the package.
22 cd vorbis-tools && $(MAKE) && $(MAKE) ogg123
27 EXTRA_CLEAN= vorbis-tools cmdline xmms vq huff kmpg
33 # Add here commands to clean up after the build process.
35 -@for dir in $(EXTRA_CLEAN); do (cd $$dir && $(MAKE) $(MFLAGS) distclean) || exit 1; done
40 # Build architecture-independent files here.
41 binary-arch: libvorbis-dev ogg123 vorbize xmms-vorbis mp3tovorbis
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/
92 dh_undocumented ogg123.1
93 dh_installchangelogs vorbis-tools/Changelog
101 dh_gencontrol -u -isp
107 vorbize: DH_OPTIONS=-pvorbize
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/vorbize/usr/bin/
122 dh_undocumented vorbize.1
123 dh_installchangelogs vorbis-tools/Changelog
131 dh_gencontrol -u -isp
137 mp3tovorbis: DH_OPTIONS=-pmp3tovorbis
139 # Need this version of debhelper for DH_OPTIONS to work.
140 dh_testversion 1.1.17
146 install -m 755 vorbis-tools/mp3tovorbis `pwd`/debian/mp3tovorbis/usr/bin/
152 dh_undocumented mp3tovorbis.1
153 dh_installchangelogs vorbis-tools/Changelog
161 dh_gencontrol -u -isp
167 xmms-vorbis: DH_OPTIONS=-pxmms-vorbis
168 xmms-vorbis: build install
169 # Need this version of debhelper for DH_OPTIONS to work.
170 dh_testversion 1.1.17
176 install -m 644 xmms/libvorbis.so `pwd`/debian/xmms-vorbis/usr/lib/xmms/Input/
187 dh_gencontrol -u -isp
192 # Build architecture-dependent files here.
196 binary: binary-indep binary-arch
197 .PHONY: build clean binary-indep binary-arch binary install