disabling cothreads build until it passes make distcheck
[platform/upstream/gstreamer.git] / debian / rules
1 #!/usr/bin/make -f
2 # Sample debian/rules that uses debhelper. 
3 # GNU copyright 1997 by Joey Hess.
4 #
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=3
11
12 # This has to be exported to make some magic below work.
13 export DH_OPTIONS
14
15 export DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
16 export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
17
18 configure: configure-stamp
19 configure-stamp:
20         dh_testdir
21
22         # make sure we're using a ltmain.sh that can handle relinking
23         # in case autogen.sh (and libtoolize) was run
24         cp ltmain-fixed.sh ltmain.sh
25
26         # Add here commands to configure the package.
27         ./configure \
28                 --build=$(DEB_BUILD_GNU_TYPE) \
29                 --host=$(DEB_HOST_GNU_TYPE) \
30                 --prefix=/usr \
31                 --mandir=\$${prefix}/share/man \
32                 --infodir=\$${prefix}/share/info \
33                 --with-html-dir=\$${prefix}/share/doc/gstreamer-doc \
34                 --sysconfdir=/etc \
35                 --with-configdir=/etc/gstreamer \
36                 --enable-glib2 \
37                 --disable-plugin-builddir \
38                 --disable-tests \
39                 --disable-examples \
40                 --enable-docs-build \
41                 --disable-plugin-docs \
42                 --enable-DEBUG \
43                 --enable-debug
44
45                 # FIXME reenable when build is less painful
46                 #--enable-docs-build \
47                 #--disable-plugin-docs \
48
49         touch configure-stamp
50
51 build: configure-stamp build-stamp
52 build-stamp:
53         dh_testdir
54
55         # Add here commands to compile the package.
56         # FIXME missing upstream, diff doesn't include these 0 byte files:
57         touch docs/fwg/base.css docs/manual/base.css
58         $(MAKE)
59
60         touch build-stamp
61
62 clean:
63         dh_testdir
64         dh_testroot
65         rm -f build-stamp configure-stamp
66
67         # why does distclean not get the docs? who knows?
68         -(cd docs; $(MAKE) clean)
69         -$(MAKE) distclean
70
71         dh_clean
72
73         # FIXME some extra clean up
74         rm -rf debian/gstreamer
75         find . -name \*.stamp | xargs rm || true
76         find . -name Makefile | grep -v omega | xargs rm || true
77
78
79 install: DH_OPTIONS=
80 install: build
81         dh_testdir
82         dh_testroot
83         dh_clean -k
84         dh_installdirs
85
86         # Add here commands to install the package into debian/gstreamer.
87         $(MAKE) prefix=$(CURDIR)/debian/gstreamer/usr install
88
89         # move around the doc dirs
90         mkdir -p debian/gstreamer/usr/share/doc/gstreamer-doc
91         #-mv debian/gstreamer/usr/share/gstreamer/gst-plugin-writers-guide \
92         #   debian/gstreamer/usr/share/gstreamer/gstreamer-manual \
93         #   debian/gstreamer/usr/share/gstreamer/html/gstreamer-libs \
94         #   debian/gstreamer/usr/share/gst/html/gstreamer \
95         #   debian/gstreamer/usr/share/doc/gstreamer-doc
96         -cp -r docs/fwg/gst-plugin-writers-guide \
97            docs/manual/gstreamer-manual \
98            debian/gstreamer/usr/share/doc/gstreamer-doc
99
100         dh_movefiles --sourcedir=debian/gstreamer
101
102
103 # Build architecture-independent files here.
104 # Pass -i to all debhelper commands in this target to reduce clutter.
105 binary-indep: DH_OPTIONS=-i
106 binary-indep: build install
107 # Need this version of debhelper for DH_OPTIONS to work.
108         dh_testdir
109         dh_testroot
110 #       dh_installdebconf
111         dh_installdocs -A debian/README.Debian
112         dh_installexamples
113         dh_installmenu
114 #       dh_installemacsen
115 #       dh_installpam
116 #       dh_installinit
117 #       dh_installcron
118         dh_installman
119 #       dh_installinfo
120 #       dh_undocumented
121         dh_installchangelogs
122         dh_strip
123 #       dh_link
124         dh_compress
125         dh_fixperms
126 # You may want to make some executables suid here.
127 #       dh_suidregister
128 #       dh_makeshlibs
129         dh_installdeb
130 #       dh_perl
131 #       dh_shlibdeps
132         dh_gencontrol
133         dh_md5sums
134         dh_builddeb
135
136 # Build architecture-dependent files here.
137 # Pass -a to all debhelper commands in this target to reduce clutter.
138 binary-arch: DH_OPTIONS=-a
139 binary-arch: build install
140 # Need this version of debhelper for DH_OPTIONS to work.
141         dh_testdir
142         dh_testroot
143 #       dh_installdebconf
144         dh_installdocs -A debian/README.Debian
145         dh_installexamples
146         dh_installmenu
147 #       dh_installemacsen
148 #       dh_installpam
149 #       dh_installinit
150 #       dh_installcron
151         dh_installman
152 #       dh_installinfo
153 #       dh_undocumented
154         dh_installchangelogs
155         dh_strip
156 #       dh_link
157         dh_compress
158         dh_fixperms
159 # You may want to make some executables suid here.
160 #       dh_suidregister
161         dh_makeshlibs
162         dh_installdeb
163 #       dh_perl
164         dh_shlibdeps -l`pwd`/debian/libgst2/usr/lib
165         dh_gencontrol
166         dh_md5sums
167         dh_builddeb
168
169 binary: binary-indep binary-arch
170 .PHONY: build clean binary-indep binary-arch binary install configure