[jblas] 17/30: Use dh_auto_configure override to build native libs.

Markus Koschany apo at moszumanska.debian.org
Tue Oct 24 13:54:24 UTC 2017


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

apo pushed a commit to branch master
in repository jblas.

commit 20d333a0a6254fc4a09ea5da25bd688859c26d81
Author: Markus Koschany <apo at debian.org>
Date:   Mon Oct 23 20:16:19 2017 +0200

    Use dh_auto_configure override to build native libs.
---
 debian/rules | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/debian/rules b/debian/rules
index 285a105..90653c2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,11 +1,22 @@
 #!/usr/bin/make -f
 
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 export JAVA_HOME := /usr/lib/jvm/default-java
 export CLASSPATH := /usr/share/java/ant-nodeps.jar:/usr/share/java/junit4.jar:/usr/share/java/ant-junit4.jar:/usr/share/java/ant-junit.jar
 
 %:
 	dh $@ --buildsystem=ant
 
+override_dh_auto_configure:
+	mkdir -p debian/tmp/locale/
+	localedef -f UTF-8 -i en_US ./debian/tmp/locale/en_US.UTF-8/
+	export LOCPATH=$(CURDIR)/debian/tmp/locale/ && \
+		export LC_ALL=en_US.UTF-8 && \
+		./configure --libpath=/usr/lib/$(DEB_HOST_MULTIARCH):/usr/lib/$(DEB_HOST_MULTIARCH)/atlas
+	export LOCPATH=$(CURDIR)/debian/tmp/locale/ && \
+		export LC_ALL=en_US.UTF-8 && \
+	dh_auto_configure
+
 override_dh_auto_build:
 	dh_auto_build -- minimal-jar javadoc
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jblas.git



More information about the pkg-java-commits mailing list