pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/48513: lang/tcl 8.6.1 DragonFly 3.7-DEVELOPMENT itcl4.0.0 missing gcc -shared -fPIC



The following reply was made to PR pkg/48513; it has been noted by GNATS.

From: David Shao <davshao%gmail.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: pkg/48513: lang/tcl 8.6.1 DragonFly 3.7-DEVELOPMENT itcl4.0.0
 missing gcc -shared -fPIC
Date: Sun, 12 Jan 2014 18:08:36 -0800

 The update from tcl 8.5 to tcl 8.6 appears to have added the building
 of extra packages under subdirectory pkgs.  Each of these packages has
 its own configure and tclconfig/tcl.m4 which appear to need to be
 modified for various non-NetBSD platforms, and each package generates
 libraries listed in PLIST with version numbers making up part of the
 library names.  One issue is there is quite a lot of logic to avoid
 using library names with dots "." in them.  Before there could be one
 variable $SONUM which could be used in PLIST.  But now each package
 has its own version number.  Is there any platform pkgsrc supports
 where there will be a problem with dots in the library name?  There is
 no such problem on DragonFly.
 
 Following the suggestion to imitate the changes to unix/configure, I
 was able to get lang/tcl to build and install package on DragonFly
 3.7-DEVELOPMENT i386 and x86_64.  The patch is included below.  If the
 patch is called tcl.diff, I applied the patch using
 
 patch -E -u -p1 < tcl.diff
 
 although I may be misunderstanding -E as I had to go into the patches
 subdirectory and delete the resulting 0-byte .orig files.  I also
 messed up and added a modified patch-unix_configure that actually
 doesn't do anything.
 
 diff --git a/distinfo b/distinfo
 index 054756d..3f3ff74 100644
 --- a/distinfo
 +++ b/distinfo
 @@ -6,10 +6,26 @@ Size (tcl8.6.1-src.tar.gz) = 8755700 bytes
  SHA1 (patch-generic_tclInt.h) = 13289d8fcf5021898b06a9608bc05fc968a1ba5c
  SHA1 (patch-generic_tclPort.h) = 36ff05b22591d588952e55d0f13c2ef52e371d1e
  SHA1 (patch-generic_tclPosixStr.c) = 68da211865282fe7124cad71381658f8dfb986d6
 +SHA1 (patch-pkgs_itcl4.0.0_configure) =
 d2e5a505fa621d615c1184fa0410370a74dcbe01
 +SHA1 (patch-pkgs_itcl4.0.0_tclconfig_tcl.m4) =
 5dd515c2628d13fd506562ecec587b541d4b5d33
 +SHA1 (patch-pkgs_sqlite3.8.0_configure) =
 87d5f90a63103c62f83d2c3c5896b2fef2a3287e
 +SHA1 (patch-pkgs_sqlite3.8.0_tclconfig_tcl.m4) =
 58034c576348719ec196e1bcf5351e132ee44eab
 +SHA1 (patch-pkgs_tdbc1.0.0_configure) =
 f597624bcab81ef68d26ca6571e8e96fd1f04bac
 +SHA1 (patch-pkgs_tdbc1.0.0_tclconfig_tcl.m4) =
 552e00dfa4f06098d984b36531465b5fcf0c9f92
 +SHA1 (patch-pkgs_tdbcmysql1.0.0_configure) =
 a69eceaaebaed8ed3b3c9d7538ae12ca374c10b6
 +SHA1 (patch-pkgs_tdbcmysql1.0.0_tclconfig_tcl.m4) =
 82b7ecec102bd90d261ffb38a08570fd2dc4519a
 +SHA1 (patch-pkgs_tdbcodbc1.0.0_configure) =
 b0bb6df84b329e8d2ec9c8baa45fa5c14bdb8f3a
 +SHA1 (patch-pkgs_tdbcodbc1.0.0_tclconfig_tcl.m4) =
 29d3ed5a5c380e8a0f7ed4402a6e682379618381
 +SHA1 (patch-pkgs_tdbcpostgres1.0.0_configure) =
 ae43ac317a564e2d7fe41f421c4ac157a372da6c
 +SHA1 (patch-pkgs_tdbcpostgres1.0.0_tclconfig_tcl.m4) =
 5fd110792d56ce23f2a81673f2bfc9f6e1e03175
 +SHA1 (patch-pkgs_tdbcsqlite3-1.0.0_tclconfig_tcl.m4) =
 22356ed4bb348aa6834ac1a29630766cc3a7fbb4
 +SHA1 (patch-pkgs_thread2.7.0_configure) =
 cd707e5da29580a7db33ab2e0894c101bb9283d3
 +SHA1 (patch-pkgs_thread2.7.0_tclconfig_tcl.m4) =
 b5050a345a69d7b52067d2e9be464a423f025adf
  SHA1 (patch-tests_load.test) = 438695ab76e01646e49aadc01c44344a5495eabb
  SHA1 (patch-tests_pkgMkIndex.test) = 70d1042c1f4743052c5fa191fa7c4732a08e28a2
  SHA1 (patch-unix_Makefile.in) = 1dee005fc4678a83259ba6dbec74d1c5753199b7
 -SHA1 (patch-unix_configure) = 873e678a1b2a6fd517414811ea37c26390ec0048
 +SHA1 (patch-unix_configure) = e8aa44b6c7828010c0276e820be5e2ccd0c4ee76
 +SHA1 (patch-unix_tcl.m4) = e3428fe60ce9c09aef1b3280628a19ab876f8d32
  SHA1 (patch-unix_tclConfig.sh.in) = 5a32d8e97240d14f3a03e205637fe3bf8307d868
  SHA1 (patch-unix_tclUnixCompat.c) = 7ffa40a1a56345f5b86cd896e8e3b0d5748d8c5e
  SHA1 (patch-unix_tclUnixFCmd.c) = e715d9419a36a8414355252bb3da0ef48b07fe4f
 diff --git a/patches/patch-pkgs_itcl4.0.0_configure
 b/patches/patch-pkgs_itcl4.0.0_configure
 new file mode 100644
 index 0000000..39f1b69
 --- /dev/null
 +++ b/patches/patch-pkgs_itcl4.0.0_configure
 @@ -0,0 +1,49 @@
 +$NetBSD$
 +
 +--- pkgs/itcl4.0.0/configure.orig    2014-01-12 16:42:57.532454000 +0000
 ++++ pkgs/itcl4.0.0/configure
 +@@ -8837,17 +8837,17 @@ fi
 +         ;;
 +         esac
 +         ;;
 +-    FreeBSD-*)
 ++    FreeBSD-*|DragonFly-*)
 +         # This configuration from FreeBSD Ports.
 +         SHLIB_CFLAGS="-fPIC"
 +         SHLIB_LD="${CC} -shared"
 +-        TCL_SHLIB_LD_EXTRAS="-soname \$@"
 ++        TCL_SHLIB_LD_EXTRAS="-Wl,-soname=\$@"
 +         SHLIB_SUFFIX=".so"
 +         LDFLAGS=""
 +         if test $doRpath = yes; then
 +
 +         CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
 +-        LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
 ++        LD_SEARCH_FLAGS='-Wl,-rpath ${LIB_RUNTIME_DIR}'
 + fi
 +
 +         if test "${TCL_THREADS}" = "1"; then
 +@@ -8859,10 +8859,10 @@ fi
 + fi
 +
 +         # Version numbers are dot-stripped by system policy.
 +-        TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .`
 +-        UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
 +-        SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
 +-        TCL_LIB_VERSIONS_OK=nodots
 ++#        TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .`
 ++#        UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
 ++#        SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
 ++#        TCL_LIB_VERSIONS_OK=nodots
 +         ;;
 +     Darwin-*)
 +         CFLAGS_OPTIMIZE="-Os"
 +@@ -9637,7 +9637,7 @@ fi
 +         BSD/OS*) ;;
 +         CYGWIN_*) ;;
 +         IRIX*) ;;
 +-        NetBSD-*|FreeBSD-*|OpenBSD-*) ;;
 ++        NetBSD-*|FreeBSD-*|OpenBSD-*|DragonFly-*) ;;
 +         Darwin-*) ;;
 +         SCO_SV-3.2*) ;;
 +         windows) ;;
 diff --git a/patches/patch-pkgs_itcl4.0.0_tclconfig_tcl.m4
 b/patches/patch-pkgs_itcl4.0.0_tclconfig_tcl.m4
 new file mode 100644
 index 0000000..fb72e9d
 --- /dev/null
 +++ b/patches/patch-pkgs_itcl4.0.0_tclconfig_tcl.m4
 @@ -0,0 +1,47 @@
 +$NetBSD$
 +
 +--- pkgs/itcl4.0.0/tclconfig/tcl.m4.orig    2014-01-12 18:54:39.889121000 
