r35387 - /packages/slicer/trunk/debian/rules
malat-guest at users.alioth.debian.org
malat-guest at users.alioth.debian.org
Wed Dec 24 19:48:50 UTC 2008
Author: malat-guest
Date: Wed Dec 24 19:48:50 2008
New Revision: 35387
URL: http://svn.debian.org/wsvn/debian-science/?sc=1&rev=35387
Log:
add DEB_BUILD_OPTIONS support
Modified:
packages/slicer/trunk/debian/rules
Modified: packages/slicer/trunk/debian/rules
URL: http://svn.debian.org/wsvn/debian-science/packages/slicer/trunk/debian/rules?rev=35387&op=diff
==============================================================================
--- packages/slicer/trunk/debian/rules (original)
+++ packages/slicer/trunk/debian/rules Wed Dec 24 19:48:50 2008
@@ -16,11 +16,25 @@
-DVOLUMERENDERINGMODULE:BOOL=OFF \
-DCMAKE_SKIP_RPATH:BOOL=ON \
-DBUILD_TESTING:BOOL=ON \
+ -DCMAKE_VERBOSE_MAKEFILE:BOOL=$(DH_VERBOSE) \
-DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed" \
-DCMAKE_EXE_LINKER_FLAGS="-Wl,--as-needed" \
-DSlicer3_USE_IGSTK::BOOL=OFF
# -DTEEM_DIR:PATH=/usr/lib/Teem-1.10.0 \
+
+CFLAGS = -g
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+export CFLAGS
+
+# set the number of build jobs
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+ JOBS := -j$(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+endif
get-orig-source:
@@ -50,7 +64,7 @@
# Add here commands to compile the package.
# build shared libs and binaries
- cd $(SHARED_BUILD_PATH) && $(MAKE) VERBOSE=1
+ cd $(SHARED_BUILD_PATH) && $(MAKE) $(JOBS)
#docbook-to-man debian/slicer.sgml > slicer.1
More information about the debian-science-commits
mailing list