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 \
35 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
41 # shared library versions, option 1
44 # option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
45 #version=`ls src/.libs/lib*.so.* | \
46 # awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
47 #major=`ls src/.libs/lib*.so.* | \
48 # awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
50 LDFLAGS += -Wl,--hash-style=both -Wl,--as-needed
52 config.status: configure
54 # Add here commands to configure the package.
56 ./configure $(CONFIGURE_OPTION) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
62 build-stamp: config.status
65 # Add here commands to compile the package.
73 rm -f build-stamp stamp-h1
74 # Add here commands to clean up after the build process.
85 # Add here commands to install the package into debian/tmp
86 $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
88 # Build architecture-independent files here.
89 binary-indep: build install
90 # We have nothing to do by default.
92 # Build architecture-dependent files here.
93 binary-arch: build install
97 dh_install --sourcedir debian/tmp --list-missing
99 dh_strip --dbg-package=gstreamer0.10-plugins-base-dbg
109 binary: binary-indep binary-arch
110 .PHONY: build clean binary-indep binary-arch binary install