summaryrefslogtreecommitdiff
path: root/lang/php55
diff options
context:
space:
mode:
authorbsiegert <bsiegert@pkgsrc.org>2015-01-17 14:56:50 +0000
committerbsiegert <bsiegert@pkgsrc.org>2015-01-17 14:56:50 +0000
commit63aa741ada3e10e8a28e639375415a3f5268958c (patch)
tree73736fc12f64964e7ed011b9cd6622492927ff9c /lang/php55
parenteaf3f2cf8c4f691fec44671bd529fe791b7d115b (diff)
downloadpkgsrc-63aa741ada3e10e8a28e639375415a3f5268958c.tar.gz
Apply the necessary flags to sqlite so that php55 builds correctly on Darwin
prior to v9. From Sevan Janiyan in PR pkg/49527.
Diffstat (limited to 'lang/php55')
-rw-r--r--lang/php55/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/lang/php55/Makefile b/lang/php55/Makefile
index dc3b5b0c1e0..77a69157fe9 100644
--- a/lang/php55/Makefile
+++ b/lang/php55/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2014/07/26 00:11:55 taca Exp $
+# $NetBSD: Makefile,v 1.17 2015/01/17 14:56:50 bsiegert Exp $
#
# We can't omit PKGNAME here to handle PKG_OPTIONS.
@@ -27,6 +27,13 @@ MESSAGE_SUBST+= CGIDIR=${CGIDIR}
CONFIGURE_ENV+= lt_cv_path_SED=${SED:Q}
MAKE_ENV+= INSTALL_ROOT=${DESTDIR}
+# 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
+
+
CONF_FILES= ${EGDIR}/php.ini-production ${PKG_SYSCONFDIR}/php.ini
PLIST_SUBST+= PHPEXTDIR="${PHP_EXTENSION_DIR}"