r1286 - packages/trunk/boson/boson-base/debian
Gonéri Le Bouder
goneri-guest at costa.debian.org
Mon Jul 31 21:33:31 UTC 2006
Author: goneri-guest
Date: 2006-07-31 21:33:30 +0000 (Mon, 31 Jul 2006)
New Revision: 1286
Removed:
packages/trunk/boson/boson-base/debian/cdbs/
Modified:
packages/trunk/boson/boson-base/debian/changelog
packages/trunk/boson/boson-base/debian/rules
Log:
remove cdbs directory since it seem to block its upload.
Modified: packages/trunk/boson/boson-base/debian/changelog
===================================================================
--- packages/trunk/boson/boson-base/debian/changelog 2006-07-31 20:51:27 UTC (rev 1285)
+++ packages/trunk/boson/boson-base/debian/changelog 2006-07-31 21:33:30 UTC (rev 1286)
@@ -9,7 +9,6 @@
* cmake used in the build system
* use of simple-patchsys instead of dpatch
* new package boson-dbg with boson debugging symbols
- * use of cdbs debhelper.mk and utils.mk scripts
* boson-data and boson-music depend on the same the same Upstream-Version
* Recommends instead of Depends for boson-music (Closes: #375889, #377293)
* remove boson.6 manpage. It's recreate from boson.sgml during the build
Modified: packages/trunk/boson/boson-base/debian/rules
===================================================================
--- packages/trunk/boson/boson-base/debian/rules 2006-07-31 20:51:27 UTC (rev 1285)
+++ packages/trunk/boson/boson-base/debian/rules 2006-07-31 21:33:30 UTC (rev 1286)
@@ -1,36 +1,92 @@
#!/usr/bin/make -f
-# Sample debian/rules that uses cdbs. Originaly written by Robert Millan.
-# This file is public domain.
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
include /usr/share/cdbs/1/rules/simple-patchsys.mk
-include debian/cdbs/cmake.mk
-include /usr/share/cdbs/1/rules/debhelper.mk
-
-DEB_AUTO_CLEANUP_RCS := yes
-DEB_DESTDIR := $(CURDIR)/debian/boson/
-# Add here any variable or target overrides you need
+CFLAGS = -Wall -g
-#DEB_SCONS_INSTALL_OPTIONS := destdir=$(DEB_DESTDIR)
-#DEB_SCONS_BUILD_OPTIONS := release=1
-clean::
- rm -f debian/files debian/boson.substvars \
- debian/boson.manpages
- for i in debian/*.sgml; do \
- rm -f `echo $$i| sed 's/sgml/6/'` ;\
- done
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+ INSTALL_PROGRAM += -s
+endif
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+ # CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --bindir=\$${prefix}/games
+ touch configure-stamp
-build/boson::
+
+build: build-stamp
+
+build-stamp:
+ dh_testdir
+
+ mkdir -p debian/build-area
+ cd debian/build-area && cmake -DCMAKE_INSTALL_PREFIX=/usr $(CURDIR)
#fix path errors with CMake and kde
- cp debian/build/boson/data/install_icons.cmake debian/build/boson/data/install_icons.cmake.bak
- sed "s/\ \/usr/\ ..\/..\/debian\/boson\/usr/" debian/build/boson/data/install_icons.cmake.bak > debian/build/boson/data/install_icons.cmake
+ cp debian/build-area/boson/data/install_icons.cmake debian/build-area/boson/data/install_icons.cmake.bak
+ sed "s/\ \/usr/\ ..\/..\/debian\/tmp\/usr/" debian/build-area/boson/data/install_icons.cmake.bak > debian/build-area/boson/data/install_icons.cmake
# generate manpages
for i in debian/*.sgml; do \
docbook-to-man $$i > `dirname $$i`/`basename $$i .sgml`.6 ;\
done
ls debian/*.6 > debian/boson.manpages
-install/boson::
- install -D -p -m0644 debian/boson.xpm debian/boson/usr/share/pixmaps/boson.xpm
- mv debian/boson/usr/bin debian/boson/usr/games
+ touch build-stamp
+
+clean::
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp
+ rm -Rf CMakeFiles \
+ CMakeCache.txt \
+ debian/stamp-cmake-build \
+ debian/build-area \
+ debian/tmp
+ rm -f debian/files debian/boson.substvars \
+ debian/boson.manpages
+ for i in debian/*.sgml; do \
+ rm -f `echo $$i| sed 's/sgml/6/'` ;\
+ done
+
+
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ cd debian/build-area && make install DESTDIR=$(CURDIR)/debian/tmp
+ install -D -p -m0644 debian/boson.xpm debian/tmp/usr/share/pixmaps/boson.xpm
+ mv debian/tmp/usr/bin debian/tmp/usr/games
+
+
+binary-indep: build install
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs ChangeLog
+ dh_installdocs
+ dh_installexamples
+ dh_installman
+ dh_installmenu
+ dh_link
+ dh_strip --dbg-package=boson-dbg
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
More information about the Pkg-games-commits
mailing list