aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwill <will@FreeBSD.org>2000-06-09 13:34:07 +0800
committerwill <will@FreeBSD.org>2000-06-09 13:34:07 +0800
commit9c44dc975de464bf3a03d93ab8ee991919f788a3 (patch)
treeb4d647656e60a74211e60492efe2de08a300cd9b
parent9005eb42a0a4ca5fad21244a473b1b6fbd77fb3d (diff)
downloadfreebsd-ports-graphics-9c44dc975de464bf3a03d93ab8ee991919f788a3.tar.gz
freebsd-ports-graphics-9c44dc975de464bf3a03d93ab8ee991919f788a3.tar.zst
freebsd-ports-graphics-9c44dc975de464bf3a03d93ab8ee991919f788a3.zip
Add gdtclft, a Tcl interface to gd.
PR: 16648 Submitted by: Mikhail Teterin <mi@aldan.algebra.com>
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/gdtclft/Makefile28
-rw-r--r--graphics/gdtclft/distinfo1
-rw-r--r--graphics/gdtclft/files/Makefile.bsd39
-rw-r--r--graphics/gdtclft/pkg-comment1
-rw-r--r--graphics/gdtclft/pkg-descr8
-rw-r--r--graphics/gdtclft/pkg-plist4
7 files changed, 82 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index 455c1829a51..f19eced8023 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -36,6 +36,7 @@
SUBDIR += gcolor
SUBDIR += gd
SUBDIR += gdk-pixbuf
+ SUBDIR += gdtclft
SUBDIR += geomview
SUBDIR += gfont
SUBDIR += gif2png
diff --git a/graphics/gdtclft/Makefile b/graphics/gdtclft/Makefile
new file mode 100644
index 00000000000..9e643efb471
--- /dev/null
+++ b/graphics/gdtclft/Makefile
@@ -0,0 +1,28 @@
+# New ports collection makefile for: Gdtclft
+# Date Created: 10 February 2000
+# Whom: Mikhail Teterin <mi@aldan.algebra.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= Gdtclft
+PORTVERSION= 2.2.3
+CATEGORIES= graphics tcl82
+MASTER_SITES= ftp://ftp.graphviz.org/pub/
+DISTNAME= ${PORTNAME}${PORTVERSION}
+
+MAINTAINER= mi@aldan.algebra.com
+
+LIB_DEPENDS= tcl82.1:${PORTSDIR}/lang/tcl82 \
+ gd.1:${PORTSDIR}/graphics/gd
+
+MAKEFILE= ${FILESDIR}/Makefile.bsd
+MAKE_ENV= TCL_VER=8.2 MKDIR="${MKDIR}" INSTALL_DATA="${INSTALL_DATA}"
+ALL_TARGET= all
+
+MANN= gdtclft.n
+MANCOMPRESSED= maybe
+
+.include <bsd.port.mk>
+
+PLIST_SUB!= ${MAKE} -f ${MAKEFILE} env
diff --git a/graphics/gdtclft/distinfo b/graphics/gdtclft/distinfo
new file mode 100644
index 00000000000..40afa7fb957
--- /dev/null
+++ b/graphics/gdtclft/distinfo
@@ -0,0 +1 @@
+MD5 (Gdtclft2.2.3.tar.gz) = 1c63df8038e2b706cf807f401fd04508
diff --git a/graphics/gdtclft/files/Makefile.bsd b/graphics/gdtclft/files/Makefile.bsd
new file mode 100644
index 00000000000..412f085aee9
--- /dev/null
+++ b/graphics/gdtclft/files/Makefile.bsd
@@ -0,0 +1,39 @@
+PACKAGE = Gdtclft
+VERSION = 2.2
+LIB = ${PACKAGE}2
+SHLIB_MAJOR = 2
+SHLIB_MINOR = 1
+
+SRCS = gdhandle.c gdCmd.c
+
+PREFIX ?=/usr/local
+TCL_VER ?=8.2
+
+LDADD = -L${PREFIX}/lib -lgd -lttf -lpng -lz -lm
+
+CFLAGS +=-I${PREFIX}/include/tcl${TCL_VER} -I${PREFIX}/include/gd
+CFLAGS +=-DNDEBUG -Wall -I. -DUSE_TCL_STUBS -I${PREFIX}/include
+CFLAGS +=-DVERSION=\"${VERSION}\"
+
+MANn = gdtclft.n
+INTERNALLIB = don't build the useless static version
+
+all: ${SHLIB_NAME} pkgIndex.tcl
+
+pkgIndex.tcl:
+ echo 'package ifneeded $(PACKAGE) $(VERSION) [list load [file join $$dir $(SHLIB_NAME)] $(PACKAGE)]' > pkgIndex.tcl
+
+DIR = lib/tcl${TCL_VER}/gdtclft
+SHLIBDIR = ${PREFIX}/${DIR}
+MANDIR = ${PREFIX}/man/man
+
+${SHLIBDIR}:
+ ${MKDIR} ${SHLIBDIR}
+
+env:
+ @${ECHO} SHLIB_NAME=${SHLIB_NAME} SHLIB_LINK=${SHLIB_LINK} DIR=${DIR}
+
+beforeinstall: ${SHLIBDIR}
+ ${INSTALL_DATA} pkgIndex.tcl ${SHLIBDIR}
+
+.include <bsd.lib.mk>
diff --git a/graphics/gdtclft/pkg-comment b/graphics/gdtclft/pkg-comment
new file mode 100644
index 00000000000..02947077bab
--- /dev/null
+++ b/graphics/gdtclft/pkg-comment
@@ -0,0 +1 @@
+A TCL interface to the Thomas Boutell's Gd library
diff --git a/graphics/gdtclft/pkg-descr b/graphics/gdtclft/pkg-descr
new file mode 100644
index 00000000000..fadd2e94a1e
--- /dev/null
+++ b/graphics/gdtclft/pkg-descr
@@ -0,0 +1,8 @@
+Spencer Thomas said about the original TCL GD:
+
+ Thomas Boutell's Gd package provides a convenient way to
+ generate PNG images with a C program. If you, like me, prefer
+ Tcl for CGI applications, you'll want my TCL GD extension.
+
+The software is now maintained by John Ellson <ellson@lucent.com>, it
+seems.
diff --git a/graphics/gdtclft/pkg-plist b/graphics/gdtclft/pkg-plist
new file mode 100644
index 00000000000..88084b708f5
--- /dev/null
+++ b/graphics/gdtclft/pkg-plist
@@ -0,0 +1,4 @@
+%%DIR%%/pkgIndex.tcl
+%%DIR%%/%%SHLIB_NAME%%
+%%DIR%%/%%SHLIB_LINK%%
+@dirrm %%DIR%%