head	1.12;
access;
symbols
	RELEASE_8_3_0:1.8
	RELEASE_9_0_0:1.7
	RELEASE_7_4_0:1.6
	RELEASE_8_2_0:1.6
	RELEASE_6_EOL:1.6
	RELEASE_8_1_0:1.6
	RELEASE_7_3_0:1.6
	RELEASE_8_0_0:1.6
	RELEASE_7_2_0:1.6
	RELEASE_7_1_0:1.5
	RELEASE_6_4_0:1.5
	RELEASE_5_EOL:1.5
	RELEASE_7_0_0:1.4
	RELEASE_6_3_0:1.4
	PRE_XORG_7:1.4;
locks; strict;
comment	@# @;


1.12
date	2012.12.04.13.59.40;	author svnexp;	state Exp;
branches;
next	1.11;

1.11
date	2012.11.26.18.25.55;	author svnexp;	state Exp;
branches;
next	1.10;

1.10
date	2012.11.17.05.58.57;	author svnexp;	state Exp;
branches;
next	1.9;

1.9
date	2012.08.03.22.57.36;	author mm;	state Exp;
branches;
next	1.8;

1.8
date	2012.02.13.11.36.23;	author mm;	state Exp;
branches;
next	1.7;

1.7
date	2011.03.23.11.37.47;	author mm;	state Exp;
branches;
next	1.6;

1.6
date	2009.02.23.14.46.32;	author mm;	state Exp;
branches;
next	1.5;

1.5
date	2008.04.09.13.42.11;	author pav;	state Exp;
branches;
next	1.4;

1.4
date	2007.04.12.15.32.55;	author mm;	state Exp;
branches;
next	1.3;

1.3
date	2007.04.05.13.19.03;	author mm;	state Exp;
branches;
next	1.2;

1.2
date	2007.04.02.22.56.11;	author pav;	state Exp;
branches;
next	1.1;

1.1
date	2007.03.27.10.52.18;	author miwi;	state Exp;
branches;
next	;


desc
@@


1.12
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/308232
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r308232 | gahr | 2012-12-04 10:43:09 +0000 (Tue, 04 Dec 2012) | 5 lines
## SVN ##
## SVN ## - Chase 82+ not being a valid Tcl/Tk version anymore
## SVN ##
## SVN ## Feature safe:	yes
## SVN ## Reported by:	beat, bapt
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@# Ports collection makefile for: tcl-wrapper
# Date created:			4 March 2007
# Whom:	      			Martin Matuska <mm@@FreeBSD.org>
#
# $FreeBSD: head/lang/tcl-wrapper/Makefile 308232 2012-12-04 10:43:09Z gahr $
#

PORTNAME=	wrapper
PORTVERSION=	1.1
PORTREVISION=	1
CATEGORIES=	lang tcl
MASTER_SITES=	# empty
PKGNAMEPREFIX=	${TX_PORT}-
DISTFILES=	# none
EXTRACT_ONLY=	# empty

MAINTAINER=	tcltk@@FreeBSD.org
COMMENT=	Shell wrapper for ${TX_SHELL} (${TX_PORT_U})

BUILD_DEPENDS=	shc:${PORTSDIR}/misc/shc

LICENSE=	BSD

SUB_FILES=	wrapper conf.sample pkg-message pkg-install pkg-deinstall

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
USE_TK_RUN=	83+
CATEGORIES=	x11-toolkits tk
.else
USE_TCL_RUN=	83+
.endif

TX_CONF=	${TX_SHELL}.conf
TX_CONF_FULL=	${PREFIX}/etc/${TX_CONF}

PLIST_FILES=	bin/${TX_SHELL} etc/${TX_CONF}.sample

.include <bsd.port.pre.mk>

.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" \
		TX_SHELL="${TX_SHELL}" TX_SHELL_U="${TX_SHELL:U}" \
		TX_PORT="${TX_PORT}" TX_PORT_U="${TX_PORT_U}" \
		TX_CAT="${TX_CAT}" TX_VER="${TX_VER}" TX_CONF="${TX_CONF}" \
		TX_CONF_FULL="${TX_CONF_FULL}"

