aboutsummaryrefslogtreecommitdiffstats
path: root/devel/apr2
diff options
context:
space:
mode:
authorlev <lev@FreeBSD.org>2003-11-10 15:45:43 +0800
committerlev <lev@FreeBSD.org>2003-11-10 15:45:43 +0800
commita0412b4b172a67233ad0ad4d6be4492da6da0cea (patch)
treee22905e1d5852fb684c05e2ddbe329137708c7fb /devel/apr2
parent804935f1d6c7b1e5b4353d53dda3912a57e82de2 (diff)
downloadfreebsd-ports-gnome-a0412b4b172a67233ad0ad4d6be4492da6da0cea.tar.gz
freebsd-ports-gnome-a0412b4b172a67233ad0ad4d6be4492da6da0cea.tar.zst
freebsd-ports-gnome-a0412b4b172a67233ad0ad4d6be4492da6da0cea.zip
Fix pthreads support.
This commit fix ports/59055, which shows problesm with subversion Submitted by: MAINTAINER
Diffstat (limited to 'devel/apr2')
-rw-r--r--devel/apr2/Makefile2
-rw-r--r--devel/apr2/files/patch-apr_hints.m425
2 files changed, 20 insertions, 7 deletions
diff --git a/devel/apr2/Makefile b/devel/apr2/Makefile
index b09185071dc9..32fa63fa338d 100644
--- a/devel/apr2/Makefile
+++ b/devel/apr2/Makefile
@@ -14,7 +14,7 @@
PORTNAME= apr
PORTVERSION= 0.9.4
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= http://www.apache.org/dist/apr/
DISTFILES= apr-${PORTVERSION}.tar.gz apr-util-${PORTVERSION}.tar.gz
diff --git a/devel/apr2/files/patch-apr_hints.m4 b/devel/apr2/files/patch-apr_hints.m4
index 4adc12fafe34..7c8f8547efff 100644
--- a/devel/apr2/files/patch-apr_hints.m4
+++ b/devel/apr2/files/patch-apr_hints.m4
@@ -1,12 +1,25 @@
---- apr-0.9.4/build/apr_hints.m4.orig Sun Nov 2 01:23:53 2003
-+++ apr-0.9.4/build/apr_hints.m4 Sun Nov 2 01:24:44 2003
-@@ -135,9 +135,7 @@
- APR_ADDTO(CFLAGS, [-funsigned-char])
- ;;
- esac
+--- apr-0.9.4/build/apr_hints.m4.orig Mon Jun 2 11:52:28 2003
++++ apr-0.9.4/build/apr_hints.m4 Sun Nov 9 18:15:30 2003
+@@ -130,14 +130,15 @@
+ APR_ADDTO(CPPFLAGS, [-DNETBSD])
+ ;;
+ *-freebsd*)
+- case $host in
+- *freebsd[2345]*)
+- APR_ADDTO(CFLAGS, [-funsigned-char])
+- ;;
+- esac
- APR_SETIFNULL(enable_threads, [no])
++ os_version=`sysctl -n kern.osreldate`
++ APR_ADDTO(CFLAGS, [-funsigned-char])
APR_SETIFNULL(apr_lock_method, [USE_FLOCK_SERIALIZE])
- APR_ADDTO(CPPFLAGS, [-D_REENTRANT -D_THREAD_SAFE])
++ if test $os_version -lt "500016"; then
++ ac_cv_pthreads_cflags="-D_THREAD_SAFE -D_REENTRANT"
++ APR_ADDTO(LIBS, [-pthread])
++ else
++ ac_cv_pthreads_lib="c_r"
++ fi
;;
*-next-nextstep*)
APR_SETIFNULL(CFLAGS, [-O])