1997-09-12 19:16:28 +02:00
|
|
|
# New ports collection makefile for: tclX
|
|
|
|
# Date created: 6 February 1996
|
|
|
|
# Whom: 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
|
2006-06-28 01:23:20 +02:00
|
|
|
PORTVERSION= 8.4
|
2009-11-27 08:35:40 +01:00
|
|
|
PORTREVISION= 3
|
2008-04-09 15:42:26 +02:00
|
|
|
CATEGORIES= lang tcl devel
|
2009-08-22 02:24:37 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME:L}/TclX/${PORTVERSION}.0
|
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
|
|
|
|
2006-06-28 01:23:20 +02:00
|
|
|
USE_BZIP2= yes
|
2009-12-08 07:15:34 +01:00
|
|
|
USE_TCL= 83+
|
2001-03-16 21:11:53 +01:00
|
|
|
|
2007-03-26 19:11:37 +02:00
|
|
|
USE_LDCONFIG= yes
|
1997-09-12 19:16:28 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2007-03-26 19:11:37 +02:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${TCL_INCLUDEDIR}/unix\
|
|
|
|
-I${TCL_INCLUDEDIR}/generic"
|
|
|
|
CONFIGURE_ARGS= --enable-shared \
|
2001-10-24 05:18:59 +02:00
|
|
|
--with-help=Help \
|
2007-03-26 19:11:37 +02:00
|
|
|
--with-tcl="${TCL_LIBDIR}"
|
2006-06-28 01:23:20 +02:00
|
|
|
PLIST_SUB= TCLX_VER=${PORTVERSION}
|
2009-04-21 09:52:35 +02:00
|
|
|
MAKE_JOBS_SAFE= yes
|
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
|
2001-03-16 21:11:53 +01:00
|
|
|
|
2009-11-27 08:34:35 +01:00
|
|
|
check test regression-check:
|
|
|
|
#
|
|
|
|
# Define TCLX_NO_SELF_TESTS to disable automatic
|
|
|
|
# running of TclX' checks after building
|
|
|
|
#
|
|
|
|
${SETENV} ${MAKE_ENV} ${MAKE} -C ${WRKSRC} test
|
|
|
|
|
|
|
|
.ifndef TCLX_NO_SELF_TESTS
|
|
|
|
post-build: test
|
|
|
|
.endif
|
|
|
|
|
2007-03-26 19:11:37 +02:00
|
|
|
MAN3= CmdWrite.3 Handles.3 Keylist.3 ObjCmdWrite.3 TclXInit.3
|
2005-07-19 01:58:37 +02:00
|
|
|
MANN= TclX.n
|
|
|
|
|
|
|
|
MLINKS= CmdWrite.3 TclCommandWriting.3 \
|
|
|
|
Keylist.3 TclX_NewKeyedListObj.3
|
|
|
|
.for l in Delete Get GetKeys Set TclX_Main TclX_NewKeyedListObj
|
2005-07-19 05:46:27 +02:00
|
|
|
MLINKS+= Keylist.3 TclX_KeyedList$l.3
|
2005-07-19 01:58:37 +02:00
|
|
|
.endfor
|
|
|
|
.for l in Alloc Free TblInit TblRelease TblUseCount Walk Xlate
|
|
|
|
MLINKS+= Handles.3 TclX_Handle$l.3
|
|
|
|
.endfor
|
|
|
|
.for l in Tclxcmd_Init TclX_Main Tkx_Init TkX_Main
|
|
|
|
MLINKS+= TclXInit.3 $l.3
|
|
|
|
.endfor
|
1998-10-11 21:51:36 +02: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
|
|
|
PLIST_SUB+= BELOW_85='@comment '
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= BELOW_85=''
|
|
|
|
.endif
|
|
|
|
.if ${TCL_VER} > 8.3
|
|
|
|
PLIST_SUB+= ABOVE_83=''
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= ABOVE_83='@comment '
|
2009-11-27 08:34:35 +01:00
|
|
|
.endif
|
|
|
|
|
2007-03-26 19:11:37 +02:00
|
|
|
pre-configure:
|
|
|
|
.if exists(${TCL_LIBDIR}/tclConfig-threads.sh)
|
|
|
|
${REINPLACE_CMD} -e 's|tclConfig.sh|tclConfig-threads.sh|' \
|
|
|
|
${WRKSRC}/${CONFIGURE_SCRIPT}
|
|
|
|
.endif
|
|
|
|
${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' \
|
|
|
|
${WRKSRC}/${CONFIGURE_SCRIPT}
|
|
|
|
|
2006-06-28 01:23:20 +02:00
|
|
|
post-configure:
|
|
|
|
${REINPLACE_CMD} -e \
|
2007-03-26 19:11:37 +02:00
|
|
|
's,^TCLSH_PROG.*,TCLSH_PROG=${TCLSH},' \
|
2006-06-28 01:23:20 +02:00
|
|
|
-e 's,TCL_LIBRARY=.*,\\,' ${WRKSRC}/Makefile
|
|
|
|
# Disabling the failing help.test
|
2007-03-26 19:11:37 +02:00
|
|
|
${MV} ${WRKSRC}/tests/help.test ${WRKSRC}/tests/help.test.dis
|
1997-09-12 19:16:28 +02:00
|
|
|
|
2006-06-28 01:23:20 +02:00
|
|
|
pre-su-install:
|
|
|
|
cd ${WRKSRC}/doc && ${INSTALL_MAN} ${MAN3} ${PREFIX}/man/man3
|
|
|
|
cd ${WRKSRC}/doc && ${INSTALL_MAN} ${MANN} ${PREFIX}/man/mann
|
2005-07-19 05:46:27 +02:00
|
|
|
|
2007-03-26 19:11:37 +02:00
|
|
|
.include <bsd.port.post.mk>
|
2009-04-21 09:52:35 +02:00
|
|
|
|
|
|
|
.ifndef(NOPORTDOCS) && exists(${MANPREFIX}/man/mann/Tcl.n.gz)
|
|
|
|
ALL_TARGET+= doc
|
|
|
|
INSTALL_TARGET+=install-help
|
|
|
|
.else
|
|
|
|
PLIST_SUB:= ${PLIST_SUB:NPORTDOCS=*} PORTDOCS='@comment '
|
|
|
|
.endif
|