[med-svn] r6961 - trunk/packages/seaview/trunk/debian

Charles Plessy plessy at alioth.debian.org
Thu Jun 9 08:19:41 UTC 2011


Author: plessy
Date: 2011-06-09 08:19:41 +0000 (Thu, 09 Jun 2011)
New Revision: 6961

Modified:
   trunk/packages/seaview/trunk/debian/rules
Log:
Transient simplification of debian/rules

The goal is to use Debhelper's dh in the next commit. It will restore
support for build options, etc.


Modified: trunk/packages/seaview/trunk/debian/rules
===================================================================
--- trunk/packages/seaview/trunk/debian/rules	2011-06-09 08:15:16 UTC (rev 6960)
+++ trunk/packages/seaview/trunk/debian/rules	2011-06-09 08:19:41 UTC (rev 6961)
@@ -1,25 +1,7 @@
 #!/usr/bin/make -f
-# Build rules for the Debian package seaview.
-# Modifications by Charles Plessy during the year 2006
-# are hereby released as "public domain".
 
-
-# These are used for cross-compiling and for saving the configure script
-# from having to guess our platform (since we know it already)
-DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-
-PROGRAM_NAME	=	seaview
-
 CFLAGS+=-Wall
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-	CFLAGS += -O0
-else
-	CFLAGS += -O2
-endif
-ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
-        CFLAGS += -g
-endif
+CFLAGS += -O2
 
 build: build-stamp
 build-stamp:
@@ -27,7 +9,7 @@
 	$(MAKE) OPT="$(CFLAGS)                                                  \
 	        -DPHYMLNAME=\\\"phyml\\\"                                       \
 	        -DDEFAULT_HELPFILE=\\\"/usr/share/doc/seaview/seaview.html\\\"" \
-	        $(PROGRAM_NAME)                                                 \
+	        seaview                                                         \
 	        PNGJPEGLIBS='-lpng -ljpeg' FLTKLIBS='-lfltk -lfltk_images'
 	touch build-stamp
 	
@@ -38,11 +20,9 @@
 install: build
 	dh install
 
-# Build architecture-dependent files here.
 binary-arch: build install
 	dh binary-arch
 
 binary-indep:
 
 binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install




More information about the debian-med-commit mailing list