summaryrefslogtreecommitdiff
path: root/editors/openoffice-1.1/files
diff options
context:
space:
mode:
authorMartin Blapp <mbr@FreeBSD.org>2004-02-21 10:24:34 +0000
committerMartin Blapp <mbr@FreeBSD.org>2004-02-21 10:24:34 +0000
commit7e5ab1309edd1b1451e959d13903c4030b21550c (patch)
treebcfad3d7c57edce657e24f875d87c8ffea66e9d0 /editors/openoffice-1.1/files
parento New port kde-icons-gorilla_svg version 1.4: KDE Gorilla SVG iconset (diff)
Adjust PTHREAD_CFLAGS and THREAD_CFLAGS for ports and standalone
builds. Use the correct values according to bsd.port.mk.
Notes
Notes: svn path=/head/; revision=101568
Diffstat (limited to 'editors/openoffice-1.1/files')
-rw-r--r--editors/openoffice-1.1/files/patch-config_office42
1 files changed, 28 insertions, 14 deletions
diff --git a/editors/openoffice-1.1/files/patch-config_office b/editors/openoffice-1.1/files/patch-config_office
index 29182dcbd96b..e39d8e1a72d9 100644
--- a/editors/openoffice-1.1/files/patch-config_office
+++ b/editors/openoffice-1.1/files/patch-config_office
@@ -1,5 +1,5 @@
---- ../config_office/configure.in 5 Aug 2003 16:21:41 -0000 1.55.2.9
-+++ ../config_office/configure.in 9 Aug 2003 05:20:19 -0000
+--- ../config_office/configure.in.orig Wed Sep 17 05:28:53 2003
++++ ../config_office/configure.in Sat Feb 21 11:09:36 2004
@@ -77,6 +77,11 @@
Usage: --with-jdk-home=<absolute path to JDK 1.3 home>
@@ -23,7 +23,7 @@
Usage: --with-os-version=<OSVERSION>
],,)
-@@ -301,6 +306,19 @@
+@@ -301,6 +306,33 @@
"FreeBSD")
test_x=yes
test_gtk=yes
@@ -34,16 +34,30 @@
+ OSVERSION=`/sbin/sysctl -n kern.osreldate`
+ fi
+ AC_MSG_RESULT([found OSVERSION=$OSVERSION])
-+ PTHREAD_CFLAGS="-D_THREAD_SAFE"
-+ if test "$OSVERSION" -lt "500016"; then
-+ PTHREAD_LIBS="-pthread"
-+ else
-+ PTHREAD_LIBS="-lc_r"
++ if test -z "$PTHREAD_CFLAGS"; then
++ if test "$OSVERSION" -lt "502102"; then
++ PTHREAD_CFLAGS="-D_THREAD_SAFE"
++ else
++ unset PTHREAD_CFLAGS
++ fi
++ fi
++ AC_MSG_RESULT([use PTHREAD_CFLAGS=$PTHREAD_CFLAGS])
++ if test -z "$PTHREAD_LIBS"; then
++ if test "$OSVERSION" -lt "502102"; then
++ PTHREAD_LIBS="-lc_r"
++ fi
++ if test "$OSVERSION" -lt "500016"; then
++ PTHREAD_LIBS="-pthread"
++ fi
++ if test "$OSVERSION" -ge "502102"; then
++ PTHREAD_LIBS="-lpthread"
++ fi
+ fi
++ AC_MSG_RESULT([use PTHREAD_LIBS=$PTHREAD_LIBS])
;;
"OSF1")
test_x=dontknow
-@@ -326,6 +345,7 @@
+@@ -326,6 +358,7 @@
AC_MSG_RESULT([checked ($_os)])
@@ -51,7 +65,7 @@
AC_SUBST(PTHREAD_CFLAGS)
AC_SUBST(PTHREAD_LIBS)
-@@ -812,30 +832,20 @@
+@@ -813,30 +846,20 @@
dnl ===================================================================
dnl Set the gcc/gxx include directories
dnl ===================================================================
@@ -79,20 +93,20 @@
fi
dnl This is the original code...
-dnl _gxx_include_path=`$CXX -print-search-dirs | grep instal |$AWK '{ print \$2 }'`/include
--fi
+dnl with_gxx_include_path=`$CXX -print-search-dirs | grep instal |$AWK '{ print \$2 }'`/include
fi
--if test -z "$_gxx_include_path"; then
-- _gxx_include_path="NO_GXX_INCLUDE"
+if test -z "$with_gxx_include_path"; then
+ with_gxx_include_path="NO_GXX_INCLUDE"
fi
+-if test -z "$_gxx_include_path"; then
+- _gxx_include_path="NO_GXX_INCLUDE"
+-fi
-GXX_INCLUDE_PATH="$_gxx_include_path"
+GXX_INCLUDE_PATH="$with_gxx_include_path"
AC_SUBST(GXX_INCLUDE_PATH)
dnl ===================================================================
-@@ -1677,8 +1687,6 @@
+@@ -1710,8 +1733,6 @@
AC_SUBST(GCC_HOME)
AC_SUBST(WITH_MINGWIN)