[SCM] linbox: library for exact linear algebra branch, master, updated. upstream/1.2.0-27-g5703172
Lifeng Sun
lifongsun at gmail.com
Mon Jun 11 15:27:25 UTC 2012
The following commit has been merged in the master branch:
commit f8dcfacab25b60a187bcbaffd02f997b69c0c761
Author: Lifeng Sun <lifongsun at gmail.com>
Date: Mon Jun 11 21:46:50 2012 +0800
Update d/rules.
diff --git a/debian/rules b/debian/rules
index 5a4830c..e6c3e24 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,7 +3,37 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
-override_dh_auto_configure:
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+
+CPPFLAGS :=$(shell dpkg-buildflags --get CPPFLAGS)
+CFLAGS :=$(shell dpkg-buildflags --get CFLAGS)
+CXXFLAGS :=$(shell dpkg-buildflags --get CXXFLAGS)
+LDFLAGS :=$(shell dpkg-buildflags --get LDFLAGS)
+
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+ NUMJOBS := $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+else
+ NUMJOBS := 1
+endif
+
+export CPPFLAGS CFLAGS CXXFLAGS LDFLAGS
+
+# package name
+PKGNAME=$(strip $(shell head -n1 debian/changelog | cut -d' ' -f1))
+
+# current Debian package version
+DEBVER=$(strip $(shell head -n1 debian/changelog | cut -d' ' -f2 | tr -d '()'))
+
+# current upstream version (remove any epoch and Debian release number)
+UPVER=$(shell echo $(DEBVER) | sed -e 's/-[^-]*$$//' -e 's/^[^:]*://')
+
+
+../$(PKGNAME)_$(UPVER).orig.tar.gz:
+ ./debian/get-orig-source --upstream-version $(UPVER) $@
+
+get-orig-source: ../$(PKGNAME)_$(UPVER).orig.tar.gz
+
+configure-stamp:
dh_auto_configure -- \
--prefix=/usr \
--with-gmp \
@@ -14,10 +44,28 @@ override_dh_auto_configure:
--enable-docs \
--enable-sage \
--enable-shared
+ touch $@
+
+clean:
+ dh_testdir
+ dh_auto_clean
+ dh_clean
+
+build-arch: configure-stamp
+ $(MAKE) -j$(NUMJOBS)
-override_dh_auto_build:
- dh_auto_build
+build-indep:
+ dh_testdir
$(MAKE) docs
-%:
- dh $@ --with autotools-dev
+build: build-arch
+
+binary-arch: build-arch
+ dh $@
+
+binary-indep: build-indep
+ dh $@
+
+binary: binary-arch binary-indep
+
+.PHONY: get-orig-source build-indep build-arch build binary-indep binary-arch binary
--
linbox: library for exact linear algebra
More information about the debian-science-commits
mailing list