diff options
author | jschauma <jschauma@pkgsrc.org> | 2005-04-13 20:06:24 +0000 |
---|---|---|
committer | jschauma <jschauma@pkgsrc.org> | 2005-04-13 20:06:24 +0000 |
commit | 57859769dc8ff41bc2829b5b368c71bb1c6e75b3 (patch) | |
tree | 1e602757dc391e066ccd066851105371b2c58f2d /lang | |
parent | 96cf0cd8fe248b5fef066c93ee94feb876d4797c (diff) | |
download | pkgsrc-57859769dc8ff41bc2829b5b368c71bb1c6e75b3.tar.gz |
As with tcl and tk, patch the itclConfig.sh file to contain the
proper directories etc.
While here, add a buildlink transformation to let packages to pass
-litk or -litcl and get -litk33 and -litcl33.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/tcl-itcl-current/Makefile | 13 | ||||
-rw-r--r-- | lang/tcl-itcl-current/buildlink3.mk | 6 |
2 files changed, 16 insertions, 3 deletions
diff --git a/lang/tcl-itcl-current/Makefile b/lang/tcl-itcl-current/Makefile index 9cab5fb42f3..20f84d7cbdc 100644 --- a/lang/tcl-itcl-current/Makefile +++ b/lang/tcl-itcl-current/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2005/04/11 21:46:17 tv Exp $ +# $NetBSD: Makefile,v 1.6 2005/04/13 20:06:24 jschauma Exp $ DISTNAME= tcl-itcl-20040920 PKGNAME= ${DISTNAME:S/itcl/itcl-current/} @@ -14,7 +14,8 @@ PKG_INSTALLATION_TYPES= overwrite pkgviews CONFLICTS+= tcl-itcl-[0-9]* -WRKSRC= ${WRKDIR}/tcl-itcl-3.3 +WRKSRC= ${WRKDIR}/tcl-itcl-${ITCL_VERS} +ITCL_VERS= 3.3 GNU_CONFIGURE= yes USE_LIBTOOL= yes CONFIGURE_ARGS= --with-tcl=${BUILDLINK_PREFIX.tcl}/lib \ @@ -23,6 +24,14 @@ CONFIGURE_ARGS= --with-tcl=${BUILDLINK_PREFIX.tcl}/lib \ MAKE_ENV+= TCL_HEADER_DIR=${BUILDLINK_PREFIX.tcl}/include/tcl +post-build: + ${SED} -e "s|^\(.*\)='\(.*\)'|\1=\"\2\"|" \ + -e "s|${WRKSRC}/itcl|${PREFIX}/lib/tcl/itcl${ITCL_VERS}|"\ + -e "s|${PREFIX}/lib/itcl${ITCL_VERS}|${PREFIX}/lib/tcl/itcl${ITCL_VERS}|"\ + -e "s|${WRKDIR}/${DISTNAME:C/-src//}|${PREFIX}|" \ + ${WRKSRC}/itcl/itclConfig.sh > ${WRKSRC}/itcl/itclConfig.sh.tmp &&\ + ${MV} ${WRKSRC}/itcl/itclConfig.sh.tmp ${WRKSRC}/itcl/itclConfig.sh + .include "../../lang/tcl/buildlink3.mk" .include "../../x11/tk/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/lang/tcl-itcl-current/buildlink3.mk b/lang/tcl-itcl-current/buildlink3.mk index 298f5d0b901..a8538597522 100644 --- a/lang/tcl-itcl-current/buildlink3.mk +++ b/lang/tcl-itcl-current/buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink3.mk,v 1.1.1.1 2004/09/24 21:16:02 dmcmahill Exp $ +# $NetBSD: buildlink3.mk,v 1.2 2005/04/13 20:06:24 jschauma Exp $ BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ TCL_ITCL_CURRENT_BUILDLINK3_MK:= ${TCL_ITCL_CURRENT_BUILDLINK3_MK}+ @@ -13,6 +13,10 @@ BUILDLINK_PACKAGES+= tcl-itcl-current .if !empty(TCL_ITCL_CURRENT_BUILDLINK3_MK:M+) BUILDLINK_DEPENDS.tcl-itcl-current+= tcl-itcl-current>=20040920 BUILDLINK_PKGSRCDIR.tcl-itcl-current?= ../../lang/tcl-itcl-current + +BUILDLINK_TRANSFORM+= l:itcl:itcl33 +BUILDLINK_TRANSFORM+= l:itk:itk33 + .endif # TCL_ITCL_CURRENT_BUILDLINK3_MK .include "../../lang/tcl/buildlink3.mk" |