aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorswills <swills@FreeBSD.org>2016-12-01 21:33:32 +0800
committerswills <swills@FreeBSD.org>2016-12-01 21:33:32 +0800
commite048deebd8bb9932c78e2c6c642a42a7eeb9bb95 (patch)
tree89164bb77b7dcc72c4bca47101c8d1044a6cc8d7 /lang
parent18093e78302977c75062c330227118fa855cc3f5 (diff)
downloadfreebsd-ports-gnome-e048deebd8bb9932c78e2c6c642a42a7eeb9bb95.tar.gz
freebsd-ports-gnome-e048deebd8bb9932c78e2c6c642a42a7eeb9bb95.tar.zst
freebsd-ports-gnome-e048deebd8bb9932c78e2c6c642a42a7eeb9bb95.zip
lang/tcl87: enable DTRACE option by default where possible
PR: 214794 Approved by: gahr
Diffstat (limited to 'lang')
-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