2013-09-20 21:53:09 +02:00
|
|
|
# Created by: jkh
|
1999-08-25 08:35:40 +02:00
|
|
|
# $FreeBSD$
|
1997-09-12 19:16:28 +02:00
|
|
|
|
2000-04-12 08:21:15 +02:00
|
|
|
PORTNAME= tclX
|
2014-08-01 23:09:00 +02:00
|
|
|
PORTVERSION= 8.4.1
|
2008-04-09 15:42:26 +02:00
|
|
|
CATEGORIES= lang tcl devel
|
2014-08-01 23:09:00 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME:tl}/TclX/${PORTVERSION}
|
2001-10-24 05:18:59 +02:00
|
|
|
DISTNAME= tclx${PORTVERSION}
|
1997-09-12 19:16:28 +02:00
|
|
|
|
2001-03-16 21:11:53 +01:00
|
|
|
MAINTAINER= mi@aldan.algebra.com
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Extended TCL
|
1997-09-12 19:16:28 +02:00
|
|
|
|
2014-02-14 16:33:04 +01:00
|
|
|
LICENSE= TclTk
|
|
|
|
LICENSE_NAME= Tcl/Tk License
|
|
|
|
LICENSE_FILE= ${WRKSRC}/license.terms
|
2014-08-22 09:20:30 +02:00
|
|
|
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
2014-02-14 16:33:04 +01:00
|
|
|
|
2014-08-01 23:09:00 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME:tl}${PORTVERSION:R}
|
2001-03-16 21:11:53 +01:00
|
|
|
|
Add "tea" argument to USES=tcl to facilitate porting of TEA-based extensions.
Quoting https://tcl.tk/doc/tea:
"The Tcl Extension Architecture, or TEA, by John Ousterhout and others, is a
set of guidelines and techniques for the distribution, configuration,
compilation, and installation of Tcl extensions. TEA also provides a set of
utilities that operate accordingly. Many Tcl extensions leverage the TEA
utilities, which are designed to be easily customizable."
To facilitate the porting of TEA-based extensions, I have added the new "tea"
argument to USES=tcl. This argument prepares the autoconf environment by
setting GNU_CONFIGURE and sets some commonly used CONFIGURE_ARGS. Also, it
tries to figure out the correct extension name, sets TCL_PKG accordingly, and
adds it to PLIST_SUB.
I have modified a few ports to take advantage of this. More will come.
2016-04-19 16:20:01 +02:00
|
|
|
USES= autoreconf alias tcl:tea tar:bzip2
|
2014-08-01 23:09:00 +02:00
|
|
|
USE_LDCONFIG= ${PREFIX}/lib/tclx${PORTVERSION:R}
|
Add "tea" argument to USES=tcl to facilitate porting of TEA-based extensions.
Quoting https://tcl.tk/doc/tea:
"The Tcl Extension Architecture, or TEA, by John Ousterhout and others, is a
set of guidelines and techniques for the distribution, configuration,
compilation, and installation of Tcl extensions. TEA also provides a set of
utilities that operate accordingly. Many Tcl extensions leverage the TEA
utilities, which are designed to be easily customizable."
To facilitate the porting of TEA-based extensions, I have added the new "tea"
argument to USES=tcl. This argument prepares the autoconf environment by
setting GNU_CONFIGURE and sets some commonly used CONFIGURE_ARGS. Also, it
tries to figure out the correct extension name, sets TCL_PKG accordingly, and
adds it to PLIST_SUB.
I have modified a few ports to take advantage of this. More will come.
2016-04-19 16:20:01 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-shared \
|
|
|
|
--with-help=Help
|
2014-08-01 23:09:00 +02:00
|
|
|
PLIST_SUB= TCLX_VER=${PORTVERSION:R}
|
2009-11-27 08:34:35 +01:00
|
|
|
ALL_TARGET= binaries libraries
|
2005-07-19 01:58:37 +02:00
|
|
|
INSTALL_TARGET= install-binaries install-libraries
|
2018-03-29 12:32:21 +02:00
|
|
|
LLD_UNSAFE= yes
|
2001-03-16 21:11:53 +01:00
|
|
|
|
2007-03-26 19:11:37 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2009-11-27 08:34:35 +01:00
|
|
|
.if ${TCL_VER} > 8.4
|
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/tcl85-test-patch
|
2009-11-30 02:47:22 +01:00
|
|
|
.endif
|
2014-08-02 02:39:42 +02:00
|
|
|
.if ${TCL_VER} > 8.5
|
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/tcl86-test-patch
|
|
|
|
.endif
|
2009-11-27 08:34:35 +01:00
|
|
|
|
2006-06-28 01:23:20 +02:00
|
|
|
post-configure:
|
2014-08-02 02:39:42 +02:00
|
|
|
# Disabling the failing help.test
|
|
|
|
${MV} ${WRKSRC}/tests/help.test ${WRKSRC}/tests/help.test.dis
|
1997-09-12 19:16:28 +02:00
|
|
|
|
2014-02-14 16:33:04 +01:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/TclX.n ${STAGEDIR}${PREFIX}/man/mann
|
|
|
|
.for l in CmdWrite Handles Keylist ObjCmdWrite TclXInit
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${l}.3 ${STAGEDIR}${PREFIX}/man/man3
|
|
|
|
.endfor
|
|
|
|
${LN} -s CmdWrite.3.gz ${STAGEDIR}${PREFIX}/man/man3/TclCommandWriting.3.gz
|
|
|
|
${LN} -s KeyList.3.gz ${STAGEDIR}${PREFIX}/man/man3/TclX_NewKeyedListObj.3.gz
|
|
|
|
.for l in Delete Get GetKeys Set TclX_Main TclX_NewKeyedListObj
|
|
|
|
${LN} -s KeyList.3.gz ${STAGEDIR}${PREFIX}/man/man3/TclX_KeyedList${l}.3.gz
|
|
|
|
.endfor
|
|
|
|
.for l in Alloc Free TblInit TblRelease TblUseCount Walk Xlate
|
|
|
|
${LN} -s Handles.3.gz ${STAGEDIR}${PREFIX}/man/man3/TclX_Handle${l}.3.gz
|
|
|
|
.endfor
|
|
|
|
.for l in Tclxcmd_Init TclX_Main Tkx_Init TkX_Main
|
|
|
|
${LN} -s TclXInit.3.gz ${STAGEDIR}${PREFIX}/man/man3/${l}.3.gz
|
|
|
|
.endfor
|
|
|
|
|
2014-08-01 23:09:00 +02:00
|
|
|
regression-test test: build
|
2014-02-14 16:33:04 +01:00
|
|
|
${SETENV} ${MAKE_ENV} ${MAKE} -C ${WRKSRC} test
|
2005-07-19 05:46:27 +02:00
|
|
|
|
2007-03-26 19:11:37 +02:00
|
|
|
.include <bsd.port.post.mk>
|