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
|
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/utils.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/autoreconf.mk
SHARED_PKG := $(shell sed -rn 's/^Package:[[:space:]]*(libgnomecanvasmm-[0-9\.]+-[0-9][0-9a-z]*)[[:space:]]*$$/\1/p' debian/control)
DEV_PKG := $(shell sed -rn 's/^Package:[[:space:]]*(libgnomecanvasmm-[0-9\.]+-dev)[[:space:]]*$$/\1/p' debian/control)
DOC_PKG := $(shell sed -rn 's/^Package:[[:space:]]*(libgnomecanvasmm-[0-9\.]+-doc)[[:space:]]*$$/\1/p' debian/control)
SHVER := 2.23.1
LDFLAGS += -Wl,-z,defs -Wl,-O1 -Wl,--as-needed
export AUTOHEADER = true
DEB_CONFIGURE_EXTRA_FLAGS += --enable-static
DEB_DH_INSTALL_SOURCEDIR := debian/tmp
DEB_DH_MAKESHLIBS_ARGS_$(SHARED_PKG) := -V"$(SHARED_PKG) (>= $(SHVER))"
DEB_INSTALL_DOCS_$(DOC_PKG) += -XMakefile -XDoxyfile
DEB_INSTALL_EXAMPLES_$(DOC_PKG) += -XMakefile -X.deps -X.libs -X.o
binary-post-install/$(DEV_PKG)::
mkdir debian/$(DEV_PKG)/usr/lib/$(DEB_HOST_MULTIARCH)
mv debian/$(DEV_PKG)/usr/lib/pkgconfig debian/$(DEV_PKG)/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig
build/$(DOC_PKG)::
$(MAKE) -C docs/reference
find docs/reference/html -name '*.md5' -print0 | xargs -r0 rm -v -f
install/$(DOC_PKG)::
$(MAKE) -C examples clean
|