summaryrefslogtreecommitdiff
path: root/lang/tclX80
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>1999-04-05 22:55:36 +0000
committertron <tron@pkgsrc.org>1999-04-05 22:55:36 +0000
commit154f8d12c0d0f861f5d9a6e53da970ed587ebdfc (patch)
tree5c136c3b84cdbed732304f3e3c8a982870234575 /lang/tclX80
parent06ce6e17bcd9abb7c5a275f6f69872d3a9397325 (diff)
downloadpkgsrc-154f8d12c0d0f861f5d9a6e53da970ed587ebdfc.tar.gz
Thou shalt use "libtool".
Diffstat (limited to 'lang/tclX80')
-rw-r--r--lang/tclX80/Makefile8
-rw-r--r--lang/tclX80/patches/patch-ab238
-rw-r--r--lang/tclX80/patches/patch-ac102
3 files changed, 338 insertions, 10 deletions
diff --git a/lang/tclX80/Makefile b/lang/tclX80/Makefile
index 4d8930697bb..375088f9abd 100644
--- a/lang/tclX80/Makefile
+++ b/lang/tclX80/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 1999/04/03 00:51:30 tron Exp $
+# $NetBSD: Makefile,v 1.8 1999/04/05 22:55:36 tron Exp $
#
DISTNAME= tclX8.0.4
@@ -11,9 +11,13 @@ HOMEPAGE= http://www.neosoft.com/TclX/
DEPENDS+= tk-8.0.5:../../x11/tk80
-WRKSRC= ${WRKDIR}/tclX8.0.4/unix
+USE_LIBTOOL= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-shared --with-tk
CONFIGURE_ENV+= TCL_SHLIB_LD_LIBS=-L${PREFIX}/lib
+WRKSRC= ${WRKDIR}/tclX8.0.4/unix
+MAKE_ENV+= INSTALL_DATA="${INSTALL_DATA}" \
+ INSTALL_PROGRAM="${INSTALL_PROGRAM}"
+
.include "../../mk/bsd.pkg.mk"
diff --git a/lang/tclX80/patches/patch-ab b/lang/tclX80/patches/patch-ab
index 78c97d51b75..e157d3b837c 100644
--- a/lang/tclX80/patches/patch-ab
+++ b/lang/tclX80/patches/patch-ab
@@ -1,8 +1,17 @@
-$NetBSD: patch-ab,v 1.2 1998/08/07 11:09:27 agc Exp $
+$NetBSD: patch-ab,v 1.3 1999/04/05 22:55:36 tron Exp $
---- ../tcl/unix/Makefile.in.orig Sun Nov 30 00:19:02 1997
-+++ ../tcl/unix/Makefile.in Sat Mar 7 22:20:51 1998
-@@ -124,7 +124,7 @@
+--- ../tcl/unix/Makefile.in.orig Mon Dec 7 04:47:24 1998
++++ ../tcl/unix/Makefile.in Mon Apr 5 23:08:01 1999
+@@ -36,7 +36,7 @@
+
+ LIBS = ${TCLX_LD_SEARCH_FLAGS} @SHARED_LIBS@
+
+-ALL_LIBS = ${TCLX_BUILD_LIB_SPEC} ${TCL_LIB} ${TCLX_LIBS} ${TCL_LIBS} \
++ALL_LIBS = ${TCLX_STLIB_NAME:.a=.la} ${TCL_LIB} ${TCLX_LIBS} ${TCL_LIBS} \
+ ${XLDLIBS} ${TCLX_CC_SEARCH_FLAGS}
+
+ STATIC_LIBS = ${TCLX_STLIB_NAME} ${TCL_UNIX_DIR}/${TCL_STLIB_NAME} \
+@@ -124,14 +124,14 @@
# If a link fails, purge the executable, as some systems leave invalid
# executables around.
#
@@ -11,3 +20,224 @@ $NetBSD: patch-ab,v 1.2 1998/08/07 11:09:27 agc Exp $
static: tcl.static tclXtest.static
+ standalone: tcl.standalone tclXtest.standalone hello
+
+-tcl: tclXAppInit.o @TCLX_SHLIB_BUILD_REF@ @TCLX_STLIB_BUILD_REF@ Makefile
+- ${CC} ${LD_SWITCHES} tclXAppInit.o ${ALL_LIBS} \
++tcl: tclXAppInit.o ${TCLX_STLIB_NAME:.a=.la} Makefile
++ ${LIBTOOL} --mode=link ${CC} ${LD_SWITCHES} tclXAppInit.o ${ALL_LIBS} \
+ -o $@ || (rm -f $@; exit 1)
+
+ tcl.static: tclXAppInit.o @TCLX_STLIB_BUILD_REF@ Makefile
+@@ -142,9 +142,8 @@
+ ${CC} ${LD_SWITCHES} tclXAppInitSA.o ${STATIC_LIBS} \
+ -o $@ || (rm -f $@; exit 1)
+
+-${TCLX_STLIB_NAME}: ${OBJS}
+- ${AR} cr ${TCLX_STLIB_NAME} ${OBJS}
+- ${RANLIB} ${TCLX_STLIB_NAME}
++${TCLX_STLIB_NAME:.a=.la}: ${OBJS}
++ ${LIBTOOL} --mode=link ${CC} -rpath ${PREFIX}/lib -version-info 1:0 -o $@ ${OBJS:.o=.lo}
+
+ @TCLX_SHLIB_BUILD_TARGET@: ${SOBJS}
+ rm -f ${TCLX_SHLIB_NAME}
+@@ -312,17 +311,10 @@
+ ${INSTALL_ROOT}${TCLX_INST_RUNTIME}
+
+ install-exec:
+- ${INSTCOPY} tcl ${INSTALL_ROOT}${TCLX_INST_BIN}
+- ${STRIP} ${INSTALL_ROOT}${TCLX_INST_BIN}/tcl
+- if test "X@TCLX_STLIB_BUILD_REF@" != "X"; then \
+- ${INSTCOPY} ${TCLX_STLIB_NAME} ${INSTALL_ROOT}${TCLX_INST_LIB}; \
+- ${RANLIB} ${INSTALL_ROOT}${TCLX_INST_LIB}/${TCLX_STLIB_NAME}; \
+- fi
++ ${LIBTOOL} --mode=install ${INSTALL_PROGRAM} tcl ${INSTALL_ROOT}${TCLX_INST_BIN}
+ ${INSTCOPY} tclxConfig.sh ${INSTALL_ROOT}${TCLX_INST_LIB}
+- if test "@BUILD_SHARED@" = "YES"; then \
+- ${INSTCOPY} ${TCLX_SHLIB_NAME} ${INSTALL_ROOT}${TCLX_INST_LIB} ;\
+- ${INSTCOPY} pkgIndex.tcl ${INSTALL_ROOT}${TCLX_EXEC_RUNTIME} ;\
+- fi
++ ${LIBTOOL} --mode=install ${INSTALL_DATA} ${TCLX_STLIB_NAME:.a=.la} ${PREFIX}/lib
++ ${INSTCOPY} pkgIndex.tcl ${INSTALL_ROOT}${TCLX_EXEC_RUNTIME}
+
+ #------------------------------------------------------------------------------
+ config:
+@@ -357,53 +349,53 @@
+ # Dependencies for generating objects.
+ #
+ tclXlibInit.o: ${TCLX_GENERIC_DIR}/tclXlibInit.c
+- ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXlibInit.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXlibInit.c
+
+ tclXcmdInit.o: ${TCLX_GENERIC_DIR}/tclXcmdInit.c
+- ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXcmdInit.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXcmdInit.c
+
+ tclXAppInit.o: ${TCLX_UNIX_SRC_DIR}/tclXAppInit.c
+- ${CC} -c ${CC_SWITCHES} ${TCLX_UNIX_SRC_DIR}/tclXAppInit.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TCLX_UNIX_SRC_DIR}/tclXAppInit.c
+
+ tclXbsearch.o: ${TCLX_GENERIC_DIR}/tclXbsearch.c
+- ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXbsearch.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXbsearch.c
+
+ tclXcmdloop.o: ${TCLX_GENERIC_DIR}/tclXcmdloop.c
+- ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXcmdloop.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXcmdloop.c
+
+ tclXdebug.o: ${TCLX_GENERIC_DIR}/tclXdebug.c
+- ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXdebug.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXdebug.c
+
+ tclXdup.o: ${TCLX_GENERIC_DIR}/tclXdup.c
+- ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXdup.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXdup.c
+
+ tclXfcntl.o: ${TCLX_GENERIC_DIR}/tclXfcntl.c
+- ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXfcntl.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXfcntl.c
+
+ tclXfilecmds.o: ${TCLX_GENERIC_DIR}/tclXfilecmds.c
+- ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXfilecmds.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXfilecmds.c
+
+ tclXfilescan.o: ${TCLX_GENERIC_DIR}/tclXfilescan.c
+- ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXfilescan.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXfilescan.c
+
+ tclXflock.o: ${TCLX_GENERIC_DIR}/tclXflock.c
+- ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXflock.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXflock.c
+
+ tclXfstat.o: ${TCLX_GENERIC_DIR}/tclXfstat.c
+- ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXfstat.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXfstat.c
+
+ tclXgeneral.o: ${TCLX_GENERIC_DIR}/tclXgeneral.c
+- ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXgeneral.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXgeneral.c
+
+ tclXhandles.o: ${TCLX_GENERIC_DIR}/tclXhandles.c
+- ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXhandles.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXhandles.c
+
+ tclXinit.o: ${TCLX_GENERIC_DIR}/tclXinit.c Makefile
+- ${CC} -c ${CC_SWITCHES} -DTCLX_LIBRARY=\"${TCLX_INST_RUNTIME}\" \
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} -DTCLX_LIBRARY=\"${TCLX_INST_RUNTIME}\" \
+ ${TCLX_GENERIC_DIR}/tclXinit.c
+
+ tclXinitSA.o: ${TCLX_GENERIC_DIR}/tclXinitSA.c ${STANDALONE_SRCS}
+- ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXinitSA.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXinitSA.c
+
+ tclXAppInitSA.c: ${TCLX_UNIX_SRC_DIR}/tclXAppInit.c
+ rm -f tclXAppinitSA.c
+@@ -412,82 +404,82 @@
+ ${TCLX_UNIX_SRC_DIR}/tclXAppInit.c >tclXAppInitSA.c
+
+ tclXinitDSA.o: ${TCLX_GENERIC_DIR}/tclXinitDSA.c
+- ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXinitDSA.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXinitDSA.c
+
+ tclXkeylist.o: ${TCLX_GENERIC_DIR}/tclXkeylist.c
+- ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXkeylist.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXkeylist.c
+
+ tclXlgets.o: ${TCLX_GENERIC_DIR}/tclXlgets.c
+- ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXlgets.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXlgets.c
+
+ tclXlib.o: ${TCLX_GENERIC_DIR}/tclXlib.c
+- ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXlib.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXlib.c
+
+ tclXlist.o: ${TCLX_GENERIC_DIR}/tclXlist.c
+- ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXlist.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXlist.c
+
+ tclXmath.o: ${TCLX_GENERIC_DIR}/tclXmath.c
+- ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXmath.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXmath.c
+
+ tclXmsgcat.o: ${TCLX_GENERIC_DIR}/tclXmsgcat.c
+- ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXmsgcat.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXmsgcat.c
+
+ tclXprocess.o: ${TCLX_GENERIC_DIR}/tclXprocess.c
+- ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXprocess.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXprocess.c
+
+ tclXprofile.o: ${TCLX_GENERIC_DIR}/tclXprofile.c tclxConfig.sh
+- ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXprofile.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXprofile.c
+
+ tclXregexp.o: ${TCLX_GENERIC_DIR}/tclXregexp.c
+- ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXregexp.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXregexp.c
+
+ tclXselect.o: ${TCLX_GENERIC_DIR}/tclXselect.c
+- ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXselect.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXselect.c
+
+ tclXshell.o: ${TCLX_GENERIC_DIR}/tclXshell.c
+- ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXshell.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXshell.c
+
+ tclXsignal.o: ${TCLX_GENERIC_DIR}/tclXsignal.c
+- ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXsignal.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXsignal.c
+
+ tclXsocket.o: ${TCLX_GENERIC_DIR}/tclXsocket.c
+- ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXsocket.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXsocket.c
+
+ tclXstring.o: ${TCLX_GENERIC_DIR}/tclXstring.c
+- ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXstring.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXstring.c
+
+ tclXoscmds.o: ${TCLX_GENERIC_DIR}/tclXoscmds.c
+- ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXoscmds.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXoscmds.c
+
+ tclXutil.o: ${TCLX_GENERIC_DIR}/tclXutil.c
+- ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXutil.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXutil.c
+
+ tclXchmod.o: ${TCLX_GENERIC_DIR}/tclXchmod.c
+- ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXchmod.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TCLX_GENERIC_DIR}/tclXchmod.c
+
+ tclXunixDup.o: ${TCLX_UNIX_SRC_DIR}/tclXunixDup.c
+- ${CC} -c ${CC_SWITCHES} ${TCLX_UNIX_SRC_DIR}/tclXunixDup.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TCLX_UNIX_SRC_DIR}/tclXunixDup.c
+
+ tclXid.o: ${TCLX_UNIX_SRC_DIR}/tclXid.c
+- ${CC} -c ${CC_SWITCHES} ${TCLX_UNIX_SRC_DIR}/tclXid.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TCLX_UNIX_SRC_DIR}/tclXid.c
+
+ tclXunixCmds.o: ${TCLX_UNIX_SRC_DIR}/tclXunixCmds.c
+- ${CC} -c ${CC_SWITCHES} ${TCLX_UNIX_SRC_DIR}/tclXunixCmds.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TCLX_UNIX_SRC_DIR}/tclXunixCmds.c
+
+ tclXunixOS.o: ${TCLX_UNIX_SRC_DIR}/tclXunixOS.c
+- ${CC} -c ${CC_SWITCHES} ${TCLX_UNIX_SRC_DIR}/tclXunixOS.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TCLX_UNIX_SRC_DIR}/tclXunixOS.c
+
+ tclXunixId.o: ${TCLX_UNIX_SRC_DIR}/tclXunixId.c
+- ${CC} -c ${CC_SWITCHES} ${TCLX_UNIX_SRC_DIR}/tclXunixId.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TCLX_UNIX_SRC_DIR}/tclXunixId.c
+
+ tclXunixSock.o: ${TCLX_UNIX_SRC_DIR}/tclXunixSock.c
+- ${CC} -c ${CC_SWITCHES} ${TCLX_UNIX_SRC_DIR}/tclXunixSock.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TCLX_UNIX_SRC_DIR}/tclXunixSock.c
+
+ random.o: ${COMPAT_DIR}/random.c
+- ${CC} -c ${CC_SWITCHES} ${COMPAT_DIR}/random.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${COMPAT_DIR}/random.c
+
+ rename.o: ${COMPAT_DIR}/rename.c
+- ${CC} -c ${CC_SWITCHES} ${COMPAT_DIR}/rename.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${COMPAT_DIR}/rename.c
+
+ #------------------------------------------------------------------------------
+ # Dependencies for generating objects (position independant versions).
diff --git a/lang/tclX80/patches/patch-ac b/lang/tclX80/patches/patch-ac
index f828b93a015..a9e6c1e66ba 100644
--- a/lang/tclX80/patches/patch-ac
+++ b/lang/tclX80/patches/patch-ac
@@ -1,8 +1,21 @@
-$NetBSD: patch-ac,v 1.2 1998/08/07 11:09:27 agc Exp $
+$NetBSD: patch-ac,v 1.3 1999/04/05 22:55:36 tron Exp $
---- ../tk/unix/Makefile.in.orig Sun Nov 30 00:19:07 1997
-+++ ../tk/unix/Makefile.in Sat Mar 7 22:22:00 1998
-@@ -85,7 +85,7 @@
+--- ../tk/unix/Makefile.in.orig Mon Dec 7 04:47:30 1998
++++ ../tk/unix/Makefile.in Mon Apr 5 23:08:17 1999
+@@ -43,9 +43,9 @@
+
+ LIBS = ${TKX_LD_SEARCH_FLAGS} ${TK_LIB} ${TK_XLIBSW} @SHARED_LIBS@
+
+-ALL_LIBS = ${TKX_BUILD_LIB_SPEC} ${TK_LIB} ${TK_XLIBSW} \
+- ${TCLX_BUILD_LIB_SPEC} ${TCL_LIB} ${TK_LIBS} ${TCLX_LIBS} \
+- ${XLDLIBS} ${TKX_CC_SEARCH_FLAGS}
++ALL_LIBS = ${TKX_STLIB_NAME:.a=.la} ${TK_LIB} ${TK_XLIBSW} \
++ ${TCLX_UNIX_BLD_DIR}/${TCLX_STLIB_NAME:.a=.la} ${TCL_LIB} \
++ ${TK_LIBS} ${TCLX_LIBS} ${XLDLIBS} ${TKX_CC_SEARCH_FLAGS}
+
+ STATIC_LIBS = ${TKX_STLIB_NAME} ${TK_UNIX_DIR}/${TK_STLIB_NAME} ${TK_XLIBSW} \
+ ${TCLX_UNIX_SRC_DIR}/${TCLX_STLIB_NAME} \
+@@ -85,14 +85,14 @@
# If a link fails, purge the executable, as some systems leave invalid
# executables around.
#
@@ -11,3 +24,84 @@ $NetBSD: patch-ac,v 1.2 1998/08/07 11:09:27 agc Exp $
static: wishx.static tktest.static
+ standalone: wishx.standalone tktest.standalone hello
+
+-wishx: tkXAppInit.o @TKX_SHLIB_BUILD_REF@ @TKX_STLIB_BUILD_REF@ ${TCL} Makefile
+- ${CC} ${LD_SWITCHES} tkXAppInit.o ${ALL_LIBS} \
++wishx: tkXAppInit.o ${TKX_STLIB_NAME:.a=.la} ${TCL} Makefile
++ ${LIBTOOL} --mode=link ${CC} ${LD_SWITCHES} tkXAppInit.o ${ALL_LIBS} \
+ -o $@ || (rm -f $@; exit 1)
+
+ wishx.static: tkXAppInit.o ${TKX_STLIB_NAME} ${LIBTCLX} Makefile
+@@ -103,9 +103,8 @@
+ ${CC} ${LD_SWITCHES} tkXAppInitSA.o ${STATIC_LIBS} -o $@ || \
+ (rm -f $@; exit 1)
+
+-${TKX_STLIB_NAME}: ${OBJS}
+- ${AR} cr ${TKX_STLIB_NAME} ${OBJS}
+- ${RANLIB} ${TKX_STLIB_NAME}
++${TKX_STLIB_NAME:.a=.la}: ${OBJS}
++ ${LIBTOOL} --mode=link ${CC} -rpath ${PREFIX}/lib -version-info 1:0 -o $@ ${OBJS:.o=.lo}
+
+ @TKX_SHLIB_BUILD_TARGET@: ${SOBJS}
+ rm -f ${TKX_SHLIB_NAME}
+@@ -217,17 +216,10 @@
+ ${INSTCOPY} tkx.tcl ${INSTALL_ROOT}${TKX_INST_RUNTIME}
+
+ install-exec:
+- ${INSTCOPY} wishx ${INSTALL_ROOT}${TKX_INST_BIN}
+- ${STRIP} ${INSTALL_ROOT}${TKX_INST_BIN}/wishx
+- if test "X@TKX_STLIB_BUILD_REF@" != "X"; then \
+- ${INSTCOPY} ${TKX_STLIB_NAME} ${INSTALL_ROOT}${TKX_INST_LIB}; \
+- ${RANLIB} ${INSTALL_ROOT}${TKX_INST_LIB}/${TKX_STLIB_NAME}; \
+- fi
++ ${LIBTOOL} --mode=install ${INSTALL_PROGRAM} wishx ${INSTALL_ROOT}${TKX_INST_BIN}
+ ${INSTCOPY} tkxConfig.sh ${INSTALL_ROOT}${TKX_INST_LIB}
+- if test "@BUILD_SHARED@" = "YES"; then \
+- ${INSTCOPY} ${TKX_SHLIB_NAME} ${INSTALL_ROOT}${TKX_INST_LIB} ;\
+- ${INSTCOPY} pkgIndex.tcl ${INSTALL_ROOT}${TKX_EXEC_RUNTIME} ;\
+- fi
++ ${LIBTOOL} --mode=install ${INSTALL_DATA} ${TKX_STLIB_NAME:.a=.la} ${PREFIX}/lib
++ ${INSTCOPY} pkgIndex.tcl ${INSTALL_ROOT}${TKX_EXEC_RUNTIME}
+ ${INSTCOPY} tclhelp ${INSTALL_ROOT}${TKX_INST_BIN}
+
+ #------------------------------------------------------------------------------
+@@ -261,20 +253,20 @@
+ # Dependencies for generating objects.
+ #
+ tkXinit.o: ${TKX_GENERIC_DIR}/tkXinit.c Makefile
+- ${CC} -c ${CC_SWITCHES} -DTKX_LIBRARY=\"${TKX_INST_RUNTIME}\" \
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} -DTKX_LIBRARY=\"${TKX_INST_RUNTIME}\" \
+ ${TKX_GENERIC_DIR}/tkXinit.c
+
+ tkXshell.o: ${TKX_GENERIC_DIR}/tkXshell.c
+- ${CC} -c ${CC_SWITCHES} ${TKX_GENERIC_DIR}/tkXshell.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TKX_GENERIC_DIR}/tkXshell.c
+
+ tkXAppInit.o: ${TKX_UNIX_SRC_DIR}/tkXAppInit.c
+- ${CC} -c ${CC_SWITCHES} ${TKX_UNIX_SRC_DIR}/tkXAppInit.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TKX_UNIX_SRC_DIR}/tkXAppInit.c
+
+ tkXinitSA.o: ${TKX_GENERIC_DIR}/tkXinitSA.c ${STANDALONE_SRCS}
+- ${CC} -c ${CC_SWITCHES} ${TKX_GENERIC_DIR}/tkXinitSA.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TKX_GENERIC_DIR}/tkXinitSA.c
+
+ tkXinitDSA.o: ${TKX_GENERIC_DIR}/tkXinitDSA.c Makefile
+- ${CC} -c ${CC_SWITCHES} ${TKX_GENERIC_DIR}/tkXinitDSA.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TKX_GENERIC_DIR}/tkXinitDSA.c
+
+ tkXAppInitSA.c: ${TKX_UNIX_SRC_DIR}/tkXAppInit.c Makefile
+ rm -f tkXinitSA.c
+@@ -285,10 +277,10 @@
+ ${TKX_UNIX_SRC_DIR}/tkXAppInit.c >tkXAppInitSA.c
+
+ tkXunixTest.o: ${TKX_UNIX_SRC_DIR}/tkXunixTest.c
+- ${CC} -c ${CC_SWITCHES} ${TKX_UNIX_SRC_DIR}/tkXunixTest.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TKX_UNIX_SRC_DIR}/tkXunixTest.c
+
+ tkXunixTestDA.o: ${TKX_UNIX_SRC_DIR}/tkXunixTestSA.c
+- ${CC} -c ${CC_SWITCHES} ${TKX_UNIX_SRC_DIR}/tkXunixTestSA.c
++ ${LIBTOOL} --mode=compile ${CC} -c ${CC_SWITCHES} ${TKX_UNIX_SRC_DIR}/tkXunixTestSA.c
+
+ tkXunixTestSA.c: ${TKX_UNIX_SRC_DIR}/tkXunixTest.c Makefile
+ rm -f tkXinitSA.c