pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/php-imap Fix for OpenSolaris builds



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b1eee9cb9e8b
branches:  trunk
changeset: 554868:b1eee9cb9e8b
user:      adrianp <adrianp%pkgsrc.org@localhost>
date:      Sat Feb 21 17:02:59 2009 +0000

description:
Fix for OpenSolaris builds

diffstat:

 mail/php-imap/Makefile |  15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diffs (39 lines):

diff -r 16df66929b4d -r b1eee9cb9e8b mail/php-imap/Makefile
--- a/mail/php-imap/Makefile    Sat Feb 21 17:01:52 2009 +0000
+++ b/mail/php-imap/Makefile    Sat Feb 21 17:02:59 2009 +0000
@@ -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,9 +11,16 @@
 
 USE_PHP_EXT_PATCHES=   yes
 
+.include "../../mk/bsd.prefs.mk"
+
 CONFIGURE_ARGS+=       --with-${MODNAME}=shared,${BUILDLINK_PREFIX.imap-uw}
+CONFIGURE_ARGS+=       --with-${MODNAME}-linkage
+
+.if ${OPSYS} == "SunOS"
+CONFIGURE_ARGS+=       --with-${MODNAME}-ssl=yes
+.else
 CONFIGURE_ARGS+=       --with-${MODNAME}-ssl=${SSLBASE}
-CONFIGURE_ARGS+=       --with-${MODNAME}-linkage
+.endif
 
 CONFIGURE_ENV+=                ac_cv_lib_pam_pam_start=no
 
@@ -22,7 +29,11 @@
 # 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"



Home | Main Index | Thread Index | Old Index