do-build: apply-slist
	${MAKE_ENV} ${LOCALBASE}/bin/shc -r -T -f ${WRKDIR}/wrapper

do-install:
	${INSTALL_PROGRAM} ${WRKDIR}/wrapper.x ${PREFIX}/bin/${TX_SHELL}
	${INSTALL_DATA} ${WRKDIR}/conf.sample ${PREFIX}/etc/${TX_CONF}.sample

post-install:
	@@MD5SUM=`${MD5} -q ${WRKDIR}/conf.sample` && \
	${REINPLACE_CMD} -e "s|^MD5SUM=.*$$|MD5SUM=$${MD5SUM}|g" ${WRKDIR}/pkg-deinstall
	@@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
	@@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>
@


1.11
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 307793
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r307793 | bf | 2012-11-26 18:16:57 +0000 (Mon, 26 Nov 2012) | 5 lines
## SVN ##
## SVN ## consolidate under (lower-case) tcltk@@
## SVN ##
## SVN ## PR:		173753 , 173767
## SVN ## Feature safe:	yes
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d5 1
a5 1
# $FreeBSD: head/lang/tcl-wrapper/Makefile 307793 2012-11-26 18:16:57Z bf $
d39 1
a39 1
USE_TK_RUN=	82+
d42 1
a42 1
USE_TCL_RUN=	82+
@


1.10
log
@Switch exporter over
@
text
@d5 1
a5 1
# $FreeBSD: head/lang/tcl-wrapper/Makefile 301977 2012-08-03 22:57:36Z mm $
d17 1
a17 1
MAINTAINER=	ports@@FreeBSD.org
@


1.9
log
@SVN rev 301977 on 2012-08-03 22:57:36Z by mm

Release maintainership of Tcl/Tk ports back to pool.
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.8
log
@Don't require specific Tcl version for lang/tcl-wrapper

PR:		ports/164528
Submitted by:	Pierre DAVID <pdagog@@gmail.com>
@
text
@d17 1
a17 1
MAINTAINER=	mm@@FreeBSD.org
@


1.7
log
@- Add LICENSE information
- Make portlint happier
@
text
@d39 1
a39 1
USE_TK_RUN=	yes
d42 1
a42 1
USE_TCL_RUN=	yes
@


1.6
log
@- Change default Tcl/Tk version to 8.5
- Bump PORTVERSION of ports affected

Tested by:	pointyhat (pav)
@
text
@d22 2
@


1.5
log
@- Move from versioned tcl/tk CATEGORIES to simple tcl and tk categories

With hat:	portmgr
@
text
@d10 1
@


1.4
log
@- use shc to create binaries
- increase version to 1.1

Approved by:	garga (mentor)
@
text
@d10 1
a10 1
CATEGORIES=	lang tcl84
d37 1
a37 1
CATEGORIES=	x11-toolkits tk84
@


1.3
log
@- updated maintainer e-mail address

Approved by:	garga (mentor)
@
text
@d9 2
a10 2
PORTVERSION=	1.0
CATEGORIES=	lang tcl84 tk84
d19 1
a19 1
NO_BUILD=	yes
d37 1
d62 3
d66 1
a66 1
	${INSTALL_SCRIPT} ${WRKDIR}/wrapper ${PREFIX}/bin/${TX_SHELL}
@


1.2
log
@- Convert existing ports to a new bsd.tcl.mk order

PR:		ports/109097
Submitted by:	Martin Matuska <martin@@matuska.org>
Tested on:	pointyhat exp-run
@
text
@d3 1
a3 1
# Whom:	      			martin@@matuska.org
d16 1
a16 1
MAINTAINER=	martin@@matuska.org
@


1.1
log
@Tcl-wrapper installs a shell wrapper for the "tclsh" command that
comes with different versions of Tcl. Users can define in a configuration file
which version of the Tcl shell should be called.

- Martin Matuska
martin@@matuska.org

PR:		ports/110626
Submitted by:	martin at matuska.org
@
text
@d36 1
a36 1
USE_TK=		yes
d38 1
a38 1
USE_TCL=	yes
@

