[shark] 16/24: Update d/rules.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Dec 10 19:50:05 UTC 2015


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

ghisvail-guest pushed a commit to branch debian/sid
in repository shark.

commit 95fb7c6be310237052cc578350055fe6859d2c64
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Mon Nov 23 14:19:14 2015 +0000

    Update d/rules.
---
 debian/rules | 56 ++++++++++++++++++++++++++++++++++++++++++++++----------
 1 file changed, 46 insertions(+), 10 deletions(-)

diff --git a/debian/rules b/debian/rules
index f917f36..d670cab 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,16 +1,52 @@
 #!/usr/bin/make -f
-# You must remove unused comment lines for the released package.
+
 #export DH_VERBOSE = 1
-#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
-#export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
-#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+
+# Hardening flags.
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
+export DEB_CXXFLAGS_MAINT_APPEND = -Wall -pedantic
+export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+
+# Environment information.
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+
+# Common cmake options.
+CMAKE_BUILD_OPTIONS = \
+	-DBUILD_SHARED_LIBS=ON \
+	-DBUILD_TESTING=OFF \
+	-DENABLE_ATLAS=OFF \
+	-DENABLE_OPENMP=ON \
+	-DOPT_INSTALL_DOCUMENTATION=ON \
+	-DSHARK_INSTALL_DOC_DIR=share/doc/libshark-doc \
+	-DSHARK_INSTALL_EXAMPLE_DIR=share/doc/libshark-doc/examples
+
+# Disable build of testsuite if no check requested.
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+CMAKE_BUILD_OPTIONS += -DBUILD_TESTING=ON
+else
+CMAKE_BUILD_OPTIONS += -DBUILD_TESTING=OFF
+endif
 
 %:
-	dh $@  
+	dh $@ --parallel --dbg-package=libshark0-dbg
+
+override_dh_auto_configure-arch:
+	dh_auto_configure -- $(CMAKE_BUILD_OPTIONS) \
+		-DBUILD_DOCUMENTATION=OFF \
+		-DBUILD_EXAMPLES=OFF
+
+override_dh_auto_configure-indep:
+	dh_auto_configure -- $(CMAKE_BUILD_OPTIONS) \
+		-DBUILD_DOCUMENTATION=ON \
+		-DBUILD_EXAMPLES=ON
 
-#override_dh_auto_configure:
-#	dh_auto_configure -- \
-#	      -DCMAKE_LIBRARY_ARCHITECTURE="$(DEB_TARGET_MULTIARCH)"
+override_dh_installdocs-indep:
+	dh_installdocs --indep
+	dh_doxygen --indep \
+		/usr/share/doc/libshark-doc/html/doxygen_pages/html
+	dh_sphinxdoc --indep --exclude=MathJax.js \
+		/usr/share/doc/libshark-doc/html/sphinx_pages
 
-override_dh_strip:
-	dh_strip --dbg-package=libshark0-dbg
+override_dh_compress:
+	dh_compress --exclude=examples

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



More information about the debian-science-commits mailing list