2012-09-30 08:25:19 +02:00
|
|
|
# Created by: jkh
|
1999-08-25 08:35:40 +02:00
|
|
|
# $FreeBSD$
|
1997-08-20 12:33:43 +02:00
|
|
|
|
2000-04-12 08:21:15 +02:00
|
|
|
PORTNAME= tcl
|
2013-09-20 09:43:51 +02:00
|
|
|
PORTVERSION= 8.4.20
|
2013-07-08 16:31:35 +02:00
|
|
|
PORTREVISION= 1
|
2004-03-06 19:03:56 +01:00
|
|
|
PORTEPOCH= 1
|
2008-04-09 15:42:26 +02:00
|
|
|
CATEGORIES= lang tcl
|
2013-06-04 12:37:25 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_TCLTK} \
|
|
|
|
SF/tcl/Tcl/${PORTVERSION}
|
|
|
|
MASTER_SITE_SUBDIR= tcl8_4
|
2013-09-20 09:43:51 +02:00
|
|
|
PKGNAMESUFFIX= ${PORTVERSION:R:S/.//}
|
|
|
|
DISTNAME= ${PORTNAME}${PORTVERSION}-src
|
1997-08-20 12:33:43 +02:00
|
|
|
|
2012-11-26 19:16:57 +01:00
|
|
|
MAINTAINER= tcltk@FreeBSD.org
|
2013-02-07 09:29:38 +01:00
|
|
|
COMMENT= Tool Command Language
|
1997-08-20 12:33:43 +02:00
|
|
|
|
2011-03-23 12:37:49 +01:00
|
|
|
LICENSE= BSD
|
|
|
|
|
2013-02-06 16:25:57 +01:00
|
|
|
OPTIONS_DEFINE= TCLMAN THREADS
|
|
|
|
OPTIONS_DEFAULT=THREADS
|
|
|
|
TCLMAN_DESC= Install Tcl function manpages
|
|
|
|
|
2002-03-07 08:01:40 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}${PORTVERSION}/unix
|
2013-02-06 16:25:57 +01:00
|
|
|
|
|
|
|
ALL_TARGET= all
|
|
|
|
INSTALL_TARGET= install install-libraries
|
|
|
|
|
2006-08-15 02:29:13 +02:00
|
|
|
USE_LDCONFIG= yes
|
1997-08-20 12:33:43 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2013-02-06 16:25:57 +01:00
|
|
|
CONFIGURE_ARGS= --enable-shared \
|
|
|
|
--enable-man-suffix=.${MAN_SUFFIX} \
|
|
|
|
--includedir=${PREFIX}/include/tcl${TCL_VER}
|
2001-01-16 18:33:20 +01:00
|
|
|
CONFIGURE_ENV= PORTSDIR=${PORTSDIR}
|
2013-02-06 16:25:57 +01:00
|
|
|
|
2001-11-24 05:18:46 +01:00
|
|
|
TCL_VER= 8.4
|
2007-03-20 11:39:05 +01:00
|
|
|
SHORT_TCL_VER= ${TCL_VER:S/8./8/}
|
2013-02-06 16:25:57 +01:00
|
|
|
MAN_SUFFIX= ${LATEST_LINK}
|
1999-09-05 18:32:10 +02:00
|
|
|
|
2013-02-06 16:25:57 +01:00
|
|
|
MAKE_ENV= SHORT_TCL_VER="${SHORT_TCL_VER}" \
|
|
|
|
MAN_SUFFIX=.${MAN_SUFFIX} \
|
|
|
|
LANG=C LC_ALL=C # LANG=C is required for some of UTF-using tests
|
2007-03-08 15:00:58 +01:00
|
|
|
|
2013-02-06 16:25:57 +01:00
|
|
|
PLIST_SUB= TCL_VER=${TCL_VER} \
|
|
|
|
SHORT_TCL_VER=${SHORT_TCL_VER}
|
2007-03-08 15:00:58 +01:00
|
|
|
|
2013-02-06 16:25:57 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2009-02-26 15:19:53 +01:00
|
|
|
|
2013-02-06 16:25:57 +01:00
|
|
|
.if ${PORT_OPTIONS:MTCLMAN}
|
|
|
|
INSTALL_TARGET+=install-doc
|
|
|
|
.include "${.CURDIR}/Makefile.man"
|
2009-02-26 15:19:53 +01:00
|
|
|
.endif
|
|
|
|
|
2013-02-06 16:25:57 +01:00
|
|
|
.if ${PORT_OPTIONS:MTHREADS}
|
2003-05-13 21:13:01 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-threads
|
2007-03-08 15:00:58 +01:00
|
|
|
.else
|
2007-03-20 11:39:05 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-threads
|
2004-08-17 07:00:53 +02:00
|
|
|
.endif
|
2003-02-23 13:33:36 +01:00
|
|
|
|
2013-04-18 10:20:59 +02:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e \
|
|
|
|
's|@TCL_BUILD_LIB_SPEC@|@TCL_LIB_SPEC@|; \
|
|
|
|
s|@TCL_BUILD_STUB_LIB_SPEC@|@TCL_STUB_LIB_SPEC@|; \
|
|
|
|
s|@TCL_BUILD_STUB_LIB_PATH@|@TCL_STUB_LIB_PATH@|; \
|
|
|
|
s|@TCL_SRC_DIR@|${PREFIX}/include/tcl${TCL_VER}|' \
|
|
|
|
${WRKSRC}/tclConfig.sh.in
|
|
|
|
|
2003-03-23 21:29:46 +01:00
|
|
|
post-configure:
|
2006-06-28 00:27:22 +02:00
|
|
|
${REINPLACE_CMD} \
|
|
|
|
-e 's,-DNO_MEMMOVE=1,,' -e 's,-DNO_STRING_H=1,,' \
|
|
|
|
-e 's,^COMPAT_OBJS.*,,' ${WRKSRC}/Makefile
|
2007-03-20 11:39:05 +01:00
|
|
|
|
2006-06-05 00:02:14 +02:00
|
|
|
regression-test: build
|
|
|
|
cd ${WRKSRC} && LC_ALL=C ${MAKE} test
|
1997-08-20 12:33:43 +02:00
|
|
|
|
2013-02-06 16:25:57 +01:00
|
|
|
.include <bsd.port.mk>
|