+0000
 ++++ pkgs/itcl4.0.0/tclconfig/tcl.m4
 +@@ -1659,26 +1659,26 @@ AC_DEFUN([TEA_CONFIG_CFLAGS], [
 +         ;;
 +         esac
 +         ;;
 +-    FreeBSD-*)
 ++    FreeBSD-*|DragonFly-*)
 +         # This configuration from FreeBSD Ports.
 +         SHLIB_CFLAGS="-fPIC"
 +         SHLIB_LD="${CC} -shared"
 +-        TCL_SHLIB_LD_EXTRAS="-soname \$[@]"
 ++        TCL_SHLIB_LD_EXTRAS="-Wl,-soname=\$[@]"
 +         SHLIB_SUFFIX=".so"
 +         LDFLAGS=""
 +         AS_IF([test $doRpath = yes], [
 +         CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
 +-        LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'])
 ++        LD_SEARCH_FLAGS='-Wl,-rpath ${LIB_RUNTIME_DIR}'])
 +         AS_IF([test "${TCL_THREADS}" = "1"], [
 +         # The -pthread needs to go in the LDFLAGS, not LIBS
 +         LIBS=`echo $LIBS | sed s/-pthread//`
 +         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
 +         LDFLAGS="$LDFLAGS $PTHREAD_LIBS"])
 +         # Version numbers are dot-stripped by system policy.
 +-        TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .`
 +-        UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
 +-        SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
 +-        TCL_LIB_VERSIONS_OK=nodots
 ++#        TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .`
 ++#        UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
 ++#        SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
 ++#        TCL_LIB_VERSIONS_OK=nodots
 +         ;;
 +     Darwin-*)
 +         CFLAGS_OPTIMIZE="-Os"
 +@@ -1999,7 +1999,7 @@ dnl # preprocessing tests use only CPPFL
 +         BSD/OS*) ;;
 +         CYGWIN_*) ;;
 +         IRIX*) ;;
 +-        NetBSD-*|FreeBSD-*|OpenBSD-*) ;;
 ++        NetBSD-*|FreeBSD-*|OpenBSD-*|DragonFly-*) ;;
 +         Darwin-*) ;;
 +         SCO_SV-3.2*) ;;
 +         windows) ;;
 diff --git a/patches/patch-pkgs_sqlite3.8.0_configure
 b/patches/patch-pkgs_sqlite3.8.0_configure
 new file mode 100644
 index 0000000..2f734df
 --- /dev/null
 +++ b/patches/patch-pkgs_sqlite3.8.0_configure
 @@ -0,0 +1,49 @@
 +$NetBSD$
 +
 +--- pkgs/sqlite3.8.0/configure.orig    2014-01-12 16:44:01.812508000 +0000
 ++++ pkgs/sqlite3.8.0/configure
 +@@ -6547,17 +6547,17 @@ fi
 +         ;;
 +         esac
 +         ;;
 +-    FreeBSD-*)
 ++    FreeBSD-*|DragonFly-*)
 +         # This configuration from FreeBSD Ports.
 +         SHLIB_CFLAGS="-fPIC"
 +         SHLIB_LD="${CC} -shared"
 +-        TCL_SHLIB_LD_EXTRAS="-soname \$@"
 ++        TCL_SHLIB_LD_EXTRAS="-Wl,-soname=\$@"
 +         SHLIB_SUFFIX=".so"
 +         LDFLAGS=""
 +         if test $doRpath = yes; then :
 +
 +         CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
 +-        LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
 ++        LD_SEARCH_FLAGS='-Wl,-rpath ${LIB_RUNTIME_DIR}'
 + fi
 +         if test "${TCL_THREADS}" = "1"; then :
 +
 +@@ -6567,10 +6567,10 @@ fi
 +         LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
 + fi
 +         # Version numbers are dot-stripped by system policy.
 +-        TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .`
 +-        UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
 +-        SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
 +-        TCL_LIB_VERSIONS_OK=nodots
 ++#        TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .`
 ++#        UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
 ++#        SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
 ++#        TCL_LIB_VERSIONS_OK=nodots
 +         ;;
 +     Darwin-*)
 +         CFLAGS_OPTIMIZE="-Os"
 +@@ -7134,7 +7134,7 @@ fi
 +         BSD/OS*) ;;
 +         CYGWIN_*) ;;
 +         IRIX*) ;;
 +-        NetBSD-*|FreeBSD-*|OpenBSD-*) ;;
 ++        NetBSD-*|FreeBSD-*|OpenBSD-*|DragonFly-*) ;;
 +         Darwin-*) ;;
 +         SCO_SV-3.2*) ;;
 +         windows) ;;
 diff --git a/patches/patch-pkgs_sqlite3.8.0_tclconfig_tcl.m4
 b/patches/patch-pkgs_sqlite3.8.0_tclconfig_tcl.m4
 new file mode 100644
 index 0000000..1590b7b
 --- /dev/null
 +++ b/patches/patch-pkgs_sqlite3.8.0_tclconfig_tcl.m4
 @@ -0,0 +1,47 @@
 +$NetBSD$
 +
 +--- pkgs/sqlite3.8.0/tclconfig/tcl.m4.orig    2014-01-12
 18:39:06.288333000 +0000
 ++++ pkgs/sqlite3.8.0/tclconfig/tcl.m4
 +@@ -1627,26 +1627,26 @@ dnl AC_CHECK_TOOL(AR, ar)
 +         ;;
 +         esac
 +         ;;
 +-    FreeBSD-*)
 ++    FreeBSD-*|DragonFly-*)
 +         # This configuration from FreeBSD Ports.
 +         SHLIB_CFLAGS="-fPIC"
 +         SHLIB_LD="${CC} -shared"
 +-        TCL_SHLIB_LD_EXTRAS="-soname \$[@]"
 ++        TCL_SHLIB_LD_EXTRAS="-Wl,-soname=\$[@]"
 +         SHLIB_SUFFIX=".so"
 +         LDFLAGS=""
 +         AS_IF([test $doRpath = yes], [
 +         CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
 +-        LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'])
 ++        LD_SEARCH_FLAGS='-Wl,-rpath ${LIB_RUNTIME_DIR}'])
 +         AS_IF([test "${TCL_THREADS}" = "1"], [
 +         # The -pthread needs to go in the LDFLAGS, not LIBS
 +         LIBS=`echo $LIBS | sed s/-pthread//`
 +         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
 +         LDFLAGS="$LDFLAGS $PTHREAD_LIBS"])
 +         # Version numbers are dot-stripped by system policy.
 +-        TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .`
 +-        UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
 +-        SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
 +-        TCL_LIB_VERSIONS_OK=nodots
 ++#        TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .`
 ++#        UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
 ++#        SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
 ++#        TCL_LIB_VERSIONS_OK=nodots
 +         ;;
 +     Darwin-*)
 +         CFLAGS_OPTIMIZE="-Os"
 +@@ -1967,7 +1967,7 @@ dnl # preprocessing tests use only CPPFL
 +         BSD/OS*) ;;
 +         CYGWIN_*) ;;
 +         IRIX*) ;;
 +-        NetBSD-*|FreeBSD-*|OpenBSD-*) ;;
 ++        NetBSD-*|FreeBSD-*|OpenBSD-*|DragonFly-*) ;;
 +         Darwin-*) ;;
 +         SCO_SV-3.2*) ;;
 +         windows) ;;
 diff --git a/patches/patch-pkgs_tdbc1.0.0_configure
 b/patches/patch-pkgs_tdbc1.0.0_configure
 new file mode 100644
 index 0000000..c685ffe
 --- /dev/null
 +++ b/patches/patch-pkgs_tdbc1.0.0_configure
 @@ -0,0 +1,49 @@
 +$NetBSD$
 +
 +--- pkgs/tdbc1.0.0/configure.orig    2014-01-12 16:44:58.322556000 +0000
 ++++ pkgs/tdbc1.0.0/configure
 +@@ -9497,17 +9497,17 @@ fi
 +         ;;
 +         esac
 +         ;;
 +-    FreeBSD-*)
 ++    FreeBSD-*|DragonFly-*)
 +         # This configuration from FreeBSD Ports.
 +         SHLIB_CFLAGS="-fPIC"
 +         SHLIB_LD="${CC} -shared"
 +-        TCL_SHLIB_LD_EXTRAS="-soname \$@"
 ++        TCL_SHLIB_LD_EXTRAS="-Wl,-soname=\$@"
 +         SHLIB_SUFFIX=".so"
 +         LDFLAGS=""
 +         if test $doRpath = yes; then
 +
 +         CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
 +-        LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
 ++        LD_SEARCH_FLAGS='-Wl,-rpath ${LIB_RUNTIME_DIR}'
 + fi
 +
 +         if test "${TCL_THREADS}" = "1"; then
 +@@ -9519,10 +9519,10 @@ fi
 + fi
 +
 +         # Version numbers are dot-stripped by system policy.
 +-        TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .`
 +-        UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
 +-        SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
 +-        TCL_LIB_VERSIONS_OK=nodots
 ++#        TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .`
 ++#        UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
 ++#        SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
 ++#        TCL_LIB_VERSIONS_OK=nodots
 +         ;;
 +     Darwin-*)
 +         CFLAGS_OPTIMIZE="-Os"
 +@@ -10297,7 +10297,7 @@ fi
 +         BSD/OS*) ;;
 +         CYGWIN_*) ;;
 +         IRIX*) ;;
 +-        NetBSD-*|FreeBSD-*|OpenBSD-*) ;;
 ++        NetBSD-*|FreeBSD-*|OpenBSD-*|DragonFly-*) ;;
 +         Darwin-*) ;;
 +         SCO_SV-3.2*) ;;
 +         windows) ;;
 diff --git a/patches/patch-pkgs_tdbc1.0.0_tclconfig_tcl.m4
 b/patches/patch-pkgs_tdbc1.0.0_tclconfig_tcl.m4
 new file mode 100644
 index 0000000..71fecc1
 --- /dev/null
 +++ b/patches/patch-pkgs_tdbc1.0.0_tclconfig_tcl.m4
 @@ -0,0 +1,47 @@
 +$NetBSD$
 +
 +--- pkgs/tdbc1.0.0/tclconfig/tcl.m4.orig    2014-01-12 18:22:22.877486000 
