diff options
author | drochner <drochner> | 2004-06-22 18:38:46 +0000 |
---|---|---|
committer | drochner <drochner> | 2004-06-22 18:38:46 +0000 |
commit | b2bc4f25d31381d915ef0000a9e5121967408b2f (patch) | |
tree | 6880b62d87c3f2c55050a50d3084bd786581dff3 /lang/libtcl-nothread/Makefile | |
parent | 93832d0762df50db984f22aa65cb6658461f29ef (diff) | |
download | pkgsrc-b2bc4f25d31381d915ef0000a9e5121967408b2f.tar.gz |
add a non-threaded libtcl.so, for embedding into non-threaded applications
Diffstat (limited to 'lang/libtcl-nothread/Makefile')
-rw-r--r-- | lang/libtcl-nothread/Makefile | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/lang/libtcl-nothread/Makefile b/lang/libtcl-nothread/Makefile new file mode 100644 index 00000000000..7604c2d1390 --- /dev/null +++ b/lang/libtcl-nothread/Makefile @@ -0,0 +1,47 @@ +# $NetBSD: Makefile,v 1.1.1.1 2004/06/22 18:38:46 drochner Exp $ +# + +DISTNAME= tcl8.4.6-src +PKGNAME= libtcl-nothread-8.4.6 +CATEGORIES= lang +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=tcl/} + +MAINTAINER= tech-pkg@NetBSD.org +HOMEPAGE= http://www.tcl.tk/ +COMMENT= TCL library for embedding + +DEPENDS+= tcl>=8.4.6nb5:../../lang/tcl + +WRKSRC= ${WRKDIR}/${DISTNAME:C/-src//}/unix +GNU_CONFIGURE= yes +MAKE_ENV+= TOUCH="${TOUCH}" +MAKE_ENV+= NOTHREAD_SUFX=-nothread + +USE_BUILDLINK3= yes +USE_LIBTOOL= yes + +TCLLIB= libtcl84-nothread.la +ALL_TARGET= ${TCLLIB} + +# Add ${VIEWBASE}/lib/tcl to the list of locations for Tcl packages. +CONFIGURE_ENV+= TCL_PACKAGE_PATH="${VIEWBASE}/lib/tcl" + +.include "../../mk/bsd.prefs.mk" + +# NetBSD-1.5.x-m68k platforms apparently have a compiler optimization bug +# tickled by the Tcl code that manifests in code generation problems. +# +.if (${MACHINE_PLATFORM:MNetBSD-1.5*-m68k} != "") +CONFIGURE_ENV+= COMPILER_OPTIMIZATION_BUG=YES +.endif + +post-configure: + ${SED} 's|tcl84|tcl84-nothread|g' <${WRKSRC}/tclConfig.sh \ + >${WRKSRC}/tclConfig-nothread.sh + +do-install: + cd ${WRKSRC} && \ + ${LIBTOOL} --mode=install ${INSTALL_DATA} ${TCLLIB} ${PREFIX}/lib; \ + ${INSTALL_DATA} tclConfig-nothread.sh ${PREFIX}/lib + +.include "../../mk/bsd.pkg.mk" |