aboutsummaryrefslogtreecommitdiff
path: root/lang/tcl87
diff options
context:
space:
mode:
authorSteve Wills <swills@FreeBSD.org>2016-12-01 13:33:32 +0000
committerSteve Wills <swills@FreeBSD.org>2016-12-01 13:33:32 +0000
commit2d5a843b6fd81f165960c831c1a6cab22468da3c (patch)
tree89164bb77b7dcc72c4bca47101c8d1044a6cc8d7 /lang/tcl87
parent31c1e673d709f5cfc873d3c15b9f5e34696d7945 (diff)
downloadports-2d5a843b6fd81f165960c831c1a6cab22468da3c.tar.gz
ports-2d5a843b6fd81f165960c831c1a6cab22468da3c.zip
Notes
Diffstat (limited to 'lang/tcl87')
-rw-r--r--lang/tcl87/Makefile20
-rw-r--r--lang/tcl87/pkg-plist2
2 files changed, 22 insertions, 0 deletions
diff --git a/lang/tcl87/Makefile b/lang/tcl87/Makefile
index 4d17e791b4dc..214479a53fef 100644
--- a/lang/tcl87/Makefile
+++ b/lang/tcl87/Makefile
@@ -2,6 +2,7 @@
# $FreeBSD$
PORTNAME= tcl
+PORTREVISION= 1
DISTVERSION= 8.7.a0.20161104
CATEGORIES= lang
MASTER_SITES= http://core.tcl.tk/tcl/tarball/
@@ -17,12 +18,22 @@ LICENSE_FILE= ${WRKSRC}/../license.terms
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
OPTIONS_DEFINE= TCLMAN TZDATA MODULES THREADS DEBUG
+OPTIONS_DEFINE_amd64= DTRACE
OPTIONS_DEFAULT=MODULES THREADS
+OPTIONS_DEFAULT_amd64= DTRACE
TCLMAN_DESC= Install Tcl function manpages
TZDATA_DESC= Install Tcl timezone data
MODULES_DESC= Install Tcl common modules
OPTIONS_SUB= yes
+.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}}
+
FOSSIL_CHECKIN= 24d90770030948ca
PATCH_WRKSRC= ${WRKDIR}/Tcl_Source_Code
@@ -55,6 +66,15 @@ TZDATA_INSTALL_TARGET= install-tzdata
MODULES_INSTALL_TARGET= install-modules
THREADS_CONFIGURE_ENABLE= threads
DEBUG_CONFIGURE_ENABLE= symbols
+DTRACE_CONFIGURE_ENABLE= dtrace
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDTRACE}
+PLIST_SUB+= DTRACE=""
+.else
+PLIST_SUB+= DTRACE="@comment "
+.endif
post-patch:
${REINPLACE_CMD} -e \
diff --git a/lang/tcl87/pkg-plist b/lang/tcl87/pkg-plist
index 9faa0dc74ad0..48e2c4caa857 100644
--- a/lang/tcl87/pkg-plist
+++ b/lang/tcl87/pkg-plist
@@ -31,6 +31,7 @@ include/tcl%%TCL_VER%%/generic/tclTomMathInt.h
include/tcl%%TCL_VER%%/generic/tommath.h
include/tcl%%TCL_VER%%/tcl.h
include/tcl%%TCL_VER%%/tclDecls.h
+%%DTRACE%%include/tcl%%TCL_VER%%/unix/tclDTrace.h
include/tcl%%TCL_VER%%/tclOO.h
include/tcl%%TCL_VER%%/tclOODecls.h
include/tcl%%TCL_VER%%/tclPlatDecls.h
@@ -261,6 +262,7 @@ lib/tcl%%TCL_VER%%/parray.tcl
lib/tcl%%TCL_VER%%/safe.tcl
lib/tcl%%TCL_VER%%/tclAppInit.c
lib/tcl%%TCL_VER%%/tclConfig.sh
+%%DTRACE%%lib/tcl%%TCL_VER%%/tclDTrace.d
lib/tcl%%TCL_VER%%/tclIndex
lib/tcl%%TCL_VER%%/tclooConfig.sh
lib/tcl%%TCL_VER%%/tm.tcl