[gazebo] 02/03: Update rules file

Jose Luis Rivero jrivero-guest at moszumanska.debian.org
Sat Jun 21 00:45:21 UTC 2014


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

jrivero-guest pushed a commit to branch master
in repository gazebo.

commit 0fce499e3ecea71fb857d4f1dd4f9ce8666c7a17
Author: Jose Luis Rivero <jrivero at osrfoundation.org>
Date:   Fri Jun 20 23:24:55 2014 +0000

    Update rules file
---
 debian/rules | 40 ++++++++++++++++------------------------
 1 file changed, 16 insertions(+), 24 deletions(-)

diff --git a/debian/rules b/debian/rules
index 13fd732..6dca041 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,54 +12,46 @@ LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
 CFLAGS+=$(CPPFLAGS)
 CXXFLAGS+=$(CPPFLAGS)
 
-# Multiarch.
-DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+# Multiarch (if supported).
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null)
 
 # Configuration flags.
-# Cannot build against player, disable it for now.
-CONFIGURE_ARGS= \
-	-DLIB_INSTALL_DIR=lib/${DEB_HOST_MULTIARCH} \
-	-Dfreeimage_include_dir=/usr/include \
-	-Dfreeimage_library_dir=/usr/lib \
-	-DINCLUDE_PLAYER=OFF
+CONFIGURE_ARGS=
+
+# If multiarch is supported, override CMAKE_INSTALL_LIB
+ifneq ($(DEB_HOST_MULTIARCH),)
+CONFIGURE_ARGS+=-DCMAKE_INSTALL_LIBDIR:STRING="lib/${DEB_HOST_MULTIARCH}"
+endif
 
 .PHONY: override_dh_auto_configure	\
 	override_dh_auto_build-indep	\
-	override_dh_auto_build		\
 	override_dh_install		\
 	override_dh_strip		\
 	override_dh_auto_test
 
 override_dh_auto_configure:
-	dh_auto_configure -- $(CONFIGURE_ARGS)
-
-override_dh_auto_build-indep:
-	dh_auto_build -- doc # Generate Doxygen HTML documentation.
+	dh_auto_configure -- \
+                -DENABLE_TESTS_COMPILATION:BOOL=False \
+                -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+	        $(CONFIGURE_ARGS) \
 
-override_dh_auto_build:
-	dh_auto_build -- # Compile the software.
+# override_dh_auto_build-indep:
+#	dh_auto_build -- doc # Generate Doxygen HTML documentation.
 
 override_dh_install:
 	dh_install -- # Install.
 
-	# Remove unwanted shell extension.
-	mv debian/gazebo/usr/bin/gzmodel_create.sh \
-	   debian/gazebo/usr/bin/gzmodel_create
-
 	# Get rid of fonts already packaged elsewhere.
 	tmp=`ls debian/gazebo-common/usr/share/gazebo-*/media/gui/fonts/DejaVuSans.ttf` \
 	&& rm $$tmp \
 	&& ln -s /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf $$tmp
 
-	# Install wrapper
-	cp debian/gazebo-wrapper debian/gazebo/usr/bin/gazebo \
-	&& chmod 755 debian/gazebo/usr/bin/gazebo
-
 
 override_dh_strip:
-	dh_strip -a --dbg-package=gazebo-dbg
+	dh_strip -a --dbg-package=libgazebo3-dbg
 
 override_dh_auto_test:
+	true
 
 %:
 	dh $@ --parallel

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



More information about the debian-science-commits mailing list