debian/0000755000000000000000000000000012253623445007174 5ustar debian/control0000644000000000000000000000414112247141022010564 0ustar Source: g2 Maintainer: Debian Med Packaging Team Uploaders: Andreas Tille Section: libs Priority: optional Build-Depends: debhelper (>= 9), autotools-dev, autoconf, dh-autoreconf, libtool, libx11-dev, chrpath, libgd2-dev, xutils-dev Standards-Version: 3.9.5 Vcs-Browser: http://anonscm.debian.org/viewvc/debian-med/trunk/packages/libg2/trunk/ Vcs-Svn: svn://anonscm.debian.org/debian-med/trunk/packages/libg2/trunk/ Homepage: http://g2.sourceforge.net/ Package: libg2-dev Architecture: any Section: libdevel Depends: libg20 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} 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}, ${misc: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 Architecture: any Section: perl Depends: ${shlibs:Depends}, libg20 (>= ${binary:Version}), ${perl:Depends}, ${misc: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. debian/README.source0000644000000000000000000000026712214301176011347 0ustar This packages uses the quilt patch system. Please read /usr/share/doc/quilt/README.source for more information. -- Andreas Tille Wed, 30 Sep 2009 14:31:20 +0200 debian/libg20.dirs0000644000000000000000000000001012214301176011114 0ustar usr/lib debian/rules0000755000000000000000000000304512253623104010246 0ustar #!/usr/bin/make -f # -*- makefile -*- # debian/rules for libg2 # Author: Andreas Tille # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 pkglib=libg20 pkgdev=libg2-dev %: dh $@ --with autotools_dev,autoreconf # Compile with -fPIC on all platforms #override_dh_auto_configure: # dh_auto_configure -- CFLAGS="$(dpkg-buildflags --get CFLAGS) -fPIC" FFLAGS="$(dpkg-buildflags --get FFLAGS) -fPIC" # Use the latest version number in the CHANGES file version:=$(shell head -n 1 CHANGES | \ awk '{if (match($$0,/^[0-9]+\.[0-9]+[A-Za-z]/)) print substr($$0,RSTART,RLENGTH)}') rversion:=$(shell head -n 1 CHANGES | \ awk '{if (match($$0,/^[0-9]+\.[0-9]+/)) print substr($$0,RSTART,RLENGTH)}') major:=$(shell head -n 1 CHANGES | \ awk '{if (match($$0,/^[0-9]+/)) print substr($$0,RSTART,RLENGTH)}') override_dh_auto_clean: dh_auto_clean rm -f libg*.a lib*.so.0 override_dh_auto_build: $(MAKE) depend $(MAKE) libg2.a DEBCFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" # clean up and build the shared lib -rm -f src/*.o src/*/*.o $(MAKE) PICFLAG="-fPIC" RVERSION=$(rversion) MVERSION=$(major) DEBCFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" shared (cd ./g2_perl && perl Makefile.PL INSTALLDIRS=vendor LIBS="-L$(CURDIR) -lg2") $(MAKE) -C ./g2_perl LD_RUN_PATH="" override_dh_auto_install: $(MAKE) RVERSION=$(rversion) MVERSION=$(major) install prefix=$(CURDIR)/debian/libg2-dev mv $(CURDIR)/debian/$(pkgdev)/usr/lib/lib*.so.0* $(CURDIR)/debian/$(pkglib)/usr/lib $(MAKE) -C ./g2_perl install DESTDIR=$(CURDIR)/debian/libg2$(major)-perl debian/libg2-dev.docs0000644000000000000000000000003312214301176011604 0ustar README TODO doc/refman.pdf debian/watch0000644000000000000000000000005512214301176010214 0ustar version=3 http://sf.net/g2/g2-(.*)\.tar\.gz debian/libg2-dev.examples0000644000000000000000000000052412214301176012477 0ustar 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 debian/copyright0000644000000000000000000000276212247140715011133 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: g2 Source: http://sourceforge.net/projects/g2/files/g2/ Files: * Copyright: © 1998-2001 Ljubomir Milanovic © 1998-2001 Horst Wagner © 1999 Tijs Michels © 1999-2000 The University of Chicago License: LGPLv2+ Files: debian/* Copyright: © 1998-1999 John Lapeyre © 2001-2005 Eric Cain © 2011-2013 Andreas Tille License: LGPLv2+ License: LGPLv2+ 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'. debian/source/0000755000000000000000000000000011660505354010473 5ustar debian/source/format0000644000000000000000000000001411473514012011672 0ustar 3.0 (quilt) debian/README.Debian0000644000000000000000000000065312214301176011230 0ustar 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 , Tue, 6 May 2003 19:42:16 -0700 debian/libg2-dev.dirs0000644000000000000000000000002412214301176011615 0ustar usr/lib usr/include debian/changelog0000644000000000000000000001711112253623240011040 0ustar g2 (0.72-5) unstable; urgency=medium * The typo in $(CURDIR) made libg2 linkage get skipped. The LD_RUN_PATH trick is to avoid an RPATH setting in the resulting DSO. Thanks for the patch to Niko Tyni Closes: #712088 -- Andreas Tille Mon, 16 Dec 2013 17:12:01 +0100 g2 (0.72-4) unstable; urgency=low * Make use of dh-autoreconf (thanks again to Samuel Thibault for the patch) Closes: #729290 * debian/copyright: DEP5 * cme fix dpkg-control -- Andreas Tille Mon, 02 Dec 2013 18:13:22 +0100 g2 (0.72-3) unstable; urgency=low * debian/control: - Standards-Version: 3.9.4 (no changes needed) - Canonical Vcs fields - Get libgd2-dev dependency straight according to http://lists.alioth.debian.org/pipermail/debian-med-packaging/2013-May/019692.html also add ${shlibs:Depends} - Drop libc6-dev dependency - cme fix dpkg-control * Debhelper 9 (control+compat) * debian/patches/series: drop patch stabelise_makefile.diff because it seems to originate from improper use of autotools-dev which is void now after using dh. * debian/patches/010_configure_in.diff: Add change from Samuel Thibault to the patch to build on HURD as well (thanks to Samuel) Closes: #729186 * debian/patches/hardening.patch,debian/rules: Propagate hardening options which looks OK, but lintian warning remains anyway -- Andreas Tille Sun, 10 Nov 2013 08:12:07 +0100 g2 (0.72-2.1) unstable; urgency=low * Non-maintainer upload. * Don't mix source format 3.0 (quilt) and manual usage of quilt: - Drop manual quilt calls from debian/rules; - Drop superfluous quilt Build-Depends. Closes: #643478 -- Didier Raboud Tue, 15 Nov 2011 16:59:33 +0100 g2 (0.72-2) unstable; urgency=low * Took over package in Debian Med team maintenance because it serves as precondition for some Debian Med maintained packages. Closes: #380146 * debian/control: - debhelper 7 - Standards-Version: 3.9.1 (no changes needed) - Added Vcs and Homepage Fields - Added {misc:Depends} * removed debian/{*.files,*.substvars,*.preinst} * Moved debian examples to libg2-dev.examples and docs to libg2-dev.docs * Added README.source * debian/patches/fix_pod2man_errors.diff: Fix Pod2Man errors * debian/source/format: 3.0 (quilt) * debian/patches/fix_linker_libs.diff: Make sure libraries are properly linked Closes: #558859, #556290 * Do not install PostScript version of the doc - PDF is sufficient * debian/rules: - do not delete upstream Makefiles and config* files in clean target - s/PREFIX/DESTDIR/ (debian-rules-makemaker-prefix-is-deprecated) - make real use of autotools-dev and also keep configure to be able to properly build twice in a row -- Andreas Tille Wed, 23 Feb 2011 07:39:12 +0100 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 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 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 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 Sun, 22 Jan 2006 02:05:58 +0100 g2 (0.70-1) unstable; urgency=low * New upstream version -- Eric Cain 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 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 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 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 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 Wed, 7 May 2003 17:14:49 -0700 g2 (0.49a-3) unstable; urgency=low * Fixed Perl support Closes: Bug#188119 -- Eric Cain 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 Sat, 6 Apr 2002 23:37:31 -0800 g2 (0.49a-1) unstable; urgency=low * New upstream version -- Eric Cain 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 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 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 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 Sun, 14 Jan 2001 23:18:08 -0800 g2 (0.40-1) unstable; urgency=low * New upstream -- John Lapeyre 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 Thu, 3 Dec 1998 01:54:50 -0700 g2 (0.23-3) unstable; urgency=low * Add shared library * Fix dependency line -- John Lapeyre 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 Sun, 27 Sep 1998 16:28:28 -0700 g2 (0.23-1) unstable; urgency=low * Initial Release. -- John Lapeyre Mon, 27 Jul 1998 22:59:17 -0700 debian/patches/0000755000000000000000000000000012237740573010627 5ustar debian/patches/do_not_remove_files_from_orig_source.diff0000644000000000000000000000147012237631632021122 0ustar Author: Andreas Tille Date: Wed, 23 Feb 2011 07:39:12 +0100 Description: Upstream clean target removes files which are provided in downloadable source tarball. Just keep these files --- a/Makefile.in +++ b/Makefile.in @@ -126,10 +126,10 @@ doc: clean: - -(cd ./demo ; make clean) + #(cd ./demo ; make clean) -(cd ./g2_python ; make clean) -rm -f $(OBJ) - -rm -f libg2.a config.cache config.log Makefile.bak config.status + -rm -f libg2.a config.cache config.log config.status -rm -f ./include/*.h -$(FIND) . -name "*~" -exec rm -f {} \; -(cd ./g2_perl ; make clean) @@ -146,7 +146,7 @@ clean: -rm -f a.out doc_clean: - -rm -fr doc/html/ doc/latex/ doc/g2_refman.ps doc/g2_refman.pdf + -rm -fr doc/latex/ doc/g2_refman.ps doc/g2_refman.pdf demo: libg2.a (cd ./demo ; make) debian/patches/020_makefile_pl_in.diff0000644000000000000000000000110212237631640014764 0ustar --- a/g2_perl/Makefile.PL.in +++ b/g2_perl/Makefile.PL.in @@ -4,7 +4,7 @@ use ExtUtils::MakeMaker; 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' ); debian/patches/010_configure_in.diff0000644000000000000000000000165612237632342014512 0ustar Author: Aurelien Jarno , Samuel Thibault LastChanged: Sat, 9 Nov 2013 23:53:01 +0100 BugsDebian: http://bugs.debian.org/336952, http://bugs.debian.org/729186 Description: Build on FreeBSD and Hurd --- a/configure.in +++ b/configure.in @@ -13,11 +13,11 @@ PRODUCT=g2 # AC_CANONICAL_HOST case "$host" in - *-linux*) + *-linux* | *-k*bsd*-gnu | *-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 @@ AC_CHECK_LIB(dl, dlopen, have_dl=yes, ha # 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='#' debian/patches/fix_linker_libs.diff0000644000000000000000000000046112237633027014620 0ustar --- a/configure.in +++ b/configure.in @@ -16,7 +16,7 @@ case "$host" in *-linux* | *-k*bsd*-gnu | *-gnu*) LD_SHARED='ld' LD_SHARED_FLAGS='-shared -soname libg2.so.0' - LD_SHARED_OPT='-lc' + LD_SHARED_OPT='-lc -lm -lX11 -lgd' LD_SHARED_EXT='so.$(RVERSION)' AC_DEFINE(LINUX);; *-aix*) debian/patches/fix_pod2man_errors.diff0000644000000000000000000000131412237631625015257 0ustar --- a/g2_perl/G2.pm +++ b/g2_perl/G2.pm @@ -148,8 +148,12 @@ a second window showing a zoom of a mor Drawing in both windows is performed by one single command to the virtual device. +=back + =head2 Device Functions +=over 5 + =item C<> C I @@ -226,8 +230,11 @@ C I I +=back + =head2 Drawing Functions +=over 5 =item C @@ -335,6 +342,8 @@ C I +=back + =head1 AUTHORS Horst Wagner (wagner/users-sourceforge.net) and Ljubomir Milanovic (ljubo/users-sourceforge-net) debian/patches/stabelise_makefile.diff0000644000000000000000000000767612237631613015303 0ustar --- a/Makefile +++ b/Makefile @@ -9,8 +9,8 @@ G2_VERSION = 0.72 # # g2 installation directories # -LIBDIR = /usr/local/lib -INCDIR = /usr/local/include +LIBDIR = /usr/lib +INCDIR = /usr/include #LIBDIR = $(HOME)/local/lib @@ -21,8 +21,8 @@ INCDIR = /usr/local/include # SHELL = /bin/sh -CC = gcc -CFLAGS = -I./src -O2 -I/usr/local/include -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DLINUX=1 -DDO_PS=1 -DDO_FIG=1 -DDO_X11=1 -DDO_XDBE=1 -DDO_GD=1 -DDO_GIF=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 +CC = x86_64-linux-gnu-gcc +CFLAGS = -I./src -Wall -g -O2 -Wl,-z,defs -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DLINUX=1 -DDO_PS=1 -DDO_FIG=1 -DDO_X11=1 -DDO_XDBE=1 -DDO_GD=1 -DDO_GIF=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 INSTALL = /usr/bin/install -c INSTALL_DATA = ${INSTALL} -m 644 FIND = find @@ -32,7 +32,7 @@ ARFLAGS = -cr RANLIB = ranlib LD = ld LDFLAGS = - +LN_S = ln -s BASE_DIR = ./src BASE_SRC = $(BASE_DIR)/g2_device.c $(BASE_DIR)/g2_ui_control.c \ @@ -79,33 +79,40 @@ INS = $(BASE_INS) $(PS_INS) $(FIG_INS) # major rule # .c.o: - $(CC) $(CFLAGS) -c $< -o $@ + $(CC) $(CFLAGS) $(PICFLAG) -c $< -o $@ all: libg2.a test -d ./include || mkdir ./include cp $(INS) ./include/ -shared: libg2.so.0.$(G2_VERSION) +shared: libg2.so.$(RVERSION) @echo libg2.a: $(OBJ) $(AR) $(ARFLAGS) libg2.a $(OBJ) test ! -n "$(RANLIB)" || $(RANLIB) $@ + $(LN_S) -f libg2.a libg2.$(RVERSION).a -libg2.so.0.$(G2_VERSION): $(OBJ) - ld -shared -soname libg2.so.0 -o $@ $(OBJ) +libg2.so.$(RVERSION): $(OBJ) + x86_64-linux-gnu-gcc -Wl,-soname,$@ -shared $(OBJ) -lc -lm -lX11 -lgd -o $@ + test ! -f libg2.so && $(LN_S) $@ libg2.so + test ! -f libg2.so.$(MVERSION) && $(LN_S) $@ libg2.so.$(MVERSION) -libg2.so: libg2.so.0.$(G2_VERSION) - ln -f -s libg2.so.0.$(G2_VERSION) $@ +libg2.so: libg2.so.$(RVERSION) + ln -f -s libg2.so.$(RVERSION) $@ 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.so.$(RVERSION) && \ + $(INSTALL_DATA) libg2.so.$(RVERSION) $(prefix)$(LIBDIR) && \ + $(LN_S) libg2.so.$(RVERSION) $(prefix)$(LIBDIR)/libg2.so.$(MVERSION) && \ + $(LN_S) libg2.so.$(RVERSION) $(prefix)$(LIBDIR)/libg2.so for IFILE in $(INS); do \ - $(INSTALL_DATA) $$IFILE $(INCDIR); \ + $(INSTALL_DATA) $$IFILE $(prefix)$(INCDIR); \ done release: clean doc @@ -119,10 +126,10 @@ doc: clean: - -(cd ./demo ; make clean) + #(cd ./demo ; make clean) -(cd ./g2_python ; make clean) -rm -f $(OBJ) - -rm -f libg2.a config.cache config.log Makefile.bak config.status + -rm -f libg2.a config.cache config.log config.status -rm -f ./include/*.h -$(FIND) . -name "*~" -exec rm -f {} \; -(cd ./g2_perl ; make clean) @@ -131,10 +138,15 @@ clean: -rm -f ./g2_perl/test.jpg -rm -f ./g2_perl/test.fig -rm -f ./g2_perl/Makefile.old - -rm -f ./libg2.so.0.$(G2_VERSION) - -rm -f libg2.$(G2_VERSION).a + -rm -f ./libg2.so.$(RVERSION) + -rm -f ./libg2.so.$(MVERSION) + -rm -f ./libg2.$(RVERSION).a + -rm -f ./libg2.$(MVERSION).a + -rm -f libg2.so -rm -f a.out - -rm -fr doc/html/ doc/latex/ doc/g2_refman.ps doc/g2_refman.pdf + +doc_clean: + -rm -fr doc/latex/ doc/g2_refman.ps doc/g2_refman.pdf demo: libg2.a (cd ./demo ; make) debian/patches/hardening.patch0000644000000000000000000000104012237740573013602 0ustar Author: Andreas Tille LastChanged: Sun, 10 Nov 2013 08:12:07 +0100 Description: Providing CFLAGS from outside overrides CFLAGS setting completely whic leads to build failure. So rather provide DEBCFLAGS which is added to CFLAGS --- a/Makefile.in +++ b/Makefile.in @@ -22,7 +22,7 @@ INCDIR = @prefix@/include SHELL = /bin/sh CC = @CC@ -CFLAGS = -I./src @CFLAGS@ @DEFS@ +CFLAGS = -I./src @CFLAGS@ @DEFS@ $(DEBCFLAGS) INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ FIND = @FIND@ debian/patches/030_makefile_in.diff0000644000000000000000000000376012237631635014312 0ustar --- a/Makefile.in +++ b/Makefile.in @@ -32,7 +32,7 @@ ARFLAGS = -cr 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 @@ INS = $(BASE_INS) $(PS_INS) $(FIG_INS) # major rule # .c.o: - $(CC) $(CFLAGS) -c $< -o $@ + $(CC) $(CFLAGS) $(PICFLAG) -c $< -o $@ all: libg2.a @@ -93,19 +93,26 @@ shared: libg2.@LD_SHARED_EXT@ 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 @@ clean: -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 debian/patches/series0000644000000000000000000000025212237737203012037 0ustar 010_configure_in.diff 020_makefile_pl_in.diff 030_makefile_in.diff do_not_remove_files_from_orig_source.diff fix_pod2man_errors.diff fix_linker_libs.diff hardening.patch debian/compat0000644000000000000000000000000212237631230010363 0ustar 9