diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2007-02-05 13:48:38 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2007-02-05 13:48:38 +0000 |
commit | c807c49aa793a382526ec4b143728590ca8ead89 (patch) | |
tree | 121c1adc04cb082d3bbb1e7e5d417bbf29cafdd2 /x11-toolkits/tk85/files | |
parent | 7579ce3eed1c2052ee75c17947eee9d3b7da6cde (diff) |
Notes
Diffstat (limited to 'x11-toolkits/tk85/files')
-rw-r--r-- | x11-toolkits/tk85/files/patch-unix::Makefile.in | 142 | ||||
-rw-r--r-- | x11-toolkits/tk85/files/patch-unix::configure | 44 | ||||
-rw-r--r-- | x11-toolkits/tk85/files/pkgIndex.tcl | 3 |
3 files changed, 189 insertions, 0 deletions
diff --git a/x11-toolkits/tk85/files/patch-unix::Makefile.in b/x11-toolkits/tk85/files/patch-unix::Makefile.in new file mode 100644 index 000000000000..8c3c679eb1e1 --- /dev/null +++ b/x11-toolkits/tk85/files/patch-unix::Makefile.in @@ -0,0 +1,142 @@ +--- Makefile.in.orig Tue Jan 30 11:20:44 2007 ++++ Makefile.in Tue Jan 30 11:30:35 2007 +@@ -64,6 +64,8 @@ + + # Directory in which to install the include file tk.h: + INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(includedir) ++GENERIC_INCLUDE_INSTALL_DIR = $(INCLUDE_INSTALL_DIR)/generic ++UNIX_INCLUDE_INSTALL_DIR = $(INCLUDE_INSTALL_DIR)/unix + + # Path to the private tk header dir: + PRIVATE_INCLUDE_DIR = @PRIVATE_INCLUDE_DIR@ +@@ -94,7 +96,7 @@ + # The directory containing the Tcl sources and headers appropriate + # for this version of Tk ("srcdir" will be replaced or has already + # been replaced by the configure script): +-TCL_GENERIC_DIR = @TCL_SRC_DIR@/generic ++TCL_GENERIC_DIR = @prefix@/include/tcl@TCL_VERSION@/generic + + # The directory containing the platform specific Tcl sources and headers + # appropriate for this version of Tk: +@@ -131,7 +133,7 @@ + #CFLAGS = $(CFLAGS_DEBUG) + #CFLAGS = $(CFLAGS_OPTIMIZE) + #CFLAGS = $(CFLAGS_DEBUG) $(CFLAGS_OPTIMIZE) +-CFLAGS = @CFLAGS_DEFAULT@ @CFLAGS@ ++CFLAGS += @CFLAGS_DEFAULT@ @CFLAGS@ + + # Flags to pass to the linker + LDFLAGS_DEBUG = @LDFLAGS_DEBUG@ +@@ -266,7 +268,7 @@ + STLIB_LD = @STLIB_LD@ + SHLIB_LD = @SHLIB_LD@ + SHLIB_LD_LIBS = @SHLIB_LD_LIBS@ +-TK_SHLIB_LD_EXTRAS = @TK_SHLIB_LD_EXTRAS@ ++TK_SHLIB_LD_EXTRAS = @TCL_SHLIB_LD_EXTRAS@ + + # Additional search flags needed to find the various shared libraries + # at run-time. The first symbol is for use when creating a binary +@@ -489,6 +491,8 @@ + default.h ks_names.h tkPatch.h tk.h tkButton.h tkCanvas.h tkInt.h \ + tkPort.h tkScrollbar.h tkText.h + ++INSTALL_HDRS = tk.h tkDecls.h tkInt.h tkIntXlibDecls.h ++ + DEMOPROGS = browse hello ixset rmt rolodex square tcolor timer widget + + all: binaries libraries doc +@@ -508,6 +512,12 @@ + ${LIB_FILE}: ${OBJS} ${STUB_LIB_FILE} @LIB_RSRC_FILE@ + rm -f $@ + @MAKE_LIB@ ++ ln -sf @TK_LIB_FILE@ libtk${SHORT_TK_VER}.so ++ ++libtk${SHORT_TK_VER}.a: ${OBJS} ++ rm -f libtk${SHORT_TK_VER}.a ++ ar cr libtk${SHORT_TK_VER}.a ${OBJS} ++ $(RANLIB) libtk${SHORT_TK_VER}.a + + ${STUB_LIB_FILE}: ${STUB_LIB_OBJS} + rm -f $@ +@@ -626,7 +636,8 @@ + # some ranlibs write to current directory, and this might not always be + # possible (e.g. if installing as root). + +-install-binaries: $(TK_LIB_FILE) $(TK_STUB_LIB_FILE) $(TK_BUILD_EXP_FILE) wish ++install-binaries: $(TK_LIB_FILE) $(TK_STUB_LIB_FILE) $(TK_BUILD_EXP_FILE) \ ++ libtk${SHORT_TK_VER}.a wish + @for i in $(LIB_INSTALL_DIR) $(BIN_INSTALL_DIR) $(PKG_INSTALL_DIR); \ + do \ + if [ ! -d $$i ] ; then \ +@@ -659,10 +670,15 @@ + $(INSTALL_DATA) $(TK_BUILD_EXP_FILE) \ + $(LIB_INSTALL_DIR)/$(TK_EXP_FILE); \ + fi ++ @ln -sf $(LIB_INSTALL_DIR)/$(TK_LIB_FILE) $(LIB_INSTALL_DIR)/libtk${SHORT_TK_VER}.so ++ @echo "Installing libtk${SHORT_TK_VER}.a" ++ @$(INSTALL_DATA) libtk${SHORT_TK_VER}.a $(LIB_INSTALL_DIR)/libtk${SHORT_TK_VER}.a ++ @chmod 555 $(LIB_INSTALL_DIR)/libtk${SHORT_TK_VER}.a + @echo "Installing wish as $(BIN_INSTALL_DIR)/wish$(VERSION)" + @$(INSTALL_PROGRAM) wish $(BIN_INSTALL_DIR)/wish$(VERSION) +- @echo "Installing tkConfig.sh to $(LIB_INSTALL_DIR)/" +- @$(INSTALL_DATA) tkConfig.sh $(LIB_INSTALL_DIR)/tkConfig.sh ++ @echo "Installing tkConfig.sh to $(LIB_INSTALL_DIR)/tk$(VERSION)" ++ @mkdir -p $(LIB_INSTALL_DIR)/tk$(VERSION) ++ @$(INSTALL_DATA) tkConfig.sh $(LIB_INSTALL_DIR)/tk$(VERSION)/tkConfig.sh + @if test "$(STUB_LIB_FILE)" != "" ; then \ + echo "Installing $(STUB_LIB_FILE) to $(LIB_INSTALL_DIR)/"; \ + @INSTALL_STUB_LIB@ ; \ +@@ -673,6 +689,7 @@ + @if test "$(@TK_WINDOWINGSYSTEM@_XLIB_HDRS)" != ""; then \ + XLIB_INCLUDE_INSTALL_DIR=$(INCLUDE_INSTALL_DIR)/X11; fi; \ + for i in $(INCLUDE_INSTALL_DIR) $${XLIB_INCLUDE_INSTALL_DIR} \ ++ $(GENERIC_INCLUDE_INSTALL_DIR) $(UNIX_INCLUDE_INSTALL_DIR) \ + $(SCRIPT_INSTALL_DIR) $(SCRIPT_INSTALL_DIR)/images \ + $(SCRIPT_INSTALL_DIR)/msgs; \ + do \ +@@ -687,11 +704,14 @@ + chmod +x $(SRC_DIR)/install-sh; \ + fi + @echo "Installing header files"; +- @for i in $(GENERIC_DIR)/tk.h $(GENERIC_DIR)/tkDecls.h \ +- $(GENERIC_DIR)/tkPlatDecls.h $(@TK_WINDOWINGSYSTEM@_HDRS) ; \ ++ ${BSD_INSTALL_DATA} $(GENERIC_DIR)/*.h $(GENERIC_INCLUDE_INSTALL_DIR)/ ++ ${BSD_INSTALL_DATA} $(UNIX_DIR)/*.h $(UNIX_INCLUDE_INSTALL_DIR)/ ++ @for i in $(INSTALL_HDRS) ; \ + do \ +- $(INSTALL_DATA) $$i $(INCLUDE_INSTALL_DIR); \ +- done; ++ j=`basename $$i` ; \ ++ ln -sf $(GENERIC_INCLUDE_INSTALL_DIR)/$$j $(INCLUDE_INSTALL_DIR)/$$j ; \ ++ done ++ + @list='$(@TK_WINDOWINGSYSTEM@_XLIB_HDRS)'; for i in $$list ; \ + do \ + $(INSTALL_DATA) $$i $(INCLUDE_INSTALL_DIR)/X11; \ +@@ -762,20 +782,13 @@ + else true; \ + fi; \ + done; +- @echo "Installing and cross-linking top-level (.1) docs"; +- @for i in $(TOP_DIR)/doc/*.1; do \ +- $(UNIX_DIR)/installManPage $(MAN_FLAGS) $$i $(MAN1_INSTALL_DIR); \ +- done +- +- @echo "Installing and cross-linking C API (.3) docs"; +- @for i in $(TOP_DIR)/doc/*.3; do \ +- $(UNIX_DIR)/installManPage $(MAN_FLAGS) $$i $(MAN3_INSTALL_DIR); \ +- done + +- @echo "Installing and cross-linking command (.n) docs"; +- @for i in $(TOP_DIR)/doc/*.n; do \ +- $(UNIX_DIR)/installManPage $(MAN_FLAGS) $$i $(MANN_INSTALL_DIR); \ +- done ++ @echo "Installing top-level (.1) docs"; ++ ${BSD_INSTALL_MAN} $(TOP_DIR)/doc/*.1 $(MAN1_INSTALL_DIR) ++ @echo "Installing C API (.3) docs"; ++ ${BSD_INSTALL_MAN} $(TOP_DIR)/doc/*.3 $(MAN3_INSTALL_DIR) ++ @echo "Installing command (.n) docs"; ++ ${BSD_INSTALL_MAN} $(TOP_DIR)/doc/*.n $(MANN_INSTALL_DIR) + + # Optional target to install private headers + install-private-headers: libraries diff --git a/x11-toolkits/tk85/files/patch-unix::configure b/x11-toolkits/tk85/files/patch-unix::configure new file mode 100644 index 000000000000..b63f23a7dbe1 --- /dev/null +++ b/x11-toolkits/tk85/files/patch-unix::configure @@ -0,0 +1,44 @@ +--- configure.orig Mon Oct 23 15:45:33 2006 ++++ configure Tue Jan 30 11:19:37 2007 +@@ -3530,6 +3530,7 @@ + # Threads support - this auto-enables if Tcl was compiled threaded + #------------------------------------------------------------------------ + ++TCL_SRC_DIR=${prefix}/include/tcl${TCLVERSION} + + # Check whether --enable-threads or --disable-threads was given. + if test "${enable_threads+set}" = set; then +@@ -5447,25 +5448,26 @@ + FreeBSD-*) + # FreeBSD 3.* and greater have ELF. + SHLIB_CFLAGS="-fPIC" +- SHLIB_LD="ld -Bshareable -x" ++ TCL_SHLIB_LD_EXTRAS="-soname \$@" ++ SHLIB_LD="ld -shared -x" + SHLIB_LD_LIBS='${LIBS}' + SHLIB_SUFFIX=".so" + DL_OBJS="tclLoadDl.o" + DL_LIBS="" +- LDFLAGS="$LDFLAGS -export-dynamic" ++ LDFLAGS="" + CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' + LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' + if test "${TCL_THREADS}" = "1" ; then +- # The -pthread needs to go in the CFLAGS, not LIBS ++ # The -pthread needs to go in the LDFLAGS, not LIBS + LIBS=`echo $LIBS | sed s/-pthread//` +- CFLAGS="$CFLAGS -pthread" +- LDFLAGS="$LDFLAGS -pthread" ++ CFLAGS="$CFLAGS $PTHREAD_CFLAGS" ++ LDFLAGS="$LDFLAGS $PTHREAD_LIBS" + fi + case $system in +- FreeBSD-3.*) ++ FreeBSD-*) + # FreeBSD-3 doesn't handle version numbers with dots. + UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' +- SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' ++ SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1' + TCL_LIB_VERSIONS_OK=nodots + ;; + esac diff --git a/x11-toolkits/tk85/files/pkgIndex.tcl b/x11-toolkits/tk85/files/pkgIndex.tcl new file mode 100644 index 000000000000..a83b5d916ba9 --- /dev/null +++ b/x11-toolkits/tk85/files/pkgIndex.tcl @@ -0,0 +1,3 @@ +# Tcl package index file, version 1.0 + +package ifneeded Tk 8.5 [list load "[file join [file dirname $dir] libtk85.so.1]" Tk] |