aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/xerces-c27/files
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-03-15 06:59:20 +0800
committerpav <pav@FreeBSD.org>2004-03-15 06:59:20 +0800
commitd167ac48e507a311f2bcf9109ad9040ec1c2a97a (patch)
tree3291753abb960589b3f7c3d6d24209e18a06c276 /textproc/xerces-c27/files
parentf777c5abbc4280e6de3d3af8f5ddf4dc302e7651 (diff)
downloadfreebsd-ports-gnome-d167ac48e507a311f2bcf9109ad9040ec1c2a97a.tar.gz
freebsd-ports-gnome-d167ac48e507a311f2bcf9109ad9040ec1c2a97a.tar.zst
freebsd-ports-gnome-d167ac48e507a311f2bcf9109ad9040ec1c2a97a.zip
- Correct linking with libiconv
- USE_ICONV instead of direct dependency - USE_REINPLACE instead of cp/sed - GNU_CONFIGURE -> HAS_CONFIGURE PR: ports/64149 Submitted by: Bjoern A. Zeeb <bzeeb+freebsdports@zabbadoz.net>
Diffstat (limited to 'textproc/xerces-c27/files')
-rw-r--r--textproc/xerces-c27/files/patch-aa121
1 files changed, 115 insertions, 6 deletions
diff --git a/textproc/xerces-c27/files/patch-aa b/textproc/xerces-c27/files/patch-aa
index 3bc4dea4baac..e058afbec12b 100644
--- a/textproc/xerces-c27/files/patch-aa
+++ b/textproc/xerces-c27/files/patch-aa
@@ -1,6 +1,6 @@
---- samples/runConfigure.orig Mon May 12 09:44:18 2003
-+++ samples/runConfigure Tue Feb 17 20:26:46 2004
-@@ -262,8 +262,13 @@ else
+--- samples/runConfigure.orig Tue Jan 13 19:42:18 2004
++++ samples/runConfigure Thu Mar 11 17:11:03 2004
+@@ -271,8 +271,13 @@
;;
esac
elif test $platform = "freebsd"; then
@@ -16,9 +16,48 @@
elif test $platform = "netbsd"; then
threadingLibs="-pthread"
threadingDefines="-D_THREAD_SAFE -DXML_USE_PTHREADS"
---- src/xercesc/runConfigure.orig Tue Feb 17 20:05:09 2004
-+++ src/xercesc/runConfigure Tue Feb 17 20:27:13 2004
-@@ -303,8 +303,13 @@ else
+@@ -390,38 +395,6 @@
+ #
+ BITSTOBUILD=$bitsToBuild
+ export BITSTOBUILD
+-
+-#
+-# Special test for libiconv necessity under FreeBSD
+-#
+-transcodingLibs="" # by default don't suppose the libiconv is necessary
+-transcodingDefines=""
+-if test $platform = "freebsd"; then
+- if test -n "${XERCESCROOT}"; then
+- # try lookup the configuration results
+- . "${XERCESCROOT}/version.incl"
+- SOLIBNAME=libxerces-c.so.${SO_TARGET_VERSION}.${SO_TARGET_VERSION_MAJOR}
+- if test -f "${XERCESCROOT}/src/xercesc/config.log" ; then
+- if grep XML_USE_LIBICONV "${XERCESCROOT}/src/xercesc/config.log" \
+- > /dev/null 2>&1 ; then
+- transcodingLibs=" -L/usr/local/lib -liconv "
+- transcodingDefines=" -DXML_USE_LIBICONV -I/usr/local/include "
+- fi
+- elif test -f "${XERCESCROOT}/obj/FREEBSD/IconvFBSDTransService.o" ; then
+- if nm "${XERCESCROOT}/obj/FREEBSD/IconvFBSDTransService.o" | \
+- grep iconv_open > /dev/null 2>&1 ; then
+- transcodingLibs=" -L/usr/local/lib -liconv "
+- transcodingDefines=" -DXML_USE_LIBICONV -I/usr/local/include "
+- fi
+- elif test -f "${XERCESCROOT}/lib/${SOLIBNAME}" ; then
+- if nm "${XERCESCROOT}/lib/${SOLIBNAME}" | \
+- grep iconv_open > /dev/null 2>&1 ; then
+- transcodingLibs=" -L/usr/local/lib -liconv "
+- transcodingDefines=" -DXML_USE_LIBICONV -I/usr/local/include "
+- fi
+- fi
+- fi
+-fi
+
+ #
+ # Set the C compiler and C++ compiler environment variables
+--- src/xercesc/runConfigure.orig Wed Feb 4 13:26:44 2004
++++ src/xercesc/runConfigure Thu Mar 11 17:10:00 2004
+@@ -319,8 +319,13 @@
;;
esac
elif test $platform = "freebsd"; then
@@ -33,3 +72,73 @@
elif test $platform = "netbsd"; then
threadingLibs="-pthread -lpthread"
threadingDefines="-D_THREAD_SAFE -DXML_USE_PTHREADS"
+@@ -467,7 +472,11 @@
+ TRANSCODER=Uniconv390 ;;
+ IconvFBSD)
+ TRANSCODER=IconvFBSD ;
+- transcodingDefines="-DXML_USE_LIBICONV -I/usr/local/include" ;;
++ transcodingDefines="-DXML_USE_LIBICONV -I/usr/local/include" ;
++ if test ${ICONVROOT}o != "o"; then
++ ICONVROOT=/usr/local
++ fi
++ transcodingLibs="-L${ICONVROOT} -L${ICONVROOT}/lib -liconv" ;;
+ IconvGNU)
+ TRANSCODER=IconvGNU ;
+ transcodingDefines="-DXML_USE_GNU_TRANSCODER -I/usr/local/include" ;;
+--- tests/runConfigure.orig Thu Mar 11 17:11:09 2004
++++ tests/runConfigure Thu Mar 11 17:12:03 2004
+@@ -270,8 +270,13 @@
+ ;;
+ esac
+ elif test $platform = "freebsd"; then
+- threadingLibs="-pthread -lc_r"
+- threadingDefines="-D_THREAD_SAFE -DXML_USE_PTHREADS"
++ if test -n "${PTHREAD_LIBS}" ; then
++ threadingLibs="${PTHREAD_LIBS}"
++ threadingDefines="${PTHREAD_CFLAGS} -DXML_USE_PTHREADS"
++ else
++ threadingLibs="-lpthread"
++ threadingDefines="-DXML_USE_PTHREADS"
++ fi
+ elif test $platform = "netbsd"; then
+ threadingLibs="-pthread"
+ threadingDefines="-D_THREAD_SAFE -DXML_USE_PTHREADS"
+@@ -389,38 +394,6 @@
+ #
+ BITSTOBUILD=$bitsToBuild
+ export BITSTOBUILD
+-
+-#
+-# Special test for libiconv necessity under FreeBSD
+-#
+-transcodingLibs="" # by default don't suppose the libiconv is necessary
+-transcodingDefines=""
+-if test $platform = "freebsd"; then
+- if test -n "${XERCESCROOT}"; then
+- # try lookup the configuration results
+- . "${XERCESCROOT}/version.incl"
+- SOLIBNAME=libxerces-c.so.${SO_TARGET_VERSION}.${SO_TARGET_VERSION_MAJOR}
+- if test -f "${XERCESCROOT}/src/xercesc/config.log" ; then
+- if grep XML_USE_LIBICONV "${XERCESCROOT}/src/xercesc/config.log" \
+- > /dev/null 2>&1 ; then
+- transcodingLibs=" -L/usr/local/lib -liconv "
+- transcodingDefines=" -DXML_USE_LIBICONV -I/usr/local/include "
+- fi
+- elif test -f "${XERCESCROOT}/obj/FREEBSD/IconvFBSDTransService.o" ; then
+- if nm "${XERCESCROOT}/obj/FREEBSD/IconvFBSDTransService.o" | \
+- grep iconv_open > /dev/null 2>&1 ; then
+- transcodingLibs=" -L/usr/local/lib -liconv "
+- transcodingDefines=" -DXML_USE_LIBICONV -I/usr/local/include "
+- fi
+- elif test -f "${XERCESCROOT}/lib/${SOLIBNAME}" ; then
+- if nm "${XERCESCROOT}/lib/${SOLIBNAME}" | \
+- grep iconv_open > /dev/null 2>&1 ; then
+- transcodingLibs=" -L/usr/local/lib -liconv "
+- transcodingDefines=" -DXML_USE_LIBICONV -I/usr/local/include "
+- fi
+- fi
+- fi
+-fi
+
+ #
+ # Set the C compiler and C++ compiler environment variables