diff options
author | Pietro Cerutti <gahr@FreeBSD.org> | 2016-04-19 14:20:01 +0000 |
---|---|---|
committer | Pietro Cerutti <gahr@FreeBSD.org> | 2016-04-19 14:20:01 +0000 |
commit | 4e23c21fc178f53926a6fdce031c92cf22ece907 (patch) | |
tree | 14fe99943d56267ca815906c549d8a671245db05 /Mk/Uses/tcl.mk | |
parent | c1364a4b63589dc9afcb8aed2258c90b1fe957d6 (diff) | |
download | ports-4e23c21fc178f53926a6fdce031c92cf22ece907.tar.gz ports-4e23c21fc178f53926a6fdce031c92cf22ece907.zip |
Notes
Diffstat (limited to 'Mk/Uses/tcl.mk')
-rw-r--r-- | Mk/Uses/tcl.mk | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/Mk/Uses/tcl.mk b/Mk/Uses/tcl.mk index 27e14e9d48fd..d279b4715618 100644 --- a/Mk/Uses/tcl.mk +++ b/Mk/Uses/tcl.mk @@ -27,7 +27,7 @@ # # Usage: # -# USES+= PORT[:(VERSION|wrapper),build,run] +# USES+= PORT[:(VERSION|wrapper),build,run,tea] # # where PORT is one of: # @@ -53,6 +53,9 @@ # # Build-time / Run-time only dependencies can be specified with build or run. # +# Tea can be used for Tcl/Tk extensions that use the Tcl Extension Architecture +# [http://www.tcl.tk/doc/tea] and allows to set common autoconf parameters. +# # MAINTAINER: tcltk@FreeBSD.org .if ${USES:Mtk} || ${USES:Mtk\:*} @@ -200,6 +203,19 @@ RUN_DEPENDS+= ${_TCLTK_WRAPPER_PORT} LIB_DEPENDS+= ${_TCLTK_LIB_LINE} .endif +# Setup TEA stuff +.if ${tcl_ARGS:Mtea} +GNU_CONFIGURE= yes +TCL_PKG?= ${PORTNAME:C/^tcl(-?)//:C/(-?)tcl\$//}${PORTVERSION} +PLIST_SUB+= TCL_PKG=${TCL_PKG} +CONFIGURE_ARGS+=--exec-prefix=${PREFIX} \ + --with-tcl=${TCL_LIBDIR} \ + --with-tcl-includes=${TCL_INCLUDEDIR} +. if ${_TCLTK_PORT} == "tk" +CONFIGURE_ARGS+=--with-tk=${TK_LIBDIR} +. endif +.endif + .endif # defined(_INCLUDE_USES_TCL_MK) .undef _TCLTK_IGNORE |