2013-09-20 21:53:09 +02:00
|
|
|
# Created by: Martin Matuska <mm@FreeBSD.org>
|
2007-03-27 12:52:18 +02:00
|
|
|
|
|
|
|
PORTNAME= wrapper
|
2007-04-12 17:32:55 +02:00
|
|
|
PORTVERSION= 1.1
|
2017-01-31 09:32:09 +01:00
|
|
|
PORTREVISION= 3
|
2008-04-09 15:42:26 +02:00
|
|
|
CATEGORIES= lang tcl
|
2007-03-27 12:52:18 +02:00
|
|
|
MASTER_SITES= # empty
|
|
|
|
PKGNAMEPREFIX= ${TX_PORT}-
|
|
|
|
DISTFILES= # none
|
|
|
|
EXTRACT_ONLY= # empty
|
|
|
|
|
2012-11-26 19:16:57 +01:00
|
|
|
MAINTAINER= tcltk@FreeBSD.org
|
2007-03-27 12:52:18 +02:00
|
|
|
COMMENT= Shell wrapper for ${TX_SHELL} (${TX_PORT_U})
|
|
|
|
|
2016-02-28 00:20:47 +01:00
|
|
|
LICENSE= BSD2CLAUSE
|
2011-03-23 12:37:49 +01:00
|
|
|
|
2016-04-01 16:08:37 +02:00
|
|
|
BUILD_DEPENDS= shc:misc/shc
|
2013-11-07 14:00:22 +01:00
|
|
|
|
|
|
|
SUB_FILES= wrapper conf.sample pkg-message
|
2007-03-27 12:52:18 +02:00
|
|
|
|
|
|
|
PKGINSTALL= ${WRKDIR}/pkg-install
|
|
|
|
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
|
|
|
|
|
|
|
|
TX_SHELL= tclsh
|
|
|
|
TX_PORT= tcl
|
|
|
|
TX_PORT_U= Tcl
|
|
|
|
TX_CAT= lang
|
|
|
|
|
|
|
|
.if defined(BUILDING_TK_WRAPPER)
|
|
|
|
TX_SHELL= wish
|
|
|
|
TX_PORT= tk
|
|
|
|
TX_PORT_U= Tk
|
|
|
|
TX_CAT= x11-toolkits
|
2013-11-07 14:00:22 +01:00
|
|
|
USES+= tk:run
|
2008-04-09 15:42:26 +02:00
|
|
|
CATEGORIES= x11-toolkits tk
|
2007-03-27 12:52:18 +02:00
|
|
|
.else
|
2013-11-07 14:00:22 +01:00
|
|
|
USES+= tcl:run
|
2007-03-27 12:52:18 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
TX_CONF= ${TX_SHELL}.conf
|
|
|
|
TX_CONF_FULL= ${PREFIX}/etc/${TX_CONF}
|
|
|
|
|
|
|
|
PLIST_FILES= bin/${TX_SHELL} etc/${TX_CONF}.sample
|
|
|
|
|
|
|
|
.if defined(TK_VER)
|
|
|
|
TX_VER=${TK_VER}
|
|
|
|
.else
|
|
|
|
TX_VER=${TCL_VER}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
SUB_LIST+= ECHO_CMD="${ECHO_CMD}" GREP="${GREP}" LS="${LS}" \
|
|
|
|
CP="${CP}" RM="${RM}" MD5="${MD5} -q" \
|
2014-05-05 11:45:36 +02:00
|
|
|
TX_SHELL="${TX_SHELL}" TX_SHELL_U="${TX_SHELL:tu}" \
|
2007-03-27 12:52:18 +02:00
|
|
|
TX_PORT="${TX_PORT}" TX_PORT_U="${TX_PORT_U}" \
|
|
|
|
TX_CAT="${TX_CAT}" TX_VER="${TX_VER}" TX_CONF="${TX_CONF}" \
|
2013-11-07 14:00:22 +01:00
|
|
|
TX_CONF_FULL="${TX_CONF_FULL:S/${STAGEDIR}//}"
|
2007-03-27 12:52:18 +02:00
|
|
|
|
2021-04-13 12:58:16 +02:00
|
|
|
do-build:
|
2017-01-31 09:32:09 +01:00
|
|
|
${MAKE_ENV} ${LOCALBASE}/bin/shc -r -f ${WRKDIR}/wrapper
|
2007-04-12 17:32:55 +02:00
|
|
|
|
2007-03-27 12:52:18 +02:00
|
|
|
do-install:
|
2013-11-07 14:00:22 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKDIR}/wrapper.x ${STAGEDIR}${PREFIX}/bin/${TX_SHELL}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/conf.sample ${STAGEDIR}${PREFIX}/etc/${TX_CONF}.sample
|
2007-03-27 12:52:18 +02:00
|
|
|
|
2013-11-07 14:00:22 +01:00
|
|
|
.include <bsd.port.mk>
|