3 # Uncomment this to turn on verbose mode.
7 include /usr/share/dpatch/dpatch.make
9 # These are used for cross-compiling and for saving the configure script
10 # from having to guess our platform (since we know it already)
11 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
12 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
14 # fixit : need to check
15 CFLAGS += -Wall -g -fPIC \
16 -DGST_EXT_AV_RECORDING \
17 -DGST_EXT_QUEUE_ENHANCEMENT \
18 -DGST_EXT_CURRENT_BYTES \
19 -DGST_EXT_MODIFIED_DQBUF
21 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
27 # shared library versions, option 1
30 # option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
31 #version=`ls src/.libs/lib*.so.* | \
32 # awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
33 #major=`ls src/.libs/lib*.so.* | \
34 # awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
36 LDFLAGS += -Wl,--hash-style=both -Wl,--as-needed
42 ./configure --prefix=/usr \
47 --disable-libtool-lock \
48 --disable-alloc-trace \
53 --disable-failing-tests \
56 --disable-registry-update \
58 --with-html-dir=/tmp/dump \
59 $(CONFIGURE_OPTIONS) \
65 build-stamp: patch-stamp config.status
75 rm -f build-stamp patch-stamp
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
100 dh_install --sourcedir=debian/tmp --list-missing
102 dh_strip --dbg-package=libgstreamer0.10-0-dbg
112 binary: binary-indep binary-arch
113 .PHONY: build clean binary-indep binary-arch binary install patch unpatch clean clean1