[SCM] scenic packaging branch, master, updated. upstream/0.6.2-96-gf2bbe88

alexandrequessy-guest at users.alioth.debian.org alexandrequessy-guest at users.alioth.debian.org
Wed Jun 23 00:55:09 UTC 2010


The following commit has been merged in the master branch:
commit 7c28ebbff5793fdfa5eef43ef79fab27eaa4d947
Author: Alexandre Quessy <alexandre at quessy.net>
Date:   Tue Jun 22 14:30:51 2010 -0400

    added configure-stamp rule

diff --git a/debian/rules b/debian/rules
index 7916db7..a72a3d3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,22 +1,34 @@
 #!/usr/bin/make -f
 
-DEB_BUILDDIR = build
-DEB_PYTHON_SYSTEM = pysupport
-DEB_PYTHON_MODULE_PACKAGES = scenic rtpmidi
-
 include /usr/share/cdbs/1/class/python-autotools.mk
 include /usr/share/cdbs/1/rules/debhelper.mk
 
-DEB_CONFIGURE_EXTRA_FLAGS = --enable-mt
-
 # Approach comes from 
 # http://www.technovelty.org/linux/debian/python-cdbs-autotools.html
 PY_VERSIONS = $(shell pyversions --requested debian/control)
 
+DEB_BUILDDIR := build
+DEB_PYTHON_SYSTEM = pysupport
+DEB_PYTHON_MODULE_PACKAGES = scenic rtpmidi
+
+DEB_CONFIGURE_EXTRA_FLAGS := --enable-mt
+
+configure-stamp-%:
+	mkdir build-$*
+	cd build-$* && PYTHON=`which $*` $(DEB_CONFIGURE_SCRIPT_ENV) \
+	    $(DEB_CONFIGURE_SCRIPT) \
+		$(DEB_CONFIGURE_NORMAL_ARGS) \
+		--disable-maintainer-mode \
+		$(cdbs_configure_flags) \
+		$(DEB_CONFIGURE_EXTRA_FLAGS) \
+		$(DEB_CONFIGURE_USER_FLAGS)
+	touch $@
+
 configure/scenic:: $(addprefix configure-stamp-, $(PY_VERSIONS))
 
 configure/midistream:: $(addprefix configure-stamp-, $(PY_VERSIONS))
 
+
 build-stamp-%:
 	make -C build-$*
 	touch $@
@@ -50,8 +62,8 @@ binary-indep/midistream::
 # cleanup after upstream
 # cleanup stamp targets
 clean::
-	-rm -rf $(DEB_BUILDDIR)
-	-rm -rf $(addprefix build-, $(PY_VERSIONS))
-	-rm -rf $(addprefix configure-stamp-, $(PY_VERSIONS))
-	-rm -rf $(addprefix build-stamp-, $(PY_VERSIONS))
-	-rm -rf $(addprefix install-stamp-, $(PY_VERSIONS))
+	-$(RM) -r $(DEB_BUILDDIR)
+	-$(RM) -r $(addprefix $(CURDIR)/build-, $(PY_VERSIONS))
+	-$(RM) -r $(addprefix $(CURDIR)/configure-stamp-, $(PY_VERSIONS))
+	-$(RM) -r $(addprefix $(CURDIR)/build-stamp-, $(PY_VERSIONS))
+	-$(RM) -r $(addprefix $(CURDIR)/install-stamp-, $(PY_VERSIONS))

-- 
scenic packaging



More information about the pkg-multimedia-commits mailing list