--- gpcl-2.32.orig/compile +++ gpcl-2.32/compile @@ -0,0 +1,347 @@ +#! /bin/sh +# Wrapper for compilers which do not understand '-c -o'. + +scriptversion=2012-10-14.11; # UTC + +# Copyright (C) 1999-2013 Free Software Foundation, Inc. +# Written by Tom Tromey . +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This program 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# This file is maintained in Automake, please report +# bugs to or send patches to +# . + +nl=' +' + +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent tools from complaining about whitespace usage. +IFS=" "" $nl" + +file_conv= + +# func_file_conv build_file lazy +# Convert a $build file to $host form and store it in $file +# Currently only supports Windows hosts. If the determined conversion +# type is listed in (the comma separated) LAZY, no conversion will +# take place. +func_file_conv () +{ + file=$1 + case $file in + / | /[!/]*) # absolute file, and not a UNC file + if test -z "$file_conv"; then + # lazily determine how to convert abs files + case `uname -s` in + MINGW*) + file_conv=mingw + ;; + CYGWIN*) + file_conv=cygwin + ;; + *) + file_conv=wine + ;; + esac + fi + case $file_conv/,$2, in + *,$file_conv,*) + ;; + mingw/*) + file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` + ;; + cygwin/*) + file=`cygpath -m "$file" || echo "$file"` + ;; + wine/*) + file=`winepath -w "$file" || echo "$file"` + ;; + esac + ;; + esac +} + +# func_cl_dashL linkdir +# Make cl look for libraries in LINKDIR +func_cl_dashL () +{ + func_file_conv "$1" + if test -z "$lib_path"; then + lib_path=$file + else + lib_path="$lib_path;$file" + fi + linker_opts="$linker_opts -LIBPATH:$file" +} + +# func_cl_dashl library +# Do a library search-path lookup for cl +func_cl_dashl () +{ + lib=$1 + found=no + save_IFS=$IFS + IFS=';' + for dir in $lib_path $LIB + do + IFS=$save_IFS + if $shared && test -f "$dir/$lib.dll.lib"; then + found=yes + lib=$dir/$lib.dll.lib + break + fi + if test -f "$dir/$lib.lib"; then + found=yes + lib=$dir/$lib.lib + break + fi + if test -f "$dir/lib$lib.a"; then + found=yes + lib=$dir/lib$lib.a + break + fi + done + IFS=$save_IFS + + if test "$found" != yes; then + lib=$lib.lib + fi +} + +# func_cl_wrapper cl arg... +# Adjust compile command to suit cl +func_cl_wrapper () +{ + # Assume a capable shell + lib_path= + shared=: + linker_opts= + for arg + do + if test -n "$eat"; then + eat= + else + case $1 in + -o) + # configure might choose to run compile as 'compile cc -o foo foo.c'. + eat=1 + case $2 in + *.o | *.[oO][bB][jJ]) + func_file_conv "$2" + set x "$@" -Fo"$file" + shift + ;; + *) + func_file_conv "$2" + set x "$@" -Fe"$file" + shift + ;; + esac + ;; + -I) + eat=1 + func_file_conv "$2" mingw + set x "$@" -I"$file" + shift + ;; + -I*) + func_file_conv "${1#-I}" mingw + set x "$@" -I"$file" + shift + ;; + -l) + eat=1 + func_cl_dashl "$2" + set x "$@" "$lib" + shift + ;; + -l*) + func_cl_dashl "${1#-l}" + set x "$@" "$lib" + shift + ;; + -L) + eat=1 + func_cl_dashL "$2" + ;; + -L*) + func_cl_dashL "${1#-L}" + ;; + -static) + shared=false + ;; + -Wl,*) + arg=${1#-Wl,} + save_ifs="$IFS"; IFS=',' + for flag in $arg; do + IFS="$save_ifs" + linker_opts="$linker_opts $flag" + done + IFS="$save_ifs" + ;; + -Xlinker) + eat=1 + linker_opts="$linker_opts $2" + ;; + -*) + set x "$@" "$1" + shift + ;; + *.cc | *.CC | *.cxx | *.CXX | *.[cC]++) + func_file_conv "$1" + set x "$@" -Tp"$file" + shift + ;; + *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO]) + func_file_conv "$1" mingw + set x "$@" "$file" + shift + ;; + *) + set x "$@" "$1" + shift + ;; + esac + fi + shift + done + if test -n "$linker_opts"; then + linker_opts="-link$linker_opts" + fi + exec "$@" $linker_opts + exit 1 +} + +eat= + +case $1 in + '') + echo "$0: No command. Try '$0 --help' for more information." 1>&2 + exit 1; + ;; + -h | --h*) + cat <<\EOF +Usage: compile [--help] [--version] PROGRAM [ARGS] + +Wrapper for compilers which do not understand '-c -o'. +Remove '-o dest.o' from ARGS, run PROGRAM with the remaining +arguments, and rename the output as expected. + +If you are trying to build a whole package this is not the +right script to run: please start by reading the file 'INSTALL'. + +Report bugs to . +EOF + exit $? + ;; + -v | --v*) + echo "compile $scriptversion" + exit $? + ;; + cl | *[/\\]cl | cl.exe | *[/\\]cl.exe ) + func_cl_wrapper "$@" # Doesn't return... + ;; +esac + +ofile= +cfile= + +for arg +do + if test -n "$eat"; then + eat= + else + case $1 in + -o) + # configure might choose to run compile as 'compile cc -o foo foo.c'. + # So we strip '-o arg' only if arg is an object. + eat=1 + case $2 in + *.o | *.obj) + ofile=$2 + ;; + *) + set x "$@" -o "$2" + shift + ;; + esac + ;; + *.c) + cfile=$1 + set x "$@" "$1" + shift + ;; + *) + set x "$@" "$1" + shift + ;; + esac + fi + shift +done + +if test -z "$ofile" || test -z "$cfile"; then + # If no '-o' option was seen then we might have been invoked from a + # pattern rule where we don't need one. That is ok -- this is a + # normal compilation that the losing compiler can handle. If no + # '.c' file was seen then we are probably linking. That is also + # ok. + exec "$@" +fi + +# Name of file we expect compiler to create. +cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` + +# Create the lock directory. +# Note: use '[/\\:.-]' here to ensure that we don't use the same name +# that we are using for the .o file. Also, base the name on the expected +# object file name, since that is what matters with a parallel build. +lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d +while true; do + if mkdir "$lockdir" >/dev/null 2>&1; then + break + fi + sleep 1 +done +# FIXME: race condition here if user kills between mkdir and trap. +trap "rmdir '$lockdir'; exit 1" 1 2 15 + +# Run the compile. +"$@" +ret=$? + +if test -f "$cofile"; then + test "$cofile" = "$ofile" || mv "$cofile" "$ofile" +elif test -f "${cofile}bj"; then + test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" +fi + +rmdir "$lockdir" +exit $ret + +# Local Variables: +# mode: shell-script +# sh-indentation: 2 +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-time-zone: "UTC" +# time-stamp-end: "; # UTC" +# End: --- gpcl-2.32.orig/debian/README.Debian +++ gpcl-2.32/debian/README.Debian @@ -0,0 +1,27 @@ +gpcl for Debian +--------------- + +GPC (A General Polygon Clipper) is a flexible and highly robust polygon set +operations library for use with C applications, as referenced in the +comp.graphics.algorithms FAQ and the UIUC Computational Geometry Pages. + +Features: + + * Difference, intersection, exclusive-or and union clip operations are + supported. + * Polygons may be comprised of multiple disjoint contours. + * Contour vertices may be given in any order - clockwise or + anticlockwise. + * Contours may be convex, concave or self-intersecting. + * Contours may be nested (i.e. polygons may have holes). + * Output may take the form of either polygon contours or tristrips. + * Hole and external contours are differentiated in the result. + * Coincident edges and degenerate regions are handled correctly. + +Autoconf/Automake/Libtool support has been added to this Debian package. + +For more information see: + + http://www.cs.man.ac.uk/~amurta/software/index.html#gpc + +-- Rafael Laboissiere Tue Mar 1 10:22:27 CET 2005 --- gpcl-2.32.orig/debian/changelog +++ gpcl-2.32/debian/changelog @@ -0,0 +1,84 @@ +gpcl (2.32-1.1) unstable; urgency=medium + + * Non-maintainer upload. + * Switch to automake1.11 and pass --copy to automake. (Closes: + #741897) + + -- Eric Dorland Sat, 22 Mar 2014 15:56:29 -0400 + +gpcl (2.32-1) unstable; urgency=low + + * New upstream releaseq + * debian/control: + - Added autoconf to Build-Depends (closes: #297291) + - Added also automake1.9 and libtool to Build-Depends, so that the + package builds from scratch. + - Upgraded Standards-Version to 3.6.1 + - Build-Depends on dpatch + * debian/rules: + - Adjust for using dpatch + - Install upstream changelog file VERSIONS.TXT + * debian/patches/50_autotools-port.dpatch: Patch for porting the + upstream source to the Autotools (Autoconf/Automake/Libtool) + * debian/copyright: Added mention to Debian-specific Autotools addition + is released under the GNU GPL. + + -- Rafael Laboissiere Tue, 1 Mar 2005 09:58:02 +0100 + +gpcl (2.31-6) unstable; urgency=low + + * debian/rules: Touch autoconf/automake files in precise order such that + there is no time skew problems in dependencies (this happened in the + m68k architecture, closes: #146041). + * debian/postinst: Removed code to call ldconfig, since dh_makeshlibs + takes care of this already. + + -- Rafael Laboissiere Tue, 27 Aug 2002 13:36:28 +0200 + +gpcl (2.31-5) unstable; urgency=low + + * Regenerated automake/libtool files. This makes the package compile in + several architectures different from i386. + * debian/rules: Bumped DH_COMPAT to 3. (clean): Delete conftest* files. + I do not know why this is not done automatically by the + autoconf/automake support. (install) + * debian/control: Bumped Standards-Version to 3.5.6. Changed + maintainer's e-mail address. + * debian/libgpcl0.files: Added file (since we have now DH_COMPAT=3, + files from debian/tmp/ have to be moved into debian/libgpcl0/). + * debian/postinst: Remnoved file. The necessary call to ldconfig is now + automatically inserted by dh_makeshlibs. This avoids the anoying + Linitian warnig about postinst-unsafe-ldconfig. + + -- Rafael Laboissiere Mon, 22 Apr 2002 13:13:15 +0200 + +gpcl (2.31-4) unstable; urgency=low + + * debian/libgpcl-dev.doc-base: Filled dh_make boilerplate text in Title, + Author, Abstract, and Section fields (closes: #110790). + + -- Rafael Laboissiere Fri, 31 Aug 2001 17:20:43 +0200 + +gpcl (2.31-3) unstable; urgency=low + + * debian/control: Change sections of the packages to those of override + file. + + -- Rafael Laboissiere Wed, 25 Jul 2001 23:46:00 +0200 + +gpcl (2.31-2) unstable; urgency=low + + * debian/rules: make configure executable, since this script comes from + the Debian diff.gz file. + * Just in case release 2.31-1 does not go through dinstall + (closes: #104272). + + -- Rafael Laboissiere Wed, 25 Jul 2001 12:00:03 +0200 + +gpcl (2.31-1) unstable; urgency=low + + * Initial Release (closes: #104272). + + -- Rafael Laboissiere Wed, 11 Jul 2001 09:32:22 +0200 + + --- gpcl-2.32.orig/debian/control +++ gpcl-2.32/debian/control @@ -0,0 +1,44 @@ +Source: gpcl +Section: non-free/math +Priority: optional +Maintainer: Rafael Laboissiere +Standards-Version: 3.6.1 +Build-Depends: debhelper (>= 3), autoconf, automake1.11, libtool, dpatch + +Package: libgpcl0 +Section: non-free/libs +Architecture: any +Depends: ${shlibs:Depends} +Description: general polygon clipper library + A flexible and highly robust polygon set operations library for use with C + applications, as referenced in the comp.graphics.algorithms FAQ and the + UIUC Computational Geometry Pages. + . + Features: + * Difference, intersection, exclusive-or and union clip operations are + supported. + * Polygons may be comprised of multiple disjoint contours. + * Contour vertices may be given in any order - clockwise or + anticlockwise. + * Contours may be convex, concave or self-intersecting. + * Contours may be nested (i.e. polygons may have holes). + * Output may take the form of either polygon contours or tristrips. + * Hole and external contours are differentiated in the result. + * Coincident edges and degenerate regions are handled correctly. + . + Homepage: http://www.cs.man.ac.uk/~amurta/software/index.html#gpc + +Package: libgpcl-dev +Section: non-free/devel +Architecture: any +Depends: libgpcl0 (= ${Source-Version}), libc6-dev +Description: general polygon clipper library -- development package + A flexible and highly robust polygon set operations library for use with C + applications, as referenced in the comp.graphics.algorithms FAQ and the + UIUC Computational Geometry Pages. + . + This package contains the include files and static library for the GPC + library. Also included some example polygons and HTML documentation. + . + Homepage: http://www.cs.man.ac.uk/~amurta/software/index.html#gpc + --- gpcl-2.32.orig/debian/copyright +++ gpcl-2.32/debian/copyright @@ -0,0 +1,40 @@ +This package was debianized by Rafael Laboissiere on +Thu, 5 Jul 2001 16:08:00 +0200. + +The upstream sources were downloaded from + ftp://ftp.cs.man.ac.uk/pub/toby/gpc/gpc231.tar.Z + +The polygon examples (in the /examples dir) were donwloaded from + ftp://ftp.cs.man.ac.uk/pub/toby/gpc/tests.tar.Z + +The HTML documentation (in the doc/ dir) was obtained by recursively +sucking the web site: + http://www.cs.man.ac.uk/~amurta/software/gpc.html + +Upstream Author: Alan Murta + +Copyright: + + This software is Copyright © 1997-1999, Advanced Interfaces Group, + Department of Computer Science, University of Manchester. This software + is free for non-commercial use. It may be copied, modified, and + redistributed provided that the copyright notices which appear within the + library source files are preserved on all copies. The intellectual + property rights of the algorithms used reside with the University of + Manchester Advanced Interfaces Group. + + You may not use this software, in whole or in part, in support of any + commercial product without the express consent of the author. + + There is no warranty or other guarantee of fitness of this software for + any purpose. It is provided solely "as is". Although no direct support + for the use of this software will be given, bug reports may be sent to + gpc@cs.man.ac.uk. + +The Autotools (Autoconf/Automake/Libtool) support is + + Copyright (C) 2001, 2002, 2005 Rafael Laboissiere + +and is distributed under the terms of the GNU GPL, version 2 or later. In +Debian GNU/Linux systems, the whole text of the licences is in +`/usr/share/common-licenses/GPL-2'. --- gpcl-2.32.orig/debian/libgpcl-dev.doc-base +++ gpcl-2.32/debian/libgpcl-dev.doc-base @@ -0,0 +1,19 @@ +Document: gpcl +Title: General Clipping Polygon Library Manual +Author: Alan Murta +Abstract: This document describes a C library implementation of a new + polygon clipping algorithm. The techniques used are descended from Vatti's + polygon clipping method [1]. Subject and clip polygons may be convex or + concave, self-intersecting, contain holes, or be comprised of several + disjoint contours. It extends the Vatti algorithm to allow horizontal edges + in the source polygons, and to handle coincident edges in a robust manner. + Four types of clipping operation are supported: intersection, exclusive-or, + union or difference of subject and clip polygons. The output may take the + form of polygon outlines or tristrips. +Section: Apps/Programming + +Format: HTML +Index: /usr/share/doc/libgpcl-dev/html/gpc.html +Files: /usr/share/doc/libgpcl-dev/html/* + + --- gpcl-2.32.orig/debian/libgpcl-dev.docs +++ gpcl-2.32/debian/libgpcl-dev.docs @@ -0,0 +1,2 @@ +doc +examples --- gpcl-2.32.orig/debian/libgpcl-dev.files +++ gpcl-2.32/debian/libgpcl-dev.files @@ -0,0 +1,4 @@ +usr/lib/libgpcl.a +usr/lib/libgpcl.la +usr/lib/libgpcl.so +usr/include --- gpcl-2.32.orig/debian/libgpcl0.files +++ gpcl-2.32/debian/libgpcl0.files @@ -0,0 +1 @@ +/usr/lib/libgpcl.so.* --- gpcl-2.32.orig/debian/patches/00list +++ gpcl-2.32/debian/patches/00list @@ -0,0 +1 @@ +50_autotools-port --- gpcl-2.32.orig/debian/patches/50_autotools-port.dpatch +++ gpcl-2.32/debian/patches/50_autotools-port.dpatch @@ -0,0 +1,91 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 50_autotools-port.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: New patch generated from gpcl 2.31-7 diff.gz + +@DPATCH@ + +--- gpcl-2.31.orig/bootstrap.sh ++++ gpcl-2.31/bootstrap.sh +@@ -0,0 +1,10 @@ ++#! /bin/sh ++# ++# Copyright (C) 2001, 2002, 2005 Rafael Laboissiere ++# ++# This file is in the public domain ++ ++aclocal \ ++ && libtoolize --automake \ ++ && automake --add-missing --foreign --copy \ ++ && autoconf +--- gpcl-2.31.orig/Makefile.am ++++ gpcl-2.31/Makefile.am +@@ -0,0 +1,28 @@ ++## Process this file with automake to produce Makefile.in ++ ++### Copyright (C) 2001, 2002, 2005 Rafael Laboissiere ++### ++### This file is free software; you can redistribute it and/or modify it ++### under the terms of the GNU General Public License as published by the ++### Free Software Foundation; either version 2, or (at your option) any ++### later version. ++### ++### This file 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 General Public License ++### for more details. ++### ++### You should have received a copy of the GNU General Public License ++### along with Octave; see the file COPYING. If not, write to the Free ++### Software Foundation, 59 Temple Place - Suite 330, Boston, MA ++### 02111-1307, USA. ++ ++EXTRA_DIST = VERSIONS.TXT doc examples ++ ++lib_LTLIBRARIES = libgpcl.la ++ ++pkginclude_HEADERS = gpc.h ++ ++libgpcl_la_SOURCES = gpc.c ++ ++libgpcl_la_LDFLAGS = -version-info 0:0:0 +--- gpcl-2.31.orig/configure.in ++++ gpcl-2.31/configure.in +@@ -0,0 +1,35 @@ ++dnl configure.in ++dnl ++dnl Process this file with autoconf to produce a configure script. ++dnl ++### Copyright (C) 2001, 2002, 2005 Rafael Laboissiere ++### ++### This file is free software; you can redistribute it and/or modify it ++### under the terms of the GNU General Public License as published by the ++### Free Software Foundation; either version 2, or (at your option) any ++### later version. ++### ++### This file 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 General Public License ++### for more details. ++### ++### You should have received a copy of the GNU General Public License ++### along with Octave; see the file COPYING. If not, write to the Free ++### Software Foundation, 59 Temple Place - Suite 330, Boston, MA ++### 02111-1307, USA. ++ ++### Autoconf/automake initializations ++ ++AC_INIT(gpcl, 2.31) ++AM_INIT_AUTOMAKE ++ ++### Test for C compiler and libtool ++ ++AC_PROG_CC ++AC_PROG_LIBTOOL ++ ++### Build Makefile ++ ++AC_CONFIG_FILES([Makefile]) ++AC_OUTPUT +\ No newline at end of file --- gpcl-2.32.orig/debian/postinst +++ gpcl-2.32/debian/postinst @@ -0,0 +1,5 @@ +#!/bin/sh + +set -e + +#DEBHELPER# --- gpcl-2.32.orig/debian/rules +++ gpcl-2.32/debian/rules @@ -0,0 +1,86 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatability version to use. +export DH_COMPAT=3 + +include /usr/share/dpatch/dpatch.make + +debdir := `pwd`/debian +debusr := $(debdir)/tmp/usr +debdoc := $(debdir)/libgpcl-dev/usr/share/doc/libgpcl-dev + +autotools: autotools-stamp +autotools-stamp: patch-stamp + chmod +x bootstrap.sh + ./bootstrap.sh + touch autotools-stamp + +configure: configure-stamp +configure-stamp: autotools-stamp + ./configure --prefix=/usr + touch configure-stamp + +build: build-stamp +build-stamp: configure-stamp + dh_testdir + + $(MAKE) + + touch build-stamp + +clean: configure-stamp unpatch + dh_testdir + dh_testroot + + -$(MAKE) -i distclean + rm -f Makefile.in aclocal.m4 config.guess config.sub config.log \ + configure depcomp install-sh ltmain.sh missing libtool + + rm -f autotools-stamp configure-stamp build-stamp + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/tmp. + $(MAKE) install prefix=$(debusr) + + +# 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_testversion + dh_testdir + dh_testroot + dh_movefiles + rm -rf $(debusr)/include + dh_installdocs + mv $(debdoc)/doc $(debdoc)/html + dh_installchangelogs VERSIONS.TXT + dh_link + dh_strip + dh_compress --exclude=/html/ --exclude=/examples/ + dh_fixperms + 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 +