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 --disable-plugin-builddir \
48 build: configure-stamp build-stamp
59 rm -f build-stamp configure-stamp
61 # why does distclean not get the docs? who knows?
62 -(cd docs; $(MAKE) clean)
74 # Add here commands to install the package into debian/gstreamer.
75 $(MAKE) prefix=$(CURDIR)/debian/gstreamer/usr install
77 # move around the doc dirs
78 mkdir -p debian/gstreamer/usr/share/doc/gstreamer-doc
79 -cp -r docs/fwg/gst-plugin-writers-guide \
80 docs/manual/gstreamer-manual \
81 debian/gstreamer/usr/share/doc/gstreamer-doc
83 # devhelp files not installed by default
84 mkdir -p debian/gstreamer/usr/share/devhelp/specs
85 -cp docs/devhelp/*.devhelp debian/gstreamer/usr/share/devhelp/specs
87 # -doc lintian overrides
88 mkdir -p debian/gstreamer-doc/usr/share/lintian/overrides/
89 cp -a debian/gstreamer-doc.lintian debian/gstreamer-doc/usr/share/lintian/overrides/gstreamer-doc
91 dh_movefiles --sourcedir=debian/gstreamer
93 # Build architecture-independent files here.
94 # Pass -i to all debhelper commands in this target to reduce clutter.
95 binary-indep: DH_OPTIONS=-i
96 binary-indep: build install
97 # Need this version of debhelper for DH_OPTIONS to work.
100 dh_installdocs -A debian/README.Debian
114 # Build architecture-dependent files here.
115 # Pass -a to all debhelper commands in this target to reduce clutter.
116 binary-arch: DH_OPTIONS=-a
117 binary-arch: build install
118 # Need this version of debhelper for DH_OPTIONS to work.
121 dh_installdocs -A debian/README.Debian
131 dh_shlibdeps -l`pwd`/debian/libgstreamer$(version)/usr/lib:`pwd`/debian/gstreamer-core-libs/usr/lib
136 binary: binary-indep binary-arch
137 .PHONY: build clean binary-indep binary-arch binary install configure