+0000
 ++++ pkgs/tdbc1.0.0/tclconfig/tcl.m4
 +@@ -1659,26 +1659,26 @@ AC_DEFUN([TEA_CONFIG_CFLAGS], [
 +         ;;
 +         esac
 +         ;;
 +-    FreeBSD-*)
 ++    FreeBSD-*|DragonFly-*)
 +         # This configuration from FreeBSD Ports.
 +         SHLIB_CFLAGS="-fPIC"
 +         SHLIB_LD="${CC} -shared"
 +-        TCL_SHLIB_LD_EXTRAS="-soname \$[@]"
 ++        TCL_SHLIB_LD_EXTRAS="-Wl,-soname=\$[@]"
 +         SHLIB_SUFFIX=".so"
 +         LDFLAGS=""
 +         AS_IF([test $doRpath = yes], [
 +         CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
 +-        LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'])
 ++        LD_SEARCH_FLAGS='-Wl,-rpath ${LIB_RUNTIME_DIR}'])
 +         AS_IF([test "${TCL_THREADS}" = "1"], [
 +         # The -pthread needs to go in the LDFLAGS, not LIBS
 +         LIBS=`echo $LIBS | sed s/-pthread//`
 +         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
 +         LDFLAGS="$LDFLAGS $PTHREAD_LIBS"])
 +         # Version numbers are dot-stripped by system policy.
 +-        TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .`
 +-        UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
 +-        SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
 +-        TCL_LIB_VERSIONS_OK=nodots
 ++#        TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .`
 ++#        UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
 ++#        SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
 ++#        TCL_LIB_VERSIONS_OK=nodots
 +         ;;
 +     Darwin-*)
 +         CFLAGS_OPTIMIZE="-Os"
 +@@ -1999,7 +1999,7 @@ dnl # preprocessing tests use only CPPFL
 +         BSD/OS*) ;;
 +         CYGWIN_*) ;;
 +         IRIX*) ;;
 +-        NetBSD-*|FreeBSD-*|OpenBSD-*) ;;
 ++        NetBSD-*|FreeBSD-*|OpenBSD-*|DragonFly-*) ;;
 +         Darwin-*) ;;
 +         SCO_SV-3.2*) ;;
 +         windows) ;;
 diff --git a/patches/patch-pkgs_tdbcmysql1.0.0_configure
 b/patches/patch-pkgs_tdbcmysql1.0.0_configure
 new file mode 100644
 index 0000000..3170927
 --- /dev/null
 +++ b/patches/patch-pkgs_tdbcmysql1.0.0_configure
 @@ -0,0 +1,49 @@
 +$NetBSD$
 +
 +--- pkgs/tdbcmysql1.0.0/configure.orig    2014-01-12 16:46:48.192649000 +0000
 ++++ pkgs/tdbcmysql1.0.0/configure
 +@@ -7853,17 +7853,17 @@ fi
 +         ;;
 +         esac
 +         ;;
 +-    FreeBSD-*)
 ++    FreeBSD-*|DragonFly-*)
 +         # This configuration from FreeBSD Ports.
 +         SHLIB_CFLAGS="-fPIC"
 +         SHLIB_LD="${CC} -shared"
 +-        TCL_SHLIB_LD_EXTRAS="-soname \$@"
 ++        TCL_SHLIB_LD_EXTRAS="-Wl,-soname=\$@"
 +         SHLIB_SUFFIX=".so"
 +         LDFLAGS=""
 +         if test $doRpath = yes; then :
 +
 +         CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
 +-        LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
 ++        LD_SEARCH_FLAGS='-Wl,-rpath ${LIB_RUNTIME_DIR}'
 + fi
 +         if test "${TCL_THREADS}" = "1"; then :
 +
 +@@ -7873,10 +7873,10 @@ fi
 +         LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
 + fi
 +         # Version numbers are dot-stripped by system policy.
 +-        TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .`
 +-        UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
 +-        SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
 +-        TCL_LIB_VERSIONS_OK=nodots
 ++#        TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .`
 ++#        UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
 ++#        SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
 ++#        TCL_LIB_VERSIONS_OK=nodots
 +         ;;
 +     Darwin-*)
 +         CFLAGS_OPTIMIZE="-Os"
 +@@ -8440,7 +8440,7 @@ fi
 +         BSD/OS*) ;;
 +         CYGWIN_*) ;;
 +         IRIX*) ;;
 +-        NetBSD-*|FreeBSD-*|OpenBSD-*) ;;
 ++        NetBSD-*|FreeBSD-*|OpenBSD-*|DragonFly-*) ;;
 +         Darwin-*) ;;
 +         SCO_SV-3.2*) ;;
 +         windows) ;;
 diff --git a/patches/patch-pkgs_tdbcmysql1.0.0_tclconfig_tcl.m4
 b/patches/patch-pkgs_tdbcmysql1.0.0_tclconfig_tcl.m4
 new file mode 100644
 index 0000000..0b502d1
 --- /dev/null
 +++ b/patches/patch-pkgs_tdbcmysql1.0.0_tclconfig_tcl.m4
 @@ -0,0 +1,47 @@
 +$NetBSD$
 +
 +--- pkgs/tdbcmysql1.0.0/tclconfig/tcl.m4.orig    2014-01-12
 18:26:36.957701000 +0000
 ++++ pkgs/tdbcmysql1.0.0/tclconfig/tcl.m4
 +@@ -1659,26 +1659,26 @@ AC_DEFUN([TEA_CONFIG_CFLAGS], [
 +         ;;
 +         esac
 +         ;;
 +-    FreeBSD-*)
 ++    FreeBSD-*|DragonFly-*)
 +         # This configuration from FreeBSD Ports.
 +         SHLIB_CFLAGS="-fPIC"
 +         SHLIB_LD="${CC} -shared"
 +-        TCL_SHLIB_LD_EXTRAS="-soname \$[@]"
 ++        TCL_SHLIB_LD_EXTRAS="-Wl,-soname=\$[@]"
 +         SHLIB_SUFFIX=".so"
 +         LDFLAGS=""
 +         AS_IF([test $doRpath = yes], [
 +         CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
 +-        LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'])
 ++        LD_SEARCH_FLAGS='-Wl,-rpath ${LIB_RUNTIME_DIR}'])
 +         AS_IF([test "${TCL_THREADS}" = "1"], [
 +         # The -pthread needs to go in the LDFLAGS, not LIBS
 +         LIBS=`echo $LIBS | sed s/-pthread//`
 +         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
 +         LDFLAGS="$LDFLAGS $PTHREAD_LIBS"])
 +         # Version numbers are dot-stripped by system policy.
 +-        TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .`
 +-        UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
 +-        SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
 +-        TCL_LIB_VERSIONS_OK=nodots
 ++#        TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .`
 ++#        UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
 ++#        SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
 ++#        TCL_LIB_VERSIONS_OK=nodots
 +         ;;
 +     Darwin-*)
 +         CFLAGS_OPTIMIZE="-Os"
 +@@ -1999,7 +1999,7 @@ dnl # preprocessing tests use only CPPFL
 +         BSD/OS*) ;;
 +         CYGWIN_*) ;;
 +         IRIX*) ;;
 +-        NetBSD-*|FreeBSD-*|OpenBSD-*) ;;
 ++        NetBSD-*|FreeBSD-*|OpenBSD-*|DragonFly-*) ;;
 +         Darwin-*) ;;
 +         SCO_SV-3.2*) ;;
 +         windows) ;;
 diff --git a/patches/patch-pkgs_tdbcodbc1.0.0_configure
 b/patches/patch-pkgs_tdbcodbc1.0.0_configure
 new file mode 100644
 index 0000000..82e0f08
 --- /dev/null
 +++ b/patches/patch-pkgs_tdbcodbc1.0.0_configure
 @@ -0,0 +1,49 @@
 +$NetBSD$
 +
 +--- pkgs/tdbcodbc1.0.0/configure.orig    2014-01-12 16:47:54.462704000 +0000
 ++++ pkgs/tdbcodbc1.0.0/configure
 +@@ -7847,17 +7847,17 @@ fi
 +         ;;
 +         esac
 +         ;;
 +-    FreeBSD-*)
 ++    FreeBSD-*|DragonFly-*)
 +         # This configuration from FreeBSD Ports.
 +         SHLIB_CFLAGS="-fPIC"
 +         SHLIB_LD="${CC} -shared"
 +-        TCL_SHLIB_LD_EXTRAS="-soname \$@"
 ++        TCL_SHLIB_LD_EXTRAS="-Wl,-soname=\$@"
 +         SHLIB_SUFFIX=".so"
 +         LDFLAGS=""
 +         if test $doRpath = yes; then :
 +
 +         CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
 +-        LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
 ++        LD_SEARCH_FLAGS='-Wl,-rpath ${LIB_RUNTIME_DIR}'
 + fi
 +         if test "${TCL_THREADS}" = "1"; then :
 +
 +@@ -7867,10 +7867,10 @@ fi
 +         LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
 + fi
 +         # Version numbers are dot-stripped by system policy.
 +-        TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .`
 +-        UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
 +-        SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
 +-        TCL_LIB_VERSIONS_OK=nodots
 ++#        TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .`
 ++#        UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
 ++#        SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
 ++#        TCL_LIB_VERSIONS_OK=nodots
 +         ;;
 +     Darwin-*)
 +         CFLAGS_OPTIMIZE="-Os"
 +@@ -8434,7 +8434,7 @@ fi
 +         BSD/OS*) ;;
 +         CYGWIN_*) ;;
 +         IRIX*) ;;
 +-        NetBSD-*|FreeBSD-*|OpenBSD-*) ;;
 ++        NetBSD-*|FreeBSD-*|OpenBSD-*|DragonFly-*) ;;
 +         Darwin-*) ;;
 +         SCO_SV-3.2*) ;;
 +         windows) ;;
 diff --git a/patches/patch-pkgs_tdbcodbc1.0.0_tclconfig_tcl.m4
 b/patches/patch-pkgs_tdbcodbc1.0.0_tclconfig_tcl.m4
 new file mode 100644
 index 0000000..2579972
 --- /dev/null
 +++ b/patches/patch-pkgs_tdbcodbc1.0.0_tclconfig_tcl.m4
 @@ -0,0 +1,47 @@
 +$NetBSD$
 +
 +--- pkgs/tdbcodbc1.0.0/tclconfig/tcl.m4.orig    2014-01-12
 18:46:32.368709000 +0000
 ++++ pkgs/tdbcodbc1.0.0/tclconfig/tcl.m4
 +@@ -1659,26 +1659,26 @@ AC_DEFUN([TEA_CONFIG_CFLAGS], [
 +         ;;
 +         esac
 +         ;;
 +-    FreeBSD-*)
 ++    FreeBSD-*|DragonFly-*)
 +         # This configuration from FreeBSD Ports.
 +         SHLIB_CFLAGS="-fPIC"
 +         SHLIB_LD="${CC} -shared"
 +-        TCL_SHLIB_LD_EXTRAS="-soname \$[@]"
 ++        TCL_SHLIB_LD_EXTRAS="-Wl,-soname=\$[@]"
 +         SHLIB_SUFFIX=".so"
 +         LDFLAGS=""
 +         AS_IF([test $doRpath = yes], [
 +         CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
 +-        LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'])
 ++        LD_SEARCH_FLAGS='-Wl,-rpath ${LIB_RUNTIME_DIR}'])
 +         AS_IF([test "${TCL_THREADS}" = "1"], [
 +         # The -pthread needs to go in the LDFLAGS, not LIBS
 +         LIBS=`echo $LIBS | sed s/-pthread//`
 +         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
 +         LDFLAGS="$LDFLAGS $PTHREAD_LIBS"])
 +         # Version numbers are dot-stripped by system policy.
 +-        TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .`
 +-        UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
 +-        SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
 +-        TCL_LIB_VERSIONS_OK=nodots
 ++#        TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .`
 ++#        UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
 ++#        SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
 ++#        TCL_LIB_VERSIONS_OK=nodots
 +         ;;
 +     Darwin-*)
 +         CFLAGS_OPTIMIZE="-Os"
 +@@ -1999,7 +1999,7 @@ dnl # preprocessing tests use only CPPFL
 +         BSD/OS*) ;;
 +         CYGWIN_*) ;;
 +         IRIX*) ;;
 +-        NetBSD-*|FreeBSD-*|OpenBSD-*) ;;
 ++        NetBSD-*|FreeBSD-*|OpenBSD-*|DragonFly-*) ;;
 +         Darwin-*) ;;
 +         SCO_SV-3.2*) ;;
 +         windows) ;;
 diff --git a/patches/patch-pkgs_tdbcpostgres1.0.0_configure
 b/patches/patch-pkgs_tdbcpostgres1.0.0_configure
 new file mode 100644
 index 0000000..b489c0d
 --- /dev/null
 +++ b/patches/patch-pkgs_tdbcpostgres1.0.0_configure
 @@ -0,0 +1,49 @@
 +$NetBSD$
 +
 +--- pkgs/tdbcpostgres1.0.0/configure.orig    2014-01-12
 16:51:18.052876000 +0000
 ++++ pkgs/tdbcpostgres1.0.0/configure
 +@@ -7847,17 +7847,17 @@ fi
 +         ;;
 +         esac
 +         ;;
 +-    FreeBSD-*)
 ++    FreeBSD-*|DragonFly-*)
 +         # This configuration from FreeBSD Ports.
 +         SHLIB_CFLAGS="-fPIC"
 +         SHLIB_LD="${CC} -shared"
 +-        TCL_SHLIB_LD_EXTRAS="-soname \$@"
 ++        TCL_SHLIB_LD_EXTRAS="-Wl,-soname=\$@"
 +         SHLIB_SUFFIX=".so"
 +         LDFLAGS=""
 +         if test $doRpath = yes; then :
 +
 +         CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
 +-        LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
 ++        LD_SEARCH_FLAGS='-Wl,-rpath ${LIB_RUNTIME_DIR}'
 + fi
 +         if test "${TCL_THREADS}" = "1"; then :
 +
 +@@ -7867,10 +7867,10 @@ fi
 +         LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
 + fi
 +         # Version numbers are dot-stripped by system policy.
 +-        TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .`
 +-        UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
 +-        SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
 +-        TCL_LIB_VERSIONS_OK=nodots
 ++#        TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .`
 ++#        UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
 ++#        SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
 ++#        TCL_LIB_VERSIONS_OK=nodots
 +         ;;
 +     Darwin-*)
 +         CFLAGS_OPTIMIZE="-Os"
 +@@ -8434,7 +8434,7 @@ fi
 +         BSD/OS*) ;;
 +         CYGWIN_*) ;;
 +         IRIX*) ;;
 +-        NetBSD-*|FreeBSD-*|OpenBSD-*) ;;
 ++        NetBSD-*|FreeBSD-*|OpenBSD-*|DragonFly-*) ;;
 +         Darwin-*) ;;
 +         SCO_SV-3.2*) ;;
 +         windows) ;;
 diff --git a/patches/patch-pkgs_tdbcpostgres1.0.0_tclconfig_tcl.m4
 b/patches/patch-pkgs_tdbcpostgres1.0.0_tclconfig_tcl.m4
 new file mode 100644
 index 0000000..8a1d460
 --- /dev/null
 +++ b/patches/patch-pkgs_tdbcpostgres1.0.0_tclconfig_tcl.m4
 @@ -0,0 +1,47 @@
 +$NetBSD$
 +
 +--- pkgs/tdbcpostgres1.0.0/tclconfig/tcl.m4.orig    2014-01-12
 18:17:30.717240000 +0000
 ++++ pkgs/tdbcpostgres1.0.0/tclconfig/tcl.m4
 +@@ -1659,26 +1659,26 @@ AC_DEFUN([TEA_CONFIG_CFLAGS], [
 +         ;;
 +         esac
 +         ;;
 +-    FreeBSD-*)
 ++    FreeBSD-*|DragonFly-*)
 +         # This configuration from FreeBSD Ports.
 +         SHLIB_CFLAGS="-fPIC"
 +         SHLIB_LD="${CC} -shared"
 +-        TCL_SHLIB_LD_EXTRAS="-soname \$[@]"
 ++        TCL_SHLIB_LD_EXTRAS="-Wl,-soname=\$[@]"
 +         SHLIB_SUFFIX=".so"
 +         LDFLAGS=""
 +         AS_IF([test $doRpath = yes], [
 +         CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
 +-        LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'])
 ++        LD_SEARCH_FLAGS='-Wl,-rpath ${LIB_RUNTIME_DIR}'])
 +         AS_IF([test "${TCL_THREADS}" = "1"], [
 +         # The -pthread needs to go in the LDFLAGS, not LIBS
 +         LIBS=`echo $LIBS | sed s/-pthread//`
 +         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
 +         LDFLAGS="$LDFLAGS $PTHREAD_LIBS"])
 +         # Version numbers are dot-stripped by system policy.
 +-        TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .`
 +-        UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
 +-        SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
 +-        TCL_LIB_VERSIONS_OK=nodots
 ++#        TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .`
 ++#        UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
 ++#        SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
 ++#        TCL_LIB_VERSIONS_OK=nodots
 +         ;;
 +     Darwin-*)
 +         CFLAGS_OPTIMIZE="-Os"
 +@@ -1999,7 +1999,7 @@ dnl # preprocessing tests use only CPPFL
 +         BSD/OS*) ;;
 +         CYGWIN_*) ;;
 +         IRIX*) ;;
 +-        NetBSD-*|FreeBSD-*|OpenBSD-*) ;;
 ++        NetBSD-*|FreeBSD-*|OpenBSD-*|DragonFly-*) ;;
 +         Darwin-*) ;;
 +         SCO_SV-3.2*) ;;
 +         windows) ;;
 diff --git a/patches/patch-pkgs_tdbcsqlite3-1.0.0_tclconfig_tcl.m4
 b/patches/patch-pkgs_tdbcsqlite3-1.0.0_tclconfig_tcl.m4
 new file mode 100644
 index 0000000..88247ac
 --- /dev/null
 +++ b/patches/patch-pkgs_tdbcsqlite3-1.0.0_tclconfig_tcl.m4
 @@ -0,0 +1,47 @@
 +$NetBSD$
 +
 +--- pkgs/tdbcsqlite3-1.0.0/tclconfig/tcl.m4.orig    2014-01-12
 18:10:36.936891000 +0000
 ++++ pkgs/tdbcsqlite3-1.0.0/tclconfig/tcl.m4
 +@@ -1659,26 +1659,26 @@ AC_DEFUN([TEA_CONFIG_CFLAGS], [
 +         ;;
 +         esac
 +         ;;
 +-    FreeBSD-*)
 ++    FreeBSD-*|DragonFly-*)
 +         # This configuration from FreeBSD Ports.
 +         SHLIB_CFLAGS="-fPIC"
 +         SHLIB_LD="${CC} -shared"
 +-        TCL_SHLIB_LD_EXTRAS="-soname \$[@]"
 ++        TCL_SHLIB_LD_EXTRAS="-Wl,-soname=\$[@]"
 +         SHLIB_SUFFIX=".so"
 +         LDFLAGS=""
 +         AS_IF([test $doRpath = yes], [
 +         CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
 +-        LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'])
 ++        LD_SEARCH_FLAGS='-Wl,-rpath ${LIB_RUNTIME_DIR}'])
 +         AS_IF([test "${TCL_THREADS}" = "1"], [
 +         # The -pthread needs to go in the LDFLAGS, not LIBS
 +         LIBS=`echo $LIBS | sed s/-pthread//`
 +         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
 +         LDFLAGS="$LDFLAGS $PTHREAD_LIBS"])
 +         # Version numbers are dot-stripped by system policy.
 +-        TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .`
 +-        UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
 +-        SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
 +-        TCL_LIB_VERSIONS_OK=nodots
 ++#        TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .`
 ++#        UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
 ++#        SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
 ++#        TCL_LIB_VERSIONS_OK=nodots
 +         ;;
 +     Darwin-*)
 +         CFLAGS_OPTIMIZE="-Os"
 +@@ -1999,7 +1999,7 @@ dnl # preprocessing tests use only CPPFL
 +         BSD/OS*) ;;
 +         CYGWIN_*) ;;
 +         IRIX*) ;;
 +-        NetBSD-*|FreeBSD-*|OpenBSD-*) ;;
 ++        NetBSD-*|FreeBSD-*|OpenBSD-*|DragonFly-*) ;;
 +         Darwin-*) ;;
 +         SCO_SV-3.2*) ;;
 +         windows) ;;
 diff --git a/patches/patch-pkgs_thread2.7.0_configure
 b/patches/patch-pkgs_thread2.7.0_configure
 new file mode 100644
 index 0000000..e29239e
 --- /dev/null
 +++ b/patches/patch-pkgs_thread2.7.0_configure
 @@ -0,0 +1,49 @@
 +$NetBSD$
 +
 +--- pkgs/thread2.7.0/configure.orig    2014-01-12 17:01:27.833391000 +0000
 ++++ pkgs/thread2.7.0/configure
 +@@ -9387,17 +9387,17 @@ fi
 +         ;;
 +         esac
 +         ;;
 +-    FreeBSD-*)
 ++    FreeBSD-*|DragonFly-*)
 +         # This configuration from FreeBSD Ports.
 +         SHLIB_CFLAGS="-fPIC"
 +         SHLIB_LD="${CC} -shared"
 +-        TCL_SHLIB_LD_EXTRAS="-soname \$@"
 ++        TCL_SHLIB_LD_EXTRAS="-Wl,-soname=\$@"
 +         SHLIB_SUFFIX=".so"
 +         LDFLAGS=""
 +         if test $doRpath = yes; then
 +
 +         CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
 +-        LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
 ++        LD_SEARCH_FLAGS='-Wl,-rpath ${LIB_RUNTIME_DIR}'
 + fi
 +
 +         if test "${TCL_THREADS}" = "1"; then
 +@@ -9409,10 +9409,10 @@ fi
 + fi
 +
 +         # Version numbers are dot-stripped by system policy.
 +-        TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .`
 +-        UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
 +-        SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
 +-        TCL_LIB_VERSIONS_OK=nodots
 ++#        TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .`
 ++#        UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
 ++#        SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
 ++#        TCL_LIB_VERSIONS_OK=nodots
 +         ;;
 +     Darwin-*)
 +         CFLAGS_OPTIMIZE="-Os"
 +@@ -10187,7 +10187,7 @@ fi
 +         BSD/OS*) ;;
 +         CYGWIN_*) ;;
 +         IRIX*) ;;
 +-        NetBSD-*|FreeBSD-*|OpenBSD-*) ;;
 ++        NetBSD-*|FreeBSD-*|OpenBSD-*|DragonFly-*) ;;
 +         Darwin-*) ;;
 +         SCO_SV-3.2*) ;;
 +         windows) ;;
 diff --git a/patches/patch-pkgs_thread2.7.0_tclconfig_tcl.m4
 b/patches/patch-pkgs_thread2.7.0_tclconfig_tcl.m4
 new file mode 100644
 index 0000000..34b9c43
 --- /dev/null
 +++ b/patches/patch-pkgs_thread2.7.0_tclconfig_tcl.m4
 @@ -0,0 +1,47 @@
 +$NetBSD$
 +
 +--- pkgs/thread2.7.0/tclconfig/tcl.m4.orig    2014-01-12
 18:35:41.998161000 +0000
 ++++ pkgs/thread2.7.0/tclconfig/tcl.m4
 +@@ -1659,26 +1659,26 @@ AC_DEFUN([TEA_CONFIG_CFLAGS], [
 +         ;;
 +         esac
 +         ;;
 +-    FreeBSD-*)
 ++    FreeBSD-*|DragonFly-*)
 +         # This configuration from FreeBSD Ports.
 +         SHLIB_CFLAGS="-fPIC"
 +         SHLIB_LD="${CC} -shared"
 +-        TCL_SHLIB_LD_EXTRAS="-soname \$[@]"
 ++        TCL_SHLIB_LD_EXTRAS="-Wl,-soname=\$[@]"
 +         SHLIB_SUFFIX=".so"
 +         LDFLAGS=""
 +         AS_IF([test $doRpath = yes], [
 +         CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
 +-        LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'])
 ++        LD_SEARCH_FLAGS='-Wl,-rpath ${LIB_RUNTIME_DIR}'])
 +         AS_IF([test "${TCL_THREADS}" = "1"], [
 +         # The -pthread needs to go in the LDFLAGS, not LIBS
 +         LIBS=`echo $LIBS | sed s/-pthread//`
 +         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
 +         LDFLAGS="$LDFLAGS $PTHREAD_LIBS"])
 +         # Version numbers are dot-stripped by system policy.
 +-        TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .`
 +-        UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
 +-        SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
 +-        TCL_LIB_VERSIONS_OK=nodots
 ++#        TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .`
 ++#        UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
 ++#        SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
 ++#        TCL_LIB_VERSIONS_OK=nodots
 +         ;;
 +     Darwin-*)
 +         CFLAGS_OPTIMIZE="-Os"
 +@@ -1999,7 +1999,7 @@ dnl # preprocessing tests use only CPPFL
 +         BSD/OS*) ;;
 +         CYGWIN_*) ;;
 +         IRIX*) ;;
 +-        NetBSD-*|FreeBSD-*|OpenBSD-*) ;;
 ++        NetBSD-*|FreeBSD-*|OpenBSD-*|DragonFly-*) ;;
 +         Darwin-*) ;;
 +         SCO_SV-3.2*) ;;
 +         windows) ;;
 diff --git a/patches/patch-unix_configure b/patches/patch-unix_configure
 index a6df4b8..4f11619 100644
 --- a/patches/patch-unix_configure
 +++ b/patches/patch-unix_configure
 @@ -1,4 +1,4 @@
 -$NetBSD: patch-unix_configure,v 1.6 2014/01/11 14:41:05 adam Exp $
 +$NetBSD$
 
  --- unix/configure.orig    2013-09-19 20:17:13.000000000 +0000
  +++ unix/configure
 @@ -162,7 +162,7 @@ $NetBSD: patch-unix_configure,v 1.6 2014/01/11
 14:41:05 adam Exp $
 
 
 
 -@@ -20092,6 +20067,7 @@ s,@EXTRA_BUILD_HTML@,$EXTRA_BUILD_HTML,;
 +@@ -20092,6 +20069,7 @@ s,@EXTRA_BUILD_HTML@,$EXTRA_BUILD_HTML,;
   s,@EXTRA_TCLSH_LIBS@,$EXTRA_TCLSH_LIBS,;t t
   s,@DLTEST_LD@,$DLTEST_LD,;t t
   s,@DLTEST_SUFFIX@,$DLTEST_SUFFIX,;t t
 diff --git a/patches/patch-unix_tcl.m4 b/patches/patch-unix_tcl.m4
 new file mode 100644
 index 0000000..88bcc9f
 --- /dev/null
 +++ b/patches/patch-unix_tcl.m4
 @@ -0,0 +1,13 @@
 +$NetBSD$
 +
 +--- unix/tcl.m4.orig    2014-01-12 17:44:58.325593000 +0000
 ++++ unix/tcl.m4
 +@@ -1538,7 +1538,7 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [
 +             LDFLAGS="$LDFLAGS -pthread"
 +         ])
 +         ;;
 +-    FreeBSD-*)
 ++    FreeBSD-*|DragonFly-*)
 +         # This configuration from FreeBSD Ports.
 +         SHLIB_CFLAGS="-fPIC"
 +         SHLIB_LD="${CC} -shared"
 


Home | Main Index | Thread Index | Old Index