[libsmpp34] 01/01: Set includedir
Ruben Undheim
rubund-guest at moszumanska.debian.org
Fri Feb 5 15:11:13 UTC 2016
This is an automated email from the git hooks/post-receive script.
rubund-guest pushed a commit to branch master
in repository libsmpp34.
commit bf532ddd0b853a288c0c5650260d82a63fee1147
Author: Ruben Undheim <ruben.undheim at gmail.com>
Date: Fri Feb 5 15:35:05 2016 +0100
Set includedir
---
debian/libsmpp34-dev.install | 1 +
debian/libsmpp34.pc.in | 11 +++++++++++
debian/rules | 15 +++++++++++++++
3 files changed, 27 insertions(+)
diff --git a/debian/libsmpp34-dev.install b/debian/libsmpp34-dev.install
index f3800aa..7df81cd 100644
--- a/debian/libsmpp34-dev.install
+++ b/debian/libsmpp34-dev.install
@@ -1,2 +1,3 @@
usr/include/*
usr/lib/*/lib*.so
+usr/lib/*/pkgconfig/*
diff --git a/debian/libsmpp34.pc.in b/debian/libsmpp34.pc.in
new file mode 100644
index 0000000..d6401b7
--- /dev/null
+++ b/debian/libsmpp34.pc.in
@@ -0,0 +1,11 @@
+prefix=$PREFIX
+exec_prefix=${prefix}/bin
+libdir=$LIBDIR
+includedir=${prefix}/include/libsmpp34
+
+Name: libsmpp34
+Description: Open PDU SMPP packaging and unpackaging tool
+Version: $VERSION
+Requires:
+Libs: -lsmpp34
+Cflags: -I${includedir}
diff --git a/debian/rules b/debian/rules
index 3b06656..14e68b4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,6 +6,8 @@ export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+
PKD = $(abspath $(dir $(MAKEFILE_LIST)))
PKG = $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog | grep ^Source))
VER ?= $(shell dpkg-parsechangelog -l$(PKD)/changelog | perl -ne 'print $$1 if m{^Version:\s+(?:\d+:)?(\d.*)(?:\-\d+.*)};')
@@ -20,9 +22,22 @@ binary:
dh $@
## <--
+override_dh_auto_configure:
+ dh_auto_configure -- --includedir=/usr/include/libsmpp34
+ cat debian/libsmpp34.pc.in | sed 's/$$VERSION/${VER}/' | sed 's/$$PREFIX/\/usr/' \
+ | sed 's#$$LIBDIR#/usr/lib/$(DEB_HOST_MULTIARCH)#' > debian/libsmpp34.pc
+
+override_dh_auto_install:
+ dh_auto_install
+ install -D -m 644 debian/libsmpp34.pc debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/libsmpp34.pc
+
override_dh_strip:
dh_strip -plibsmpp34-0 --keep-debug --dbg-package=libsmpp34-dbg
+override_dh_clean:
+ dh_clean
+ rm -f debian/libsmpp34.pc
+
get-orig-source: $(info I: $(PKG)_$(VER))
@echo "# Downloading..."
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/libsmpp34.git
More information about the debian-science-commits
mailing list