[SCM] Packaging for ogre-contrib branch, master, updated. upstream/1.4.7-31-g818bbd3

Andres Mejia mcitadel at gmail.com
Sun May 18 06:25:10 UTC 2008


The following commit has been merged in the master branch:
commit 818bbd387b7aa9bde9c7cbde02268f4d0f826050
Author: Andres Mejia <mcitadel at gmail.com>
Date:   Sun May 18 02:24:58 2008 -0400

    Change rules file for new packaging method.

diff --git a/debian/ogre-plugins-cgprogrammanager.install b/debian/ogre-plugins-cgprogrammanager.install
deleted file mode 100644
index 21323d4..0000000
--- a/debian/ogre-plugins-cgprogrammanager.install
+++ /dev/null
@@ -1,3 +0,0 @@
-usr/lib/OGRE/*.so
-usr/lib/OGRE/*.la
-etc/OGRE/plugins.cfg.cgprogrammanager
diff --git a/debian/ogre-plugins-cgprogrammanager.postinst b/debian/ogre-plugins-cgprogrammanager.postinst
deleted file mode 100644
index e2f3c5c..0000000
--- a/debian/ogre-plugins-cgprogrammanager.postinst
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/sh -e
-
-if [ -x /usr/bin/update-ogre-plugins ] ; then
-    /usr/bin/update-ogre-plugins
-fi
-
-#DEBHELPER#
diff --git a/debian/ogre-plugins-cgprogrammanager.postrm b/debian/ogre-plugins-cgprogrammanager.postrm
deleted file mode 100644
index e2f3c5c..0000000
--- a/debian/ogre-plugins-cgprogrammanager.postrm
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/sh -e
-
-if [ -x /usr/bin/update-ogre-plugins ] ; then
-    /usr/bin/update-ogre-plugins
-fi
-
-#DEBHELPER#
diff --git a/debian/plugins.cfg.cgprogrammanager b/debian/plugins.cfg.cgprogrammanager
deleted file mode 100644
index bf60926..0000000
--- a/debian/plugins.cfg.cgprogrammanager
+++ /dev/null
@@ -1 +0,0 @@
-Plugin=Plugin_CgProgramManager.so
diff --git a/debian/rules b/debian/rules
index e4c1bd5..5329c89 100755
--- a/debian/rules
+++ b/debian/rules
@@ -43,13 +43,27 @@ OGRE_CONFIG_OPTIONS ?=  $(confflags) \
 		--disable-ogre-demos \
 		CXXFLAGS="$(DEB_CXXFLAGS)"
 
+build-setup: build-setup-stamp
+build-setup-stamp:
+	dh_testdir
+	cp -f debian/ogre-plugins-cgprogrammanager-VERSION.install \
+		debian/ogre-plugins-cgprogrammanager-$(OGRE_VERSION).install
+	cp -f debian/ogre-plugins-cgprogrammanager-VERSION.postinst \
+		debian/ogre-plugins-cgprogrammanager-$(OGRE_VERSION).postinst
+	cp -f debian/ogre-plugins-cgprogrammanager-VERSION.postrm \
+		debian/ogre-plugins-cgprogrammanager-$(OGRE_VERSION).postrm
+	cp -f debian/plugins-VERSION.cfg.cgprogrammanager \
+		debian/plugins-$(OGRE_VERSION).cfg.cgprogrammanager
+	sed -i 's/@VERSION@/$(OGRE_VERSION)/g' \
+		debian/ogre-plugins-cgprogrammanager-$(OGRE_VERSION).install
+
 patch: patch-stamp
 patch-stamp:
 	dh_testdir
 	QUILT_PATCHES=debian/patches quilt push -a || test $$? = 2
 	touch patch-stamp
 
-configure: patch configure-stamp
+configure: build-setup patch configure-stamp
 configure-stamp:
 	dh_testdir
 	# Modified bootstrapping from upstream, declares everything obsolete.
@@ -67,7 +81,7 @@ build-stamp:
 	$(MAKE)
 	touch build-stamp
 
-clean: clean-stamp unpatch
+clean: clean-stamp unpatch reverse-build-setup
 clean-stamp:
 	dh_testdir
 	dh_testroot
@@ -81,6 +95,14 @@ unpatch:
 	QUILT_PATCHES=debian/patches quilt pop -a -R || test $$? = 2
 	rm -rf .pc/ patch-stamp
 
+reverse-build-setup:
+	dh_testdir
+	rm -f debian/ogre-plugins-cgprogrammanager-$(OGRE_VERSION).install
+	rm -f debian/ogre-plugins-cgprogrammanager-$(OGRE_VERSION).postinst
+	rm -f debian/ogre-plugins-cgprogrammanager-$(OGRE_VERSION).postrm
+	rm -f debian/plugins-$(OGRE_VERSION).cfg.cgprogrammanager
+	rm -f build-setup-stamp
+
 install: build
 	dh_testdir 
 	dh_testroot
@@ -97,12 +119,14 @@ binary-arch: build install
 	dh_testdir
 	dh_testroot
 	install -d debian/tmp/etc/OGRE
-	   install -m 644 debian/plugins.cfg.cgprogrammanager \
-	   debian/tmp/etc/OGRE/plugins.cfg.cgprogrammanager
+	   install -m 644 debian/plugins-$(OGRE_VERSION).cfg.cgprogrammanager \
+	   debian/tmp/etc/OGRE/plugins-$(OGRE_VERSION).cfg.cgprogrammanager
+	ln -s plugins-$(OGRE_VERSION).cfg.cgprogrammanager \
+		debian/tmp/etc/OGRE/plugins.cfg.cgprogrammanager
 	dh_install --sourcedir=debian/tmp
 	dh_installchangelogs
 	dh_installdocs
-	dh_strip --dbg-package=ogre-plugins-cgprogrammanager-dbg
+	dh_strip --dbg-package=ogre-plugins-cgprogrammanager-$(OGRE_VERSION)-dbg
 	dh_compress
 	dh_fixperms
 	dh_makeshlibs

-- 
Packaging for ogre-contrib



More information about the Pkg-games-commits mailing list