summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authoradrianp <adrianp>2009-02-21 17:02:59 +0000
committeradrianp <adrianp>2009-02-21 17:02:59 +0000
commita946d422c93dcdf4fa0ad10629b3beaf3369f129 (patch)
treed623a720d19e658d6d29e3d8a5556ecae2942c09 /mail
parentb5ab579221e7d750981b9ec1dc52e4124e00f1ba (diff)
downloadpkgsrc-a946d422c93dcdf4fa0ad10629b3beaf3369f129.tar.gz
Fix for OpenSolaris builds
Diffstat (limited to 'mail')
-rw-r--r--mail/php-imap/Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/mail/php-imap/Makefile b/mail/php-imap/Makefile
index 266389f2333..2ac9589534c 100644
--- a/mail/php-imap/Makefile
+++ b/mail/php-imap/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2008/11/13 14:21:05 tron Exp $
+# $NetBSD: Makefile,v 1.17 2009/02/21 17:02:59 adrianp Exp $
MODNAME= imap
PKGREVISION= 4
@@ -11,10 +11,17 @@ CONFLICTS= php-imap-[0-9]*
USE_PHP_EXT_PATCHES= yes
+.include "../../mk/bsd.prefs.mk"
+
CONFIGURE_ARGS+= --with-${MODNAME}=shared,${BUILDLINK_PREFIX.imap-uw}
-CONFIGURE_ARGS+= --with-${MODNAME}-ssl=${SSLBASE}
CONFIGURE_ARGS+= --with-${MODNAME}-linkage
+.if ${OPSYS} == "SunOS"
+CONFIGURE_ARGS+= --with-${MODNAME}-ssl=yes
+.else
+CONFIGURE_ARGS+= --with-${MODNAME}-ssl=${SSLBASE}
+.endif
+
CONFIGURE_ENV+= ac_cv_lib_pam_pam_start=no
# Imap extension's config.m4 calls m4 macro PHP_SETUP_OPENSSL() which
@@ -22,7 +29,11 @@ CONFIGURE_ENV+= ac_cv_lib_pam_pam_start=no
# PHP_OPENSSL is set. For a self contained extension build like for
# this package this is not the case of course.
+.if ${OPSYS} == "SunOS"
+CONFIGURE_ENV+= PHP_OPENSSL=yes
+.else
CONFIGURE_ENV+= PHP_OPENSSL=${SSLBASE:Q}
+.endif
.include "../../mail/imap-uw/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"