2012-09-30 08:25:19 +02:00
|
|
|
# Created by: Martin Matuska <mm@FreeBSD.org>
|
2007-01-29 04:06:56 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2013-02-06 16:25:57 +01:00
|
|
|
PORTNAME= tcl
|
2016-02-16 10:06:55 +01:00
|
|
|
PORTVERSION= 8.5.19
|
2016-11-04 16:15:36 +01:00
|
|
|
PORTREVISION= 1
|
2007-01-29 04:06:56 +01:00
|
|
|
CATEGORIES= lang
|
2015-05-14 12:15:04 +02:00
|
|
|
MASTER_SITES= TCLTK/tcl8_5 \
|
2013-09-18 23:01:43 +02:00
|
|
|
SF/tcl/Tcl/${PORTVERSION}
|
2016-02-16 10:06:55 +01:00
|
|
|
PKGNAMESUFFIX= ${SHORT_TCL_VER}
|
2014-02-03 10:25:40 +01:00
|
|
|
DISTNAME= ${PORTNAME}${PORTVERSION}-src
|
2007-01-29 04:06:56 +01:00
|
|
|
|
2012-11-26 19:16:57 +01:00
|
|
|
MAINTAINER= tcltk@FreeBSD.org
|
2013-02-06 16:25:57 +01:00
|
|
|
COMMENT= Tool Command Language
|
2007-01-29 04:06:56 +01:00
|
|
|
|
2014-02-03 10:25:40 +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
|
2011-03-23 12:37:49 +01:00
|
|
|
|
2013-02-06 16:25:57 +01:00
|
|
|
OPTIONS_DEFINE= TCLMAN TZDATA MODULES THREADS
|
|
|
|
OPTIONS_DEFAULT=MODULES THREADS
|
|
|
|
TCLMAN_DESC= Install Tcl function manpages
|
|
|
|
TZDATA_DESC= Install Tcl timezone data
|
|
|
|
MODULES_DESC= Install Tcl common modules
|
2016-02-16 10:06:55 +01:00
|
|
|
OPTIONS_SUB= yes
|
2013-02-06 16:25:57 +01:00
|
|
|
|
2016-02-16 10:06:55 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//:S/rc1//}/unix
|
2007-04-30 14:52:29 +02:00
|
|
|
ALL_TARGET= all
|
2013-02-06 16:25:57 +01:00
|
|
|
INSTALL_TARGET= install install-libraries
|
2016-02-16 10:06:55 +01:00
|
|
|
TEST_TARGET= do-test
|
2013-02-06 16:25:57 +01:00
|
|
|
|
2007-01-29 04:06:56 +01:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
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}
|
2007-01-29 04:06:56 +01:00
|
|
|
CONFIGURE_ENV= PORTSDIR=${PORTSDIR}
|
2013-02-06 16:25:57 +01:00
|
|
|
|
2007-01-29 04:06:56 +01:00
|
|
|
TCL_VER= 8.5
|
2007-03-16 21:23:52 +01:00
|
|
|
SHORT_TCL_VER= ${TCL_VER:S/8./8/}
|
2016-02-16 10:06:55 +01:00
|
|
|
MAN_SUFFIX= ${PORTNAME}${SHORT_TCL_VER}
|
2007-01-29 04:06:56 +01:00
|
|
|
|
2013-02-06 16:25:57 +01:00
|
|
|
MAKE_ENV= SHORT_TCL_VER=${SHORT_TCL_VER} \
|
|
|
|
MAN_SUFFIX=.${MAN_SUFFIX} \
|
2016-02-16 10:06:55 +01:00
|
|
|
LANG=C LC_ALL=C
|
2007-01-29 04:06:56 +01:00
|
|
|
|
2013-02-06 16:25:57 +01:00
|
|
|
PLIST_SUB= TCL_VER=${TCL_VER} \
|
|
|
|
SHORT_TCL_VER=${SHORT_TCL_VER}
|
2007-01-29 04:06:56 +01:00
|
|
|
|
2016-02-16 10:06:55 +01:00
|
|
|
TCLMAN_VARS= INSTALL_TARGET+=install-doc
|
|
|
|
MODULES_VARS= INSTALL_TARGET+=install-tm
|
|
|
|
THREADS_CONFIGURE_ENABLE= threads
|
|
|
|
TZDATA_CONFIGURE_WITH= tzdata
|
2007-01-29 04:06:56 +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
|
|
|
|
|
2007-01-29 04:06:56 +01:00
|
|
|
post-configure:
|
|
|
|
${REINPLACE_CMD} \
|
|
|
|
-e 's,-DNO_MEMMOVE=1,,' -e 's,-DNO_STRING_H=1,,' \
|
|
|
|
-e 's,^COMPAT_OBJS.*,,' ${WRKSRC}/Makefile
|
2009-02-26 15:19:53 +01:00
|
|
|
|
2016-02-16 10:06:55 +01:00
|
|
|
do-test:
|
|
|
|
${SETENV} ${MAKE_ENV} ${MAKE} -C ${WRKSRC} test
|
2007-01-29 04:06:56 +01:00
|
|
|
|
2013-02-06 16:25:57 +01:00
|
|
|
.include <bsd.port.mk>
|