9 export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
10 export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
12 ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
13 confflags += --build $(DEB_HOST_GNU_TYPE)
15 confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
18 debian/control: debian/rules debian/control.in
19 sed 's/@VERSION@/$(version)/g' debian/control.in >debian/control
21 debian/libgstreamer$(version).files: debian/control.in debian/libgstreamerVERSION.files
22 cp -f debian/libgstreamerVERSION.files debian/libgstreamer$(version).files
24 maint: debian/control debian/libgstreamer$(version).files
26 configure: configure-stamp
30 # Add here commands to configure the package.
34 --mandir=\$${prefix}/share/man \
35 --infodir=\$${prefix}/share/info \
36 --with-html-dir=\$${prefix}/share/doc/gstreamer-doc \
38 --with-configdir=/etc/gstreamer \
39 --localstatedir=/var \
40 --with-cachedir=/var/cache/gstreamer \
41 --disable-plugin-builddir \
50 build: configure-stamp build-stamp
61 rm -f build-stamp configure-stamp
63 # why does distclean not get the docs? who knows?
64 -(cd docs; $(MAKE) clean)
76 # Add here commands to install the package into debian/gstreamer.
77 $(MAKE) prefix=$(CURDIR)/debian/gstreamer/usr install
79 # move around the doc dirs
80 mkdir -p debian/gstreamer/usr/share/doc/gstreamer-doc
81 -cp -r docs/fwg/gst-plugin-writers-guide \
82 docs/manual/gstreamer-manual \
83 debian/gstreamer/usr/share/doc/gstreamer-doc
85 # devhelp files not installed by default
86 mkdir -p debian/gstreamer/usr/share/devhelp/specs
87 -cp docs/devhelp/*.devhelp debian/gstreamer/usr/share/devhelp/specs
89 # -doc lintian overrides
90 mkdir -p debian/gstreamer-doc/usr/share/lintian/overrides/
91 cp -a debian/gstreamer-doc.lintian debian/gstreamer-doc/usr/share/lintian/overrides/gstreamer-doc
93 dh_movefiles --sourcedir=debian/gstreamer
95 # Build architecture-independent files here.
96 # Pass -i to all debhelper commands in this target to reduce clutter.
97 binary-indep: DH_OPTIONS=-i
98 binary-indep: build install
99 # Need this version of debhelper for DH_OPTIONS to work.
102 dh_installdocs -A debian/README.Debian
116 # Build architecture-dependent files here.
117 # Pass -a to all debhelper commands in this target to reduce clutter.
118 binary-arch: DH_OPTIONS=-a
119 binary-arch: build install
120 # Need this version of debhelper for DH_OPTIONS to work.
123 dh_installdocs -A debian/README.Debian
133 dh_shlibdeps -l`pwd`/debian/libgstreamer$(version)/usr/lib:`pwd`/debian/gstreamer-core-libs/usr/lib
138 binary: binary-indep binary-arch
139 .PHONY: build clean binary-indep binary-arch binary install configure