3
3
# Uncomment this to turn on verbose mode.
6
# shared library versions, option 1
9
# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
10
me_version=`ls gsmlib/.libs/libgsmme*.so.* | \
11
awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
12
me_major=`ls gsmlib/.libs/libgsmme*.so.* | \
13
awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
14
ex_version=`ls ext/.libs/libgsmext*.so.* | \
15
awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
16
ex_major=`ls ext/.libs/libgsmext*.so.* | \
17
awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
20
6
export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
21
7
export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
24
# FOR AUTOCONF 2.13 ONLY
25
ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
26
confflags += $(DEB_HOST_GNU_TYPE)
28
confflags += --host $(DEB_BUILD_GNU_TYPE) --build $(DEB_HOST_GNU_TYPE)
31
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
36
configure: configure-stamp
39
# Add here commands to configure the package.
40
CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" INSTALL_PROGRAM=$(INSTALL_PROGRAM) \
41
./configure $(confflags) --prefix=/usr --mandir=\$${prefix}/share/man \
42
--infodir=\$${prefix}/share/info
46
build: configure-stamp build-stamp
50
# Add here commands to compile the package.
59
# Add here commands to clean up after the build process.
60
[ ! -f Makefile ] || $(MAKE) distclean
61
rm -f build-stamp configure-stamp config.log config.status po/de.gmo
63
-test -r /usr/share/misc/config.sub && \
64
cp -f /usr/share/misc/config.sub scripts/config.sub
65
-test -r /usr/share/misc/config.guess && \
66
cp -f /usr/share/misc/config.guess scripts/config.guess
75
dh_installdirs -pgsm-utils
77
# Add here commands to install the package into debian/gsmlib.
78
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
79
chrpath -d debian/tmp/usr/bin/*
10
dh $@ --with autoreconf
12
override_dh_auto_install:
80
14
cp contrib/gsmsmsspool contrib/gsmsmsrequeue debian/tmp/usr/bin
83
# Build architecture-independent files here.
84
binary-indep: build install
85
# We have nothing to do by default.
87
# Build architecture-dependent files here.
88
binary-arch: build install
92
# build libgsmlib${major} package by moving files from gsmlib-dev
94
dh_movefiles -plibgsmme$(me_major)c2a \
95
usr/lib/libgsmme.so.$(me_major) \
96
usr/lib/libgsmme.so.$(me_version) \
97
usr/lib/libgsmext.so.$(ex_major) \
98
usr/lib/libgsmext.so.$(ex_version) \
101
dh_movefiles -plibgsmme-dev \
105
dh_movefiles -pgsm-utils \
114
dh_installman -pgsm-utils debian/*.1 debian/tmp/usr/share/man/man*/*
116
dh_installchangelogs ChangeLog
123
dh_shlibdeps -ldebian/libgsmme1c2a/usr/lib
128
binary: binary-indep binary-arch
129
.PHONY: build clean binary-indep binary-arch binary install configure
16
override_dh_auto_test:
18
.PHONY: override_dh_auto_install override_dh_auto_test