freebsd-ports/devel/tcl-signal/Makefile
Pietro Cerutti 4e23c21fc1 Add "tea" argument to USES=tcl to facilitate porting of TEA-based extensions.
Quoting https://tcl.tk/doc/tea:

"The Tcl Extension Architecture, or TEA, by John Ousterhout and others, is a
set of guidelines and techniques for the distribution, configuration,
compilation, and installation of Tcl extensions. TEA also provides a set of
utilities that operate accordingly. Many Tcl extensions leverage the TEA
utilities, which are designed to be easily customizable."

To facilitate the porting of TEA-based extensions, I have added the new "tea"
argument to USES=tcl. This argument prepares the autoconf environment by
setting GNU_CONFIGURE and sets some commonly used CONFIGURE_ARGS. Also, it
tries to figure out the correct extension name, sets TCL_PKG accordingly, and
adds it to PLIST_SUB.

I have modified a few ports to take advantage of this. More will come.
2016-04-19 14:20:01 +00:00

30 lines
824 B
Makefile

# Created by: gahr
# $FreeBSD$
PORTNAME= tcl-signal
PORTVERSION= 1.4.0.1
CATEGORIES= devel
MASTER_SITES= http://www.nyx.net/~mschwart/
DISTNAME= signal_ext${PORTVERSION:R:R}
MAINTAINER= tcltk@FreeBSD.org
COMMENT= Dynamically loadable signal handling for Tcl/Tk scripts
USES+= tcl:tea
ALL_TARGET= signal.so
CONFIGURE_ENV+= TCL_INC_DIR=${TCL_INCLUDEDIR}
PLIST_FILES= lib/signal/signal.so \
lib/signal/pkgIndex.tcl
post-patch:
${REINPLACE_CMD} -e 's|\.\./lib||' ${WRKSRC}/${CONFIGURE_SCRIPT}
${REINPLACE_CMD} -e 's|mkdir|${MKDIR}|; s|@TCL_PACKAGE_PATH@|@TCL_PREFIX@/lib|g' ${WRKSRC}/Makefile.in
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/signal
${INSTALL_DATA} ${WRKSRC}/signal.so ${STAGEDIR}${PREFIX}/lib/signal
${INSTALL_DATA} ${WRKSRC}/pkgIndex.tcl ${STAGEDIR}${PREFIX}/lib/signal
.include <bsd.port.mk>