Author: tille Date: 2011-02-23 13:11:43 +0000 (Wed, 23 Feb 2011) New Revision: 6068
Added: trunk/packages/libg2/ trunk/packages/libg2/trunk/ trunk/packages/libg2/trunk/debian/ trunk/packages/libg2/trunk/debian/README.Debian trunk/packages/libg2/trunk/debian/changelog trunk/packages/libg2/trunk/debian/compat trunk/packages/libg2/trunk/debian/control trunk/packages/libg2/trunk/debian/copyright trunk/packages/libg2/trunk/debian/dirs trunk/packages/libg2/trunk/debian/docs trunk/packages/libg2/trunk/debian/examples trunk/packages/libg2/trunk/debian/libg2-dev.dirs trunk/packages/libg2/trunk/debian/libg2-dev.files trunk/packages/libg2/trunk/debian/libg2-dev.preinst trunk/packages/libg2/trunk/debian/libg2-perl.substvars trunk/packages/libg2/trunk/debian/libg20.dirs trunk/packages/libg2/trunk/debian/libg20.files trunk/packages/libg2/trunk/debian/libg20.preinst trunk/packages/libg2/trunk/debian/patches/ trunk/packages/libg2/trunk/debian/patches/010_configure_in.diff trunk/packages/libg2/trunk/debian/patches/020_makefile_pl_in.diff trunk/packages/libg2/trunk/debian/patches/030_makefile_in.diff trunk/packages/libg2/trunk/debian/patches/series trunk/packages/libg2/trunk/debian/rules trunk/packages/libg2/trunk/debian/watch Log: Inject libg2 we need to take over in Debian Med because it would be removed from Debian otherwise Added: trunk/packages/libg2/trunk/debian/README.Debian =================================================================== --- trunk/packages/libg2/trunk/debian/README.Debian (rev 0) +++ trunk/packages/libg2/trunk/debian/README.Debian 2011-02-23 13:11:43 UTC (rev 6068) @@ -0,0 +1,11 @@ +g2 for Debian +------------- + +This library no longer supports GIF since the author of the GD graphics +library removed support for GIF. If you were considering using GIF images, +consider using the PNG format instead. For more information on the GD +library, see: http://www.boutell.com/gd/ + +You can find information on this library at: http://g2.sourceforge.net/ + + -- Eric Cain <[email protected]>, Tue, 6 May 2003 19:42:16 -0700 Added: trunk/packages/libg2/trunk/debian/changelog =================================================================== --- trunk/packages/libg2/trunk/debian/changelog (rev 0) +++ trunk/packages/libg2/trunk/debian/changelog 2011-02-23 13:11:43 UTC (rev 6068) @@ -0,0 +1,168 @@ +g2 (0.72-1) unstable; urgency=low + + * QA upload. + * New upstream release. + * Add quilt patch system. + + Move old source changes to quilt. + * Update build-dep from xutils to xutils-dev. + * Remove rpath with chrpath. (Closes: #389934). + + Add build-dep on chrpath. + * Make clean not ignore errors. + * Replace ${Source-Version} with ${binary:Version}. + * Set -e in maintainer scripts. + * Update debian/copyright syntax and add missing holders. + * Bump debhelper build-dep and compat to 5. + * Bump Standards Version to 3.8.1. + + -- Barry deFreese <[email protected]> Mon, 27 Apr 2009 12:22:34 -0400 + +g2 (0.70-2) unstable; urgency=low + + * QA upload. + * Set maintainer to Debian QA Group. + + -- Luk Claes <[email protected]> Sun, 18 Nov 2007 18:12:42 +0100 + +g2 (0.70-1.2) unstable; urgency=low + + * Non Maintainer Upload + * Fix library include path for libg20-perl libraries (Closes: #356565) + thanks Niko Tyni for the patch. + * Allow for building the package on kfreebsd et al. (Closes: #336952) + thanks to Aurelien Jarno for the patch. + + -- Don Armstrong <[email protected]> Fri, 21 Apr 2006 14:35:30 -0700 + +g2 (0.70-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Remove Build-Dependency on xlibs-dev (Closes: #346693). + + -- Amaya Rodrigo Sastre <[email protected]> Sun, 22 Jan 2006 02:05:58 +0100 + +g2 (0.70-1) unstable; urgency=low + + * New upstream version + + -- Eric Cain <[email protected]> Fri, 23 Sep 2005 20:20:20 -0700 + +g2 (0.61-1) unstable; urgency=low + + * New upstream version + * Inadvertently removed "-fPIC" in previous version. + Restored. (Closes: Bug#243499) + + -- Eric Cain <[email protected]> Thu, 8 Jul 2004 23:12:36 -0700 + +g2 (0.51-1) unstable; urgency=low + + * New upstream version + * Updated package descriptions (Closes: #209741, #209898) + + -- Eric Cain <[email protected]> Wed, 31 Mar 2004 17:34:38 -0800 + +g2 (0.49a-6) unstable; urgency=low + + * Split the Perl module into its own package + + -- Eric Cain <[email protected]> Wed, 14 May 2003 23:08:46 -0700 + +g2 (0.49a-5) unstable; urgency=low + + * Perl shared lib is now "-fPIC" Closes: Bug#192392 + * Perl module really is fixed now...really it is + + -- Eric Cain <[email protected]> Fri, 9 May 2003 15:15:15 -0700 + +g2 (0.49a-4) unstable; urgency=low + + * Submitted bad makefile with Perl module. Closes: Bug#192350 + + -- Eric Cain <[email protected]> Wed, 7 May 2003 17:14:49 -0700 + +g2 (0.49a-3) unstable; urgency=low + + * Fixed Perl support Closes: Bug#188119 + + -- Eric Cain <[email protected]> Wed, 7 May 2003 10:57:43 -0700 + +g2 (0.49a-2) unstable; urgency=low + + * Changed Build-Depends: replaced "libgd-dev" with + "libgd2-dev | libgd-dev" + + -- Eric Cain <[email protected]> Sat, 6 Apr 2002 23:37:31 -0800 + +g2 (0.49a-1) unstable; urgency=low + + * New upstream version + + -- Eric Cain <[email protected]> Mon, 25 Mar 2002 01:31:12 -0800 + +g2 (0.42.20010417-1) unstable; urgency=low + + * New upstream version + * Author switched from the GPL to the LGPL. Updated copyright file + accordingly. + + -- Eric Cain <[email protected]> Wed, 25 Apr 2001 13:54:27 -0700 + +g2 (0.41b.20001201-2) unstable; urgency=low + + * Now uses libtool so all architectures can enjoy g2 + * Added Build-Depends on: autoconf, libtool, xutils + * Changed Sections again. Put libg20 in Section libs and libg2-dev in + Section devel to eliminate override disparity + + -- Eric Cain <[email protected]> Wed, 25 Apr 2001 10:21:02 -0800 + +g2 (0.41b.20001201-1) unstable; urgency=low + + * New upstream version. (latest CVS) + * Standards-Version 3.2.1 + * Created new debian/ directory from scratch. Closes: Bug#84817 + * Renamed and split packge from g2 to libg2 and libg2-dev + * Moved to "Section: graphics" + + -- Eric Cain <[email protected]> Sat, 17 Mar 2001 11:01:10 -0800 + +g2 (0.40-2) stable; urgency=low + + * New maintainer. + * Updated description - g2 site moved since last release. + * Added dependency on libgd-gif1. Closes: Bug#61124 + + -- Eric Cain <[email protected]> Sun, 14 Jan 2001 23:18:08 -0800 + +g2 (0.40-1) unstable; urgency=low + + * New upstream + + -- John Lapeyre <[email protected]> Mon, 28 Jun 1999 17:23:52 -0700 + +g2 (0.23-4) unstable frozen; urgency=low + + * recompile with libc6 2.0.7u-6 + + -- John Lapeyre <[email protected]> Thu, 3 Dec 1998 01:54:50 -0700 + +g2 (0.23-3) unstable; urgency=low + + * Add shared library + * Fix dependency line + + -- John Lapeyre <[email protected]> Fri, 2 Oct 1998 15:35:49 -0700 + +g2 (0.23-2) unstable; urgency=low + + * Fixed copyright statement + * compile with egcc if available + + -- John Lapeyre <[email protected]> Sun, 27 Sep 1998 16:28:28 -0700 + +g2 (0.23-1) unstable; urgency=low + + * Initial Release. + + -- John Lapeyre <[email protected]> Mon, 27 Jul 1998 22:59:17 -0700 + Added: trunk/packages/libg2/trunk/debian/compat =================================================================== --- trunk/packages/libg2/trunk/debian/compat (rev 0) +++ trunk/packages/libg2/trunk/debian/compat 2011-02-23 13:11:43 UTC (rev 6068) @@ -0,0 +1 @@ +5 Added: trunk/packages/libg2/trunk/debian/control =================================================================== --- trunk/packages/libg2/trunk/debian/control (rev 0) +++ trunk/packages/libg2/trunk/debian/control 2011-02-23 13:11:43 UTC (rev 6068) @@ -0,0 +1,39 @@ +Source: g2 +Priority: optional +Maintainer: Debian QA Group <[email protected]> +Build-Depends: debhelper (>= 5.0.0), quilt, autotools-dev, autoconf, libtool, libgd2-noxpm-dev | libgd2-xpm-dev | libgd2-dev | libgd-dev (>> 1.6.1), xutils-dev, perl, libx11-dev, chrpath +Standards-Version: 3.8.1 +Section: libs + +Package: libg2-dev +Section: libdevel +Architecture: any +Depends: libg20 (= ${binary:Version}), libc6-dev +Description: g2 2D graphics library (development files) + g2 is an easy to use, portable and powerful 2D graphics library. It provides a + comprehensive set of functions for simultaneous generation of graphical output + to X11 and graphic formats PNG, JPEG and PostScript. g2 is written in ANSI C + and provides Fortran and Perl interfaces. + . + This package provides static library and header files for g2. + +Package: libg20 +Architecture: any +Depends: ${shlibs:Depends} +Description: g2 2D graphics library + g2 is an easy to use, portable and powerful 2D graphics library. It provides a + comprehensive set of functions for simultaneous generation of graphical output + to X11 and graphic formats PNG, JPEG and PostScript. g2 is written in ANSI C + and provides Fortran and Perl interfaces. + +Package: libg20-perl +Section: perl +Architecture: any +Depends: ${shlibs:Depends}, libg20 (>= ${binary:Version}), ${perl:Depends} +Description: g2 2D graphics library (Perl module) + g2 is an easy to use, portable and powerful 2D graphics library. It provides a + comprehensive set of functions for simultaneous generation of graphical output + to X11 and graphic formats PNG, JPEG and PostScript. g2 is written in ANSI C + and provides Fortran and Perl interfaces. + . + This package provides the g2 perl module. Added: trunk/packages/libg2/trunk/debian/copyright =================================================================== --- trunk/packages/libg2/trunk/debian/copyright (rev 0) +++ trunk/packages/libg2/trunk/debian/copyright 2011-02-23 13:11:43 UTC (rev 6068) @@ -0,0 +1,34 @@ +This package was debianized by John Lapeyre <[email protected]> on +Mon, 27 Jul 1998 22:59:17 -0700 +This package was adopted by Eric Cain <[email protected]> on +Sat, 17 Mar 2001 11:01:10 -0800. + +g2 was downloaded from +http://prdownloads.sourceforge.net/g2/g2-0.70.tar.gz?download + +g2 project page on sourceforge: http://sourceforge.net/projects/g2/ + +Copyright Holders: + Copyright (C) 1998-2001 Ljubomir Milanovic <[email protected]> + Copyright (C) 1998-2001 Horst Wagner <[email protected]> + Copyright (C) 1999 Tijs Michels <[email protected]> + Copyright (C) 1999-2000 The University of Chicago + +License: + + This package is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU Lesser General +Public License can be found in `/usr/share/common-licenses/LGPL-2'. Added: trunk/packages/libg2/trunk/debian/dirs =================================================================== --- trunk/packages/libg2/trunk/debian/dirs (rev 0) +++ trunk/packages/libg2/trunk/debian/dirs 2011-02-23 13:11:43 UTC (rev 6068) @@ -0,0 +1,2 @@ +usr/bin +usr/sbin Added: trunk/packages/libg2/trunk/debian/docs =================================================================== --- trunk/packages/libg2/trunk/debian/docs (rev 0) +++ trunk/packages/libg2/trunk/debian/docs 2011-02-23 13:11:43 UTC (rev 6068) @@ -0,0 +1,4 @@ +README +TODO +doc/refman.pdf +doc/refman.ps Added: trunk/packages/libg2/trunk/debian/examples =================================================================== --- trunk/packages/libg2/trunk/debian/examples (rev 0) +++ trunk/packages/libg2/trunk/debian/examples 2011-02-23 13:11:43 UTC (rev 6068) @@ -0,0 +1,21 @@ +demo/Makefile +demo/demo_cpp.cpp +demo/demo_f.f +demo/descrip.mms +demo/g2_anim.c +demo/g2_arc.c +demo/g2_splines_demo.c +demo/g2_test.c +demo/g2_test.f +demo/handles.c +demo/penguin.c +demo/penguin.inc +demo/pointer.c +demo/simple_FIG.c +demo/simple_PS.c +demo/simple_X11.c +demo/simple_gd.c +demo/simple_win32.c +demo/xlink.opt +descrip.mms +g2_perl/test.pl Added: trunk/packages/libg2/trunk/debian/libg2-dev.dirs =================================================================== --- trunk/packages/libg2/trunk/debian/libg2-dev.dirs (rev 0) +++ trunk/packages/libg2/trunk/debian/libg2-dev.dirs 2011-02-23 13:11:43 UTC (rev 6068) @@ -0,0 +1,2 @@ +usr/lib +usr/include Added: trunk/packages/libg2/trunk/debian/libg2-dev.files =================================================================== --- trunk/packages/libg2/trunk/debian/libg2-dev.files (rev 0) +++ trunk/packages/libg2/trunk/debian/libg2-dev.files 2011-02-23 13:11:43 UTC (rev 6068) @@ -0,0 +1,5 @@ +usr/include/* +usr/lib/lib*.a +usr/lib/lib*.so +usr/lib/pkgconfig/* +/usr/lib/*.la Added: trunk/packages/libg2/trunk/debian/libg2-dev.preinst =================================================================== --- trunk/packages/libg2/trunk/debian/libg2-dev.preinst (rev 0) +++ trunk/packages/libg2/trunk/debian/libg2-dev.preinst 2011-02-23 13:11:43 UTC (rev 6068) @@ -0,0 +1,10 @@ +#!/bin/sh + +set -e + +#remove old doc symlink left by previous installations +if [ -h /usr/share/doc/libg2-dev ]; then + rm /usr/share/doc/libg2-dev +fi + +#DEBHELPER# Added: trunk/packages/libg2/trunk/debian/libg2-perl.substvars =================================================================== --- trunk/packages/libg2/trunk/debian/libg2-perl.substvars (rev 0) +++ trunk/packages/libg2/trunk/debian/libg2-perl.substvars 2011-02-23 13:11:43 UTC (rev 6068) @@ -0,0 +1,2 @@ +perl:Depends=perl (>= 5.8.4-2), perlapi-5.8.4 +shlibs:Depends=libc6 (>= 2.3.2.ds1-4), libg20, libgd2-noxpm (>= 2.0.23) | libgd2-xpm (>= 2.0.23), libx11-6 | xlibs (>> 4.1.0) Added: trunk/packages/libg2/trunk/debian/libg20.dirs =================================================================== --- trunk/packages/libg2/trunk/debian/libg20.dirs (rev 0) +++ trunk/packages/libg2/trunk/debian/libg20.dirs 2011-02-23 13:11:43 UTC (rev 6068) @@ -0,0 +1 @@ +usr/lib Added: trunk/packages/libg2/trunk/debian/libg20.files =================================================================== --- trunk/packages/libg2/trunk/debian/libg20.files (rev 0) +++ trunk/packages/libg2/trunk/debian/libg20.files 2011-02-23 13:11:43 UTC (rev 6068) @@ -0,0 +1 @@ +usr/lib/lib*.so.* Added: trunk/packages/libg2/trunk/debian/libg20.preinst =================================================================== --- trunk/packages/libg2/trunk/debian/libg20.preinst (rev 0) +++ trunk/packages/libg2/trunk/debian/libg20.preinst 2011-02-23 13:11:43 UTC (rev 6068) @@ -0,0 +1,10 @@ +#!/bin/sh + +set -e + +#remove old doc symlink left by previous installations +if [ -h /usr/share/doc/libg2-dev ]; then + rm /usr/share/doc/libg2-dev +fi + +#DEBHELPER# Added: trunk/packages/libg2/trunk/debian/patches/010_configure_in.diff =================================================================== --- trunk/packages/libg2/trunk/debian/patches/010_configure_in.diff (rev 0) +++ trunk/packages/libg2/trunk/debian/patches/010_configure_in.diff 2011-02-23 13:11:43 UTC (rev 6068) @@ -0,0 +1,30 @@ +Index: g2-0.72/configure.in +=================================================================== +--- g2-0.72.orig/configure.in 2009-04-27 12:27:14.000000000 -0400 ++++ g2-0.72/configure.in 2009-04-27 12:28:31.000000000 -0400 +@@ -13,11 +13,11 @@ + # + AC_CANONICAL_HOST + case "$host" in +- *-linux*) ++ *-linux* | *-k*bsd*-gnu) + LD_SHARED='ld' + LD_SHARED_FLAGS='-shared -soname libg2.so.0' +- LD_SHARED_OPT='' +- LD_SHARED_EXT='so.0.$(G2_VERSION)' ++ LD_SHARED_OPT='-lc' ++ LD_SHARED_EXT='so.$(RVERSION)' + AC_DEFINE(LINUX);; + *-aix*) + LD_SHARED='ld' +@@ -59,8 +59,8 @@ + # and add /usr/local to include and lib path and add -lm (for testing) + # + AC_PATH_XTRA +-CFLAGS="$CFLAGS $X_CFLAGS -I/usr/local/include" +-LIBS="$X_LIBS -L/usr/local/lib" ++CFLAGS="$CFLAGS $X_CFLAGS" ++LIBS="$X_LIBS" + + + DO_PS='#' Added: trunk/packages/libg2/trunk/debian/patches/020_makefile_pl_in.diff =================================================================== --- trunk/packages/libg2/trunk/debian/patches/020_makefile_pl_in.diff (rev 0) +++ trunk/packages/libg2/trunk/debian/patches/020_makefile_pl_in.diff 2011-02-23 13:11:43 UTC (rev 6068) @@ -0,0 +1,14 @@ +Index: g2-0.72/g2_perl/Makefile.PL.in +=================================================================== +--- g2-0.72.orig/g2_perl/Makefile.PL.in 2009-04-27 12:29:27.000000000 -0400 ++++ g2-0.72/g2_perl/Makefile.PL.in 2009-04-27 12:30:55.000000000 -0400 +@@ -4,7 +4,7 @@ + WriteMakefile( + 'NAME' => 'G2', + 'VERSION_FROM' => 'G2.pm', # finds $VERSION +- 'LIBS' => ['-L./.. -lg2 @LIBS@'], # e.g., '-lm' ++ 'LIBS' => ['-L../ -lg2 @LIBS@'], # e.g., '-lm' + 'DEFINE' => '@DEFS@', # e.g., '-DHAVE_SOMETHING' +- 'INC' => '-I./../include', # e.g., '-I/usr/local/include' ++ 'INC' => '-I./../include -I../src -I../src/X11 -I../src/PS -I../src/GD -I../src/FIG', # e.g., '-I/usr/local/include' + ); Added: trunk/packages/libg2/trunk/debian/patches/030_makefile_in.diff =================================================================== --- trunk/packages/libg2/trunk/debian/patches/030_makefile_in.diff (rev 0) +++ trunk/packages/libg2/trunk/debian/patches/030_makefile_in.diff 2011-02-23 13:11:43 UTC (rev 6068) @@ -0,0 +1,69 @@ +Index: g2-0.72/Makefile.in +=================================================================== +--- g2-0.72.orig/Makefile.in 2009-04-27 12:37:16.000000000 -0400 ++++ g2-0.72/Makefile.in 2009-04-27 12:57:08.000000000 -0400 +@@ -32,7 +32,7 @@ + RANLIB = @RANLIB@ + LD = ld + LDFLAGS = @LDFLAGS@ +- ++LN_S = ln -s + + BASE_DIR = ./src + BASE_SRC = $(BASE_DIR)/g2_device.c $(BASE_DIR)/g2_ui_control.c \ +@@ -79,7 +79,7 @@ + # major rule + # + .c.o: +- $(CC) $(CFLAGS) -c $< -o $@ ++ $(CC) $(CFLAGS) $(PICFLAG) -c $< -o $@ + + + all: libg2.a +@@ -93,19 +93,26 @@ + libg2.a: $(OBJ) + $(AR) $(ARFLAGS) libg2.a $(OBJ) + test ! -n "$(RANLIB)" || $(RANLIB) $@ ++ $(LN_S) -f libg2.a libg2.$(RVERSION).a + + libg2.@LD_SHARED_EXT@: $(OBJ) +- @LD_SHARED@ @LD_SHARED_FLAGS@ -o $@ $(OBJ) @LD_SHARED_OPT@ ++ @CC@ -Wl,-soname,$@ -shared $(OBJ) @LD_SHARED_OPT@ @LDFLAGS@ -o $@ ++ test ! -f libg2.so && $(LN_S) $@ libg2.so ++ test ! -f libg2.so.$(MVERSION) && $(LN_S) $@ libg2.so.$(MVERSION) + + libg2.so: libg2.@LD_SHARED_EXT@ + ln -f -s libg2.@LD_SHARED_EXT@ $@ + + install: libg2.a +- test -d $(LIBDIR) || mkdir -p $(LIBDIR) +- test -d $(INCDIR) || mkdir -p $(INCDIR) +- $(INSTALL_DATA) libg2.a $(LIBDIR) ++ test -d $(prefix)$(LIBDIR) || mkdir -p $(prefix)$(LIBDIR) ++ test -d $(prefix)$(INCDIR) || mkdir -p $(prefix)$(INCDIR) ++ $(INSTALL_DATA) libg2.a $(prefix)$(LIBDIR) ++ test -f libg2.@LD_SHARED_EXT@ && \ ++ $(INSTALL_DATA) libg2.@LD_SHARED_EXT@ $(prefix)$(LIBDIR) && \ ++ $(LN_S) libg2.@LD_SHARED_EXT@ $(prefix)$(LIBDIR)/libg2.so.$(MVERSION) && \ ++ $(LN_S) libg2.@LD_SHARED_EXT@ $(prefix)$(LIBDIR)/libg2.so + for IFILE in $(INS); do \ +- $(INSTALL_DATA) $$IFILE $(INCDIR); \ ++ $(INSTALL_DATA) $$IFILE $(prefix)$(INCDIR); \ + done + + release: clean doc +@@ -132,8 +139,13 @@ + -rm -f ./g2_perl/test.fig + -rm -f ./g2_perl/Makefile.old + -rm -f ./libg2.@LD_SHARED_EXT@ +- -rm -f libg2.$(G2_VERSION).a ++ -rm -f ./libg2.so.$(MVERSION) ++ -rm -f ./libg2.$(RVERSION).a ++ -rm -f ./libg2.$(MVERSION).a ++ -rm -f libg2.so + -rm -f a.out ++ ++doc_clean: + -rm -fr doc/html/ doc/latex/ doc/g2_refman.ps doc/g2_refman.pdf + + demo: libg2.a Added: trunk/packages/libg2/trunk/debian/patches/series =================================================================== --- trunk/packages/libg2/trunk/debian/patches/series (rev 0) +++ trunk/packages/libg2/trunk/debian/patches/series 2011-02-23 13:11:43 UTC (rev 6068) @@ -0,0 +1,3 @@ +010_configure_in.diff +020_makefile_pl_in.diff +030_makefile_in.diff Added: trunk/packages/libg2/trunk/debian/rules =================================================================== --- trunk/packages/libg2/trunk/debian/rules (rev 0) +++ trunk/packages/libg2/trunk/debian/rules 2011-02-23 13:11:43 UTC (rev 6068) @@ -0,0 +1,143 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. +# Modified for g2 by Eric Cain + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + +# 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) + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +# Use the latest version number in the CHANGES file +version=`head -n 1 CHANGES | \ + awk '{if (match($$0,/^[0-9]+\.[0-9]+[A-Za-z]/)) print substr($$0,RSTART,RLENGTH)}'` +rversion=`head -n 1 CHANGES | \ + awk '{if (match($$0,/^[0-9]+\.[0-9]+/)) print substr($$0,RSTART,RLENGTH)}'` +major=`head -n 1 CHANGES | \ + awk '{if (match($$0,/^[0-9]+/)) print substr($$0,RSTART,RLENGTH)}'` + + +config.status: + dh_testdir + + QUILT_PATCHES=debian/patches quilt push -a || test $$? = 2 + + # Add here commands to configure the package. +ifneq "$(wildcard /usr/share/misc/config.sub)" "" + cp -f /usr/share/misc/config.sub config.sub +endif +ifneq "$(wildcard /usr/share/misc/config.guess)" "" + cp -f /usr/share/misc/config.guess config.guess +endif + libtoolize -f -c + autoconf + CFLAGS="$(CFLAGS) -Wl,-z,defs" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info + + +build: build-stamp +build-stamp: config.status + dh_testdir + # compile the package. + $(MAKE) depend + $(MAKE) libg2.a RVERSION=$(rversion) MVERSION=$(major) + # clean up and build the shared lib + -rm -f src/*.o src/*/*.o + $(MAKE) PICFLAG="-fPIC" RVERSION=$(rversion) MVERSION=$(major) shared + (cd ./g2_perl && perl Makefile.PL INSTALLDIRS=vendor) + $(MAKE) -C ./g2_perl + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # clean up after the build process. + [ ! -f Makefile ] || $(MAKE) RVERSION=$(rversion) MVERSION=$(major) clean + + QUILT_PATCHES=debian/patches quilt pop -a -R || test $$? = 2 + rm -f config.sub + rm -f config.guess + rm -f configure + rm -f ltmain.sh + rm -f g2_perl/Makefile.PL + find ./ -name Makefile -delete + rm -rf .pc + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # install the package into debian/tmp + $(MAKE) RVERSION=$(rversion) MVERSION=$(major) install prefix=$(CURDIR)/debian/libg2-dev + $(MAKE) -C ./g2_perl install PREFIX=$(CURDIR)/debian/libg2$(major)-perl/usr + + mkdir -p debian/tmp/usr/lib + + mv debian/libg2-dev/usr/lib/libg2.so.$(rversion) debian/tmp/usr/lib/libg2.so.$(rversion) + mv debian/libg2-dev/usr/lib/libg2.so.$(major) debian/tmp/usr/lib/libg2.so.$(major) + ln -s libg2.so.$(rversion) debian/tmp/usr/lib/libg2.so + + +# 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 + + # build libg2${major} package by moving files from tmp + dh_movefiles -plibg2$(major) \ + usr/lib/libg2.so.$(major) \ + usr/lib/libg2.so.$(rversion) + + dh_movefiles -plibg2-dev \ + usr/lib/libg2.so + + install -m 755 -d debian/libg2$(major)-perl/usr/share/perl5/ + + mv debian/libg2$(major)-perl/usr/lib/perl5/*.pm debian/libg2$(major)-perl/usr/share/perl5/ + + chrpath --delete $(CURDIR)/debian/libg20-perl/usr/lib/perl5/auto/G2/G2.so + + dh_installchangelogs CHANGES + dh_installdocs + dh_installexamples + dh_link + dh_strip + dh_compress + dh_fixperms + dh_perl + 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 Property changes on: trunk/packages/libg2/trunk/debian/rules ___________________________________________________________________ Added: svn:executable + * Added: trunk/packages/libg2/trunk/debian/watch =================================================================== --- trunk/packages/libg2/trunk/debian/watch (rev 0) +++ trunk/packages/libg2/trunk/debian/watch 2011-02-23 13:11:43 UTC (rev 6068) @@ -0,0 +1,3 @@ +version=3 + +http://sf.net/g2/g2-(.*)\.tar\.gz _______________________________________________ debian-med-commit mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/debian-med-commit
