[Pkg-sdl-commits] [SCM] Packaging of SDL_ttf branch, master, updated. debian/2.0.9-1.1-15-g7fe2cd8
Manuel A. Fernandez Montecelo
manuel.montezelo at gmail.com
Fri Jan 27 13:06:12 UTC 2012
The following commit has been merged in the master branch:
commit 135840519debe5de9b4ed5da5402d3f0f3a1eb8e
Author: Manuel A. Fernandez Montecelo <manuel.montezelo at gmail.com>
Date: Fri Jan 27 10:54:01 2012 +0000
Rewrite the rules to make it more dh-v9 like
diff --git a/debian/rules b/debian/rules
old mode 100755
new mode 100644
index d1502ba..953f0eb
--- a/debian/rules
+++ b/debian/rules
@@ -1,77 +1,27 @@
#!/usr/bin/make -f
-# Sample debian/rules that uses debhelper.
-# GNU copyright 1997 to 1999 by Joey Hess.
-# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
-include /usr/share/dpatch/dpatch.make
-configure: configure-stamp
-configure-stamp:
- dh_testdir
+export DEB_CFLAGS_MAINT_APPEND = -pipe -Wall
+export DEB_LDFLAGS_MAINT_APPEND = -Wl,--no-undefined -Wl,--as-needed
- ./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
- touch configure-stamp
+# according to help: speeds up one-time build
+confflags = --disable-dependency-tracking
-build: configure-stamp build-stamp
-build-stamp: patch
- dh_testdir
- $(MAKE)
+%:
+ dh $@ --with autoreconf --parallel
- touch build-stamp
+override_dh_autoreconf:
+ dh_autoreconf ./autogen.sh
-clean: unpatch
- dh_testdir
- dh_testroot
- rm -f build-stamp configure-stamp
+override_dh_auto_configure:
+ dh_auto_configure -- $(confflags)
- [ ! -f Makefile ] || $(MAKE) distclean
- -test -r /usr/share/misc/config.sub && \
- cp -f /usr/share/misc/config.sub config.sub
- -test -r /usr/share/misc/config.guess && \
- cp -f /usr/share/misc/config.guess config.guess
+override_dh_install:
+ dh_install --fail-missing
- dh_clean
- rm -f debian/showfont.c debian/glfont.c
-
-install: build
- dh_testdir
- dh_testroot
- dh_clean -k
- dh_installdirs
-
- $(MAKE) install prefix=$(CURDIR)/debian/tmp/usr
- sed -e 's:"SDL.h":\<SDL.h\>:' -e 's:"SDL_ttf.h":\<SDL_ttf.h\>:' showfont.c > debian/showfont.c
- sed -e 's:"SDL.h":\<SDL.h\>:' -e 's:"SDL_ttf.h":\<SDL_ttf.h\>:' glfont.c > debian/glfont.c
-
-# Build architecture-independent files here.
-binary-indep: build install
-# We have nothing to do by default.
-
-# Build architecture-dependent files here.
-binary-arch: build install
- dh_testdir
- dh_testroot
- dh_install --sourcedir=debian/tmp --list-missing
- dh_installdocs
- dh_installexamples
- dh_installmenu
- dh_installman
- dh_installinfo
- dh_installchangelogs CHANGES
- dh_link
- dh_strip
- dh_compress
- dh_fixperms
- dh_makeshlibs
- dh_installdeb
- dh_shlibdeps
- dh_gencontrol
- dh_md5sums
- dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install
+override_dh_auto_installchangelogs:
+ dh_auto_installchangelogs -- CHANGES
--
Packaging of SDL_ttf
More information about the pkg-sdl-commits
mailing list