2 # Sample debian/rules that uses debhelper.
3 # GNU copyright 1997 by Joey Hess.
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.
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)
18 configure: configure-stamp
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
26 # Add here commands to configure the package.
28 --build=$(DEB_BUILD_GNU_TYPE) \
29 --host=$(DEB_HOST_GNU_TYPE) \
31 --mandir=\$${prefix}/share/man \
32 --infodir=\$${prefix}/share/info \
33 --with-html-dir=\$${prefix}/share/doc/gstreamer-doc \
35 --with-configdir=/etc/gstreamer \
37 --disable-plugin-builddir \
41 --disable-plugin-docs \
45 # FIXME reenable when build is less painful
46 #--enable-docs-build \
47 #--disable-plugin-docs \
51 build: configure-stamp build-stamp
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
65 rm -f build-stamp configure-stamp
67 # why does distclean not get the docs? who knows?
68 -(cd docs; $(MAKE) clean)
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
86 # Add here commands to install the package into debian/gstreamer.
87 $(MAKE) prefix=$(CURDIR)/debian/gstreamer/usr install
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
100 dh_movefiles --sourcedir=debian/gstreamer
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.
111 dh_installdocs -A debian/README.Debian
126 # You may want to make some executables suid here.
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.
144 dh_installdocs -A debian/README.Debian
159 # You may want to make some executables suid here.
164 dh_shlibdeps -l`pwd`/debian/libgst2/usr/lib
169 binary: binary-indep binary-arch
170 .PHONY: build clean binary-indep binary-arch binary install configure