2004-02-03 23:27:04 -05:00
|
|
|
#
|
|
|
|
# bsd.php.mk - Support for PHP-based ports.
|
|
|
|
#
|
|
|
|
# Created by: Alex Dupre <ale@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# For FreeBSD committers:
|
|
|
|
# Please send all suggested changes to the maintainer instead of committing
|
|
|
|
# them to CVS yourself.
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
# Adding 'USE_PHP=yes' to a port includes this Makefile after bsd.ports.pre.mk.
|
2004-07-19 03:15:24 -04:00
|
|
|
# If the port requires a predefined set of PHP extensions, they can be
|
|
|
|
# listed in this way:
|
|
|
|
#
|
|
|
|
# USE_PHP= ext1 ext2 ext3
|
2004-02-03 23:27:04 -05:00
|
|
|
#
|
|
|
|
# The port can set these options in its Makefile before bsd.ports.pre.mk:
|
|
|
|
#
|
2004-07-19 19:25:22 -04:00
|
|
|
# DEFAULT_PHP_VER=N - Use PHP version N if PHP is not yet installed.
|
|
|
|
# BROKEN_WITH_PHP=N - The port doesn't work with PHP version N.
|
2004-02-03 23:27:04 -05:00
|
|
|
# USE_PHPIZE=yes - Use to build a PHP extension.
|
2004-07-19 03:15:24 -04:00
|
|
|
# USE_PHPEXT=yes - Use to build, install and register a PHP extension.
|
|
|
|
# USE_PHP_BUILD=yes - Set PHP also as a build dependency.
|
2004-02-03 23:27:04 -05:00
|
|
|
# WANT_PHP_CLI=yes - Want the CLI version of PHP.
|
|
|
|
# WANT_PHP_CGI=yes - Want the CGI version of PHP.
|
|
|
|
# WANT_PHP_MOD=yes - Want the Apache Module for PHP.
|
2004-07-19 03:15:24 -04:00
|
|
|
# WANT_PHP_SCR=yes - Want the CLI or the CGI version of PHP.
|
2004-02-03 23:27:04 -05:00
|
|
|
# WANT_PHP_WEB=yes - Want the Apache Module or the CGI version of PHP.
|
|
|
|
#
|
|
|
|
# You may combine multiple WANT_PHP_* knobs.
|
|
|
|
# Don't specify any WANT_PHP_* knob if your port will work with every PHP SAPI.
|
|
|
|
#
|
|
|
|
|
|
|
|
PHP_Include_MAINTAINER= ale@FreeBSD.org
|
|
|
|
|
|
|
|
.if exists(${LOCALBASE}/etc/php.conf)
|
|
|
|
.include "${LOCALBASE}/etc/php.conf"
|
2005-12-09 14:41:41 -05:00
|
|
|
PHP_EXT_DIR!= ${LOCALBASE}/bin/php-config --extension-dir | ${SED} -ne 's,^${LOCALBASE}/lib/php/\(.*\),\1,p'
|
|
|
|
.else
|
2004-07-19 19:25:22 -04:00
|
|
|
DEFAULT_PHP_VER?= 4
|
|
|
|
|
|
|
|
PHP_VER?= ${DEFAULT_PHP_VER}
|
|
|
|
.if ${PHP_VER} == 4
|
2004-02-03 23:27:04 -05:00
|
|
|
PHP_EXT_DIR= 20020429
|
2004-07-19 19:25:22 -04:00
|
|
|
.else
|
2005-12-09 14:41:41 -05:00
|
|
|
PHP_EXT_DIR= 20050922
|
2004-07-19 19:25:22 -04:00
|
|
|
.endif
|
2005-12-09 14:41:41 -05:00
|
|
|
|
|
|
|
HTTPD?= ${LOCALBASE}/sbin/httpd
|
|
|
|
.if exists(${HTTPD})
|
|
|
|
APACHE_VERSION!= ${HTTPD} -V | ${SED} -ne 's/^Server version: Apache\/\([0-9]\)\.\([0-9]*\).*/\1\2/p'
|
|
|
|
. if ${APACHE_VERSION} > 13
|
2005-11-16 03:14:35 -05:00
|
|
|
APXS?= ${LOCALBASE}/sbin/apxs
|
2004-02-03 23:27:04 -05:00
|
|
|
APACHE_MPM!= ${APXS} -q MPM_NAME
|
2005-12-09 14:41:41 -05:00
|
|
|
. if ${APACHE_MPM} == "worker"
|
2004-02-03 23:27:04 -05:00
|
|
|
PHP_EXT_DIR:= ${PHP_EXT_DIR}-zts
|
2005-12-09 14:41:41 -05:00
|
|
|
. endif
|
|
|
|
. endif
|
|
|
|
.elif defined(APACHE_PORT)
|
|
|
|
APACHE_VERSION!= ${ECHO_CMD} ${APACHE_PORT} | ${SED} -ne 's,.*/apache\([0-9]*\).*,\1,p'
|
|
|
|
. if ${APACHE_VERSION} > 13 && defined(WITH_MPM) && ${WITH_MPM} == "worker"
|
2004-02-03 23:27:04 -05:00
|
|
|
PHP_EXT_DIR:= ${PHP_EXT_DIR}-zts
|
2005-12-09 14:41:41 -05:00
|
|
|
. endif
|
2004-02-03 23:27:04 -05:00
|
|
|
.endif
|
2005-12-09 14:41:41 -05:00
|
|
|
|
2004-02-03 23:27:04 -05:00
|
|
|
.if defined(WITH_DEBUG)
|
|
|
|
PHP_EXT_DIR:= ${PHP_EXT_DIR}-debug
|
|
|
|
.endif
|
|
|
|
PHP_SAPI?= ""
|
2005-12-09 14:41:41 -05:00
|
|
|
.endif
|
2005-03-14 09:37:45 -05:00
|
|
|
PHP_EXT_INC?= ""
|
2004-02-03 23:27:04 -05:00
|
|
|
|
|
|
|
.if defined(BROKEN_WITH_PHP)
|
2004-07-19 03:15:24 -04:00
|
|
|
. for VER in ${BROKEN_WITH_PHP}
|
|
|
|
. if ${PHP_VER} == "${VER}"
|
- Fix 'all-depends-list' target in cases if dependencies list is
very long and if some dependencies can't be added into the list.
[1]
- Fix FAM support. Make gamin the default FAM system. [2]
- Introduce new 'quicksearch' target to show only port, path and
info section of the matching ports. [3]
- Introduce new category - rubygems. [4]
- Fix stale dependencies while installing qmail slaveport and
another port that depends on qmail. [5]
- Add commentary for describes target in bsd.port.mk. [6]
- Fix warning issued during make index on archs !368. [7]
- Add USE_DOS2UNIX variable. If set to "YES", remove the ^M from
all files under ${WRKSRC}. If set to a string, remove in all files
under ${WRKSRC} with one of these names the ^Ms. [8]
- Add new variables PERL_RUN_DEPENDS and PERL_BUILD_DEPENDS by
checking the existance of the Perl modules with the "perl -e 'use
module;'" command. [9]
- Fix bsd.port.mk variable quoting issues. No quoting is necessary
anymore either in the Makefile or on the command line. Affected
variables include:
BROKEN
FORBIDDEN
IGNORE
MANUAL_PACKAGE_BUILD
NO_CDROM
NO_PACKAGE
RESTRICTED
[10]
- Add NOFETCHFILES variable. If set, don't download these files
from the ${MASTER_SITES} or ${MASTER_SITE_BACKUP} (but do from
${MASTER_SITE_OVERRIDE}). [11]
- Improve 'search' target output. [12]
- Add a new virtual category for Amateur Radio - hamradio. [13]
- Cleanup some old/unused pathes in bsd.port.mk. [14]
- Add @dirrmtry for plists which does the same as:
"@unexec rmdir %D/foo 2>/dev/null || true" [15]
- Remove virtual category - offix. [16]
- Use portsnap instead of cvsup or cvs on "make update" in
/usr/ports. [17]
- Move location of bsd.autotools.mk within bsd.port.mk [18]
- Add bsd.linux-rpm.mk, fix INSTALLS_SHLIB for Linux ports [19]
- Use new USE_RC_SUBR format for FreeBSD version >= 700007 [20]
- Replace the string "FreeBSD" by "The FreeBSD Project" in the
security warning [21]
- Add bsd.local.mk for local modification to ports framework. [22]
- Replace rcNG spelling by rc.d [23]
- Remove superfluous USE_REINPLACE. [24]
Special thanks to: linimon for spending hours with all these patches
clement for fixes
kris for help with pointyhat
PR: ports/86310 [1], ports/89498 [2], ports/83530 [3],
ports/83789 [4], ports/84053 [5], ports/86281 [6],
ports/87214 [7], ports/87234 [8], ports/87318 [9],
ports/87396 [10], ports/87605 [11], ports/87840 [12],
ports/88230 [13], ports/88493 [14], ports/88711 [15],
ports/88751 [16], ports/89281 [17], ports/89999 [18],
ports/90031 [19], ports/90150 [20], ports/90668 [21],
ports/91433 [23], ports/88754 [24]
Submitted by: mi [1], marcus [2], Lars Engels <lars.engels@0x20.net> [3],
pav [4, 16, 20, 24], garga [5], cperciva [6], vd [7],
edwin [8, 9, 11, 15, 21],
fenner [10], Arseny Nasokin <tarc.po.cs.msu.su@tarc.po.cs.msu.su> [12],
Carl Makin <carl@stagecraft.cx> [13], arved [14],
NIIMI Satoshi <sa2c@sa2c.net> [17], thierry [18],
jylefort [19], linimon [22], dougb [23]
2006-01-21 12:37:14 -05:00
|
|
|
BROKEN= Doesn't work with PHP version : ${PHP_VER} (Doesn't support PHP ${BROKEN_WITH_PHP})
|
2004-07-19 03:15:24 -04:00
|
|
|
. endif
|
|
|
|
. endfor
|
2004-02-03 23:27:04 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WANT_PHP_WEB)
|
|
|
|
. if defined(WANT_PHP_CGI) || defined(WANT_PHP_MOD)
|
|
|
|
check-makevars::
|
|
|
|
@${ECHO_CMD} "If you define WANT_PHP_WEB you cannot set also WANT_PHP_CGI"
|
|
|
|
@${ECHO_CMD} "or WANT_PHP_MOD. Use only one of them."
|
|
|
|
@${FALSE}
|
|
|
|
. else
|
|
|
|
. if defined(PHP_VERSION) && ${PHP_SAPI} == "cli"
|
|
|
|
check-makevars::
|
|
|
|
@${ECHO_CMD} "This port requires the Apache Module or the CGI version of PHP, but you have"
|
|
|
|
@${ECHO_CMD} "already installed a conflicting PHP port without them."
|
|
|
|
@${FALSE}
|
|
|
|
. endif
|
|
|
|
. endif
|
2004-07-19 03:15:24 -04:00
|
|
|
.else
|
|
|
|
|
|
|
|
.if defined(WANT_PHP_SCR)
|
|
|
|
. if defined(WANT_PHP_CGI) || defined(WANT_PHP_CLI)
|
|
|
|
check-makevars::
|
|
|
|
@${ECHO_CMD} "If you define WANT_PHP_SCR you cannot set also WANT_PHP_CGI"
|
|
|
|
@${ECHO_CMD} "or WANT_PHP_CLI. Use only one of them."
|
|
|
|
@${FALSE}
|
|
|
|
. else
|
|
|
|
. if defined(PHP_VERSION) && ${PHP_SAPI} == "mod"
|
|
|
|
check-makevars::
|
|
|
|
@${ECHO_CMD} "This port requires the CLI or the CGI version of PHP, but you have"
|
|
|
|
@${ECHO_CMD} "already installed a conflicting PHP port without them."
|
|
|
|
@${FALSE}
|
|
|
|
. endif
|
2004-02-03 23:27:04 -05:00
|
|
|
. endif
|
|
|
|
.else
|
|
|
|
|
|
|
|
.if defined(WANT_PHP_CGI)
|
|
|
|
. if defined(WANT_PHP_CLI) || defined(WANT_PHP_MOD)
|
|
|
|
check-makevars::
|
|
|
|
@${ECHO_CMD} "The CGI version of PHP avoids the installation of other SAPIs."
|
|
|
|
@${ECHO_CMD} "Do not use WANT_PHP_CGI with other WANT_PHP_* knobs."
|
|
|
|
@${FALSE}
|
|
|
|
. else
|
|
|
|
. if defined(PHP_VERSION) && ${PHP_SAPI} != "cgi"
|
|
|
|
check-makevars::
|
|
|
|
@${ECHO_CMD} "This port requires the CGI version of PHP, but you have already"
|
|
|
|
@${ECHO_CMD} "installed a conflicting PHP port without CGI."
|
|
|
|
@${FALSE}
|
|
|
|
. else
|
|
|
|
PHP_PORT?= ${PORTSDIR}/www/php${PHP_VER}-cgi
|
|
|
|
. endif
|
|
|
|
. endif
|
|
|
|
.else
|
|
|
|
|
2004-07-19 03:15:24 -04:00
|
|
|
.if defined(WANT_PHP_CLI)
|
2004-02-03 23:27:04 -05:00
|
|
|
. if defined(PHP_VERSION) && ${PHP_SAPI} != "full" && ${PHP_SAPI} != "cli"
|
|
|
|
check-makevars::
|
|
|
|
@${ECHO_CMD} "This port requires the CLI version of PHP, but you have already"
|
|
|
|
@${ECHO_CMD} "installed a conflicting PHP port without CLI."
|
|
|
|
@${FALSE}
|
|
|
|
. endif
|
|
|
|
.else
|
|
|
|
|
2004-07-19 03:15:24 -04:00
|
|
|
.if defined(WANT_PHP_MOD)
|
2004-02-03 23:27:04 -05:00
|
|
|
. if defined(PHP_VERSION) && (${PHP_SAPI} != "full" && ${PHP_SAPI} != "mod")
|
|
|
|
check-makevars::
|
|
|
|
@${ECHO_CMD} "This port requires the Apache Module for PHP, but you have already"
|
|
|
|
@${ECHO_CMD} "installed a conflicting PHP port without the Apache Module."
|
|
|
|
@${FALSE}
|
|
|
|
. endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.endif
|
|
|
|
|
2004-07-19 08:23:13 -04:00
|
|
|
PHP_PORT?= ${PORTSDIR}/lang/php${PHP_VER}
|
|
|
|
|
2004-07-19 03:15:24 -04:00
|
|
|
.if defined(USE_PHP_BUILD)
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/include/php/main/php.h:${PHP_PORT}
|
|
|
|
.endif
|
2004-02-03 23:27:04 -05:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/include/php/main/php.h:${PHP_PORT}
|
|
|
|
|
|
|
|
PLIST_SUB+= PHP_EXT_DIR=${PHP_EXT_DIR}
|
2005-11-20 15:35:40 -05:00
|
|
|
SUB_LIST+= PHP_EXT_DIR=${PHP_EXT_DIR}
|
2004-02-03 23:27:04 -05:00
|
|
|
|
2004-07-19 03:15:24 -04:00
|
|
|
.if defined(USE_PHPIZE) || defined(USE_PHPEXT)
|
2004-02-03 23:27:04 -05:00
|
|
|
BUILD_DEPENDS+= phpize:${PHP_PORT}
|
2005-04-04 05:20:21 -04:00
|
|
|
GNU_CONFIGURE= YES
|
2005-11-15 01:52:12 -05:00
|
|
|
USE_AUTOTOOLS+= autoconf:259:env
|
2004-02-03 23:27:04 -05:00
|
|
|
CONFIGURE_ARGS+=--with-php-config=${LOCALBASE}/bin/php-config
|
|
|
|
|
2004-07-19 03:15:24 -04:00
|
|
|
configure-message: phpize-message do-phpize
|
|
|
|
|
|
|
|
phpize-message:
|
|
|
|
@${ECHO_MSG} "===> PHPizing for ${PKGNAME}"
|
2004-02-03 23:27:04 -05:00
|
|
|
|
2004-07-19 03:15:24 -04:00
|
|
|
do-phpize:
|
2004-02-03 23:27:04 -05:00
|
|
|
@(cd ${WRKSRC}; ${SETENV} ${SCRIPTS_ENV} ${LOCALBASE}/bin/phpize)
|
|
|
|
.endif
|
2004-07-19 03:15:24 -04:00
|
|
|
|
|
|
|
.if defined(USE_PHPEXT)
|
|
|
|
PHP_MODNAME?= ${PORTNAME}
|
|
|
|
PHP_HEADER_DIRS?= ""
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${MKDIR} ${PREFIX}/lib/php/${PHP_EXT_DIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/modules/${PHP_MODNAME}.so \
|
|
|
|
${PREFIX}/lib/php/${PHP_EXT_DIR}
|
|
|
|
. for header in . ${PHP_HEADER_DIRS}
|
|
|
|
@${MKDIR} ${PREFIX}/include/php/ext/${PHP_MODNAME}/${header}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${header}/*.h \
|
|
|
|
${PREFIX}/include/php/ext/${PHP_MODNAME}/${header}
|
|
|
|
. endfor
|
|
|
|
@${GREP} "#define \(COMPILE\|HAVE\|USE\)_" ${WRKSRC}/config.h \
|
|
|
|
> ${PREFIX}/include/php/ext/${PHP_MODNAME}/config.h
|
|
|
|
@${ECHO_CMD} \#include \"ext/${PHP_MODNAME}/config.h\" \
|
|
|
|
>> ${PREFIX}/include/php/ext/php_config.h
|
2004-07-28 04:59:35 -04:00
|
|
|
@${MKDIR} ${PREFIX}/etc/php
|
2004-07-19 03:15:24 -04:00
|
|
|
@${ECHO_CMD} extension=${PHP_MODNAME}.so \
|
2004-07-28 04:59:35 -04:00
|
|
|
>> ${PREFIX}/etc/php/extensions.ini
|
2004-07-19 03:15:24 -04:00
|
|
|
|
|
|
|
add-plist-info: add-plist-phpext
|
|
|
|
add-plist-phpext:
|
|
|
|
@${ECHO_CMD} "lib/php/${PHP_EXT_DIR}/${PHP_MODNAME}.so" \
|
|
|
|
>> ${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@unexec rmdir %D/lib/php/${PHP_EXT_DIR} 2> /dev/null || true" \
|
|
|
|
>> ${TMPPLIST}
|
|
|
|
@${FIND} -P ${PREFIX}/include/php/ext/${PHP_MODNAME} ! -type d 2>/dev/null | \
|
|
|
|
${SED} -ne 's,^${PREFIX}/,,p' >> ${TMPPLIST}
|
|
|
|
@${FIND} -P -d ${PREFIX}/include/php/ext/${PHP_MODNAME} -type d 2>/dev/null | \
|
|
|
|
${SED} -ne 's,^${PREFIX}/,@dirrm ,p' >> ${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@exec echo \#include \\\"ext/${PHP_MODNAME}/config.h\\\" >> %D/include/php/ext/php_config.h" \
|
|
|
|
>> ${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@unexec cp %D/include/php/ext/php_config.h %D/include/php/ext/php_config.h.orig" \
|
|
|
|
>> ${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@unexec grep -v ext/${PHP_MODNAME}/config.h %D/include/php/ext/php_config.h.orig > %D/include/php/ext/php_config.h || true" \
|
|
|
|
>> ${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@unexec rm %D/include/php/ext/php_config.h.orig" \
|
|
|
|
>> ${TMPPLIST}
|
2004-07-28 04:59:35 -04:00
|
|
|
@${ECHO_CMD} "@exec mkdir -p %D/etc/php" \
|
2004-07-19 03:15:24 -04:00
|
|
|
>> ${TMPPLIST}
|
2004-07-28 04:59:35 -04:00
|
|
|
@${ECHO_CMD} "@exec echo extension=${PHP_MODNAME}.so >> %D/etc/php/extensions.ini" \
|
2004-07-19 03:15:24 -04:00
|
|
|
>> ${TMPPLIST}
|
2004-07-28 04:59:35 -04:00
|
|
|
@${ECHO_CMD} "@unexec cp %D/etc/php/extensions.ini %D/etc/php/extensions.ini.orig" \
|
2004-07-19 03:15:24 -04:00
|
|
|
>> ${TMPPLIST}
|
2004-09-02 06:08:48 -04:00
|
|
|
@${ECHO_CMD} "@unexec grep -v extension=${PHP_MODNAME}\\\.so %D/etc/php/extensions.ini.orig > %D/etc/php/extensions.ini || true" \
|
2004-07-28 04:59:35 -04:00
|
|
|
>> ${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@unexec rm %D/etc/php/extensions.ini.orig" \
|
|
|
|
>> ${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@unexec [ -s %D/etc/php/extensions.ini ] || rm %D/etc/php/extensions.ini" \
|
|
|
|
>> ${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@unexec rmdir %D/etc/php 2> /dev/null || true" \
|
2004-07-19 03:15:24 -04:00
|
|
|
>> ${TMPPLIST}
|
|
|
|
|
|
|
|
security-check: php-ini
|
|
|
|
|
|
|
|
php-ini:
|
|
|
|
@${ECHO_CMD} "****************************************************************************"
|
|
|
|
@${ECHO_CMD} ""
|
2004-07-28 04:59:35 -04:00
|
|
|
@${ECHO_CMD} "The following line has been added to your ${PREFIX}/etc/php/extensions.ini"
|
2004-07-19 03:15:24 -04:00
|
|
|
@${ECHO_CMD} "configuration file to automatically load the installed extension:"
|
|
|
|
@${ECHO_CMD} ""
|
|
|
|
@${ECHO_CMD} "extension=${PHP_MODNAME}.so"
|
|
|
|
@${ECHO_CMD} ""
|
|
|
|
@${ECHO_CMD} "****************************************************************************"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# Extensions
|
|
|
|
.if ${USE_PHP:L} != "yes"
|
|
|
|
# non-version specific components
|
2005-12-09 14:41:41 -05:00
|
|
|
_USE_PHP_ALL= bcmath bz2 calendar ctype curl dba dbase \
|
2005-03-14 09:37:45 -05:00
|
|
|
exif fileinfo filepro fribidi ftp gd gettext gmp \
|
2006-03-19 17:18:41 -05:00
|
|
|
hash iconv imagick imap interbase ldap mbstring mcrypt \
|
2005-12-09 14:41:41 -05:00
|
|
|
mhash ming mssql mysql ncurses odbc \
|
2006-02-01 02:18:47 -05:00
|
|
|
openssl panda pcntl pcre pdf pgsql posix \
|
2005-03-14 09:37:45 -05:00
|
|
|
pspell radius readline recode session shmop snmp \
|
|
|
|
sockets sybase_ct sysvmsg sysvsem sysvshm \
|
2005-12-09 14:41:41 -05:00
|
|
|
tokenizer wddx xml xmlrpc yaz zip zlib
|
2005-03-14 09:37:45 -05:00
|
|
|
# version specific components
|
2005-12-09 14:41:41 -05:00
|
|
|
_USE_PHP_VER4= ${_USE_PHP_ALL} crack dbx dio domxml mcal mcve \
|
2006-02-01 02:18:47 -05:00
|
|
|
mnogosearch oracle overload pfpro xslt yp
|
2006-03-19 17:18:41 -05:00
|
|
|
_USE_PHP_VER5= ${_USE_PHP_ALL} dom mysqli pdo simplexml soap sqlite \
|
2006-01-16 07:08:20 -05:00
|
|
|
tidy xmlreader xmlwriter xsl
|
2004-07-19 03:15:24 -04:00
|
|
|
|
|
|
|
bcmath_DEPENDS= math/php${PHP_VER}-bcmath
|
|
|
|
bz2_DEPENDS= archivers/php${PHP_VER}-bz2
|
|
|
|
calendar_DEPENDS= misc/php${PHP_VER}-calendar
|
|
|
|
crack_DEPENDS= security/php${PHP_VER}-crack
|
|
|
|
ctype_DEPENDS= textproc/php${PHP_VER}-ctype
|
|
|
|
curl_DEPENDS= ftp/php${PHP_VER}-curl
|
|
|
|
dba_DEPENDS= databases/php${PHP_VER}-dba
|
|
|
|
dbase_DEPENDS= databases/php${PHP_VER}-dbase
|
|
|
|
dbx_DEPENDS= databases/php${PHP_VER}-dbx
|
|
|
|
dio_DEPENDS= devel/php${PHP_VER}-dio
|
|
|
|
dom_DEPENDS= textproc/php${PHP_VER}-dom
|
|
|
|
domxml_DEPENDS= textproc/php${PHP_VER}-domxml
|
|
|
|
exif_DEPENDS= graphics/php${PHP_VER}-exif
|
2004-07-21 05:35:04 -04:00
|
|
|
fileinfo_DEPENDS= sysutils/pecl-fileinfo
|
2004-07-19 03:15:24 -04:00
|
|
|
filepro_DEPENDS=databases/php${PHP_VER}-filepro
|
|
|
|
fribidi_DEPENDS=converters/pecl-fribidi
|
|
|
|
ftp_DEPENDS= ftp/php${PHP_VER}-ftp
|
|
|
|
gd_DEPENDS= graphics/php${PHP_VER}-gd
|
|
|
|
gettext_DEPENDS=devel/php${PHP_VER}-gettext
|
|
|
|
gmp_DEPENDS= math/php${PHP_VER}-gmp
|
2006-03-18 09:14:26 -05:00
|
|
|
hash_DEPENDS= security/pecl-hash
|
2004-07-19 03:15:24 -04:00
|
|
|
iconv_DEPENDS= converters/php${PHP_VER}-iconv
|
2004-07-19 11:34:18 -04:00
|
|
|
imagick_DEPENDS=graphics/pecl-imagick
|
2004-07-19 03:15:24 -04:00
|
|
|
imap_DEPENDS= mail/php${PHP_VER}-imap
|
|
|
|
interbase_DEPENDS= databases/php${PHP_VER}-interbase
|
|
|
|
ldap_DEPENDS= net/php${PHP_VER}-ldap
|
|
|
|
mbstring_DEPENDS= converters/php${PHP_VER}-mbstring
|
|
|
|
mcal_DEPENDS= misc/php${PHP_VER}-mcal
|
|
|
|
mcrypt_DEPENDS= security/php${PHP_VER}-mcrypt
|
|
|
|
mcve_DEPENDS= devel/php${PHP_VER}-mcve
|
|
|
|
mhash_DEPENDS= security/php${PHP_VER}-mhash
|
|
|
|
ming_DEPENDS= graphics/php${PHP_VER}-ming
|
|
|
|
mnogosearch_DEPENDS= www/php${PHP_VER}-mnogosearch
|
|
|
|
mssql_DEPENDS= databases/php${PHP_VER}-mssql
|
|
|
|
mysql_DEPENDS= databases/php${PHP_VER}-mysql
|
|
|
|
mysqli_DEPENDS= databases/php${PHP_VER}-mysqli
|
|
|
|
ncurses_DEPENDS=devel/php${PHP_VER}-ncurses
|
|
|
|
odbc_DEPENDS= databases/php${PHP_VER}-odbc
|
|
|
|
openssl_DEPENDS=security/php${PHP_VER}-openssl
|
|
|
|
oracle_DEPENDS= databases/php${PHP_VER}-oracle
|
|
|
|
overload_DEPENDS=lang/php${PHP_VER}-overload
|
|
|
|
panda_DEPENDS= print/pecl-panda
|
|
|
|
pcntl_DEPENDS= devel/php${PHP_VER}-pcntl
|
|
|
|
pcre_DEPENDS= devel/php${PHP_VER}-pcre
|
|
|
|
pdf_DEPENDS= print/pecl-pdflib
|
2006-03-18 09:12:04 -05:00
|
|
|
pdo_DEPENDS= databases/pecl-PDO
|
2006-01-31 18:00:21 -05:00
|
|
|
pfpro_DEPENDS= finance/php${PHP_VER}-pfpro
|
2004-07-19 03:15:24 -04:00
|
|
|
pgsql_DEPENDS= databases/php${PHP_VER}-pgsql
|
|
|
|
posix_DEPENDS= sysutils/php${PHP_VER}-posix
|
|
|
|
pspell_DEPENDS= textproc/php${PHP_VER}-pspell
|
2005-03-11 11:53:44 -05:00
|
|
|
radius_DEPENDS= net/pecl-radius
|
2004-07-19 03:15:24 -04:00
|
|
|
readline_DEPENDS= devel/php${PHP_VER}-readline
|
|
|
|
recode_DEPENDS= converters/php${PHP_VER}-recode
|
|
|
|
session_DEPENDS=www/php${PHP_VER}-session
|
|
|
|
shmop_DEPENDS= devel/php${PHP_VER}-shmop
|
|
|
|
simplexml_DEPENDS= textproc/php${PHP_VER}-simplexml
|
|
|
|
snmp_DEPENDS= net-mgmt/php${PHP_VER}-snmp
|
|
|
|
soap_DEPENDS= net/php${PHP_VER}-soap
|
|
|
|
sockets_DEPENDS=net/php${PHP_VER}-sockets
|
|
|
|
sqlite_DEPENDS= databases/php${PHP_VER}-sqlite
|
|
|
|
sybase_ct_DEPENDS= databases/php${PHP_VER}-sybase_ct
|
|
|
|
sysvmsg_DEPENDS=devel/php${PHP_VER}-sysvmsg
|
|
|
|
sysvsem_DEPENDS=devel/php${PHP_VER}-sysvsem
|
|
|
|
sysvshm_DEPENDS=devel/php${PHP_VER}-sysvshm
|
|
|
|
tidy_DEPENDS= www/php${PHP_VER}-tidy
|
|
|
|
tokenizer_DEPENDS= devel/php${PHP_VER}-tokenizer
|
|
|
|
wddx_DEPENDS= textproc/php${PHP_VER}-wddx
|
|
|
|
xml_DEPENDS= textproc/php${PHP_VER}-xml
|
2005-12-09 14:41:41 -05:00
|
|
|
xmlreader_DEPENDS= textproc/php${PHP_VER}-xmlreader
|
2004-07-19 03:15:24 -04:00
|
|
|
xmlrpc_DEPENDS= net/php${PHP_VER}-xmlrpc
|
2006-01-16 07:08:20 -05:00
|
|
|
xmlwriter_DEPENDS= textproc/php${PHP_VER}-xmlwriter
|
2004-07-19 03:15:24 -04:00
|
|
|
xsl_DEPENDS= textproc/php${PHP_VER}-xsl
|
|
|
|
xslt_DEPENDS= textproc/php${PHP_VER}-xslt
|
|
|
|
yaz_DEPENDS= net/pecl-yaz
|
|
|
|
yp_DEPENDS= net/php${PHP_VER}-yp
|
|
|
|
zip_DEPENDS= archivers/pecl-zip
|
|
|
|
zlib_DEPENDS= archivers/php${PHP_VER}-zlib
|
|
|
|
|
|
|
|
. for extension in ${USE_PHP}
|
2005-03-14 09:37:45 -05:00
|
|
|
. if ${_USE_PHP_VER${PHP_VER}:M${extension}} != ""
|
|
|
|
. if ${PHP_EXT_INC:M${extension}} == ""
|
|
|
|
. if defined(USE_PHP_BUILD)
|
2004-07-19 03:15:24 -04:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/${extension}.so:${PORTSDIR}/${${extension}_DEPENDS}
|
2005-03-14 09:37:45 -05:00
|
|
|
. endif
|
2004-07-19 03:15:24 -04:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/${extension}.so:${PORTSDIR}/${${extension}_DEPENDS}
|
2005-03-14 09:37:45 -05:00
|
|
|
. endif
|
2004-07-19 03:15:24 -04:00
|
|
|
. else
|
|
|
|
isyes= ${extension}
|
|
|
|
. if ${isyes:L} != "yes"
|
|
|
|
check-makevars::
|
2005-03-14 09:37:45 -05:00
|
|
|
@${ECHO_CMD} "Unknown extension ${extension} for PHP ${PHP_VER}."
|
2004-07-19 03:15:24 -04:00
|
|
|
@${FALSE}
|
|
|
|
. endif
|
|
|
|
. endif
|
|
|
|
. endfor
|
|
|
|
.endif
|