summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lang/php5/Makefile.ext9
-rw-r--r--lang/php53/Makefile.ext9
2 files changed, 12 insertions, 6 deletions
diff --git a/lang/php5/Makefile.ext b/lang/php5/Makefile.ext
index 050feae1faf8..bdb2368337c1 100644
--- a/lang/php5/Makefile.ext
+++ b/lang/php5/Makefile.ext
@@ -86,9 +86,6 @@ USE_OPENSSL= yes
LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2 \
png.5:${PORTSDIR}/graphics/png \
jpeg.9:${PORTSDIR}/graphics/jpeg
-. if !defined(WITHOUT_X11)
-USE_XORG= xpm
-. endif
CONFIGURE_ARGS+=--with-gd \
--with-freetype-dir=${LOCALBASE} \
@@ -102,6 +99,9 @@ CONFIGURE_ARGS+=--with-xpm-dir=${X11BASE}
OPTIONS= T1LIB "Include T1lib support" on \
TRUETYPE "Enable TrueType string function" on \
JIS "Enable JIS-mapped Japanese font support" off
+. if !defined(WITHOUT_X11)
+OPTIONS+= XPM "Enable Xpm support" on
+. endif
PHP_HEADER_DIRS=libgd
.endif
@@ -560,6 +560,9 @@ CONFIGURE_ARGS+=--enable-gd-native-ttf
. if defined(WITH_JIS)
CONFIGURE_ARGS+=--enable-gd-jis-conv
. endif
+. if !defined(WITHOUT_XPM) && !defined(WITHOUT_X11)
+USE_XORG= xpm
+. endif
.endif
.if ${PHP_MODNAME} == "mbstring"
diff --git a/lang/php53/Makefile.ext b/lang/php53/Makefile.ext
index 050feae1faf8..bdb2368337c1 100644
--- a/lang/php53/Makefile.ext
+++ b/lang/php53/Makefile.ext
@@ -86,9 +86,6 @@ USE_OPENSSL= yes
LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2 \
png.5:${PORTSDIR}/graphics/png \
jpeg.9:${PORTSDIR}/graphics/jpeg
-. if !defined(WITHOUT_X11)
-USE_XORG= xpm
-. endif
CONFIGURE_ARGS+=--with-gd \
--with-freetype-dir=${LOCALBASE} \
@@ -102,6 +99,9 @@ CONFIGURE_ARGS+=--with-xpm-dir=${X11BASE}
OPTIONS= T1LIB "Include T1lib support" on \
TRUETYPE "Enable TrueType string function" on \
JIS "Enable JIS-mapped Japanese font support" off
+. if !defined(WITHOUT_X11)
+OPTIONS+= XPM "Enable Xpm support" on
+. endif
PHP_HEADER_DIRS=libgd
.endif
@@ -560,6 +560,9 @@ CONFIGURE_ARGS+=--enable-gd-native-ttf
. if defined(WITH_JIS)
CONFIGURE_ARGS+=--enable-gd-jis-conv
. endif
+. if !defined(WITHOUT_XPM) && !defined(WITHOUT_X11)
+USE_XORG= xpm
+. endif
.endif
.if ${PHP_MODNAME} == "mbstring"