aboutsummaryrefslogtreecommitdiff
path: root/devel/apr
diff options
context:
space:
mode:
authorJun Kuriyama <kuriyama@FreeBSD.org>2004-11-03 04:19:11 +0000
committerJun Kuriyama <kuriyama@FreeBSD.org>2004-11-03 04:19:11 +0000
commit3e0a34fc6a908426de0386770d94ccfb48175073 (patch)
treea16bd3d3c2b2421304ce4bb4036bea0abcbf15b4 /devel/apr
parent668fc7c706522f9da426555d2203fac6faa52ad6 (diff)
downloadports-3e0a34fc6a908426de0386770d94ccfb48175073.tar.gz
ports-3e0a34fc6a908426de0386770d94ccfb48175073.zip
Notes
Diffstat (limited to 'devel/apr')
-rw-r--r--devel/apr/Makefile7
-rw-r--r--devel/apr/files/patch-apr_hints.m415
2 files changed, 18 insertions, 4 deletions
diff --git a/devel/apr/Makefile b/devel/apr/Makefile
index f2fbf9f39b78..fb0d46aa2f45 100644
--- a/devel/apr/Makefile
+++ b/devel/apr/Makefile
@@ -123,10 +123,9 @@ pre-extract:
.endif
@${ECHO_MSG} ""
-post-extract:
- cd ${WRKDIR}; \
- ${LN} -s apr-APR_0_9_BRANCH apr-${PORTVERSION}; \
- ${LN} -s apr-util-APU_0_9_BRANCH apr-util-${PORTVERSION}
+post-patch:
+ sed -i .orig1 's/OSVERSION/'${OSVERSION}'/g' \
+ ${WRKDIR}/apr-${PORTVERSION}/build/apr_hints.m4
pre-configure:
.for d in apr apr-util
diff --git a/devel/apr/files/patch-apr_hints.m4 b/devel/apr/files/patch-apr_hints.m4
new file mode 100644
index 000000000000..f87447d8841c
--- /dev/null
+++ b/devel/apr/files/patch-apr_hints.m4
@@ -0,0 +1,15 @@
+--- apr-1.0.0/build/apr_hints.m4.orig Wed Oct 27 11:12:28 2004
++++ apr-1.0.0/build/apr_hints.m4 Wed Oct 27 11:25:32 2004
+@@ -137,11 +137,7 @@
+ ;;
+ *-freebsd*)
+ APR_SETIFNULL(apr_lock_method, [USE_FLOCK_SERIALIZE])
+- if test -x /sbin/sysctl; then
+- os_version=`/sbin/sysctl -n kern.osreldate`
+- else
+- os_version=000000
+- fi
++ os_version="OSVERSION"
+ # 502102 is when libc_r switched to libpthread (aka libkse).
+ if test $os_version -ge "502102"; then
+ apr_cv_pthreads_cflags="none"