Add a check to res0.c:unpack to make sure we don't try to cascade
[platform/upstream/libvorbis.git] / debian / rules
1 #!/usr/bin/make -f
2 # Sample debian/rules that uses debhelper. 
3 # GNU copyright 1997 by Joey Hess.
4 # Modified for Ogg Vorbis, 2000 by Michael Beattie
5
6 # Uncomment this to turn on verbose mode. 
7 #export DH_VERBOSE=1
8
9 # This is the debhelper compatability version to use.
10 export DH_COMPAT=1
11
12 # This has to be exported to make some magic below work.
13 export DH_OPTIONS
14
15 build: build-stamp
16 build-stamp:
17         dh_testdir
18
19         ./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
20         # Add here commands to compile the package.
21         $(MAKE)
22         cd vorbis-tools && $(MAKE) && $(MAKE) ogg123
23         cd xmms && $(MAKE)
24
25         touch build-stamp
26
27 EXTRA_CLEAN= vorbis-tools cmdline xmms vq huff kmpg
28 clean:
29         dh_testdir
30         dh_testroot
31         rm -f build-stamp 
32
33         # Add here commands to clean up after the build process.
34         -$(MAKE) distclean
35         -@for dir in $(EXTRA_CLEAN); do (cd $$dir && $(MAKE) $(MFLAGS) distclean) || exit 1; done
36
37         dh_clean
38
39
40 # Build architecture-independent files here.
41 binary-arch: libvorbis-dev ogg123 vorbize xmms-vorbis mp3tovorbis
42
43 libvorbis-dev: DH_OPTIONS=-plibvorbis-dev
44 libvorbis-dev: build
45         # Need this version of debhelper for DH_OPTIONS to work.
46         dh_testversion 1.1.17
47         dh_testdir
48         dh_testroot
49         dh_clean -k
50         dh_installdirs
51
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/
55
56         -cp docs/*.html docs/*.png `pwd`/debian/tmp/usr/share/doc/libvorbis-dev/html/
57
58         dh_installdocs
59         dh_installexamples
60         dh_installmanpages
61 #       dh_installinfo
62 #       dh_undocumented
63         dh_installchangelogs 
64         dh_strip
65         dh_link
66         dh_compress
67         dh_fixperms
68         dh_installdeb
69 #       dh_makeshlibs
70 #       dh_shlibdeps
71         dh_gencontrol -u -isp
72         dh_md5sums
73         dh_builddeb
74
75
76
77 ogg123: DH_OPTIONS=-pogg123
78 ogg123: build
79         # Need this version of debhelper for DH_OPTIONS to work.
80         dh_testversion 1.1.17
81         dh_testdir
82         dh_testroot
83         dh_clean -k
84         dh_installdirs
85
86         install -m 755 vorbis-tools/ogg123 `pwd`/debian/ogg123/usr/bin/
87
88         dh_installdocs
89 #       dh_installmenu
90         dh_installmanpages
91 #       dh_installinfo
92         dh_undocumented ogg123.1
93         dh_installchangelogs vorbis-tools/Changelog
94         dh_strip
95         dh_link
96         dh_compress
97         dh_fixperms
98         dh_installdeb
99 #       dh_makeshlibs
100         dh_shlibdeps
101         dh_gencontrol -u -isp
102         dh_md5sums
103         dh_builddeb
104
105
106
107 vorbize: DH_OPTIONS=-pvorbize
108 vorbize: build
109         # Need this version of debhelper for DH_OPTIONS to work.
110         dh_testversion 1.1.17
111         dh_testdir
112         dh_testroot
113         dh_clean -k
114         dh_installdirs
115
116         install -m 755 vorbis-tools/vorbize `pwd`/debian/vorbize/usr/bin/
117
118         dh_installdocs
119 #       dh_installmenu
120         dh_installmanpages
121 #       dh_installinfo
122         dh_undocumented vorbize.1
123         dh_installchangelogs vorbis-tools/Changelog
124         dh_strip
125         dh_link
126         dh_compress
127         dh_fixperms
128         dh_installdeb
129 #       dh_makeshlibs
130         dh_shlibdeps
131         dh_gencontrol -u -isp
132         dh_md5sums
133         dh_builddeb
134
135
136
137 mp3tovorbis: DH_OPTIONS=-pmp3tovorbis
138 mp3tovorbis: build
139         # Need this version of debhelper for DH_OPTIONS to work.
140         dh_testversion 1.1.17
141         dh_testdir
142         dh_testroot
143         dh_clean -k
144         dh_installdirs
145
146         install -m 755 vorbis-tools/mp3tovorbis `pwd`/debian/mp3tovorbis/usr/bin/
147
148         dh_installdocs
149 #       dh_installmenu
150         dh_installmanpages
151 #       dh_installinfo
152         dh_undocumented mp3tovorbis.1
153         dh_installchangelogs vorbis-tools/Changelog
154         dh_strip
155         dh_link
156         dh_compress
157         dh_fixperms
158         dh_installdeb
159 #       dh_makeshlibs
160 #       dh_shlibdeps
161         dh_gencontrol -u -isp
162         dh_md5sums
163         dh_builddeb
164
165
166
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
171         dh_testdir
172         dh_testroot
173         dh_clean -k
174         dh_installdirs
175
176         install -m 644 xmms/libvorbis.so `pwd`/debian/xmms-vorbis/usr/lib/xmms/Input/
177
178         dh_installdocs
179         dh_installchangelogs 
180         dh_strip
181         dh_link
182         dh_compress
183         dh_fixperms
184         dh_installdeb
185 #
186         dh_shlibdeps
187         dh_gencontrol -u -isp
188         dh_md5sums
189         dh_builddeb
190
191
192 # Build architecture-dependent files here.
193 binary-indep:
194
195
196 binary: binary-indep binary-arch
197 .PHONY: build clean binary-indep binary-arch binary install