diff options
author | jseger <jseger@FreeBSD.org> | 1999-04-06 06:41:35 +0800 |
---|---|---|
committer | jseger <jseger@FreeBSD.org> | 1999-04-06 06:41:35 +0800 |
commit | c29b22718bda20814c470e7408b8c7ec78b89a48 (patch) | |
tree | 492b2b6309299f73b9cc38600326c567c03b06bb /x11-toolkits/itk | |
parent | b02135b5ba78b317daa9fc9ddc5ec15f1514d15b (diff) | |
download | freebsd-ports-gnome-c29b22718bda20814c470e7408b8c7ec78b89a48.tar.gz freebsd-ports-gnome-c29b22718bda20814c470e7408b8c7ec78b89a48.tar.zst freebsd-ports-gnome-c29b22718bda20814c470e7408b8c7ec78b89a48.zip |
Import of itk v3.0.0
PR: ports/10960
Submitted by: Duncan Barclay <dmlb@ragnet.demon.co.uk>
Diffstat (limited to 'x11-toolkits/itk')
-rw-r--r-- | x11-toolkits/itk/Makefile | 54 | ||||
-rw-r--r-- | x11-toolkits/itk/distinfo | 1 | ||||
-rw-r--r-- | x11-toolkits/itk/files/Makefile.lib | 27 | ||||
-rw-r--r-- | x11-toolkits/itk/files/makefile | 8 | ||||
-rw-r--r-- | x11-toolkits/itk/files/patch-aa | 151 | ||||
-rw-r--r-- | x11-toolkits/itk/files/patch-ab | 75 | ||||
-rw-r--r-- | x11-toolkits/itk/pkg-comment | 1 | ||||
-rw-r--r-- | x11-toolkits/itk/pkg-descr | 7 | ||||
-rw-r--r-- | x11-toolkits/itk/pkg-plist | 19 |
9 files changed, 343 insertions, 0 deletions
diff --git a/x11-toolkits/itk/Makefile b/x11-toolkits/itk/Makefile new file mode 100644 index 000000000000..ce0beaaa45ce --- /dev/null +++ b/x11-toolkits/itk/Makefile @@ -0,0 +1,54 @@ +# New ports collection makefile for: itk +# Version required: 3.0.1 +# Date created: Aug 17 1996 +# Whom: chuckr +# +# $Id$ +# + +DISTNAME= itcl3.0.1 +PKGNAME= itk-3.0.1 +CATEGORIES= x11-toolkits tk80 +MASTER_SITES= ftp://ftp.tcltk.com/pub/itcl/ + +MAINTAINER= dmlb@ragnet.demon.co.uk + +LIB_DEPENDS= tk80.1:${PORTSDIR}/x11-toolkits/tk80 \ + itcl30.1:${PORTSDIR}/lang/itcl + +WRKSRC= ${WRKDIR}/itcl3.0.1/itk/unix +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --enable-shared --with-tcl=${PREFIX}/lib/tcl8.0 --with-itcl=${PREFIX}/lib/itcl3.0 --with-tk=${PREFIX}/lib/tk8.0 +CONFIGURE_ENV= PORTSDIR=${PORTSDIR} ITK_LIB_FILE=${ITK_LIB_FILE} + +SHLIB_MAJOR= 1 +SHLIB_MINOR= 1 +MAKEFILE= makefile +ITK_LIB= libitk30.so + +MANCOMPRESSED= yes +MAN1= itkwish.1 +MANN= Archetype.n Toplevel.n Widget.n itk.n itkvars.n usual.n + +.include <bsd.port.pre.mk> + +.if ${PORTOBJFORMAT} == "elf" +ITK_LIB_FILE= ${ITK_LIB}.${SHLIB_MAJOR} +.else +ITK_LIB_FILE= ${ITK_LIB}.${SHLIB_MAJOR}.${SHLIB_MINOR} +.endif + +post-configure: + @${CP} ${FILESDIR}/Makefile.lib ${WRKSRC} + @${CP} ${FILESDIR}/makefile ${WRKSRC} + +pre-build: + @cd ${WRKSRC} && ${MAKE} -f Makefile.lib PREFIX=${PREFIX} \ + SHLIB_MAJOR=${SHLIB_MAJOR} SHLIB_MINOR=${SHLIB_MINOR} \ + TCL_PREFIX=${PREFIX} ITCL_PREFIX=${PREFIX} TK_PREFIX=${PREFIX} + +post-install: + ${LN} -sf ${ITK_LIB_FILE} ${PREFIX}/lib/${ITK_LIB} + ${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib + +.include <bsd.port.post.mk> diff --git a/x11-toolkits/itk/distinfo b/x11-toolkits/itk/distinfo new file mode 100644 index 000000000000..882cd787f4df --- /dev/null +++ b/x11-toolkits/itk/distinfo @@ -0,0 +1 @@ +MD5 (itcl3.0.1.tar.gz) = 0cf1802a7ea69670503dc69c7951a015 diff --git a/x11-toolkits/itk/files/Makefile.lib b/x11-toolkits/itk/files/Makefile.lib new file mode 100644 index 000000000000..2eed56b86d2e --- /dev/null +++ b/x11-toolkits/itk/files/Makefile.lib @@ -0,0 +1,27 @@ +NOPROFILE= yes +LIB= itk30 +ITK_LIBRARY= ${PREFIX}/lib/itk3.0 +CFLAGS+= -I. -I./../generic \ + -I${TCL_PREFIX}/include/tcl8.0/generic \ + -I${ITCL_PREFIX}/include/itcl3.0/generic \ + -I${TK_PREFIX}/include/tk8.0/generic \ + -I/usr/X11R6/include \ + -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\ + -DNEED_MATHERR=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1\ + -DTCL_SHLIB_EXT=\".so\" \ + -DHAVE_SYS_FILIO_H=1 \ + -DRETSIGTYPE=void \ + -DITK_LIBRARY=\"${ITK_LIBRARY}\" \ + + +GENERIC_DIR= ../generic +UNIX_DIR= . + +SRCS= \ + $(GENERIC_DIR)/itk_cmds.c $(GENERIC_DIR)/itk_option.c \ + $(GENERIC_DIR)/itk_archetype.c $(GENERIC_DIR)/itk_util.c + + +.include <bsd.lib.mk> diff --git a/x11-toolkits/itk/files/makefile b/x11-toolkits/itk/files/makefile new file mode 100644 index 000000000000..aaa10a467a61 --- /dev/null +++ b/x11-toolkits/itk/files/makefile @@ -0,0 +1,8 @@ +all: + for f in ../generic/*.o; do ln -sf $$f; done + make -f Makefile itkwish +test: + make -f Makefile test +install: + make -f Makefile install + diff --git a/x11-toolkits/itk/files/patch-aa b/x11-toolkits/itk/files/patch-aa new file mode 100644 index 000000000000..78bb31d39d94 --- /dev/null +++ b/x11-toolkits/itk/files/patch-aa @@ -0,0 +1,151 @@ +--- Makefile.in.orig Wed Aug 12 06:01:40 1998 ++++ Makefile.in Mon Apr 5 18:23:56 1999 +@@ -55,7 +55,8 @@ + BIN_INSTALL_DIR = $(INSTALL_ROOT)$(exec_prefix)/bin + + # Directory in which to install the include file itk.h: +-INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/include ++INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/include/itk$(VERSION) ++GENERIC_INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/include/itk$(VERSION)/generic + + # Top-level directory for manual entries: + MAN_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/man +@@ -75,6 +76,9 @@ + # for this version of [incr Tk]: + TCL_SRC_DIR = @TCL_SRC_DIR@ + ++# Tcl include dir ++TCL_INC_DIR = @TCL_INC_DIR@ ++ + # The directory containing the Tcl library archive file appropriate + # for this version of [incr Tk]: + TCL_LIB_DIR = @TCL_LIB_DIR@ +@@ -89,6 +93,9 @@ + # for this version of [incr Tk]: + TK_SRC_DIR = @TK_SRC_DIR@ + ++# Tk include dir ++TK_INC_DIR = @TK_INC_DIR@ ++ + # The directory containing the Tk library archive file appropriate + # for this version of [incr Tk]: + TK_LIB_DIR = @TK_LIB_DIR@ +@@ -100,6 +107,9 @@ + # for this version of [incr Tk]: + ITCL_SRC_DIR = @ITCL_SRC_DIR@ + ++# ITcl include dir ++ITCL_INC_DIR = @ITCL_INC_DIR@ ++ + # The directory containing the [incr Tcl] library archive file appropriate + # for this version of [incr Tk]: + ITCL_LIB_DIR = @ITCL_LIB_DIR@ +@@ -155,7 +165,7 @@ + # "install" around; better to use the install-sh script that comes + # with the distribution, which is slower but guaranteed to work. + +-INSTALL = $(TOP_DIR)/../config/install-sh -c ++INSTALL = install -c + INSTALL_PROGRAM = ${INSTALL} + INSTALL_DATA = ${INSTALL} -m 644 + MKINSTALLDIRS = $(TOP_DIR)/../config/mkinstalldirs +@@ -199,8 +209,8 @@ + + CC = @CC@ + CC_SWITCHES = $(CFLAGS) $(SHLIB_CFLAGS) -I$(UNIX_DIR) -I$(GENERIC_DIR) \ +--I$(TCL_SRC_DIR)/generic -I$(ITCL_SRC_DIR)/generic \ +--I$(TK_SRC_DIR)/generic $(X11_INCLUDES) \ ++-I$(TCL_INC_DIR)/generic -I$(ITCL_INC_DIR)/generic \ ++-I$(TK_INC_DIR)/generic $(X11_INCLUDES) \ + $(AC_FLAGS) $(PROTO_FLAGS) $(MEM_DEBUG_FLAGS) $(KEYSYM_FLAGS) \ + -DITK_LIBRARY=\"$(ITK_LIBRARY)\" + +@@ -209,7 +219,7 @@ + SRCS = $(GENERIC_DIR)/itk_cmds.c $(GENERIC_DIR)/itk_option.c \ + $(GENERIC_DIR)/itk_archetype.c $(GENERIC_DIR)/itk_util.c + +-all: itkwish ++all: $(ITK_LIB_FILE) libitk30.a itkwish + + # The following target is configured by autoconf to generate either + # a shared library or non-shared library for [incr Tk]. +@@ -217,8 +227,14 @@ + @ITK_LIB_FILE@: ${OBJS} + rm -f $(ITK_LIB_FILE) + @MAKE_LIB@ ++ ln -sf $(ITK_LIB_FILE) libitk30.so + $(RANLIB) $(ITK_LIB_FILE) + ++libitk30.a: $(OBJS) ++ rm -f libitk30.a ++ ar cr libitk30.a $(OBJS) ++ ranlib libitk30.a ++ + itkwish: tkAppInit.o $(ITK_LIB_FILE) + $(CC) @LD_FLAGS@ tkAppInit.o @ITK_BUILD_LIB_SPEC@ \ + $(LIBS) $(LD_SEARCH_FLAGS) -o itkwish +@@ -239,21 +255,27 @@ + + install: install-binaries install-libraries install-man + +-install-binaries: $(ITK_LIB_FILE) itkwish ++install-binaries: $(ITK_LIB_FILE) libitk30.a itkwish + @$(MKINSTALLDIRS) $(LIB_INSTALL_DIR) $(BIN_INSTALL_DIR) + @echo "Installing $(ITK_LIB_FILE)" + @$(INSTALL_DATA) $(ITK_LIB_FILE) $(LIB_INSTALL_DIR) + @(cd $(LIB_INSTALL_DIR); $(RANLIB) $(ITK_LIB_FILE)) + @chmod 555 $(LIB_INSTALL_DIR)/$(ITK_LIB_FILE) ++ @echo "Installing libitk30.a" ++ @$(INSTALL_DATA) libitk30.a $(LIB_INSTALL_DIR)/libitk30.a ++ @(cd $(LIB_INSTALL_DIR); $(RANLIB) libitk30.a) ++ chmod 555 $(LIB_INSTALL_DIR)/libitk30.a + @echo "Installing itkwish" + $(INSTALL_PROGRAM) itkwish $(BIN_INSTALL_DIR)/itkwish$(VERSION) + @echo "Installing itkConfig.sh" +- @$(INSTALL_DATA) itkConfig.sh $(LIB_INSTALL_DIR)/itkConfig.sh ++ @mkdir -p $(SCRIPT_INSTALL_DIR) ++ @$(INSTALL_DATA) itkConfig.sh $(SCRIPT_INSTALL_DIR)/itkConfig.sh + + install-libraries: +- @$(MKINSTALLDIRS) $(INCLUDE_INSTALL_DIR) $(SCRIPT_INSTALL_DIR) ++ @$(MKINSTALLDIRS) $(INCLUDE_INSTALL_DIR) $(GENERIC_INCLUDE_INSTALL_DIR) $(SCRIPT_INSTALL_DIR) + @echo "Installing itk.h" +- @$(INSTALL_DATA) $(GENERIC_DIR)/itk.h $(INCLUDE_INSTALL_DIR) ++ @$(INSTALL_DATA) $(GENERIC_DIR)/itk.h $(GENERIC_INCLUDE_INSTALL_DIR) ++ @ln -sf $(GENERIC_INCLUDE_INSTALL_DIR)/itk.h $(INCLUDE_INSTALL_DIR)/itk.h + @for i in $(TOP_DIR)/library/*.* $(TOP_DIR)/library/tclIndex $(UNIX_DIR)/tkAppInit.c; \ + do \ + echo "Installing $$i"; \ +@@ -267,19 +289,26 @@ + @cd $(TOP_DIR)/doc; for i in *.1; \ + do \ + echo "Installing doc/$$i"; \ +- rm -f $(MAN1_INSTALL_DIR)/$$i; \ ++ rm -f $(MAN1_INSTALL_DIR)/$$i $(MAN1_INSTALL_DIR)/$$i.gz; \ + sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' \ +- $$i > $(MAN1_INSTALL_DIR)/$$i; \ +- chmod 444 $(MAN1_INSTALL_DIR)/$$i; \ ++ $$i | gzip -c > $(MAN1_INSTALL_DIR)/$$i.gz; \ ++ chmod 444 $(MAN1_INSTALL_DIR)/$$i.gz; \ + done; + @cd $(TOP_DIR)/doc; for i in *.n; \ + do \ + echo "Installing doc/$$i"; \ +- rm -f $(MANN_INSTALL_DIR)/$$i; \ ++ rm -f $(MANN_INSTALL_DIR)/$$i $(MANN_INSTALL_DIR)/$$i.gz; \ + sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' \ +- $$i > $(MANN_INSTALL_DIR)/$$i; \ +- chmod 444 $(MANN_INSTALL_DIR)/$$i; \ ++ $$i | gzip -c > $(MANN_INSTALL_DIR)/$$i.gz; \ ++ chmod 444 $(MANN_INSTALL_DIR)/$$i.gz; \ + done; ++ @echo "**********" ++ @echo "IMPORTANT:" ++ @echo "**********" ++ @echo "itkConfig.sh in $(SCRIPT_INSTALL_DIR)/itkConfig.sh" ++ @echo "itk.h in $(INCLUDE_INSTALL_DIR)/itk.h" ++ @echo "There are NOT default place, but good place to avoid" ++ @echo "conflicting with another version of [incr] Tcl/Tks." + + Makefile: $(UNIX_DIR)/Makefile.in + $(SHELL) config.status diff --git a/x11-toolkits/itk/files/patch-ab b/x11-toolkits/itk/files/patch-ab new file mode 100644 index 000000000000..0768183d39d8 --- /dev/null +++ b/x11-toolkits/itk/files/patch-ab @@ -0,0 +1,75 @@ +--- configure~ Mon Oct 19 21:14:57 1998 ++++ configure Fri Jan 15 18:41:16 1999 +@@ -877,15 +877,8 @@ + DL_LIBS=$TCL_DL_LIBS + LD_FLAGS=$TCL_LD_FLAGS + LD_SEARCH_FLAGS=$TCL_LD_SEARCH_FLAGS ++TCL_INC_DIR=${TCL_PREFIX}/include/tcl${TCL_VERSION} + +-#-------------------------------------------------------------------- +-# Make sure that we can find the Tcl sources, so we can include +-# the "tclInt.h" file. +-#-------------------------------------------------------------------- +- +-if test ! -d "$TCL_SRC_DIR"; then +- { echo "configure: error: Can't find Tcl source directory "$TCL_SRC_DIR". Itcl can't be built without this directory." 1>&2; exit 1; } +-fi + + #-------------------------------------------------------------------- + # See if there was a command-line option for where Tk is; if +@@ -915,6 +908,7 @@ + + file=$TK_LIB_DIR/tkConfig.sh + . $file ++TK_INC_DIR=${TK_PREFIX}/include/tk${TK_VERSION} + + #-------------------------------------------------------------------- + # See if there was a command-line option for where [incr Tcl] is. +@@ -936,6 +930,7 @@ + + file=$ITCL_LIB_DIR/itclConfig.sh + . $file ++ITCL_INC_DIR=${TCL_PREFIX}/include/itcl${ITCL_VERSION} + + #-------------------------------------------------------------------- + # If this is gcc, add some extra compile flags. +@@ -1065,13 +1060,13 @@ + { echo "configure: error: Tcl was not built with --enable-shared" 1>&2; exit 1; } + fi + SHLIB_CFLAGS="${SHLIB_CFLAGS}" +- eval "ITK_LIB_FILE=libitk${VERSION}${SHLIB_SUFFIX}" ++ eval "ITK_LIB_FILE=${ITK_LIB_FILE}" + ITK_PKG_FILE="[file join [file dirname \$dir] ${ITK_LIB_FILE}]" + MAKE_LIB="\$(SHLIB_LD) -o ${ITK_LIB_FILE} \$(OBJS) ${SHLIB_LD_LIBS} \$(LD_SEARCH_FLAGS)" + RANLIB=":" + else + SHLIB_CFLAGS="" +- eval "ITK_LIB_FILE=libitk${VERSION}.a" ++ eval "ITK_LIB_FILE=${ITK_LIB_FILE}" + ITK_PKG_FILE="" + MAKE_LIB="ar cr ${ITK_LIB_FILE} \${OBJS}" + fi +@@ -1279,6 +1274,7 @@ + s%@LD_SEARCH_FLAGS@%$LD_SEARCH_FLAGS%g + s%@TCL_VERSION@%$TCL_VERSION%g + s%@TCL_SRC_DIR@%$TCL_SRC_DIR%g ++s%@TCL_INC_DIR@%$TCL_INC_DIR%g + s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g + s%@TCL_LIB_FLAG@%$TCL_LIB_FLAG%g + s%@TCL_DBGX@%$TCL_DBGX%g +@@ -1295,6 +1291,7 @@ + s%@TK_XINCLUDES@%$TK_XINCLUDES%g + s%@TK_XLIBSW@%$TK_XLIBSW%g + s%@TK_SRC_DIR@%$TK_SRC_DIR%g ++s%@TK_INC_DIR@%$TK_INC_DIR%g + s%@ITCL_VERSION@%$ITCL_VERSION%g + s%@ITCL_MAJOR_VERSION@%$ITCL_MAJOR_VERSION%g + s%@ITCL_MINOR_VERSION@%$ITCL_MINOR_VERSION%g +@@ -1304,6 +1301,7 @@ + s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g + s%@ITCL_PKG_FILE@%$ITCL_PKG_FILE%g + s%@ITCL_SRC_DIR@%$ITCL_SRC_DIR%g ++s%@ITCL_INC_DIR@%$ITCL_INC_DIR%g + s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g + s%@ITK_LIB_FILE@%$ITK_LIB_FILE%g + s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g diff --git a/x11-toolkits/itk/pkg-comment b/x11-toolkits/itk/pkg-comment new file mode 100644 index 000000000000..eee146e3ccbf --- /dev/null +++ b/x11-toolkits/itk/pkg-comment @@ -0,0 +1 @@ +[incr Tk] (A.K.A. ``itk''). diff --git a/x11-toolkits/itk/pkg-descr b/x11-toolkits/itk/pkg-descr new file mode 100644 index 000000000000..a3771e546466 --- /dev/null +++ b/x11-toolkits/itk/pkg-descr @@ -0,0 +1,7 @@ +This package contains [incr Tk] version 3.0.1. [incr Tk] is a +companion to [incr Tcl] and builds a ``mega-widget'' framework into +Tk. The [incr Tk] extension is also known as ``itk''. + +A companion to [incr Tk] called [incr Widgets] provides a widget set, +with many improved widgets. The [incr Widgets] collection is also known +as ``iwidgets'' and is available in x11-toolkits. diff --git a/x11-toolkits/itk/pkg-plist b/x11-toolkits/itk/pkg-plist new file mode 100644 index 000000000000..46c5ee8e56bc --- /dev/null +++ b/x11-toolkits/itk/pkg-plist @@ -0,0 +1,19 @@ +bin/itkwish3.0 +include/itk3.0/generic/itk.h +include/itk3.0/itk.h +lib/libitk30.so.1.1 +lib/libitk30.so +lib/libitk30.a +@exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %B +@unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R +lib/itk3.0/itkConfig.sh +lib/itk3.0/Archetype.itk +lib/itk3.0/Toplevel.itk +lib/itk3.0/Widget.itk +lib/itk3.0/itk.tcl +lib/itk3.0/tclIndex +lib/itk3.0/tkAppInit.c +lib/itk3.0/pkgIndex.tcl +@dirrm include/itk3.0/generic +@dirrm include/itk3.0 +@dirrm lib/itk3.0 |