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.
42 lines
995 B
Makefile
42 lines
995 B
Makefile
# Created by: gahr
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= dbus-tcl
|
|
PORTVERSION= 2.1
|
|
CATEGORIES= devel
|
|
MASTER_SITES= SF/${PORTNAME}/dbus/${PORTVERSION}/
|
|
DISTNAME= dbus-${PORTVERSION}
|
|
|
|
MAINTAINER= tcltk@FreeBSD.org
|
|
COMMENT= Tcl interface to the D-Bus messaging system
|
|
|
|
LICENSE= ISCL
|
|
|
|
LIB_DEPENDS= libdbus-1.so:devel/dbus
|
|
BUILD_DEPENDS= dtplite:devel/tcllib
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
DOCSDIR= ${PREFIX}/share/doc/dbus
|
|
PORTDOCS= *
|
|
|
|
TEST_TARGET= do-test
|
|
|
|
USES= pkgconfig tcl:85+,tea
|
|
|
|
PLIST_FILES= lib/dbus/libdbus21.so.1 \
|
|
lib/dbus/pkgIndex.tcl \
|
|
man/mann/dbus.n.gz
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e '/^INSTALL_PROGRAM/s|$$| -s|' \
|
|
${WRKSRC}/Makefile.in
|
|
|
|
do-test:
|
|
DBUS=$$(${LOCALBASE}/bin/dbus-daemon --session --print-address --fork --print-pid); \
|
|
DBUS_ADDR=$$(echo $$DBUS | ${AWK} '{print $$1}'); \
|
|
DBUS_PID=$$(echo $$DBUS | ${AWK} '{print $$2}'); \
|
|
DBUS_ENV=DBUS_SESSION_BUS_ADDRESS=$$DBUS_ADDR; \
|
|
${SETENV} ${MAKE_ENV} $$DBUS_ENV ${MAKE} -C ${WRKSRC} test; \
|
|
kill $$DBUS_PID
|
|
|
|
.include <bsd.port.mk>
|