File: rules

package info (click to toggle)
kannel 1.4.4-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 14,432 kB
  • ctags: 10,974
  • sloc: ansic: 103,539; sh: 24,003; xml: 20,180; php: 1,097; perl: 711; yacc: 548; makefile: 532; awk: 133; python: 122; pascal: 3
file content (47 lines) | stat: -rwxr-xr-x 1,605 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/upstream-tarball.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/debhelper.mk

DEB_UPSTREAM_PACKAGE = gateway
DEB_UPSTREAM_URL = http://www.kannel.org/download/$(DEB_UPSTREAM_VERSION)
DEB_UPSTREAM_TARBALL_MD5 = 0048dab467931eb8472c31d5e1257401

# (Re)create autotools
include /usr/share/cdbs/1/rules/autoreconf.mk
export AUTOHEADER = true
DEB_UPSTREAM_CRUFT_MOVE = aclocal.m4 configure

DEB_CONFIGURE_EXTRA_FLAGS = \
	--enable-warnings \
	--enable-docs --enable-pam --enable-pcre \
	--enable-ssl --with-ssl=/usr \
	--with-mysql --with-mysql-dir=/usr \
	--with-sqlite2 \
	--with-sqlite3 \
	--with-pgsql --with-pgsql-dir=/usr \
	--with-redis --with-redis-dir=/usr \
	--with-mssql=/usr

# Debian sgml-data collection apparently not in upstream path list
DEB_CONFIGURE_EXTRA_FLAGS += XML_DCL=/usr/share/xml/declaration/xml.dcl

DEB_MAKE_INSTALL_TARGET = install install-contrib install-checks install-test DESTDIR=$(cdbs_make_curdestdir)

# avoid regenerating code
# TODO: always regenerate instead: Move aside and build-depend on bison
pre-build::
	touch wmlscript/wsgram.c wmlscript/wsgram.h

# Build arch-indep parts separately to lower burden in build daemons
build/kannel-docs:: debian/stamp-kannel-docs-build
debian/stamp-kannel-docs-build:
	$(DEB_MAKE_INVOKE) docs
	touch $@
install/kannel-docs:: debian/stamp-kannel-docs-install
debian/stamp-kannel-docs-install:
	$(DEB_MAKE_INVOKE) install-docs DESTDIR=$(cdbs_make_curdestdir)
	touch $@
clean::
	rm -f debian/stamp-kannel-docs-build debian/stamp-kannel-docs-install