3 # Sample debian/rules that uses debhelper.
4 # This file was originally written by Joey Hess and Craig Small.
5 # As a special exception, when this file is copied by dh-make into a
6 # dh-make output file, you may use that output file without restriction.
7 # This special exception was added by Craig Small in version 0.37 of dh-make.
9 # Uncomment this to turn on verbose mode.
13 # These are used for cross-compiling and for saving the configure script
14 # from having to guess our platform (since we know it already)
15 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
16 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
17 DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
18 DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_GNU_OS)
25 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
32 # --disable-ext-evasimagesink
34 LDFLAGS += -Wl,--rpath=$(PREFIX)/lib -Wl,--as-needed
36 config.status: configure
38 # Add here commands to configure the package.
40 CFLAGS="$(CFLAGS) -DGST_EXT_TIME_ANALYSIS -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\" " LDFLAGS="$(LDFLAGS)" ./configure $(MODULES) $(OPTION) --prefix=$(PREFIX)
44 build-stamp: config.status
47 # Add here commands to compile the package.
49 #docbook-to-man debian/ncurses.sgml > ncurses.1
51 for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
52 cat $$f > $${f%.in}; \
53 sed -i -e "s#@PREFIX@#$(PREFIX)#g" $${f%.in}; \
54 sed -i -e "s#@DATADIR@#$(DATADIR)#g" $${f%.in}; \
64 # Add here commands to clean up after the build process.
66 ifneq "$(wildcard /usr/share/misc/config.sub)" ""
67 cp -f /usr/share/misc/config.sub config.sub
69 ifneq "$(wildcard /usr/share/misc/config.guess)" ""
70 cp -f /usr/share/misc/config.guess config.guess
73 for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
85 # Add here commands to install the package into debian/ncurses.
86 $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
87 #ifneq (, $(findstring arm, $(DEB_HOST_ARCH)))
88 # execstack -c $(EXECSTACK_FILES)
92 # Build architecture-independent files here.
93 binary-indep: build install
94 # We have nothing to do by default.
96 # Build architecture-dependent files here.
97 binary-arch: build install
100 dh_installchangelogs -s
103 dh_install -s --list-missing --sourcedir=debian/tmp
106 # dh_installlogrotate
116 dh_strip -s --dbg-package=gstreamer0.10-plugins-ext-dbg
127 binary: binary-indep binary-arch
128 .PHONY: build clean binary-indep binary-arch binary install