[SCM] libzen/master: Specify -B when using dh_auto_*

hyperair at users.alioth.debian.org hyperair at users.alioth.debian.org
Sun Apr 19 17:51:24 UTC 2015


The following commit has been merged in the master branch:
commit 2ae01460c53c4371ee42b9cecae6699617c317b0
Author: Chow Loong Jin <hyperair at debian.org>
Date:   Thu Apr 16 09:42:01 2015 +0800

    Specify -B when using dh_auto_*
    
    Debhelper's cmake subsystem prefers to use out-of-tree building, at
    obj-${DEB_HOST_GNU_TYPE}, but this is an implementation detail we shouldn't rely
    on. So, explicitly set the builddir instead so that we know where to find the
    .pc file.

diff --git a/debian/rules b/debian/rules
index ddb87e2..24ff138 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,24 +7,26 @@ version = $(shell dpkg-parsechangelog | sed -nre 's/^Version: (.*)-.*/\1/p')
 #export DH_VERBOSE=1
 
 libpath = Project/CMake
+builddir = build/
 
 override_dh_auto_configure:
-	dh_auto_configure -D$(libpath)
+	mkdir -p $(builddir)
+	dh_auto_configure -D$(libpath) -B$(builddir)
 
 override_dh_auto_build:
 	cd Source/Doc && doxygen Doxyfile
 	cp Source/Doc/*.html ./
 
-	sed -i -e 's|Version: |Version: $(version)|g' Project/CMake/libzen.pc
+	sed -i -e 's|Version: |Version: $(version)|g' $(builddir)/libzen.pc
 
-	dh_auto_build -D$(libpath)
+	dh_auto_build -D$(libpath) -B$(builddir)
 
 override_dh_auto_clean:
-	dh_auto_clean -D$(libpath)
+	dh_auto_clean -D$(libpath) -B$(builddir)
 	rm -rf Doc/ *.html
 
 override_dh_auto_install:
-	dh_auto_install -D$(libpath)
+	dh_auto_install -D$(libpath) -B$(builddir)
 
 override_dh_installdocs:
 	dh_installdocs

-- 
libzen packaging



More information about the pkg-multimedia-commits mailing list