summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorChristoph Egger <Christoph.Egger@gmx.de>2008-11-01 23:54:41 +0100
committerChristoph Egger <Christoph.Egger@gmx.de>2008-11-01 23:58:20 +0100
commitedf7cb9bdcb5911199065daeb6422c259caa32f5 (patch)
treed65578c601505ada5faf4ad76ec2f112cabc543f /debian/rules
parent68c3ce67da27ccd2b9706f639ff10079638ef664 (diff)
* Cleaning up patches
* Using quilt.make in debian/rules
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules16
1 files changed, 7 insertions, 9 deletions
diff --git a/debian/rules b/debian/rules
index 20e8d5f..706c141 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,6 +9,8 @@
version=1.4.0
major=1
+include /usr/share/quilt/quilt.make
+
get-orig-source:
cd .. ; rm -rf libsfml-1.3.orig ; mkdir libsfml-1.3.orig ; cd libsfml-1.3.orig ; \
wget http://downloads.sourceforge.net/sfml/SFML-1.3-sdk-linux.tar.gz ; \
@@ -20,11 +22,10 @@ get-orig-source:
cd .. ; rm SFML-1.3-sdk-linux.tar.gz; mv SFML-1.3/* . ; rm -r SFML-1.3
cd .. ; dpkg-source -b -su libsfml libsfml-1.3.orig
-configure: configure-stamp
-configure-stamp:
+configure: configure-stamp
+configure-stamp: $(QUILT_STAMPFN)
dh_testdir
-# Add here commands to configure the package.
- QUILT_PATCHES=debian/patches quilt push -a || test $$? = 2
+
touch configure-stamp
@@ -32,18 +33,16 @@ build: build-stamp
build-stamp: configure-stamp
dh_testdir
-# Add here commands to compile the package.
$(MAKE) sfml
touch $@
-clean:
+clean: unpatch
find lib -name "*so*" -exec rm {} \;
dh_testdir
dh_testroot
# Add here commands to clean up after the build process.
$(MAKE) clean
- QUILT_PATCHES=debian/patches quilt pop -a -R || test $$? = 2
rm -Rf .pc
@@ -55,7 +54,6 @@ install: build
dh_clean -k
dh_installdirs
-# Add here commands to install the package into debian/tmp
$(MAKE) DESTDIR=$(CURDIR)/debian/tmp/usr install
find $(CURDIR)/debian/tmp -name Win32 -o -name OSX -print | xargs /bin/rm -rf
@@ -70,7 +68,7 @@ binary-arch: build install
dh_testroot
dh_installchangelogs
dh_installdocs
- dh_installexamples ; find debian/libsfml1.4-doc/usr/share/doc/libsfml1.4-doc/examples/bin -maxdepth 1 ! -type d -exec rm {} \;
+ dh_installexamples ; ( cd debian/libsfml1.4-doc/usr/share/doc/libsfml1.4-doc/examples/ && make clean )
dh_install --fail-missing --sourcedir=debian/tmp
dh_installman
dh_link