3 # Uncomment this to turn on verbose mode.
6 # These are used for cross-compiling and for saving the configure script
7 # from having to guess our platform (since we know it already)
8 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
9 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
11 CFLAGS ?= -Wall -g -fPIC
16 CONFIGURE_OPTION += --disable-static \
18 --with-html-dir=/tmp/dump \
26 --disable-debugutils \
27 --disable-deinterlace \
36 --disable-replaygain \
40 --disable-videomixer \
42 --disable-directsound \
60 --disable-shout2test \
67 #--disable-autodetext \
74 #--disable-rtpmanager \
80 #--disable-videofilter \
85 #--disable-videocrop \
87 CFLAGS += -DGST_EXT_SOUP_MODIFICATION
89 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
95 #ifneq (,$(findstring arm, $(DEB_HOST_GNU_TYPE)))
98 # architecture is not arm
99 ifneq (, $(findstring arm, $(DEB_HOST_ARCH)))
101 CONFIGURE_OPTION += --enable-divx-drm
106 LDFLAGS += -Wl,--hash-style=both -Wl,--as-needed
108 config.status: configure
111 # Add here commands to configure the package.
112 ./configure $(CONFIGURE_OPTION) --prefix=$(PREFIX) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
119 build-stamp: config.status
122 # Add here commands to compile the package.
125 for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
126 cat $$f > $${f%.in}; \
127 sed -i -e "s#@PREFIX@#$(PREFIX)#g" $${f%.in}; \
128 sed -i -e "s#@DATADIR@#$(DATADIR)#g" $${f%.in}; \
136 rm -f build-stamp stamp-h1
137 # Add here commands to clean up after the build process.
140 ifneq "$(wildcard /usr/share/misc/config.sub)" ""
141 cp -f /usr/share/misc/config.sub config.sub
143 ifneq "$(wildcard /usr/share/misc/config.guess)" ""
144 cp -f /usr/share/misc/config.guess config.guess
147 find ./ -depth -name "Makefile" -exec rm {} -f \;
148 find ./ -depth -name ".deps" -exec rm {} -rf \;
150 rm -f common/shave-libtool
151 rm -f docs/version.entities
152 rm -f gconf/gstreamer.schemas
153 rm -f pkgconfig/gstreamer-plugins-good-uninstalled.pc
156 rm -f tests/check/elements/.dirstamp
157 rm -f win32/common/config.h-new
164 for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
176 # Add here commands to install the package into debian/tmp
177 $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
179 # Build architecture-independent files here.
180 binary-indep: build install
181 # We have nothing to do by default.
183 # Build architecture-dependent files here.
184 binary-arch: build install
190 dh_install --sourcedir debian/tmp --list-missing
193 # dh_installlogrotate
203 dh_strip --dbg-package=gstreamer0.10-plugins-good-dbg
214 binary: binary-indep binary-arch
215 .PHONY: build clean binary-indep binary-arch binary install