summaryrefslogtreecommitdiff
path: root/lang/itcl
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1999-11-28 18:32:45 +0000
committerSteve Price <steve@FreeBSD.org>1999-11-28 18:32:45 +0000
commitbc087374d35aa9c841dd63d44e9c9697702921ed (patch)
tree9bfffecdf0e79fc2f3af0e2a2f1044536ad164ca /lang/itcl
parentgcc 2.95 requires us to be explicit about the return type of functions. (diff)
Update to use Tcl/Tk version 8.2.
Submitted by: Ade Lovett <ade@lovett.com>
Notes
Notes: svn path=/head/; revision=23474
Diffstat (limited to 'lang/itcl')
-rw-r--r--lang/itcl/Makefile9
-rw-r--r--lang/itcl/files/Makefile.lib2
-rw-r--r--lang/itcl/files/patch-ah11
-rw-r--r--lang/itcl/pkg-plist4
4 files changed, 18 insertions, 8 deletions
diff --git a/lang/itcl/Makefile b/lang/itcl/Makefile
index 441262072731..f97d3be040ad 100644
--- a/lang/itcl/Makefile
+++ b/lang/itcl/Makefile
@@ -13,11 +13,11 @@ MASTER_SITES= ftp://ftp.tcltk.com/pub/itcl/
MAINTAINER= dmlb@ragnet.demon.co.uk
-LIB_DEPENDS= tcl80.1:${PORTSDIR}/lang/tcl80
+LIB_DEPENDS= tcl82.1:${PORTSDIR}/lang/tcl82
WRKSRC= ${WRKDIR}/itcl3.0.1/itcl/unix
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --enable-shared --with-tcl=${PREFIX}/lib/tcl8.0
+CONFIGURE_ARGS= --enable-shared --with-tcl=${PREFIX}/lib/tcl8.2
CONFIGURE_ENV= PORTSDIR=${PORTSDIR} ITCL_LIB_FILE=${ITCL_LIB_FILE}
SHLIB_MAJOR= 1
@@ -32,11 +32,7 @@ MANN+= itcl.n itcl_class.n itcl_info.n itclvars.n local.n scope.n
.include <bsd.port.pre.mk>
-.if ${PORTOBJFORMAT} == "elf"
ITCL_LIB_FILE= ${ITCL_LIB}.${SHLIB_MAJOR}
-.else
-ITCL_LIB_FILE= ${ITCL_LIB}.${SHLIB_MAJOR}.${SHLIB_MINOR}
-.endif
post-configure:
@${CP} ${FILESDIR}/Makefile.lib ${WRKSRC}
@@ -48,6 +44,7 @@ pre-build:
TCL_PREFIX=${PREFIX}
post-install:
+ ${LN} -sf ${PREFIX}/bin/itclsh3.0 ${PREFIX}/bin/itclsh
${LN} -sf ${ITCL_LIB_FILE} ${PREFIX}/lib/${ITCL_LIB}
${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
diff --git a/lang/itcl/files/Makefile.lib b/lang/itcl/files/Makefile.lib
index 31ec14d6f3b6..0cdabb9d2199 100644
--- a/lang/itcl/files/Makefile.lib
+++ b/lang/itcl/files/Makefile.lib
@@ -2,7 +2,7 @@ NOPROFILE= yes
LIB= itcl30
ITCL_LIBRARY= ${PREFIX}/lib/itcl3.0
CFLAGS+= -I. -I./../generic \
- -I${TCL_PREFIX}/include/tcl8.0/generic \
+ -I${TCL_PREFIX}/include/tcl8.2/generic \
-DHAVE_GETCWD=1 -DNO_VALUES_H=1 -DHAVE_UNISTD_H=1 -DUSE_TERMIOS=1\
-DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1\
-DHAVE_TM_GMTOFF=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1\
diff --git a/lang/itcl/files/patch-ah b/lang/itcl/files/patch-ah
new file mode 100644
index 000000000000..aaea8c0f53cb
--- /dev/null
+++ b/lang/itcl/files/patch-ah
@@ -0,0 +1,11 @@
+--- ../generic/itcl_ensemble.c.orig Sat Aug 8 16:38:24 1998
++++ ../generic/itcl_ensemble.c Wed Nov 3 15:05:39 1999
+@@ -1626,7 +1626,7 @@
+ * another "ensemble" command. Use the current ensemble as
+ * the parent, and find or create an ensemble part within it.
+ */
+- ensName = TclGetStringFromObj(objv[1], (int*)NULL);
++ ensName = Tcl_GetStringFromObj(objv[1], (int*)NULL);
+
+ if (ensData) {
+ if (FindEnsemblePart(interp, ensData, ensName, &ensPart) != TCL_OK) {
diff --git a/lang/itcl/pkg-plist b/lang/itcl/pkg-plist
index 41b7956fb369..18bf49fe247d 100644
--- a/lang/itcl/pkg-plist
+++ b/lang/itcl/pkg-plist
@@ -1,8 +1,10 @@
bin/itclsh3.0
+@exec /bin/ln -s %D/%F %B/itclsh
+@unexec rm %B/itclsh
include/itcl3.0/generic/itcl.h
include/itcl3.0/generic/itclInt.h
include/itcl3.0/itcl.h
-lib/libitcl30.so.1.1
+lib/libitcl30.so.1
lib/libitcl30.so
lib/libitcl30.a
@exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %B