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)
10 DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
12 CONFIGURE_OPTION +=--prefix=/usr \
15 --with-html-dir=/tmp/dump \
19 --disable-cdparanoia \
22 --disable-freetypetest \
28 --with-audioresample-format=int
30 CFLAGS += -Wall -g -fPIC \
31 -DGST_EXT_XV_ENHANCEMENT \
32 -DGST_EXT_LINK_FIMCCONVERT \
33 -DGST_EXT_MIME_TYPES \
36 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
42 # shared library versions, option 1
45 # option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
46 #version=`ls src/.libs/lib*.so.* | \
47 # awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
48 #major=`ls src/.libs/lib*.so.* | \
49 # awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
51 LDFLAGS += -Wl,--hash-style=both -Wl,--as-needed
53 config.status: configure
55 # Add here commands to configure the package.
57 ./configure $(CONFIGURE_OPTION) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
63 build-stamp: config.status
66 # Add here commands to compile the package.
74 rm -f build-stamp stamp-h1
75 # Add here commands to clean up after the build process.
86 # Add here commands to install the package into debian/tmp
87 $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
89 # Build architecture-independent files here.
90 binary-indep: build install
91 # We have nothing to do by default.
93 # Build architecture-dependent files here.
94 binary-arch: build install
98 dh_install --sourcedir debian/tmp --list-missing
100 dh_strip --dbg-package=gstreamer0.10-plugins-base-dbg
110 binary: binary-indep binary-arch
111 .PHONY: build clean binary-indep binary-arch binary install