diff options
author | swills <swills@FreeBSD.org> | 2016-12-01 21:32:54 +0800 |
---|---|---|
committer | swills <swills@FreeBSD.org> | 2016-12-01 21:32:54 +0800 |
commit | 18093e78302977c75062c330227118fa855cc3f5 (patch) | |
tree | 850744411f987c5ade37d0d89dd47a25b4156663 /lang | |
parent | c30683746d5d94c06720f60b72e0bfe42b3b791c (diff) | |
download | freebsd-ports-gnome-18093e78302977c75062c330227118fa855cc3f5.tar.gz freebsd-ports-gnome-18093e78302977c75062c330227118fa855cc3f5.tar.zst freebsd-ports-gnome-18093e78302977c75062c330227118fa855cc3f5.zip |
lang/tcl86: enable DTRACE option by default where possible
PR: 214794
Approved by: gahr
Diffstat (limited to 'lang')
-rw-r--r-- | lang/tcl86/Makefile | 19 | ||||
-rw-r--r-- | lang/tcl86/pkg-plist | 2 |
2 files changed, 20 insertions, 1 deletions
diff --git a/lang/tcl86/Makefile b/lang/tcl86/Makefile index b4b5ad4592a1..7c303cc359fd 100644 --- a/lang/tcl86/Makefile +++ b/lang/tcl86/Makefile @@ -3,7 +3,7 @@ PORTNAME= tcl PORTVERSION= 8.6.6 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= lang MASTER_SITES= SF/tcl/Tcl/${PORTVERSION} \ TCLTK/tcl8_6 @@ -19,12 +19,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}} + PATCH_WRKSRC= ${WRKDIR}/${PORTNAME}${PORTVERSION} WRKSRC= ${WRKDIR}/${PORTNAME}${PORTVERSION}/unix @@ -55,9 +65,16 @@ 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 \ 's|@TCL_BUILD_LIB_SPEC@|@TCL_LIB_SPEC@|; \ diff --git a/lang/tcl86/pkg-plist b/lang/tcl86/pkg-plist index 39c0966ea4aa..7866f5eb7cb9 100644 --- a/lang/tcl86/pkg-plist +++ b/lang/tcl86/pkg-plist @@ -31,6 +31,7 @@ include/tcl%%TCL_VER%%/generic/tclTomMathDecls.h include/tcl%%TCL_VER%%/generic/tommath.h include/tcl%%TCL_VER%%/unix/tclUnixPort.h include/tcl%%TCL_VER%%/unix/tclUnixThrd.h +%%DTRACE%%include/tcl%%TCL_VER%%/unix/tclDTrace.h include/tcl%%TCL_VER%%/tcl.h include/tcl%%TCL_VER%%/tclDecls.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 |