pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/tcl-itcl-current As with tcl and tk, patch the it...
details: https://anonhg.NetBSD.org/pkgsrc/rev/ba3b8dfc9c0c
branches: trunk
changeset: 492484:ba3b8dfc9c0c
user: jschauma <jschauma%pkgsrc.org@localhost>
date: Wed Apr 13 20:06:24 2005 +0000
description:
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:
lang/tcl-itcl-current/Makefile | 13 +++++++++++--
lang/tcl-itcl-current/buildlink3.mk | 6 +++++-
2 files changed, 16 insertions(+), 3 deletions(-)
diffs (54 lines):
diff -r 0b37c352e266 -r ba3b8dfc9c0c lang/tcl-itcl-current/Makefile
--- a/lang/tcl-itcl-current/Makefile Wed Apr 13 19:23:56 2005 +0000
+++ b/lang/tcl-itcl-current/Makefile Wed Apr 13 20:06:24 2005 +0000
@@ -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 @@
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 @@
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 -r 0b37c352e266 -r ba3b8dfc9c0c lang/tcl-itcl-current/buildlink3.mk
--- a/lang/tcl-itcl-current/buildlink3.mk Wed Apr 13 19:23:56 2005 +0000
+++ b/lang/tcl-itcl-current/buildlink3.mk Wed Apr 13 20:06:24 2005 +0000
@@ -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 @@
.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"
Home |
Main Index |
Thread Index |
Old Index