Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Jul 2012 17:04:46 +0000 (UTC)
From:      Florian Smeets <flo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r300957 - head/lang/php53
Message-ID:  <201207161704.q6GH4k3x062002@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: flo
Date: Mon Jul 16 17:04:46 2012
New Revision: 300957
URL: http://svn.freebsd.org/changeset/ports/300957

Log:
  More optionsNG fixes. (PORT_OPTIONS:M construct can only be used after
  bsd.options.mk/bsd.port.pre.mk)
  
  Reported by:	Michael Ranner (michael@ranner.eu)
  Tested by:	Michael Ranner (michael@ranner.eu)
  Discussed with:	bapt

Modified:
  head/lang/php53/Makefile.ext

Modified: head/lang/php53/Makefile.ext
==============================================================================
--- head/lang/php53/Makefile.ext	Mon Jul 16 17:04:29 2012	(r300956)
+++ head/lang/php53/Makefile.ext	Mon Jul 16 17:04:46 2012	(r300957)
@@ -88,27 +88,20 @@ USE_OPENSSL=	yes
 LIB_DEPENDS=	freetype.9:${PORTSDIR}/print/freetype2 \
 		png15:${PORTSDIR}/graphics/png \
 		jpeg.11:${PORTSDIR}/graphics/jpeg
-.	if !empty(PORT_OPTIONS:MX11)
-USE_XORG=	xpm
-.	endif
 
 CONFIGURE_ARGS+=--with-gd \
 		--with-freetype-dir=${LOCALBASE} \
 		--with-jpeg-dir=${LOCALBASE} \
 		--with-png-dir=${LOCALBASE} \
 		--with-zlib-dir=/usr
-.	if !empty(PORT_OPTIONS:MX11)
-CONFIGURE_ARGS+=--with-xpm-dir=${LOCALBASE}
-.	endif
 
-OPTIONS_DEFINE=	T1LIB TRUETYPE JIS
-OPTIONS_DEFAULT=	T1LIB TRUETYPE
+OPTIONS_DEFINE=	T1LIB TRUETYPE JIS X11
+OPTIONS_DEFAULT=	T1LIB TRUETYPE X11
 
 T1LIB_DESC=	Include T1lib support
 TRUETYPE_DESC=	TrueType string function
 JIS_DESC=	JIS-mapped Japanese font support
 
-
 PHP_HEADER_DIRS=libgd
 .endif
 
@@ -136,17 +129,14 @@ USE_ICONV=	yes
 .endif
 
 .if ${PHP_MODNAME} == "imap"
+OPTIONS_DEFINE=	SSL
+OPTIONS_DEFAULT=	SSL
 LIB_DEPENDS+=	c-client4.9:${PORTSDIR}/mail/cclient
 
 CONFIGURE_ARGS+=--with-imap=${LOCALBASE} \
 		--with-pcre-dir=${LOCALBASE}
-.if !empty(PORT_OPTIONS:MSSL)
-CONFIGURE_ARGS+=--with-imap-ssl=${OPENSSLBASE}
-
-LDFLAGS+=	-L${OPENSSLLIB} -lcrypto -lssl
 USE_OPENSSL=	yes
 .endif
-.endif
 
 .if ${PHP_MODNAME} == "interbase"
 CONFIGURE_ARGS+=--with-interbase=${LOCALBASE}
@@ -505,6 +495,14 @@ CONFIGURE_ARGS+=--disable-flatfile
 .endif
 
 .if ${PHP_MODNAME} == "gd"
+.	if ${PORT_OPTIONS:MX11}
+USE_XORG=	xpm
+.	endif
+
+.	if ${PORT_OPTIONS:MX11}
+CONFIGURE_ARGS+=--with-xpm-dir=${LOCALBASE}
+.	endif
+
 .	if ${PORT_OPTIONS:MT1LIB}
 LIB_DEPENDS+=	t1.5:${PORTSDIR}/devel/t1lib
 
@@ -518,6 +516,13 @@ CONFIGURE_ARGS+=--enable-gd-jis-conv
 .	endif
 .endif
 
+.if ${PHP_MODNAME} == "imap"
+.	if ${PORT_OPTIONS:MSSL}
+CONFIGURE_ARGS+=--with-imap-ssl=${OPENSSLBASE}
+LDFLAGS+=	-L${OPENSSLLIB} -lcrypto -ssl
+.	endif
+.endif
+
 .if ${PHP_MODNAME} == "mbstring"
 .	if ${PORT_OPTIONS:MREGEX}
 LIB_DEPENDS+=	onig.1:${PORTSDIR}/devel/oniguruma4



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207161704.q6GH4k3x062002>