1 # $NetBSD: Makefile,v 1.70 2012/11/07 14:30:48 he Exp $
3 DISTNAME
= tcl
${TCL_VERSION}-src
4 PKGNAME
= tcl-
${TCL_VERSION}
6 MASTER_SITES
= ${MASTER_SITE_SOURCEFORGE
:=tcl
/}
8 MAINTAINER
= pkgsrc-users@NetBSD.org
9 HOMEPAGE
= http
://www.tcl.tk
/
10 COMMENT
= Tool Command Language
, a dynamic language
13 .
include "../../lang/tcl/Makefile.version"
15 WRKSRC
= ${WRKDIR}/tcl
${TCL_VERSION}
19 BUILD_DIRS
= ${CONFIGURE_DIRS}
21 CONFIGURE_ARGS
+= --prefix=${PREFIX}
22 INSTALL_TARGET
= install
24 # The test target gives better results when not run as root.
29 # This is needed for SGI and maybe sun (according to tcl developers)
30 .if defined
(ABI
) && ${ABI} == "64"
31 CONFIGURE_ARGS
+= --enable-64bit
34 SUBST_CLASSES
+= tcl-config
35 SUBST_STAGE.tcl-config
= post-build
36 SUBST_FILES.tcl-config
= unix
/tclConfig.sh
37 SUBST_SED.tcl-config
+= -e
"s|${WRKSRC}/unix|${PREFIX}/lib|"
38 SUBST_SED.tcl-config
+= -e
"s|${WRKSRC}|${PREFIX}/include/tcl|"
40 PLIST_SUBST
+= SONUM
=${TCL_SONUM}
41 PLIST_SUBST
+= BASEVER
=${TCL_BASEVER}
43 .
include "../../mk/bsd.pkg.mk"