pkgsrc/lang/tcl/Makefile
adam 36aff7b87b Changes 8.4.12:
* Repeated [namespace import] of same command now permitted.
  * ${prefix}/share added to ::tcl_pkgPath on some systems.
  * [exec]'s >> redirection has improved append behavior.
  * [info globals] returned only existing variables.
  * Recognize some Solaris variations of the cp1251 encoding.
  * Addressed [file mkdir] race condition.
  * Support opening >2GB files on RHEL 3.
  * Corrections to $argv formatting when [encoding system] is multibyte.
  * http 2.5.2: Update URL encoding rules to RFC 3986.
  * Fixed issue in recursive file delete with NFS lock files.
  * Stopped crash after use of Tcl_TraceCommand().
  * Win NT/XP: support unicode console.
  * Improved support for Tclkit to set [encoding system].
  * Added Korean timezone abbreviations.
  * Windows: exit codes can now exceed -128..127 range.
  * [load] support on LynxOS.
  * Packages with incorrect index scripts now cause a warning to be logged.
        *** POTENTIAL INCOMPATIBILITY ***
  * [lsearch -regexp] now accepts backrefs in the RE.
  * [selection get] made compatible with OpenOffice.org.
  * Dialog support for widget names containing spaces.
  * Improved Tk window manager event interaction on OS X Aqua.
2006-01-16 14:47:35 +00:00

74 lines
2 KiB
Makefile

# $NetBSD: Makefile,v 1.57 2006/01/16 14:47:35 adam Exp $
DISTNAME= tcl${TCL_VERSION}-src
PKGNAME= tcl-${TCL_VERSION}
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=tcl/}
MAINTAINER= jwise@NetBSD.org
HOMEPAGE= http://www.tcl.tk/
COMMENT= Ousterhout's Tool Command Language, a scripting language
.include "../../lang/tcl/Makefile.version"
CONFLICTS+= tclman80-[0-9]*
PKG_INSTALLATION_TYPES= overwrite pkgviews
WRKSRC= ${WRKDIR}/tcl${TCL_VERSION}
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
CONFIGURE_DIRS= unix
BUILD_DIRS= ${CONFIGURE_DIRS}
MAKE_ENV+= TOUCH=${TOUCH:Q}
INSTALL_TARGET= install
# The test target gives better results when not run as root.
TEST_TARGET= test
TEST_ENV+= TZ=+0
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD"
.if empty(OS_VERSION:M1.[56]*)
CONFIGURE_ARGS+= --enable-threads
.else
CONFIGURE_ARGS+= --disable-threads
.endif
.endif
# Add ${VIEWBASE}/lib/tcl to the list of locations for Tcl packages.
CONFIGURE_ENV+= TCL_PACKAGE_PATH="${VIEWBASE}/lib/tcl"
.if ${OPSYS} == "NetBSD"
.if empty(OS_VERSION:M1.[56]*)
.include "../../mk/pthread.buildlink3.mk"
.endif
.endif
.if defined(ABI) && ${ABI} == "64"
CONFIGURE_ARGS+= --enable-64bit
.endif
SUBST_CLASSES+= tcl-config
SUBST_STAGE.tcl-config= post-build
SUBST_FILES.tcl-config= unix/tclConfig.sh
SUBST_SED.tcl-config+= -e "s|${WRKSRC}/unix|${PREFIX}/lib|"
SUBST_SED.tcl-config+= -e "s|${WRKSRC}|${PREFIX}/include/tcl|"
post-install:
cd ${PREFIX}/bin && ${LN} -s tclsh8.4 tclsh
${INSTALL_DATA_DIR} ${PREFIX}/include/tcl
${INSTALL_DATA_DIR} ${PREFIX}/include/tcl/unix
${INSTALL_DATA_DIR} ${PREFIX}/include/tcl/generic
${INSTALL_DATA} ${WRKSRC}/unix/tclUnixPort.h ${PREFIX}/include/tcl/unix
.for f in regex.h tcl.h tclCompile.h tclDecls.h tclIO.h \
tclInitScript.h tclInt.h tclIntDecls.h tclIntPlatDecls.h\
tclMath.h tclPlatDecls.h tclPort.h tclRegexp.h
${INSTALL_DATA} ${WRKSRC}/generic/${f} ${PREFIX}/include/tcl/generic
.endfor
${INSTALL_LIB_DIR} ${PREFIX}/lib/tcl
.include "../../mk/bsd.pkg.mk"