2
# Sample debian/rules that uses debhelper.
3
# GNU copyright 1997 to 1999 by Joey Hess.
5
# Uncomment this to turn on verbose mode.
8
# This is the debhelper compatibility version to use.
11
# These are used for cross-compiling and for saving the configure script
12
# from having to guess our platform (since we know it already)
13
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
14
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
16
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
19
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
23
configure: configure-stamp
26
# Add here commands to configure the package.
27
./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --disable-static --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --sysconfdir=/etc
33
build-stamp: configure-stamp
36
# Add here commands to compile the package.
38
#/usr/bin/docbook-to-man debian/linphone.sgml > linphone.1
45
rm -f build-stamp configure-stamp
47
# Add here commands to clean up after the build process.
50
-test -r /usr/share/misc/config.sub && \
51
-cp -f /usr/share/misc/config.sub config.sub
52
-test -r /usr/share/misc/config.guess && \
53
-cp -f /usr/share/misc/config.guess config.guess
64
# Add here commands to install the package into debian/linphone.
65
$(MAKE) install PIXDESTDIR=$(CURDIR)/debian/linphone prefix=$(CURDIR)/debian/linphone/usr sysconfdir=$(CURDIR)/debian/linphone/etc
66
# remove speex libs, in order to not to conflict with speex debian package.
67
rm -f $(CURDIR)/debian/linphone/usr/lib/libspeex* \
68
$(CURDIR)/debian/linphone/usr/bin/speex* \
69
$(CURDIR)/debian/linphone/usr/include/speex* \
70
$(CURDIR)/debian/linphone/usr/share/man/man1/speex*
72
# Build architecture-independent files here.
73
binary-indep: build install
74
# We have nothing to do by default.
76
# Build architecture-dependent files here.
77
binary-arch: build install
93
dh_installchangelogs ChangeLog
106
binary: binary-indep binary-arch
107
.PHONY: build clean binary-indep binary-arch binary install configure