2016-06-01 16:36:20 +00:00
|
|
|
# Created by: gahr
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= tcl
|
2016-12-01 13:33:32 +00:00
|
|
|
PORTREVISION= 1
|
2016-11-04 16:19:01 +00:00
|
|
|
DISTVERSION= 8.7.a0.20161104
|
2016-06-01 16:36:20 +00:00
|
|
|
CATEGORIES= lang
|
|
|
|
MASTER_SITES= http://core.tcl.tk/tcl/tarball/
|
2016-06-06 12:06:40 +00:00
|
|
|
PKGNAMESUFFIX= ${PORTVERSION:R:R:S/.//}
|
2016-07-08 12:20:50 +00:00
|
|
|
DISTFILES= Tcl+Source+Code${EXTRACT_SUFX}?uuid=${FOSSIL_CHECKIN}
|
2016-06-01 16:36:20 +00:00
|
|
|
|
|
|
|
MAINTAINER= tcltk@FreeBSD.org
|
|
|
|
COMMENT= Tool Command Language
|
|
|
|
|
|
|
|
LICENSE= TclTk
|
|
|
|
LICENSE_NAME= Tcl/Tk License
|
|
|
|
LICENSE_FILE= ${WRKSRC}/../license.terms
|
|
|
|
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= TCLMAN TZDATA MODULES THREADS DEBUG
|
2016-12-01 13:33:32 +00:00
|
|
|
OPTIONS_DEFINE_amd64= DTRACE
|
2016-06-01 16:36:20 +00:00
|
|
|
OPTIONS_DEFAULT=MODULES THREADS
|
2016-12-01 13:33:32 +00:00
|
|
|
OPTIONS_DEFAULT_amd64= DTRACE
|
2016-06-01 16:36:20 +00:00
|
|
|
TCLMAN_DESC= Install Tcl function manpages
|
|
|
|
TZDATA_DESC= Install Tcl timezone data
|
|
|
|
MODULES_DESC= Install Tcl common modules
|
|
|
|
OPTIONS_SUB= yes
|
|
|
|
|
2016-12-01 13:33:32 +00:00
|
|
|
.if !exists(/usr/sbin/dtrace)
|
|
|
|
OPTIONS_EXCLUDE+= DTRACE
|
|
|
|
.endif
|
|
|
|
|
|
|
|
OPTIONS_EXCLUDE_FreeBSD_9+= DTRACE
|
|
|
|
OPTIONS_EXCLUDE_FreeBSD_10+= DTRACE
|
|
|
|
OPTIONS_EXCLUDE+= ${OPTIONS_EXCLUDE_${OPSYS}_${OSREL:R}}
|
|
|
|
|
2016-11-04 16:19:01 +00:00
|
|
|
FOSSIL_CHECKIN= 24d90770030948ca
|
2016-06-01 16:39:49 +00:00
|
|
|
|
2016-07-08 12:20:50 +00:00
|
|
|
PATCH_WRKSRC= ${WRKDIR}/Tcl_Source_Code
|
2016-06-01 16:36:20 +00:00
|
|
|
WRKSRC= ${PATCH_WRKSRC}/unix
|
|
|
|
|
|
|
|
ALL_TARGET= all
|
|
|
|
INSTALL_TARGET= install-strip install-libraries
|
|
|
|
TEST_TARGET= test-tcl
|
|
|
|
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --enable-shared \
|
|
|
|
--enable-man-suffix=.${MAN_SUFFIX} \
|
2016-06-23 09:09:59 +00:00
|
|
|
--includedir=${PREFIX}/include/tcl${TCL_VER} \
|
|
|
|
--enable-symbols
|
2016-06-01 16:36:20 +00:00
|
|
|
CONFIGURE_ENV= PORTSDIR=${PORTSDIR}
|
|
|
|
|
2016-06-06 12:06:40 +00:00
|
|
|
TCL_VER= ${PORTVERSION:R:R}
|
2016-06-01 16:36:20 +00:00
|
|
|
MAN_SUFFIX= ${PKGBASE}
|
|
|
|
|
|
|
|
MAKE_ENV= SHORT_TCL_VER=${PKGNAMESUFFIX} \
|
|
|
|
MAN_SUFFIX=.${MAN_SUFFIX} \
|
|
|
|
LANG=C LC_ALL=C # LANG=C is required for some of UTF-using tests
|
|
|
|
|
|
|
|
PLIST_SUB= TCL_VER=${TCL_VER} \
|
|
|
|
PKGNAMESUFFIX=${PKGNAMESUFFIX}
|
|
|
|
|
|
|
|
TCLMAN_INSTALL_TARGET= install-doc
|
|
|
|
TZDATA_INSTALL_TARGET= install-tzdata
|
|
|
|
MODULES_INSTALL_TARGET= install-modules
|
|
|
|
THREADS_CONFIGURE_ENABLE= threads
|
|
|
|
DEBUG_CONFIGURE_ENABLE= symbols
|
2016-12-01 13:33:32 +00:00
|
|
|
DTRACE_CONFIGURE_ENABLE= dtrace
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MDTRACE}
|
|
|
|
PLIST_SUB+= DTRACE=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= DTRACE="@comment "
|
|
|
|
.endif
|
2016-06-01 16:36:20 +00: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}|' \
|
|
|
|
${PATCH_WRKSRC}/unix/tclConfig.sh.in
|
|
|
|
|
|
|
|
post-patch-TCLMAN-off:
|
|
|
|
@${FIND} ${PATCH_WRKSRC}/pkgs -name Makefile.in | ${XARGS} ${REINPLACE_CMD} \
|
|
|
|
-e '/^install:/s|install-doc||'
|
|
|
|
|
|
|
|
post-configure:
|
|
|
|
${REINPLACE_CMD} \
|
|
|
|
-e 's,-DNO_MEMMOVE=1,,' -e 's,-DNO_STRING_H=1,,' \
|
|
|
|
-e 's,^COMPAT_OBJS.*,,' ${WRKSRC}/Makefile
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|