- Use CC and CFLAGS for first configure run.

- gd depends on freetype, now. So join gd and freetype support in
  one option.
This commit is contained in:
Dirk Froemberg 2000-01-02 17:17:29 +00:00
parent 2467e277b4
commit 86f7d83973
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=24360
6 changed files with 9 additions and 36 deletions

View file

@ -118,7 +118,7 @@ post-extract:
pre-configure:
@cd ${WRKSRC} \
&& ./configure > /dev/null \
&& CC="${CC}" CFLAGS="${CFLAGS}" ./configure > /dev/null \
&& cd ${WRKDIR}/php-${VERSION_PHP} \
&& ${ECHO_MSG} "===> Configuring for PHP-${VERSION_PHP}" \
&& CC="${CC}" \

View file

@ -15,8 +15,7 @@ fi
Please select desired options:" -1 -1 14 \
tuning "Apache: performance tuning" OFF \
modssl "Apache: SSL support" OFF \
GD "PHP: GD library support" OFF \
FreeType "PHP: TrueType font rendering (implies GD)" OFF \
GD "PHP: GD support & FreeType font rendering" OFF \
zlib "PHP: zlib library support" ON \
mcrypt "PHP: Encryption support" OFF \
mhash "PHP: Crypto-hashing support" OFF \
@ -58,15 +57,9 @@ while [ "$1" ]; do
;;
\"GD\")
echo "LIB_DEPENDS+= gd.0:\${PORTSDIR}/graphics/gd"
echo "PHP_CONF_ARGS+= --with-gd=\${PREFIX}"
GD=1
;;
\"FreeType\")
echo "LIB_DEPENDS+= ttf.4:\${PORTSDIR}/print/freetype"
echo "PHP_CONF_ARGS+= --with-gd=\${PREFIX}"
echo "PHP_CONF_ARGS+= --with-ttf=\${PREFIX}"
if [ -z "$GD" ]; then
set $* \"GD\"
fi
;;
\"zlib\")
echo "PHP_CONF_ARGS+= --with-zlib"

View file

@ -118,7 +118,7 @@ post-extract:
pre-configure:
@cd ${WRKSRC} \
&& ./configure > /dev/null \
&& CC="${CC}" CFLAGS="${CFLAGS}" ./configure > /dev/null \
&& cd ${WRKDIR}/php-${VERSION_PHP} \
&& ${ECHO_MSG} "===> Configuring for PHP-${VERSION_PHP}" \
&& CC="${CC}" \

View file

@ -15,8 +15,7 @@ fi
Please select desired options:" -1 -1 14 \
tuning "Apache: performance tuning" OFF \
modssl "Apache: SSL support" OFF \
GD "PHP: GD library support" OFF \
FreeType "PHP: TrueType font rendering (implies GD)" OFF \
GD "PHP: GD support & FreeType font rendering" OFF \
zlib "PHP: zlib library support" ON \
mcrypt "PHP: Encryption support" OFF \
mhash "PHP: Crypto-hashing support" OFF \
@ -61,18 +60,9 @@ while [ "$1" ]; do
;;
\"nothing\")
echo "LIB_DEPENDS+= gd.0:\${PORTSDIR}/graphics/gd"
echo "PHP_CONF_ARGS+= --with-gd=\${PREFIX}"
GD=1
;;
\"FreeType\")
echo "FreeType is DISABLED for now. Ignoring." > /dev/stderr
;;
\"nothing\")
echo "LIB_DEPENDS+= ttf.4:\${PORTSDIR}/print/freetype"
echo "PHP_CONF_ARGS+= --with-gd=\${PREFIX}"
echo "PHP_CONF_ARGS+= --with-ttf=\${PREFIX}"
if [ -z "$GD" ]; then
set $* \"GD\"
fi
;;
\"zlib\")
echo "PHP_CONF_ARGS+= --with-zlib"

View file

@ -118,7 +118,7 @@ post-extract:
pre-configure:
@cd ${WRKSRC} \
&& ./configure > /dev/null \
&& CC="${CC}" CFLAGS="${CFLAGS}" ./configure > /dev/null \
&& cd ${WRKDIR}/php-${VERSION_PHP} \
&& ${ECHO_MSG} "===> Configuring for PHP-${VERSION_PHP}" \
&& CC="${CC}" \

View file

@ -15,8 +15,7 @@ fi
Please select desired options:" -1 -1 14 \
tuning "Apache: performance tuning" OFF \
modssl "Apache: SSL support" OFF \
GD "PHP: GD library support" OFF \
FreeType "PHP: TrueType font rendering (implies GD)" OFF \
GD "PHP: GD support & FreeType font rendering" OFF \
zlib "PHP: zlib library support" ON \
mcrypt "PHP: Encryption support" OFF \
mhash "PHP: Crypto-hashing support" OFF \
@ -61,18 +60,9 @@ while [ "$1" ]; do
;;
\"nothing\")
echo "LIB_DEPENDS+= gd.0:\${PORTSDIR}/graphics/gd"
echo "PHP_CONF_ARGS+= --with-gd=\${PREFIX}"
GD=1
;;
\"FreeType\")
echo "FreeType is DISABLED for now. Ignoring." > /dev/stderr
;;
\"nothing\")
echo "LIB_DEPENDS+= ttf.4:\${PORTSDIR}/print/freetype"
echo "PHP_CONF_ARGS+= --with-gd=\${PREFIX}"
echo "PHP_CONF_ARGS+= --with-ttf=\${PREFIX}"
if [ -z "$GD" ]; then
set $* \"GD\"
fi
;;
\"zlib\")
echo "PHP_CONF_ARGS+= --with-zlib"