summaryrefslogtreecommitdiff
path: root/lang/tcl80/Makefile
blob: 1b94c73adbd9f64bbcb2cd199af1d151f737ceb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# $NetBSD: Makefile,v 1.18 1999/01/26 06:56:54 agc Exp $
# FreeBSD Id: Makefile,v 1.1.1.1 1997/08/20 10:33:35 jkh Exp
#

DISTNAME=		tcl8.0p2
PKGNAME=		tcl-8.0p2
CATEGORIES=		lang
MASTER_SITES=		ftp://ftp.scriptics.com/pub/tcl/tcl8_0/

MAINTAINER=		packages@netbsd.org
HOMEPAGE=		http://www.scriptics.com/

WRKSRC=			${WRKDIR}/tcl8.0/unix
GNU_CONFIGURE=		yes

# let libtool deal with shared libraries
USE_LIBTOOL=		yes
CONFIGURE_ARGS+=	--disable-shared

# If the build system supports shared objects, enable them in tcl.
# libtermcap was chosen as it doesn't change version numbers frequently.
.if exists(/usr/lib/libtermcap.so.0.0)
post-configure:
	@${ECHO} "Enabling shared object support in ${PKGNAME}"
	cd ${WRKSRC};							\
		${MV} tclConfig.sh tclConfig.sh.orig;			\
		${SED} -e 's/TCL_SHARED_BUILD=.*/TCL_SHARED_BUILD=1/'	\
			-e 's/TCL_LIB_FILE=.*/TCL_LIB_FILE=libtcl80.so.1.0/' \
			tclConfig.sh.orig > tclConfig.sh
.endif

test:
	cd ${WRKSRC} && ${SETENV} LIBTOOL=${LIBTOOL} PREFIX=${PREFIX} ${MAKE} test

.include "../../mk/bsd.pkg.mk"