Browse Source

"Alan J. Wylie" <ebpxyvahk@wylie.me.uk>:

added configure options to php


git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@2209 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Rene Rebe 22 years ago
parent
commit
5998624675
2 changed files with 12 additions and 5 deletions
  1. +8
    -5
      package/alessandro/php/config.in
  2. +4
    -0
      package/alessandro/php/php.conf

+ 8
- 5
package/alessandro/php/config.in

@ -20,16 +20,19 @@
#
# --- ROCK-COPYRIGHT-NOTE-END ---
if pkgcheck php X
then
if pkgcheck php X ; then
menu_begin MENU_PKG_PHP 'PHP Package Options'
bool 'Force usage of shared modules' ROCKCFG_PKG_PHP_FORCESHARED 0
bool 'Build PHP with Mysql support' ROCKCFG_PKG_PHP_mysql 0
for xpkg in postgresql openldap openssl ; do
if pkgcheck $xpkg X ; then
bool "Build PHP with $xpkg support" ROCKCFG_PKG_PHP_$xpkg 0
fi
if pkgcheck $xpkg X ; then
bool "Build PHP with $xpkg support" ROCKCFG_PKG_PHP_$xpkg 0
fi
done
bool "Build PHP with mcrypt support" ROCKCFG_PKG_PHP_mcrypt 0
bool "Build PHP with gd support" ROCKCFG_PKG_PHP_gd 0
menu_end
fi

+ 4
- 0
package/alessandro/php/php.conf

@ -38,4 +38,8 @@ fi
[ "$ROCKCFG_PKG_PHP_openldap" = 1 ] && var_append extraconfopt " " "--with-ldap=${pkg_openldap_prefix}"
[ "$ROCKCFG_PKG_PHP_openssl" = 1 ] && var_append extraconfopt " " "--with-openssl"
[ "$ROCKCFG_PKG_PHP_mcrypt" = 1 ] && var_append extraconfopt " " "--with-mcrypt"
[ "$ROCKCFG_PKG_PHP_gd" = 1 ] && var_append extraconfopt " " "--with-gd"
postmake='cp php.ini-* $docdir'

Loading…
Cancel
Save