summaryrefslogtreecommitdiff
path: root/lang/php56
diff options
context:
space:
mode:
authorsevan <sevan@pkgsrc.org>2015-02-02 10:54:19 +0000
committersevan <sevan@pkgsrc.org>2015-02-02 10:54:19 +0000
commit219d3cf896982778da44ca0bd0137c2709795f6a (patch)
tree952b9d66b1ffa23f03e3efd8b95b43cb1e637e7c /lang/php56
parentd1f91d09b52debfb86e20fd32fe6d2ab907b6af9 (diff)
downloadpkgsrc-219d3cf896982778da44ca0bd0137c2709795f6a.tar.gz
As per previous PHP release, apply the necessary flags to sqlite so that it
builds correctly on Darwin prior to v9. ok wiz@
Diffstat (limited to 'lang/php56')
-rw-r--r--lang/php56/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/lang/php56/Makefile b/lang/php56/Makefile
index edd731fd422..d6850714561 100644
--- a/lang/php56/Makefile
+++ b/lang/php56/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2014/11/24 15:37:08 taca Exp $
+# $NetBSD: Makefile,v 1.2 2015/02/02 10:54:19 sevan Exp $
#
# We can't omit PKGNAME here to handle PKG_OPTIONS.
@@ -46,6 +46,12 @@ INSTALLATION_DIRS+= ${CGIDIR} ${PHP_EXTENSION_DIR} ${EGDIR} share/php
INSTALL_UNSTRIPPED= yes
.endif
+# Darwin < 9 (Mac OS X < 10.5 "Leopard") doesn't have gethostuuid(2)
+# and lacks the zone memory allocator
+.if !empty(MACHINE_PLATFORM:MDarwin-[0-8].*-*)
+CFLAGS+= -DSQLITE_ENABLE_LOCKING_STYLE=0 -DSQLITE_WITHOUT_ZONEMALLOC
+.endif
+
post-extract:
cd ${WRKSRC} && \
${FIND} . -xdev -type f -name '*.orig' -exec ${RM} -f {} \;