3 #include /usr/share/cdbs/1/rules/simple-patchsys.mk
5 # Uncomment this to turn on verbose mode.
8 # These are used for cross-compiling and for saving the configure script
9 # from having to guess our platform (since we know it already)
10 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
11 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
13 CFLAGS ?= -Wall -g -fPIC
19 CONFIGURE_OPTION= --disable-static \
21 --with-html-dir=/tmp/dump \
30 --disable-debugutils \
40 --disable-mpegvideoparse \
49 --disable-scaletempo \
56 --disable-videomeasure \
57 --disable-videosignal \
59 --disable-directsound \
60 --disable-directdraw \
91 --disable-musicbrainz \
101 --disable-soundtouch \
105 --disable-theoradec \
114 --disable-dataurisrc \
116 --disable-coloreffects \
117 --disable-colorspace \
118 --disable-videomaxrate \
119 --disable-jp2kdecimator \
120 --disable-interlace \
121 --disable-gaudieffects \
125 --disable-jpegformat \
126 --disable-segmentclip \
127 --disable-geometrictransform \
128 --disable-invtelecine \
129 --disable-dvbsuboverlay \
134 #--disable-camerabin \
135 #--disable-aacparse \
136 #--disable-lagacyresample \
138 #--disable-quicktime \
139 #--disable-h264parse \
140 #--disable-mpeg4videoparse \
143 #--disable-selector \
144 #--disable-metadata \
147 LDFLAGS += -Wl,--hash-style=both -Wl,--as-needed
149 config.status: configure
151 ./autogen.sh || exit 1
152 # Add here commands to configure the package.
153 ./configure $(CONFIGURE_OPTION) --prefix=$(PREFIX) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
160 build-stamp: config.status
163 # Add here commands to compile the package.
166 for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
167 cat $$f > $${f%.in}; \
168 sed -i -e "s#@PREFIX@#$(PREFIX)#g" $${f%.in}; \
169 sed -i -e "s#@DATADIR@#$(DATADIR)#g" $${f%.in}; \
177 rm -f build-stamp stamp-h1
178 # Add here commands to clean up after the build process.
181 ifneq "$(wildcard /usr/share/misc/config.sub)" ""
182 cp -f /usr/share/misc/config.sub config.sub
184 ifneq "$(wildcard /usr/share/misc/config.guess)" ""
185 cp -f /usr/share/misc/config.guess config.guess
188 # find ./ -depth -name "Makefile" -exec rm {} -f \;
189 # find ./ -depth -name ".deps" -exec rm {} -rf \;
191 for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
203 # Add here commands to install the package into debian/tmp
204 $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
206 # Build architecture-independent files here.
207 binary-indep: build install
208 # We have nothing to do by default.
210 # Build architecture-dependent files here.
211 binary-arch: build install
215 dh_install --sourcedir debian/tmp --list-missing
218 # dh_installlogrotate
228 dh_strip --dbg-package=gstreamer0.10-plugins-bad-dbg
239 binary: binary-indep binary-arch
240 .PHONY: build clean binary-indep binary-arch binary install