[pnetcdf] 04/08: Create seperate shared, static builds

Alastair McKinstry mckinstry at moszumanska.debian.org
Sun Jan 24 09:06:32 UTC 2016


This is an automated email from the git hooks/post-receive script.

mckinstry pushed a commit to branch debian/master
in repository pnetcdf.

commit eae3fa5023521a0b54cedeba9c3d2a269627e54c
Author: Alastair McKinstry <mckinstry at debian.org>
Date:   Sun Jan 17 16:46:44 2016 +0000

    Create seperate shared, static builds
---
 debian/rules | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/debian/rules b/debian/rules
index ed8b978..a22c0e1 100644
--- a/debian/rules
+++ b/debian/rules
@@ -2,6 +2,31 @@
 
 export DH_VERBOSE=1
 
+DESTDIR:=$(CURDIR)/debian/tmp/
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+LIBDIR:=/usr/lib/$(DEB_HOST_MULTIARCH)
+
+# To enable all, uncomment following line
+DEB_BUILD_MAINT_OPTIONS:= hardening=+all
+DEB_CFLAGS_MAINT_APPEND:= -Wall -pedantic
+
 # The magic debhelper  rule
 %:
 	dh $@ --with autoreconf
+
+override_dh_auto_clean:
+	rm -rf build-*
+
+override_dh_auto_configure:
+	dh_auto_configure  --builddirectory=build-static
+	dh_auto_configure  --builddirectory=build-shared
+
+override_dh_auto_build:
+	$(MAKE) -c build-static
+	#$(MAKE) -c build-shared
+
+override_dh_auto_install:
+	$(MAKE) -C build-static install DESTDIR=$(DESTDIR)
+	mkdir -p $(DESTDIR)/$(LIBDIR) $(DESTDIR)/usr/share
+	mv $(DESTDIR)/usr/man $(DESTDIR)/usr/share
+	mv $(DESTDIR)/usr/lib/lib* $(DESTDIR)/$(LIBDIR)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pnetcdf.git



More information about the debian-science-commits mailing list