aboutsummaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authormi <mi@FreeBSD.org>2005-10-22 16:21:16 +0800
committermi <mi@FreeBSD.org>2005-10-22 16:21:16 +0800
commit7c44d66306be7d7acd07f638968821becb3e631a (patch)
treec3e3247290dbf541d8880575397c0ff89dfdad08 /x11
parentabd7d477ba740d1eda9f4592e5682d885f68c6ca (diff)
downloadfreebsd-ports-gnome-7c44d66306be7d7acd07f638968821becb3e631a.tar.gz
freebsd-ports-gnome-7c44d66306be7d7acd07f638968821becb3e631a.tar.zst
freebsd-ports-gnome-7c44d66306be7d7acd07f638968821becb3e631a.zip
Add ports of General Polygon Clipping library and its sample GUI
application (gpctool).
Diffstat (limited to 'x11')
-rw-r--r--x11/Makefile1
-rw-r--r--x11/gpctool/Makefile31
-rw-r--r--x11/gpctool/distinfo2
-rw-r--r--x11/gpctool/files/BSDmakefile14
-rw-r--r--x11/gpctool/files/patch-includes44
-rw-r--r--x11/gpctool/pkg-descr19
6 files changed, 111 insertions, 0 deletions
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 <bsd.port.mk>
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 <bsd.prog.mk>
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 <forms.h>
++#include <gpc.h>
+ #include "gpctool.h"
+ #include "appl.h"
+@@ -37,4 +37,5 @@
+ #include <GL/glu.h>
+ #include <GL/glx.h>
++#include <glcanvas.h>
+
+
+--- 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 <forms.h>
++#include <stdlib.h>
+ #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 <gpc.h>
+ #include "appl.h"
+ #include <float.h>
+@@ -37,4 +37,5 @@
+ #include <GL/glu.h>
+ #include <GL/glx.h>
++#include <glcanvas.h>
+
+ #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/