From fcf450ecde11b26823b3d20019994727d408981f Mon Sep 17 00:00:00 2001 From: Will Andrews Date: Fri, 9 Jun 2000 05:34:07 +0000 Subject: Add gdtclft, a Tcl interface to gd. PR: 16648 Submitted by: Mikhail Teterin --- graphics/gdtclft/Makefile | 28 ++++++++++++++++++++++++++ graphics/gdtclft/distinfo | 1 + graphics/gdtclft/files/Makefile.bsd | 39 +++++++++++++++++++++++++++++++++++++ graphics/gdtclft/pkg-comment | 1 + graphics/gdtclft/pkg-descr | 8 ++++++++ graphics/gdtclft/pkg-plist | 4 ++++ 6 files changed, 81 insertions(+) create mode 100644 graphics/gdtclft/Makefile create mode 100644 graphics/gdtclft/distinfo create mode 100644 graphics/gdtclft/files/Makefile.bsd create mode 100644 graphics/gdtclft/pkg-comment create mode 100644 graphics/gdtclft/pkg-descr create mode 100644 graphics/gdtclft/pkg-plist (limited to 'graphics/gdtclft') diff --git a/graphics/gdtclft/Makefile b/graphics/gdtclft/Makefile new file mode 100644 index 000000000000..9e643efb4712 --- /dev/null +++ b/graphics/gdtclft/Makefile @@ -0,0 +1,28 @@ +# New ports collection makefile for: Gdtclft +# Date Created: 10 February 2000 +# Whom: Mikhail Teterin +# +# $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 + +PLIST_SUB!= ${MAKE} -f ${MAKEFILE} env diff --git a/graphics/gdtclft/distinfo b/graphics/gdtclft/distinfo new file mode 100644 index 000000000000..40afa7fb957a --- /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 000000000000..412f085aee93 --- /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 diff --git a/graphics/gdtclft/pkg-comment b/graphics/gdtclft/pkg-comment new file mode 100644 index 000000000000..02947077bab6 --- /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 000000000000..fadd2e94a1e8 --- /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 , it +seems. diff --git a/graphics/gdtclft/pkg-plist b/graphics/gdtclft/pkg-plist new file mode 100644 index 000000000000..88084b708f53 --- /dev/null +++ b/graphics/gdtclft/pkg-plist @@ -0,0 +1,4 @@ +%%DIR%%/pkgIndex.tcl +%%DIR%%/%%SHLIB_NAME%% +%%DIR%%/%%SHLIB_LINK%% +@dirrm %%DIR%% -- cgit v1.2.3