From 7c44d66306be7d7acd07f638968821becb3e631a Mon Sep 17 00:00:00 2001 From: mi Date: Sat, 22 Oct 2005 08:21:16 +0000 Subject: Add ports of General Polygon Clipping library and its sample GUI application (gpctool). --- x11/Makefile | 1 + x11/gpctool/Makefile | 31 ++++++++++++++++++++++++++++ x11/gpctool/distinfo | 2 ++ x11/gpctool/files/BSDmakefile | 14 +++++++++++++ x11/gpctool/files/patch-includes | 44 ++++++++++++++++++++++++++++++++++++++++ x11/gpctool/pkg-descr | 19 +++++++++++++++++ 6 files changed, 111 insertions(+) create mode 100644 x11/gpctool/Makefile create mode 100644 x11/gpctool/distinfo create mode 100644 x11/gpctool/files/BSDmakefile create mode 100644 x11/gpctool/files/patch-includes create mode 100644 x11/gpctool/pkg-descr (limited to 'x11') diff --git a/x11/Makefile b/x11/Makefile index 015198cb19da..4076864f6a5b 100644 --- a/x11/Makefile +++ b/x11/Makefile @@ -71,6 +71,7 @@ SUBDIR += gnomepanel SUBDIR += gnomesession SUBDIR += gnometerminal + SUBDIR += gpctool SUBDIR += grabc SUBDIR += gromit SUBDIR += gtk-launch diff --git a/x11/gpctool/Makefile b/x11/gpctool/Makefile new file mode 100644 index 000000000000..4af4a6724319 --- /dev/null +++ b/x11/gpctool/Makefile @@ -0,0 +1,31 @@ +# New ports collection makefile for: gpc +# Date created: 22 October 2005 +# Whom: Mikhail Teterin +# +# $FreeBSD$ +# + +PORTNAME= gpctool +PORTVERSION= 1.0.1 +CATEGORIES= x11 math graphics +MASTER_SITES= ftp://ftp.cs.man.ac.uk/pub/toby/gpc/ +DISTNAME= gpct${PORTVERSION:S/.//g} + +MAINTAINER= mi@aldan.algebra.com +COMMENT= Evaluation tool for the Generic Polygon Clipper library + +LIB_DEPENDS= gpc:${PORTSDIR}/devel/gpc \ + formsGL:${PORTSDIR}/x11-toolkits/xforms + +USE_ZIP= yes +USE_GL= yes +PLIST_FILES= bin/gpctool +INSTALLS_SHLIB= yes +NO_CDROM= Can't be used for profit without permission + +MAKEFILE= ${FILESDIR}/BSDmakefile + +EXTRACT_BEFORE_ARGS=-qoa +EXTRACT_AFTER_ARGS=-d ${WRKDIR} -x ${DISTNAME}/gpc.? ${DISTNAME}/gl.c + +.include diff --git a/x11/gpctool/distinfo b/x11/gpctool/distinfo new file mode 100644 index 000000000000..77ed4655bc07 --- /dev/null +++ b/x11/gpctool/distinfo @@ -0,0 +1,2 @@ +MD5 (gpct101.zip) = ba11a942f5afe25d07221a59e9bbc1bc +SIZE (gpct101.zip) = 38632 diff --git a/x11/gpctool/files/BSDmakefile b/x11/gpctool/files/BSDmakefile new file mode 100644 index 000000000000..42365dfae84f --- /dev/null +++ b/x11/gpctool/files/BSDmakefile @@ -0,0 +1,14 @@ +PROG= gpctool +NO_MAN= Ha-ha! +NOMAN= ${NO_MAN} + +SRCS= gpctool.c main.c callbacks.c graphics.c psdump.c + +BINDIR= ${PREFIX}/bin +WARNS?= 2 +CFLAGS+= -I${X11BASE}/include/X11 -I${X11BASE}/include +CFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${X11BASE}/lib -lformsGL -lGLU +LDFLAGS+= -L${LOCALBASE}/lib -lgpc -lm + +.include diff --git a/x11/gpctool/files/patch-includes b/x11/gpctool/files/patch-includes new file mode 100644 index 000000000000..8935df38be81 --- /dev/null +++ b/x11/gpctool/files/patch-includes @@ -0,0 +1,44 @@ +--- main.c Tue Jul 4 10:28:10 2000 ++++ main.c Sat Oct 22 02:45:08 2005 +@@ -30,6 +30,6 @@ + + +-#include "forms.h" +-#include "gpc.h" ++#include ++#include + #include "gpctool.h" + #include "appl.h" +@@ -37,4 +37,5 @@ + #include + #include ++#include + + +--- callbacks.c Tue Jul 4 10:28:09 2000 ++++ callbacks.c Sat Oct 22 02:51:38 2005 +@@ -30,7 +30,6 @@ + + +-#include "forms.h" +-#include "gpc.h" +-#include "gpctool.h" ++#include ++#include + #include "appl.h" + /* +--- graphics.c Tue Jul 4 10:28:10 2000 ++++ graphics.c Sat Oct 22 02:53:08 2005 +@@ -30,5 +30,5 @@ + + +-#include "gpc.h" ++#include + #include "appl.h" + #include +@@ -37,4 +37,5 @@ + #include + #include ++#include + + #define SHOW_STRIPS FALSE diff --git a/x11/gpctool/pkg-descr b/x11/gpctool/pkg-descr new file mode 100644 index 000000000000..0ffecc4fa9c9 --- /dev/null +++ b/x11/gpctool/pkg-descr @@ -0,0 +1,19 @@ +gpctool - a graphical user interface and development +environment for the gpc generic polygon clipper library. + +Author: Alan Murta (email: gpc@cs.man.ac.uk) + +Copyright: (C) 1997-1999, Advanced Interfaces Group, + University of Manchester. + + This software is free for non-commercial use. It may be copied, + modified, and redistributed provided that this copyright notice + is 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. + +WWW: http://www.cs.man.ac.uk/~toby/alan/software/ -- cgit