aboutsummaryrefslogtreecommitdiffstats
path: root/devel/apr
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>2004-11-03 12:19:11 +0800
committerkuriyama <kuriyama@FreeBSD.org>2004-11-03 12:19:11 +0800
commit2d0695e540172a2ddc757c6486445478d86c4332 (patch)
tree036f20afce1b22532eb610d90f9a0279c097a026 /devel/apr
parent484fa2a1943b75ce967fe9a880b0aad2dc98433d (diff)
downloadfreebsd-ports-gnome-2d0695e540172a2ddc757c6486445478d86c4332.tar.gz
freebsd-ports-gnome-2d0695e540172a2ddc757c6486445478d86c4332.tar.zst
freebsd-ports-gnome-2d0695e540172a2ddc757c6486445478d86c4332.zip
(1) Remove unused post-extract target which I forgot to remove in
previous commit. (2) Add patches to keep Kris happy on pointyhat build. Submitted by: (2) Craig Rodrigues <rodrigc@crodrigues.org> (maintainer)
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"