Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Feb 2000 23:33:57 -0500 (EST)
From:      Mikhail Teterin <mi@kot.ne.mediaone.net>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        ellson@lucent.com
Subject:   ports/16648: Gdtclft port (TCL interface to Gd)
Message-ID:  <200002110433.XAA92264@rtfm.newton>

next in thread | raw e-mail | index | archive | help

>Number:         16648
>Category:       ports
>Synopsis:       Gdtclft port (TCL interface to Gd)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 10 20:40:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Mikhail Teterin
>Release:        FreeBSD 3.4-STABLE i386
>Organization:
Virtual Estates, Inc.
>Environment:

>Description:

	This is the TCL interface to the Gd library.

	I  kind  of dislike  ``configure'',  and  our TCL8  port
	continues  to  install  bogus  tclConfig.sh  (which  the
	software's configure  tries to use),  so I wrote  my own
	Makefile (files/Makefile.bsd).

	I chose not  to use tclstubs and had to  fix gdCmd.c for
	it (see patches/patch-aa).

	When the latest TCL changes, only the top-level Makefile
	of this port will have to be modified.

>How-To-Repeat:

>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	gdtclft
#	gdtclft/files
#	gdtclft/files/Makefile.bsd
#	gdtclft/files/md5
#	gdtclft/patches
#	gdtclft/patches/patch-aa
#	gdtclft/pkg
#	gdtclft/pkg/COMMENT
#	gdtclft/pkg/DESCR
#	gdtclft/pkg/PLIST
#	gdtclft/Makefile
#
echo c - gdtclft
mkdir -p gdtclft > /dev/null 2>&1
echo c - gdtclft/files
mkdir -p gdtclft/files > /dev/null 2>&1
echo x - gdtclft/files/Makefile.bsd
sed 's/^X//' >gdtclft/files/Makefile.bsd << 'END-of-gdtclft/files/Makefile.bsd'
XPACKAGE		= Gdtclft
XVERSION		= 2.2
XLIB		= ${PACKAGE}2
XSHLIB_MAJOR	= 2
XSHLIB_MINOR	= 1
X
XSRCS		= gdhandle.c gdCmd.c
X
XPREFIX		?=/usr/local
XTCL_VER		?=8.2
X
XLDADD		= -L${PREFIX}/lib -lgd -lttf -lpng -lz -lm
X
XCFLAGS		+=-I${PREFIX}/include/tcl${TCL_VER} -I${PREFIX}/include/gd
XCFLAGS		+=-DNDEBUG -Wall -I. -DUSE_TCL_STUBS -I${PREFIX}/include
XCFLAGS		+=-DVERSION=\"${VERSION}\"
X
XMANn		= gdtclft.n
XINTERNALLIB	= don't build the useless static version
X
Xall: ${SHLIB_NAME} pkgIndex.tcl
X
XpkgIndex.tcl:
X	echo 'package ifneeded $(PACKAGE) $(VERSION) [list load [file join $$dir $(SHLIB_NAME)] $(PACKAGE)]' > pkgIndex.tcl
X
XDIR		= lib/tcl${TCL_VER}/gdtclft
XSHLIBDIR	= ${PREFIX}/${DIR}
XMANDIR		= ${PREFIX}/man/man
X
X${SHLIBDIR}:
X	${MKDIR} ${SHLIBDIR}
X
Xenv:
X	@${ECHO} SHLIB_NAME=${SHLIB_NAME} SHLIB_LINK=${SHLIB_LINK} DIR=${DIR}
X
Xbeforeinstall: ${SHLIBDIR}
X	${INSTALL_DATA} pkgIndex.tcl ${SHLIBDIR}
X
X.include <bsd.lib.mk>
END-of-gdtclft/files/Makefile.bsd
echo x - gdtclft/files/md5
sed 's/^X//' >gdtclft/files/md5 << 'END-of-gdtclft/files/md5'
XMD5 (Gdtclft2.2.1.tar.gz) = 2875f6599c18745ec7a5a314bfe83329
END-of-gdtclft/files/md5
echo c - gdtclft/patches
mkdir -p gdtclft/patches > /dev/null 2>&1
echo x - gdtclft/patches/patch-aa
sed 's/^X//' >gdtclft/patches/patch-aa << 'END-of-gdtclft/patches/patch-aa'
X--- gdCmd.c.orig	Fri Dec 17 11:06:27 1999
X+++ gdCmd.c	Thu Feb 10 22:25:31 2000
X@@ -1184,3 +1184,3 @@
X #else
X-	if (Tcl_Required(interp, TCL_VERSION, 0) == NULL) {
X+	if (Tcl_PkgRequire(interp, "Tcl", TCL_VERSION, 0) == NULL) {
X 		return TCL_ERROR;
END-of-gdtclft/patches/patch-aa
echo c - gdtclft/pkg
mkdir -p gdtclft/pkg > /dev/null 2>&1
echo x - gdtclft/pkg/COMMENT
sed 's/^X//' >gdtclft/pkg/COMMENT << 'END-of-gdtclft/pkg/COMMENT'
XA TCL interface to the Thomas Boutell's Gd library
END-of-gdtclft/pkg/COMMENT
echo x - gdtclft/pkg/DESCR
sed 's/^X//' >gdtclft/pkg/DESCR << 'END-of-gdtclft/pkg/DESCR'
XSpencer Thomas said about the original TCL GD: 
X
X	Thomas  Boutell's Gd  package  provides a  convenient way  to
X	generate PNG images with a C program. If you, like me, prefer
X	Tcl for CGI applications, you'll want my TCL GD extension.
X
XThe software  is now maintained  by John Ellson  <ellson@lucent.com>, it
Xseems.
END-of-gdtclft/pkg/DESCR
echo x - gdtclft/pkg/PLIST
sed 's/^X//' >gdtclft/pkg/PLIST << 'END-of-gdtclft/pkg/PLIST'
X%%DIR%%/pkgIndex.tcl
X%%DIR%%/%%SHLIB_NAME%%
X%%DIR%%/%%SHLIB_LINK%%
X@dirrm %%DIR%%
END-of-gdtclft/pkg/PLIST
echo x - gdtclft/Makefile
sed 's/^X//' >gdtclft/Makefile << 'END-of-gdtclft/Makefile'
X# New ports collection makefile for:	Gdtclft
X# Version required:	2.2.1
X# Date Created:		10 February 2000
X# Whom:			Mikhail Teterin <mi@aldan.algebra.com>
X#
X# $FreeBSD$
X#
X
XDISTNAME=	Gdtclft2.2.1
XPKGNAME=	Gdtclft-2.2.1
XCATEGORIES=	graphics tcl82
XMASTER_SITES=	ftp://ftp.graphviz.org/pub/
X
XMAINTAINER=	mi@aldan.algebra.com
X
XLIB_DEPENDS=	tcl82.1:${PORTSDIR}/lang/tcl82 \
X		gd:${PORTSDIR}/graphics/gd
X
XMAKEFILE=	${FILESDIR}/Makefile.bsd
XMAKE_ENV=	TCL_VER=8.2 MKDIR="${MKDIR}" INSTALL_DATA="${INSTALL_DATA}"
XALL_TARGET=	all
X
XMANN=		gdtclft.n
XMANCOMPRESSED=	maybe
X
X.include <bsd.port.mk>
X
XPLIST_SUB!=	${MAKE} -f ${MAKEFILE} env
END-of-gdtclft/Makefile
exit

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200002110433.XAA92264>