[liblinear] 02/123: Implement correct build process in debian/rules

Christian Kastner chrisk-guest at moszumanska.debian.org
Tue Aug 26 03:42:03 UTC 2014


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

chrisk-guest pushed a commit to branch master
in repository liblinear.

commit c8320b57b93919eafc2812494b26258fa28ef790
Author: Christian Kastner <debian at kvr.at>
Date:   Thu Jun 17 15:56:05 2010 +0200

    Implement correct build process in debian/rules
    
    Determine library version from changelog; set compiler flags
---
 debian/rules | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/debian/rules b/debian/rules
index 79fd842..ee30691 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,5 +4,22 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+# Get version numbers for SONAME from changelog
+DVER = $(shell dpkg-parsechangelog | grep '^Version')
+LVER = $(shell echo $(DVER) | sed -e 's/Version: \([0-9]*\)\..*/\1/')
+LSUBVER = $(shell echo $(DVER) | sed -e 's/Version: .*\.\([0-9]*\).*/\1/')
+export LVER
+export LSUBVER
+
+CFLAGS = -Wall -g
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+    CFLAGS += -O0
+else
+    CFLAGS += -O3
+ifeq (amd64,$(DEB_HOST_ARCH))
+    CFLAGS += -msse
+endif
+endif
+
 %:
 	dh $@ 

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



More information about the debian-science-commits mailing list