c843e10a453f371a00b40055c255f6675e6fdfc3
[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 --disable-alsa --prefix=/usr \
20                 --mandir=\$${prefix}/share/man \
21                 --infodir=\$${prefix}/share/info
22         # Add here commands to compile the package.
23         $(MAKE)
24         cd vorbis-tools && $(MAKE) && $(MAKE) ogg123
25         cd xmms && $(MAKE)
26
27         touch build-stamp
28
29 clean:
30         dh_testdir
31         dh_testroot
32         rm -f build-stamp 
33
34         # Add here commands to clean up after the build process.
35         -$(MAKE) distclean
36
37         dh_clean
38
39
40 # Build architecture-independent files here.
41 binary-arch: libvorbis-dev ogg123 vorbis-tools xmms-vorbis
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 vorbis-tools/README
89 #       dh_installmenu
90         dh_installmanpages vorbize.1 oggenc.1
91 #       dh_installinfo
92 #       dh_undocumented
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 vorbis-tools: DH_OPTIONS=-pvorbis-tools
108 vorbis-tools: 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/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/
119
120         dh_installdocs vorbis-tools/README
121         dh_installexamples vorbis-tools/mp3tovorbis
122 #       dh_installmenu
123         dh_installmanpages ogg123.1
124 #       dh_installinfo
125 #       dh_undocumented
126         dh_installchangelogs vorbis-tools/Changelog
127         dh_strip
128         dh_link
129         dh_compress
130         dh_fixperms
131         dh_installdeb
132 #       dh_makeshlibs
133         dh_shlibdeps
134         dh_gencontrol -u -isp
135         dh_md5sums
136         dh_builddeb
137
138
139
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
144         dh_testdir
145         dh_testroot
146         dh_clean -k
147         dh_installdirs
148
149         install -m 644 xmms/libvorbis.so `pwd`/debian/xmms-vorbis/usr/lib/xmms/Input/
150
151         dh_installdocs
152         dh_installchangelogs 
153         dh_strip
154         dh_link
155         dh_compress
156         dh_fixperms
157         dh_installdeb
158 #
159         dh_shlibdeps
160         dh_gencontrol -u -isp
161         dh_md5sums
162         dh_builddeb
163
164
165 # Build architecture-dependent files here.
166 binary-indep:
167
168
169 binary: binary-indep binary-arch
170 .PHONY: build clean binary-indep binary-arch binary install