[med-svn] r1040 - trunk/packages/minc/trunk/debian

smr at alioth.debian.org smr at alioth.debian.org
Sat Dec 29 16:48:57 UTC 2007


Author: smr
Date: 2007-12-29 16:48:57 +0000 (Sat, 29 Dec 2007)
New Revision: 1040

Modified:
   trunk/packages/minc/trunk/debian/rules
Log:
Replaced debhelper-based rules by cdbs-based rules.

Modified: trunk/packages/minc/trunk/debian/rules
===================================================================
--- trunk/packages/minc/trunk/debian/rules	2007-12-29 15:00:49 UTC (rev 1039)
+++ trunk/packages/minc/trunk/debian/rules	2007-12-29 16:48:57 UTC (rev 1040)
@@ -1,101 +1,38 @@
-#!/usr/bin/make -f
-# Sample debian/rules that uses debhelper.
-# This file is public domain software, originally written by Joey Hess.
-#
-# This version is for a multibinary package. It also allows you to build any
-# of the binary packages independantly, via binary-<package> targets.
+#! /usr/bin/make -f
 
-# Uncomment this to turn on verbose mode. 
-#export DH_VERBOSE=1
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/autotools.mk
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
 
-# This has to be exported to make some magic below work.
-export DH_OPTIONS
+#DEB_CONFIGURE_EXTRA_FLAGS = --mandir=/usr/share/man --enable-shared
+DEB_MAKE_BUILD_TARGET = all 
+DEB_MAKE_CHECK_TARGET = check
 
-# Handle optimization per debian policy.
-#
-export CFLAGS=-g
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-CFLAGS += -O0
-else
-CFLAGS += -O2
-endif
+#DEB_MAKE_INVOKE += moduledir=/usr/lib/geomview
 
+ps_docs = doc/prog_ref.ps doc/prog_guide.ps volume_io/Documentation/volume_io.ps
 
-# Suppress accidental execution of the auto-* tools
-# http://lists.debian.org/debian-devel/2001/debian-devel-200111/msg01416.html
-#
-missing=$(shell pwd)/ac_config_aux/missing
-no_auto_tools = ACLOCAL="$(missing) aclocal" \
-        AUTOCONF="$(missing) autoconf" \
-        AUTOMAKE="$(missing) automake" \
-        AUTOHEADER="$(missing) autoheader"
-no_auto_tools=
+build/libminc0-dev:: $(ps_docs)
 
-build: build-stamp
-build-stamp:
-	dh_testdir
-	./configure --prefix=/usr --mandir=/usr/share/man --enable-shared
-	$(MAKE) $(no_auto_tools)
-	$(MAKE) $(no_auto_tools) check
-	$(MAKE) $(no_auto_tools) -C doc docs
-	$(MAKE) $(no_auto_tools) -C volume_io/Documentation docs
-	touch build-stamp
+doc/prog_ref.ps doc/prog_guide.ps:
+	$(MAKE) -C doc docs
 
-clean:
-	dh_testdir
-	dh_testroot
-	rm -f build-stamp
-	-$(MAKE) distclean
-	dh_clean
+volume_io/Documentation/volume_io.ps:
+	$(MAKE) -C volume_io/Documentation docs
 
-install: DH_OPTIONS=
-install: build
-	dh_testdir
-	dh_testroot
-	dh_clean -k
-	dh_installdirs
-	$(MAKE) DESTDIR=`pwd`/debian/tmp install
+install/minc-tools::
 	rm -f debian/tmp/usr/bin/mincexample?
-	dh_movefiles -pminc-tools usr/bin usr/share/man/man1
-	dh_install -plibminc0 --autodest debian/tmp/usr/lib/*.so.0*
-	rm -f debian/tmp/usr/lib/*.so.0*
-	dh_movefiles -plibminc0-dev usr/include usr/lib
-	dh_movefiles
-	dh_installdocs -plibminc0-dev doc/prog_ref.ps doc/prog_guide.ps \
-	    volume_io/Documentation/volume_io.ps debian/index.html
+	dh_install -pminc-tools --autodest debian/tmp/usr/bin
+	dh_install -pminc-tools --autodest debian/tmp/usr/share/man
+	dh_link -pminc-tools \
+		debian/tmp/usr/share/man/man1/voxeltoworld.1 \
+		debian/tmp/usr/share/man/man1/worldtovoxel.1
 
-# This single target is used to build all the packages, all at once, or
-# one at a time. So keep in mind: any options passed to commands here will
-# affect _all_ packages. Anything you want to only affect one package
-# should be put in another target, such as the install target.
-binary-common:
-	dh_testdir
-	dh_testroot
-	dh_installdocs -plibminc0-dev GETTING_STARTED
-	dh_installdocs
-	dh_installchangelogs ChangeLog
-	dh_link usr/share/man/man1/voxeltoworld.1 usr/share/man/man1/worldtovoxel.1
-	dh_compress
-	dh_fixperms
-	dh_strip
-	dh_makeshlibs
-	dh_shlibdeps -L libminc0 -l debian/libminc0/usr/lib
-	dh_installdeb
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
+install/libminc0::
+	dh_install -plibminc0 --autodest debian/tmp/usr/lib/lib*.so.*
 
-# Build architecture independant packages using the common target.
-binary-indep: build install
-#	 $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
-
-# Build architecture dependant packages using the common target.
-binary-arch: build install
-	$(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
-
-# Any other binary targets build just one binary package at a time.
-binary-%: build install
-	make -f debian/rules binary-common DH_OPTIONS=-p$*
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install
+install/libminc0-dev::
+	dh_install -plibminc0-dev debian/tmp/usr/lib/lib*.so
+	dh_install -plibminc0-dev debian/tmp/usr/lib/lib*.a
+	dh_install -plibminc0-dev debian/tmp/usr/include
+	dh_installdocs -plibminc0-dev GETTING_STARTED $(ps_docs) debian/index.html




More information about the debian-med-commit mailing list