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_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
16
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
17
ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
18
CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
20
CROSS= --build $(DEB_BUILD_GNU_TYPE)
26
# shared library versions, option 1
29
# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
30
#version=`ls src/.libs/lib*.so.* | \
31
# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
32
#major=`ls src/.libs/lib*.so.* | \
33
# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
35
config.status: configure
37
# Add here commands to configure the package.
38
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
39
cp -f /usr/share/misc/config.sub config.sub
41
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
42
cp -f /usr/share/misc/config.guess config.guess
44
./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS=""
48
build-stamp: config.status
51
# Add here commands to compile the package.
61
# Add here commands to clean up after the build process.
62
[ ! -f Makefile ] || $(MAKE) distclean
63
rm -f config.sub config.guess
73
# Add here commands to install the package into debian/tmp
74
$(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
77
# Build architecture-independent files here.
79
# We have nothing to do by default.
81
# Build architecture-dependent files here.
85
dh_installchangelogs ChangeLog
102
binary: binary-indep binary-arch
103
.PHONY: build clean binary-indep binary-arch binary install
3
include /usr/share/cdbs/1/rules/debhelper.mk
4
include /usr/share/cdbs/1/class/autotools.mk
6
DEB_CONFIGURE_EXTRA_FLAGS :=
8
LDFLAGS += -Wl,--as-needed -Wl,-Bsymbolic
10
# Enforce tight shlibs dependencies
11
DEB_DH_MAKESHLIBS_ARGS_ALL := -V