rules 1.08 KB
Newer Older
1 2 3
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
4
include /usr/share/cdbs/1/rules/autoreconf.mk
5 6
include /usr/share/cdbs/1/rules/utils.mk
include /usr/share/cdbs/1/class/autotools.mk
7 8 9
include /usr/share/gnome-pkg-tools/1/rules/uploaders.mk
-include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk

10 11
# Use UTF-8 locale as the test-suite currently fails otherwise
# https://bugzilla.gnome.org/show_bug.cgi?id=702136
12
export LC_ALL = C.UTF-8
13

14 15
GNOME_MODULE := libxml++

16 17
SHARED_PKG := $(shell sed -rn 's/^Package:[[:space:]]*(libxml\+\+[[:digit:]\.]+-[[:digit:]][[:alnum:]]*)[[:space:]]*$$/\1/p' debian/control)
DOC_PKG := $(shell sed -rn 's/^Package:[[:space:]]*(libxml\+\+[[:digit:]\.]+-doc)[[:space:]]*$$/\1/p' debian/control)
18
SHVER := 2.38.0
19 20 21

LDFLAGS += -Wl,-z,defs -Wl,-O1 -Wl,--as-needed

Michael Biebl's avatar
Michael Biebl committed
22 23
DEB_CONFIGURE_EXTRA_FLAGS += --enable-static \
                             --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)
Josselin Mouette's avatar
Josselin Mouette committed
24
DEB_MAKE_CHECK_TARGET := check
25 26
DEB_DH_MAKESHLIBS_ARGS_$(SHARED_PKG) += -V"$(SHARED_PKG) (>= $(SHVER))"
DEB_INSTALL_EXAMPLES_$(DOC_PKG) += -XMakefile -X.deps -X.libs -X.o