Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jan 1999 12:50:01 -0800 (PST)
From:      Duncan Barclay <dmlb@ragnet.demon.co.uk>
To:        freebsd-ports@FreeBSD.ORG
Subject:   Re: ports/9452: New port itk-3.0.1
Message-ID:  <199901152050.MAA19377@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/9452; it has been noted by GNATS.

From: Duncan Barclay <dmlb@ragnet.demon.co.uk>
To: freebsd-gnats-submit@freebsd.org
Cc:  
Subject: Re: ports/9452: New port itk-3.0.1
Date: Fri, 15 Jan 1999 20:43:55 -0000 (GMT)

 Itk needs to get tclInt.h and others. These are available in
 /usr/local/include/*/generic. Included is a shar of the new patch files
 for this port.
 
 # This is a shell archive.  Save it in a file, remove anything before
 # this line, and then unpack it by entering "sh file".  Note, it may
 # create directories; files and directories will be owned by you and
 # have default permissions.
 #
 # This archive contains:
 #
 #       patches
 #       patches/patch-aa
 #       patches/patch-ab
 #
 echo c - patches
 mkdir -p patches > /dev/null 2>&1
 echo x - patches/patch-aa
 sed 's/^X//' >patches/patch-aa << 'END-of-patches/patch-aa'
 X--- Makefile.in~       Wed Aug 12 11:01:40 1998
 X+++ Makefile.in        Fri Jan 15 17:44:12 1999
 X@@ -55,10 +55,12 @@
 X BIN_INSTALL_DIR =     $(INSTALL_ROOT)$(exec_prefix)/bin
 X 
 X # Directory in which to install the include file itk.h:
 X-INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/include
 X+INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/include/itk$(VERSION)
 X+GENERIC_INCLUDE_INSTALL_DIR =
 $(INSTALL_ROOT)$(prefix)/include/itk$(VERSION)/generic
 X+UNIX_INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/include/itk$(VERSION)/unix
 X 
 X # Top-level directory for manual entries:
 X-MAN_INSTALL_DIR =     $(INSTALL_ROOT)$(prefix)/man
 X+MAN_INSTALL_DIR =     $(INSTALL_ROOT)$(prefix)/share/itk$(VERSION)/man
 X 
 X # Directory in which to install manual entry for wish:
 X MAN1_INSTALL_DIR =    $(MAN_INSTALL_DIR)/man1
 X@@ -75,6 +77,9 @@
 X # for this version of [incr Tk]:
 X TCL_SRC_DIR =         @TCL_SRC_DIR@
 X 
 X+# Tcl include dir
 X+TCL_INC_DIR =         @TCL_INC_DIR@
 X+
 X # The directory containing the Tcl library archive file appropriate
 X # for this version of [incr Tk]:
 X TCL_LIB_DIR =         @TCL_LIB_DIR@
 X@@ -89,6 +94,9 @@
 X # for this version of [incr Tk]:
 X TK_SRC_DIR =          @TK_SRC_DIR@
 X 
 X+# Tk include dir
 X+TK_INC_DIR =          @TK_INC_DIR@
 X+
 X # The directory containing the Tk library archive file appropriate
 X # for this version of [incr Tk]:
 X TK_LIB_DIR =          @TK_LIB_DIR@
 X@@ -100,6 +108,9 @@
 X # for this version of [incr Tk]:
 X ITCL_SRC_DIR =                @ITCL_SRC_DIR@
 X 
 X+# ITcl include dir
 X+ITCL_INC_DIR =                @ITCL_INC_DIR@
 X+
 X # The directory containing the [incr Tcl] library archive file appropriate
 X # for this version of [incr Tk]:
 X ITCL_LIB_DIR =                @ITCL_LIB_DIR@
 X@@ -155,7 +166,7 @@
 X # "install" around;  better to use the install-sh script that comes
 X # with the distribution, which is slower but guaranteed to work.
 X 
 X-INSTALL = $(TOP_DIR)/../config/install-sh -c
 X+INSTALL =             install -c
 X INSTALL_PROGRAM =     ${INSTALL}
 X INSTALL_DATA =                ${INSTALL} -m 644
 X MKINSTALLDIRS =               $(TOP_DIR)/../config/mkinstalldirs
 X@@ -199,8 +210,8 @@
 X 
 X CC = @CC@
 X CC_SWITCHES = $(CFLAGS) $(SHLIB_CFLAGS) -I$(UNIX_DIR) -I$(GENERIC_DIR) \
 X--I$(TCL_SRC_DIR)/generic -I$(ITCL_SRC_DIR)/generic \
 X--I$(TK_SRC_DIR)/generic $(X11_INCLUDES) \
 X+-I$(TCL_INC_DIR)/generic -I$(ITCL_INC_DIR)/generic \
 X+-I$(TK_INC_DIR)/generic $(X11_INCLUDES) \
 X $(AC_FLAGS) $(PROTO_FLAGS) $(MEM_DEBUG_FLAGS) $(KEYSYM_FLAGS) \
 X -DITK_LIBRARY=\"$(ITK_LIBRARY)\"
 X 
 X@@ -209,7 +220,7 @@
 X SRCS = $(GENERIC_DIR)/itk_cmds.c $(GENERIC_DIR)/itk_option.c \
 X       $(GENERIC_DIR)/itk_archetype.c $(GENERIC_DIR)/itk_util.c
 X 
 X-all: itkwish
 X+all: $(ITK_LIB_FILE) libitk30.a itkwish
 X 
 X # The following target is configured by autoconf to generate either
 X # a shared library or non-shared library for [incr Tk].
 X@@ -217,8 +228,14 @@
 X @ITK_LIB_FILE@: ${OBJS}
 X       rm -f $(ITK_LIB_FILE)
 X       @MAKE_LIB@
 X+      ln -sf $(ITK_LIB_FILE) libitk30.so
 X       $(RANLIB) $(ITK_LIB_FILE)
 X 
 X+libitk30.a: $(OBJS)
 X+      rm -f libitk30.a
 X+      ar cr libitk30.a $(OBJS)
 X+      ranlib libitk30.a
 X+
 X itkwish: tkAppInit.o $(ITK_LIB_FILE)
 X       $(CC) @LD_FLAGS@ tkAppInit.o @ITK_BUILD_LIB_SPEC@ \
 X               $(LIBS) $(LD_SEARCH_FLAGS) -o itkwish
 X@@ -239,21 +256,27 @@
 X 
 X install: install-binaries install-libraries install-man
 X 
 X-install-binaries: $(ITK_LIB_FILE) itkwish
 X+install-binaries: $(ITK_LIB_FILE) libitk30.a itkwish
 X       @$(MKINSTALLDIRS) $(LIB_INSTALL_DIR) $(BIN_INSTALL_DIR)
 X       @echo "Installing $(ITK_LIB_FILE)"
 X       @$(INSTALL_DATA) $(ITK_LIB_FILE) $(LIB_INSTALL_DIR)
 X       @(cd $(LIB_INSTALL_DIR); $(RANLIB) $(ITK_LIB_FILE))
 X       @chmod 555 $(LIB_INSTALL_DIR)/$(ITK_LIB_FILE)
 X+      @echo "Installing libitk30.a"
 X+      @$(INSTALL_DATA) libitk30.a $(LIB_INSTALL_DIR)/libitk30.a
 X+      @(cd $(LIB_INSTALL_DIR); $(RANLIB) libitk30.a)
 X+      chmod 555 $(LIB_INSTALL_DIR)/libitk30.a
 X       @echo "Installing itkwish"
 X       $(INSTALL_PROGRAM) itkwish $(BIN_INSTALL_DIR)/itkwish$(VERSION)
 X       @echo "Installing itkConfig.sh"
 X-      @$(INSTALL_DATA) itkConfig.sh $(LIB_INSTALL_DIR)/itkConfig.sh
 X+      @mkdir -p $(SCRIPT_INSTALL_DIR)
 X+      @$(INSTALL_DATA) itkConfig.sh $(SCRIPT_INSTALL_DIR)/itkConfig.sh
 X 
 X install-libraries:
 X-      @$(MKINSTALLDIRS) $(INCLUDE_INSTALL_DIR) $(SCRIPT_INSTALL_DIR)
 X+      @$(MKINSTALLDIRS) $(INCLUDE_INSTALL_DIR) $(GENERIC_INCLUDE_INSTALL_DIR)
 $(UNIX_INCLUDE_INSTALL_DIR) $(SCRIPT_INSTALL_DIR)
 X       @echo "Installing itk.h"
 X-      @$(INSTALL_DATA) $(GENERIC_DIR)/itk.h $(INCLUDE_INSTALL_DIR)
 X+      @$(INSTALL_DATA) $(GENERIC_DIR)/itk.h $(GENERIC_INCLUDE_INSTALL_DIR)
 X+      @ln -sf $(GENERIC_INCLUDE_INSTALL_DIR)/itk.h
 $(INCLUDE_INSTALL_DIR)/itk.h
 X       @for i in $(TOP_DIR)/library/*.* $(TOP_DIR)/library/tclIndex
 $(UNIX_DIR)/tkAppInit.c; \
 X           do \
 X           echo "Installing $$i"; \
 X@@ -267,19 +290,26 @@
 X       @cd $(TOP_DIR)/doc; for i in *.1; \
 X           do \
 X           echo "Installing doc/$$i"; \
 X-          rm -f $(MAN1_INSTALL_DIR)/$$i; \
 X+          rm -f $(MAN1_INSTALL_DIR)/$$i $(MAN1_INSTALL_DIR)/$$i.gz; \
 X           sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' \
 X-                  $$i > $(MAN1_INSTALL_DIR)/$$i; \
 X-          chmod 444 $(MAN1_INSTALL_DIR)/$$i; \
 X+                  $$i | gzip -c > $(MAN1_INSTALL_DIR)/$$i.gz; \
 X+          chmod 444 $(MAN1_INSTALL_DIR)/$$i.gz; \
 X           done;
 X       @cd $(TOP_DIR)/doc; for i in *.n; \
 X           do \
 X           echo "Installing doc/$$i"; \
 X-          rm -f $(MANN_INSTALL_DIR)/$$i; \
 X+          rm -f $(MANN_INSTALL_DIR)/$$i $(MANN_INSTALL_DIR)/$$i.gz; \
 X           sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' \
 X-                  $$i > $(MANN_INSTALL_DIR)/$$i; \
 X-          chmod 444 $(MANN_INSTALL_DIR)/$$i; \
 X+                  $$i | gzip -c > $(MANN_INSTALL_DIR)/$$i.gz; \
 X+          chmod 444 $(MANN_INSTALL_DIR)/$$i.gz; \
 X           done;
 X+      @echo "**********"
 X+      @echo "IMPORTANT:"
 X+      @echo "**********"
 X+      @echo "itkConfig.sh in $(SCRIPT_INSTALL_DIR)/itkConfig.sh"
 X+      @echo "itk.h        in $(INCLUDE_INSTALL_DIR)/itk.h"
 X+      @echo "There are NOT default place, but good place to avoid"
 X+      @echo "conflicting with another version of [incr] Tcl/Tks."
 X 
 X Makefile: $(UNIX_DIR)/Makefile.in
 X       $(SHELL) config.status
 END-of-patches/patch-aa
 echo x - patches/patch-ab
 sed 's/^X//' >patches/patch-ab << 'END-of-patches/patch-ab'
 X--- configure~ Mon Oct 19 21:14:57 1998
 X+++ configure  Fri Jan 15 18:41:16 1999
 X@@ -877,15 +877,8 @@
 X DL_LIBS=$TCL_DL_LIBS
 X LD_FLAGS=$TCL_LD_FLAGS
 X LD_SEARCH_FLAGS=$TCL_LD_SEARCH_FLAGS
 X+TCL_INC_DIR=${TCL_PREFIX}/include/tcl${TCL_VERSION}
 X 
 X-#--------------------------------------------------------------------
 X-#   Make sure that we can find the Tcl sources, so we can include
 X-#   the "tclInt.h" file.
 X-#--------------------------------------------------------------------
 X-
 X-if test ! -d "$TCL_SRC_DIR"; then
 X-    { echo "configure: error: Can't find Tcl source directory "$TCL_SRC_DIR".
  Itcl can't be built without this directory." 1
 >&2; exit 1; }
 X-fi
 X 
 X #--------------------------------------------------------------------
 X #   See if there was a command-line option for where Tk is;  if
 X@@ -915,6 +908,7 @@
 X 
 X file=$TK_LIB_DIR/tkConfig.sh
 X . $file
 X+TK_INC_DIR=${TK_PREFIX}/include/tk${TK_VERSION}
 X 
 X #--------------------------------------------------------------------
 X #   See if there was a command-line option for where [incr Tcl] is.
 X@@ -936,6 +930,7 @@
 X 
 X file=$ITCL_LIB_DIR/itclConfig.sh
 X . $file
 X+ITCL_INC_DIR=${TCL_PREFIX}/include/itcl${ITCL_VERSION}
 X 
 X #--------------------------------------------------------------------
 X #   If this is gcc, add some extra compile flags.
 X@@ -1065,13 +1060,13 @@
 X         { echo "configure: error: Tcl was not built with --enable-shared"
 1>&2; exit 1; }
 X     fi
 X     SHLIB_CFLAGS="${SHLIB_CFLAGS}"
 X-    eval "ITK_LIB_FILE=libitk${VERSION}${SHLIB_SUFFIX}"
 X+    eval "ITK_LIB_FILE=${ITK_LIB_FILE}"
 X     ITK_PKG_FILE="[file join [file dirname \$dir] ${ITK_LIB_FILE}]"
 X     MAKE_LIB="\$(SHLIB_LD) -o ${ITK_LIB_FILE} \$(OBJS) ${SHLIB_LD_LIBS}
 \$(LD_SEARCH_FLAGS)"
 X     RANLIB=":"
 X else
 X     SHLIB_CFLAGS=""
 X-    eval "ITK_LIB_FILE=libitk${VERSION}.a"
 X+    eval "ITK_LIB_FILE=${ITK_LIB_FILE}"
 X     ITK_PKG_FILE=""
 X     MAKE_LIB="ar cr ${ITK_LIB_FILE} \${OBJS}"
 X fi
 X@@ -1279,6 +1274,7 @@
 X s%@LD_SEARCH_FLAGS@%$LD_SEARCH_FLAGS%g
 X s%@TCL_VERSION@%$TCL_VERSION%g
 X s%@TCL_SRC_DIR@%$TCL_SRC_DIR%g
 X+s%@TCL_INC_DIR@%$TCL_INC_DIR%g
 X s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
 X s%@TCL_LIB_FLAG@%$TCL_LIB_FLAG%g
 X s%@TCL_DBGX@%$TCL_DBGX%g
 X@@ -1295,6 +1291,7 @@
 X s%@TK_XINCLUDES@%$TK_XINCLUDES%g
 X s%@TK_XLIBSW@%$TK_XLIBSW%g
 X s%@TK_SRC_DIR@%$TK_SRC_DIR%g
 X+s%@TK_INC_DIR@%$TK_INC_DIR%g
 X s%@ITCL_VERSION@%$ITCL_VERSION%g
 X s%@ITCL_MAJOR_VERSION@%$ITCL_MAJOR_VERSION%g
 X s%@ITCL_MINOR_VERSION@%$ITCL_MINOR_VERSION%g
 X@@ -1304,6 +1301,7 @@
 X s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
 X s%@ITCL_PKG_FILE@%$ITCL_PKG_FILE%g
 X s%@ITCL_SRC_DIR@%$ITCL_SRC_DIR%g
 X+s%@ITCL_INC_DIR@%$ITCL_INC_DIR%g
 X s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
 X s%@ITK_LIB_FILE@%$ITK_LIB_FILE%g
 X s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
 END-of-patches/patch-ab
 exit
 
 
 ---
 ________________________________________________________________________
 Duncan Barclay          | God smiles upon the little children,
 dmlb@ragnet.demon.co.uk | the alcoholics, and the permanently stoned.
 ________________________________________________________________________
 
 ---
 ________________________________________________________________________
 Duncan Barclay          | God smiles upon the little children,
 dmlb@ragnet.demon.co.uk | the alcoholics, and the permanently stoned.
 ________________________________________________________________________

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901152050.MAA19377>