[med-svn] r11242 - trunk/packages/libquazip/trunk/debian

Eric Maeker ericmaeker-guest at alioth.debian.org
Wed Jun 6 18:42:05 UTC 2012


Author: ericmaeker-guest
Date: 2012-06-06 18:42:05 +0000 (Wed, 06 Jun 2012)
New Revision: 11242

Modified:
   trunk/packages/libquazip/trunk/debian/rules
Log:
libquazip: dh_clean updated; using qmake buildsystem; parallel building

Modified: trunk/packages/libquazip/trunk/debian/rules
===================================================================
--- trunk/packages/libquazip/trunk/debian/rules	2012-06-06 18:16:13 UTC (rev 11241)
+++ trunk/packages/libquazip/trunk/debian/rules	2012-06-06 18:42:05 UTC (rev 11242)
@@ -26,10 +26,16 @@
 QMAKE_DEBUG := $(DEBUG_PREFIX) CONFIG-=release CONFIG+=debug
 QMAKE_STATIC := $(RELEASE_PREFIX) CONFIG+=staticlib
 
+# Parallel building
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+	NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+	MAKEFLAGS += -j$(NUMJOBS)
+endif
+
 %:
-	dh $@
-	#dh $@ --buildsystem=qmake \
-	#--parallel
+	dh $@ --buildsystem=qmake --parallel
+	#dh $@  \
+	
 
 override_dh_auto_configure:
 	# Configure the shared library (release)
@@ -43,8 +49,8 @@
 override_dh_auto_clean:
 	rm -Rf quazip/.obj
 	rm -Rf quazip/.moc
+	find . -name Make.* -delete
 	dh_auto_clean
-	find . -name Makefile -delete
 
 override_dh_auto_build:
 	# make the shared lib
@@ -61,7 +67,7 @@
 	$(MAKE) -f Make.shared.release install
 	$(MAKE) -f Make.shared.debug install_target
 	$(MAKE) -f Make.static install_target
-	
+#	
 #	# d-shlibs needs enhancement --> #675500
 #	# Call d-shlibmove to comply with library packaging guide
 #	debian/d-devlibdeps debian/$(name)0-dev.substvars \
@@ -70,3 +76,5 @@
 #	            --movedev debian/tmp/usr/include usr/ \
 #	            debian/tmp/usr/lib/$(name).so \
 #	            #$(name).a
+
+




More information about the debian-med-commit mailing list