mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
- 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:
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
|
@ -118,7 +118,7 @@ post-extract:
|
||||||
|
|
||||||
pre-configure:
|
pre-configure:
|
||||||
@cd ${WRKSRC} \
|
@cd ${WRKSRC} \
|
||||||
&& ./configure > /dev/null \
|
&& CC="${CC}" CFLAGS="${CFLAGS}" ./configure > /dev/null \
|
||||||
&& cd ${WRKDIR}/php-${VERSION_PHP} \
|
&& cd ${WRKDIR}/php-${VERSION_PHP} \
|
||||||
&& ${ECHO_MSG} "===> Configuring for PHP-${VERSION_PHP}" \
|
&& ${ECHO_MSG} "===> Configuring for PHP-${VERSION_PHP}" \
|
||||||
&& CC="${CC}" \
|
&& CC="${CC}" \
|
||||||
|
|
|
@ -15,8 +15,7 @@ fi
|
||||||
Please select desired options:" -1 -1 14 \
|
Please select desired options:" -1 -1 14 \
|
||||||
tuning "Apache: performance tuning" OFF \
|
tuning "Apache: performance tuning" OFF \
|
||||||
modssl "Apache: SSL support" OFF \
|
modssl "Apache: SSL support" OFF \
|
||||||
GD "PHP: GD library support" OFF \
|
GD "PHP: GD support & FreeType font rendering" OFF \
|
||||||
FreeType "PHP: TrueType font rendering (implies GD)" OFF \
|
|
||||||
zlib "PHP: zlib library support" ON \
|
zlib "PHP: zlib library support" ON \
|
||||||
mcrypt "PHP: Encryption support" OFF \
|
mcrypt "PHP: Encryption support" OFF \
|
||||||
mhash "PHP: Crypto-hashing support" OFF \
|
mhash "PHP: Crypto-hashing support" OFF \
|
||||||
|
@ -58,15 +57,9 @@ while [ "$1" ]; do
|
||||||
;;
|
;;
|
||||||
\"GD\")
|
\"GD\")
|
||||||
echo "LIB_DEPENDS+= gd.0:\${PORTSDIR}/graphics/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 "LIB_DEPENDS+= ttf.4:\${PORTSDIR}/print/freetype"
|
||||||
|
echo "PHP_CONF_ARGS+= --with-gd=\${PREFIX}"
|
||||||
echo "PHP_CONF_ARGS+= --with-ttf=\${PREFIX}"
|
echo "PHP_CONF_ARGS+= --with-ttf=\${PREFIX}"
|
||||||
if [ -z "$GD" ]; then
|
|
||||||
set $* \"GD\"
|
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
\"zlib\")
|
\"zlib\")
|
||||||
echo "PHP_CONF_ARGS+= --with-zlib"
|
echo "PHP_CONF_ARGS+= --with-zlib"
|
||||||
|
|
|
@ -118,7 +118,7 @@ post-extract:
|
||||||
|
|
||||||
pre-configure:
|
pre-configure:
|
||||||
@cd ${WRKSRC} \
|
@cd ${WRKSRC} \
|
||||||
&& ./configure > /dev/null \
|
&& CC="${CC}" CFLAGS="${CFLAGS}" ./configure > /dev/null \
|
||||||
&& cd ${WRKDIR}/php-${VERSION_PHP} \
|
&& cd ${WRKDIR}/php-${VERSION_PHP} \
|
||||||
&& ${ECHO_MSG} "===> Configuring for PHP-${VERSION_PHP}" \
|
&& ${ECHO_MSG} "===> Configuring for PHP-${VERSION_PHP}" \
|
||||||
&& CC="${CC}" \
|
&& CC="${CC}" \
|
||||||
|
|
|
@ -15,8 +15,7 @@ fi
|
||||||
Please select desired options:" -1 -1 14 \
|
Please select desired options:" -1 -1 14 \
|
||||||
tuning "Apache: performance tuning" OFF \
|
tuning "Apache: performance tuning" OFF \
|
||||||
modssl "Apache: SSL support" OFF \
|
modssl "Apache: SSL support" OFF \
|
||||||
GD "PHP: GD library support" OFF \
|
GD "PHP: GD support & FreeType font rendering" OFF \
|
||||||
FreeType "PHP: TrueType font rendering (implies GD)" OFF \
|
|
||||||
zlib "PHP: zlib library support" ON \
|
zlib "PHP: zlib library support" ON \
|
||||||
mcrypt "PHP: Encryption support" OFF \
|
mcrypt "PHP: Encryption support" OFF \
|
||||||
mhash "PHP: Crypto-hashing support" OFF \
|
mhash "PHP: Crypto-hashing support" OFF \
|
||||||
|
@ -61,18 +60,9 @@ while [ "$1" ]; do
|
||||||
;;
|
;;
|
||||||
\"nothing\")
|
\"nothing\")
|
||||||
echo "LIB_DEPENDS+= gd.0:\${PORTSDIR}/graphics/gd"
|
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 "LIB_DEPENDS+= ttf.4:\${PORTSDIR}/print/freetype"
|
||||||
|
echo "PHP_CONF_ARGS+= --with-gd=\${PREFIX}"
|
||||||
echo "PHP_CONF_ARGS+= --with-ttf=\${PREFIX}"
|
echo "PHP_CONF_ARGS+= --with-ttf=\${PREFIX}"
|
||||||
if [ -z "$GD" ]; then
|
|
||||||
set $* \"GD\"
|
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
\"zlib\")
|
\"zlib\")
|
||||||
echo "PHP_CONF_ARGS+= --with-zlib"
|
echo "PHP_CONF_ARGS+= --with-zlib"
|
||||||
|
|
|
@ -118,7 +118,7 @@ post-extract:
|
||||||
|
|
||||||
pre-configure:
|
pre-configure:
|
||||||
@cd ${WRKSRC} \
|
@cd ${WRKSRC} \
|
||||||
&& ./configure > /dev/null \
|
&& CC="${CC}" CFLAGS="${CFLAGS}" ./configure > /dev/null \
|
||||||
&& cd ${WRKDIR}/php-${VERSION_PHP} \
|
&& cd ${WRKDIR}/php-${VERSION_PHP} \
|
||||||
&& ${ECHO_MSG} "===> Configuring for PHP-${VERSION_PHP}" \
|
&& ${ECHO_MSG} "===> Configuring for PHP-${VERSION_PHP}" \
|
||||||
&& CC="${CC}" \
|
&& CC="${CC}" \
|
||||||
|
|
|
@ -15,8 +15,7 @@ fi
|
||||||
Please select desired options:" -1 -1 14 \
|
Please select desired options:" -1 -1 14 \
|
||||||
tuning "Apache: performance tuning" OFF \
|
tuning "Apache: performance tuning" OFF \
|
||||||
modssl "Apache: SSL support" OFF \
|
modssl "Apache: SSL support" OFF \
|
||||||
GD "PHP: GD library support" OFF \
|
GD "PHP: GD support & FreeType font rendering" OFF \
|
||||||
FreeType "PHP: TrueType font rendering (implies GD)" OFF \
|
|
||||||
zlib "PHP: zlib library support" ON \
|
zlib "PHP: zlib library support" ON \
|
||||||
mcrypt "PHP: Encryption support" OFF \
|
mcrypt "PHP: Encryption support" OFF \
|
||||||
mhash "PHP: Crypto-hashing support" OFF \
|
mhash "PHP: Crypto-hashing support" OFF \
|
||||||
|
@ -61,18 +60,9 @@ while [ "$1" ]; do
|
||||||
;;
|
;;
|
||||||
\"nothing\")
|
\"nothing\")
|
||||||
echo "LIB_DEPENDS+= gd.0:\${PORTSDIR}/graphics/gd"
|
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 "LIB_DEPENDS+= ttf.4:\${PORTSDIR}/print/freetype"
|
||||||
|
echo "PHP_CONF_ARGS+= --with-gd=\${PREFIX}"
|
||||||
echo "PHP_CONF_ARGS+= --with-ttf=\${PREFIX}"
|
echo "PHP_CONF_ARGS+= --with-ttf=\${PREFIX}"
|
||||||
if [ -z "$GD" ]; then
|
|
||||||
set $* \"GD\"
|
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
\"zlib\")
|
\"zlib\")
|
||||||
echo "PHP_CONF_ARGS+= --with-zlib"
|
echo "PHP_CONF_ARGS+= --with-zlib"
|
||||||
|
|
Loading…
Add table
Reference in a new issue