diff options
author | dirk <dirk@FreeBSD.org> | 2002-04-16 10:50:03 +0000 |
---|---|---|
committer | dirk <dirk@FreeBSD.org> | 2002-04-16 10:50:03 +0000 |
commit | adaf47bd80bbb06c23afa32e251e6a8b552e5e63 (patch) | |
tree | c9d1ad0bbc0dbb83bf715bfc78a181a1edd8db22 /www/mod_php4 | |
parent | 9566832a513212a78b848314296558dd15d63d25 (diff) | |
download | FreeBSD-ports-adaf47bd80bbb06c23afa32e251e6a8b552e5e63.zip FreeBSD-ports-adaf47bd80bbb06c23afa32e251e6a8b552e5e63.tar.gz |
Add GD2 support.
PR: ports/36109
Submitted by: Alex Dupre <sysadmin@alexdupre.com>
Diffstat (limited to 'www/mod_php4')
-rw-r--r-- | www/mod_php4/scripts/configure.php | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/www/mod_php4/scripts/configure.php b/www/mod_php4/scripts/configure.php index 32a1569..7d8be83 100644 --- a/www/mod_php4/scripts/configure.php +++ b/www/mod_php4/scripts/configure.php @@ -17,7 +17,8 @@ else /usr/bin/dialog --title "configuration options" --clear \ --checklist "\n\ Please select desired options:" -1 -1 16 \ -GD "GD library support" OFF \ +GD1 "GD 1.x library support" OFF \ +GD2 "GD 2.x library support" OFF \ zlib "zlib library support" ON \ bzip2 "bzip2 library support" OFF \ mcrypt "Encryption support" OFF \ @@ -82,16 +83,41 @@ exec > ${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc while [ "$1" ]; do case $1 in - \"GD\") + \"GD1\") echo "LIB_DEPENDS+= gd.2:\${PORTSDIR}/graphics/gd" echo "LIB_DEPENDS+= freetype.9:\${PORTSDIR}/print/freetype2" echo "LIB_DEPENDS+= png.5:\${PORTSDIR}/graphics/png" echo "LIB_DEPENDS+= jpeg.9:\${PORTSDIR}/graphics/jpeg" echo "CONFIGURE_ARGS+=--with-gd=\${LOCALBASE} \\" + echo " --enable-gd-native-ttf \\" echo " --with-freetype-dir=\${LOCALBASE} \\" echo " --with-jpeg-dir=\${LOCALBASE} \\" echo " --with-png-dir=\${LOCALBASE}" + if [ "$GD2" ]; then + echo "GD1 and GD2 are mutually exclusive." > /dev/stderr + rm -f ${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc + exit 1 + fi + GD1=1 ;; + + \"GD2\") + echo "LIB_DEPENDS+= gd.3:\${PORTSDIR}/graphics/gd2" + echo "LIB_DEPENDS+= freetype.9:\${PORTSDIR}/print/freetype2" + echo "LIB_DEPENDS+= png.5:\${PORTSDIR}/graphics/png" + echo "LIB_DEPENDS+= jpeg.9:\${PORTSDIR}/graphics/jpeg" + echo "CONFIGURE_ARGS+=--with-gd=\${LOCALBASE} \\" + echo " --enable-gd-native-ttf \\" + echo " --with-freetype-dir=\${LOCALBASE} \\" + echo " --with-jpeg-dir=\${LOCALBASE} \\" + echo " --with-png-dir=\${LOCALBASE}" + if [ "$GD1" ]; then + echo "GD1 and GD2 are mutually exclusive." > /dev/stderr + rm -f ${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc + exit 1 + fi + GD2=1 + ;; \"zlib\") echo "CONFIGURE_ARGS+=--with-zlib" ;; |