[libocas] 03/60: Update build process in debian/rules
Christian Kastner
chrisk-guest at moszumanska.debian.org
Mon Aug 25 03:34:41 UTC 2014
This is an automated email from the git hooks/post-receive script.
chrisk-guest pushed a commit to branch master
in repository libocas.
commit 828cc312d4caed0f4a8a80a9d5059ca58d452aa2
Author: Christian Kastner <debian at kvr.at>
Date: Thu Jun 17 15:45:49 2010 +0200
Update build process in debian/rules
Determine lib version from debian 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/libocas.git
More information about the debian-science-commits
mailing list