aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/tk83
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2001-11-11 05:05:02 +0800
committerdinoex <dinoex@FreeBSD.org>2001-11-11 05:05:02 +0800
commit52edcb577c7f633ac0fb723ff248290b045a33db (patch)
tree7b94bd1fe828c7f5a9980fb9834defe417532aed /x11-toolkits/tk83
parent6ebf64e225131233a4232eff3ce561b0e62e53a3 (diff)
downloadfreebsd-ports-graphics-52edcb577c7f633ac0fb723ff248290b045a33db.tar.gz
freebsd-ports-graphics-52edcb577c7f633ac0fb723ff248290b045a33db.tar.zst
freebsd-ports-graphics-52edcb577c7f633ac0fb723ff248290b045a33db.zip
Improved shared linking,
so tk can be loaded on demand in tclsh. $ tclsh8.3 % load libtk83.so reported by: Wojciech Sobczuk
Diffstat (limited to 'x11-toolkits/tk83')
-rw-r--r--x11-toolkits/tk83/Makefile1
-rw-r--r--x11-toolkits/tk83/files/patch-aa45
2 files changed, 24 insertions, 22 deletions
diff --git a/x11-toolkits/tk83/Makefile b/x11-toolkits/tk83/Makefile
index 28431948930..a4d6deaead7 100644
--- a/x11-toolkits/tk83/Makefile
+++ b/x11-toolkits/tk83/Makefile
@@ -7,6 +7,7 @@
PORTNAME= tk
PORTVERSION= 8.3.4
+PORTREVISION= 1
CATEGORIES= x11-toolkits tk83
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= tcl
diff --git a/x11-toolkits/tk83/files/patch-aa b/x11-toolkits/tk83/files/patch-aa
index 32eba24b0a3..ee05cb4304c 100644
--- a/x11-toolkits/tk83/files/patch-aa
+++ b/x11-toolkits/tk83/files/patch-aa
@@ -1,15 +1,6 @@
---- configure.orig Sun Feb 20 06:30:02 2000
-+++ configure Mon May 1 11:21:14 2000
-@@ -1763,7 +1763,7 @@
- LDFLAGS="-Wl,-Bexport"
- LD_SEARCH_FLAGS=""
- ;;
-- NetBSD-*|FreeBSD-[1-2].*|OpenBSD-*)
-+ NetBSD-*|FreeBSD-*|OpenBSD-*)
- # Not available on all versions: check for include file.
- ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
-@@ -1847,6 +1847,7 @@
+--- configure.orig Sat Oct 20 02:24:40 2001
++++ configure Sat Nov 10 21:53:28 2001
+@@ -2351,21 +2351,22 @@
# FreeBSD doesn't handle version numbers with dots.
UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
@@ -17,7 +8,26 @@
TCL_LIB_VERSIONS_OK=nodots
;;
FreeBSD-*)
-@@ -2303,6 +2304,7 @@
+ # FreeBSD 3.* and greater have ELF.
+ SHLIB_CFLAGS="-fPIC"
+- SHLIB_LD="ld -Bshareable -x"
+- SHLIB_LD_LIBS=""
++ SHLIB_LD="ld -shared -x -soname \$@"
++ SHLIB_LD_LIBS='${LIBS}'
+ SHLIB_SUFFIX=".so"
+ DL_OBJS="tclLoadDl.o"
+ DL_LIBS=""
+- LDFLAGS="-export-dynamic"
++ LDFLAGS=""
+ LD_SEARCH_FLAGS=""
+ # FreeBSD doesn't handle version numbers with dots.
+ UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
+- SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so'
++ SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
+ TCL_LIB_VERSIONS_OK=nodots
+ ;;
+ Rhapsody-*|Darwin-*)
+@@ -2882,6 +2883,7 @@
echo "$ac_t""no" 1>&6
fi
@@ -25,12 +35,3 @@
LIB_RUNTIME_DIR='${LIB_RUNTIME_DIR}'
-@@ -4005,7 +4007,7 @@
- eval eval "TK_UNSHARED_LIB_SUFFIX=${UNSHARED_LIB_SUFFIX}"
-
- TCL_LIB_SPEC='-L$(TCL_BIN_DIR) $(TCL_LIB_FLAG)'
--TCL_STUB_LIB_SPEC='-L$(TCL_BIN_DIR) $(TCL_STUB_LIB_FLAG)'
-+TCL_STUB_LIB_SPEC='$(LOCALBASE)/lib/libtclstub83.a'
-
- if test "${SHARED_BUILD}" = "1" -a "${SHLIB_SUFFIX}" != ""; then
- TK_SHLIB_CFLAGS="${SHLIB_CFLAGS}"