diff options
author | Mikhail Teterin <mi@FreeBSD.org> | 2006-05-17 20:35:55 +0000 |
---|---|---|
committer | Mikhail Teterin <mi@FreeBSD.org> | 2006-05-17 20:35:55 +0000 |
commit | ddb5a7b884735b58415ebdc7736d2bbbb70aa0c7 (patch) | |
tree | b4025948ba0158a02bf41683dc1c945669897f4f /x11-toolkits/itk/files | |
parent | 3b866d3c349efaa7b818dccb50371f64bf9a2bed (diff) |
Update the itcl/itk from 3.2 to 3.3 (released in April 2005). The
installed libraries are now named libitcl.so.3 & libitk.so.3 instead
of having the version be part of the libname (libitcl33.so.1). The
itclConfig.sh and itkConfig.sh are now also installed, which is required
by some software (such as the insight -- a gdb frontend).
Fix-up the (unchanged) iwidgets port to reflect the above and improve it
to not require its own copy of the itcl tree at install time.
Approved by: maintainer
Fix-up the tkdesk port to reflect the itcl/itk changes, which required
updating it to the 2.0p2 (from 2.0). (This lovely piece of software
badly needs a caring maintainer, BTW.) While here, teach tkdesk to use
installed blt instead of building its own.
The only iwidget/itk/itcl consumer that remains broken is net/smm++ (a
MUD client). This should change as soon as the maintainer get back to
me.
Notes
Notes:
svn path=/head/; revision=162683
Diffstat (limited to 'x11-toolkits/itk/files')
-rw-r--r-- | x11-toolkits/itk/files/Makefile.lib | 22 | ||||
-rw-r--r-- | x11-toolkits/itk/files/patch-nointerptest | 21 | ||||
-rw-r--r-- | x11-toolkits/itk/files/patch-nostubs | 33 |
3 files changed, 34 insertions, 42 deletions
diff --git a/x11-toolkits/itk/files/Makefile.lib b/x11-toolkits/itk/files/Makefile.lib index 76b29b587f18..bc527310ac85 100644 --- a/x11-toolkits/itk/files/Makefile.lib +++ b/x11-toolkits/itk/files/Makefile.lib @@ -1,5 +1,5 @@ NOPROFILE= yes -LIB= itk${MAJOR}${MINOR} +LIB= itk ITK_LIBRARY= ${PREFIX}/lib/itk${MAJOR}.${MINOR} CFLAGS+= -I. -I./../generic \ -I${PREFIX}/include/tcl8.4/generic \ @@ -14,27 +14,31 @@ CFLAGS+= -I. -I./../generic \ -DHAVE_SYS_FILIO_H=1 \ -DRETSIGTYPE=void \ -DITK_LIBRARY=\"${ITK_LIBRARY}\" -LDADD+= -L${PREFIX}/lib -litcl${MAJOR}${MINOR} -L${X11BASE}/lib -lX11 -ltk84 +LDADD+= -L${PREFIX}/lib -litcl -L${X11BASE}/lib -lX11 -ltk84 .PATH: ${.CURDIR}/generic -SRCS= itk_cmds.c itk_option.c itk_archetype.c itk_util.c +SRCS= itk_cmds.c itk_option.c itk_archetype.c itk_util.c itkStubInit.c SCRIPTDIR= lib/itk${MAJOR}.${MINOR} SCRIPTPATH= ${PREFIX}/${SCRIPTDIR} LIBDIR= ${PREFIX}/lib INCDIR= ${PREFIX}/include/itk${MAJOR}.${MINOR} -pkgIndex.tcl: ${.CURDIR}/pkgIndex.tcl.in - sed -e "s#@RELPATH@#..#" -e "s#@VERSION@#${MAJOR}.${MINOR}#" \ - -e "s#@itcl_LIB_FILE@#${SHLIB_NAME}#" \ - < ${.CURDIR}/pkgIndex.tcl.in > pkgIndex.tcl +pkgIndex.tcl: pkgIndex.tcl.in + sed -e 's#"@PKG_LIB_FILE@"#.. ${SHLIB_NAME}#' -e "s#@PACKAGE_VERSION@#${MAJOR}.${MINOR}#" \ + < $> > $@ + +itkConfig.sh: itkConfig.sh.in + sed -e 's#@itk_LIB_FILE@#${SHLIB_NAME}#g' -e 's#@itk_LIB_SPEC@#-L${LIBDIR} -litk#' \ + -e 's,@ITK_BUILD_LIB_SPEC@,-L${LIBDIR} -litk,' \ + < $> > $@ ${SCRIPTPATH} ${INCDIR}: mkdir -p ${.TARGET} -beforeinstall: pkgIndex.tcl ${SCRIPTPATH} ${INCDIR} - ${BSD_INSTALL_DATA} pkgIndex.tcl ${.CURDIR}/library/* ${SCRIPTPATH} +beforeinstall: pkgIndex.tcl itkConfig.sh ${SCRIPTPATH} ${INCDIR} + ${BSD_INSTALL_DATA} pkgIndex.tcl itkConfig.sh ${.CURDIR}/library/* ${SCRIPTPATH} ${BSD_INSTALL_DATA} ${.CURDIR}/generic/*.h ${INCDIR} ${BSD_INSTALL_MAN} ${.CURDIR}/doc/*.n ${PREFIX}/man/mann/ diff --git a/x11-toolkits/itk/files/patch-nointerptest b/x11-toolkits/itk/files/patch-nointerptest new file mode 100644 index 000000000000..c02bd7c4cd8d --- /dev/null +++ b/x11-toolkits/itk/files/patch-nointerptest @@ -0,0 +1,21 @@ +--- tests/interp.test Wed Sep 22 05:37:08 2004 ++++ tests/interp.test Tue May 16 16:27:54 2006 +@@ -32,11 +32,11 @@ + } {::itk {}} + +-test interp-1.2 {can't load [incr Tk] into a safe interp} { +- interp create -safe slave +- load "" Itcl slave +- set result [list [catch {load "" Itk slave} msg] $msg] +- interp delete slave +- set result +-} {1 {can't use package in a safe interpreter: no Itk_SafeInit procedure}} ++# test interp-1.2 {can't load [incr Tk] into a safe interp} { ++# interp create -safe slave ++# load "" Itcl slave ++# set result [list [catch {load "" Itk slave} msg] $msg] ++# interp delete slave ++# set result ++#} {1 {can't use package in a safe interpreter: no Itk_SafeInit procedure}} + + test interp-1.3 {errors are okay when slave interp is deleted} { diff --git a/x11-toolkits/itk/files/patch-nostubs b/x11-toolkits/itk/files/patch-nostubs deleted file mode 100644 index 69d42b75f408..000000000000 --- a/x11-toolkits/itk/files/patch-nostubs +++ /dev/null @@ -1,33 +0,0 @@ ---- generic/itk_cmds.c.orig Fri Jun 22 04:38:54 2001 -+++ generic/itk_cmds.c Sun Mar 13 21:46:16 2005 -@@ -111,12 +111,14 @@ - { - Tcl_Namespace *itkNs, *parserNs; - ClientData parserInfo; -+ #ifdef USE_ITK_STUBS - extern ItkStubs itkStubs; -+ #endif - -- if (Tcl_InitStubs(interp, "8.1", 0) == NULL) { -+ if (Tcl_InitStubs(interp, TCL_VERSION, 0) == NULL) { - return TCL_ERROR; - }; -- if (Tk_InitStubs(interp, "8.1", 0) == NULL) { -+ if (Tk_InitStubs(interp, TK_VERSION, 0) == NULL) { - return TCL_ERROR; - }; - if (Itcl_InitStubs(interp, ITCL_VERSION, 1) == NULL) { -@@ -209,7 +211,12 @@ - * end-of-the-line? - */ - if (Tcl_PkgProvideEx(interp, "Itk", ITCL_VERSION, -- (ClientData) &itkStubs) != TCL_OK) { -+#ifdef USE_ITK_STUBS -+ (ClientData) &itkStubs -+#else -+ (ClientData) NULL -+#endif -+ ) != TCL_OK) { - return TCL_ERROR; - } - return TCL_OK; |