debian swirl logo

Back to the packages list libglademm2.4

#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk
include /usr/share/cdbs/1/rules/utils.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/gnome-pkg-tools/1/rules/uploaders.mk
include /usr/share/gnome-pkg-tools/1/rules/clean-la.mk
-include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk

GNOME_MODULE := libglademm

SHARED_PKG := $(shell sed -rn 's/^Package:[[:space:]]*(libglademm-[0-9\.]+-[0-9][0-9a-z]*)[[:space:]]*$$/\1/p' debian/control)
DOC_PKG := $(shell sed -rn 's/^Package:[[:space:]]*(libglademm-[0-9\.]+-doc)[[:space:]]*$$/\1/p' debian/control)
SHVER := 2.6.0

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

DEB_CONFIGURE_EXTRA_FLAGS += --enable-static
DEB_DH_INSTALL_SOURCEDIR := debian/tmp
DEB_DH_MAKESHLIBS_ARGS_$(SHARED_PKG) += -V"$(SHARED_PKG) (>= $(SHVER))"
DEB_INSTALL_EXAMPLES_$(DOC_PKG) += -XMakefile -X.deps -X.libs -X.o

# chrpath hack to get rid of amd64 rpath
common-install-impl::
		chrpath -d $(DEB_DH_INSTALL_SOURCEDIR)/usr/lib/*.so*

install/$(DOC_PKG)::
		$(MAKE) -C $(CURDIR)/examples clean

Builds:

libglademm-2.4-1c2a
c++ wrappers for libglade2 (shared library)
libglademm-2.4-dbg
c++ wrappers for libglade2 (debug symbols)
libglademm-2.4-dev
c++ wrappers for libglade2 (development files)
libglademm-2.4-doc
c++ wrappers for libglade2 (documentation)