2007-10-30 06:13:22 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.39 2007/10/30 10:13:22 ajacoutot Exp $
|
2004-10-02 07:32:35 -04:00
|
|
|
|
2007-05-11 11:05:15 -04:00
|
|
|
FULLPKGNAME-main= php5-extensions-${V}
|
2007-09-15 16:38:20 -04:00
|
|
|
COMMENT-main= informational package about PHP5 extensions
|
2004-10-02 07:32:35 -04:00
|
|
|
|
2006-11-25 06:45:58 -05:00
|
|
|
MULTI_PACKAGES= -main
|
2004-10-02 07:32:35 -04:00
|
|
|
|
|
|
|
# extensions get installed under the apache chroot
|
2006-05-09 10:15:40 -04:00
|
|
|
PREFIX?= ${CHROOT_DIR}
|
2004-10-02 07:32:35 -04:00
|
|
|
|
2006-05-09 10:15:40 -04:00
|
|
|
FLAVORS= no_x11
|
2005-03-16 15:09:41 -05:00
|
|
|
FLAVOR?=
|
2004-10-02 07:32:35 -04:00
|
|
|
|
2006-05-09 10:15:40 -04:00
|
|
|
WANTLIB= stdc++ m
|
2004-12-11 08:29:20 -05:00
|
|
|
|
2006-05-09 10:15:40 -04:00
|
|
|
MODULES= devel/gettext
|
2004-10-02 07:32:35 -04:00
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --with-apxs=/usr/sbin/apxs \
|
|
|
|
--with-iconv-dir=${LOCALBASE} \
|
|
|
|
--with-iconv=${LOCALBASE} \
|
2007-04-01 17:37:27 -04:00
|
|
|
--disable-dom \
|
|
|
|
--disable-cgi
|
2004-10-02 07:32:35 -04:00
|
|
|
|
2006-08-03 20:10:42 -04:00
|
|
|
GRAPHIC_DEPENDS= jpeg.>=62::graphics/jpeg \
|
|
|
|
png.>=3::graphics/png
|
2004-10-02 07:32:35 -04:00
|
|
|
|
|
|
|
GRAPHIC_CONFIG= --with-jpeg-dir=${LOCALBASE} \
|
|
|
|
--with-png-dir=${LOCALBASE} \
|
2005-03-16 15:09:41 -05:00
|
|
|
--with-zlib-dir=/usr
|
2004-10-02 07:32:35 -04:00
|
|
|
|
|
|
|
# bz2
|
|
|
|
PSEUDO_FLAVORS+= no_bz2
|
|
|
|
.if ${FLAVOR:L:Mno_bz2}
|
|
|
|
CONFIGURE_ARGS+= --without-bz2
|
|
|
|
.else
|
|
|
|
MULTI_PACKAGES+= -bz2
|
2007-09-15 16:38:20 -04:00
|
|
|
COMMENT-bz2= bzip2 compression extensions for php5
|
2004-10-02 07:32:35 -04:00
|
|
|
CONFIGURE_ARGS+= --with-bz2=shared,${LOCALBASE}
|
2006-11-25 06:45:58 -05:00
|
|
|
LIB_DEPENDS-bz2= bz2.>=10::archivers/bzip2
|
2004-10-02 07:32:35 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# curl
|
|
|
|
PSEUDO_FLAVORS+= no_curl
|
|
|
|
.if ${FLAVOR:L:Mno_curl}
|
|
|
|
CONFIGURE_ARGS+= --without-curl
|
|
|
|
.else
|
|
|
|
MULTI_PACKAGES+= -curl
|
2007-09-15 16:38:20 -04:00
|
|
|
COMMENT-curl= curl URL library extensions for php5
|
2004-10-02 07:32:35 -04:00
|
|
|
CONFIGURE_ARGS+= --with-curl=shared,${LOCALBASE}
|
2006-11-25 06:45:58 -05:00
|
|
|
LIB_DEPENDS-curl= curl.>=2::net/curl
|
2007-05-15 13:01:01 -04:00
|
|
|
WANTLIB-curl= ${WANTLIB} crypto idn ssl z
|
2007-09-05 05:11:34 -04:00
|
|
|
FULLPKGNAME-curl= php5-curl-${V}
|
2004-10-02 07:32:35 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# dba
|
|
|
|
PSEUDO_FLAVORS+= no_dba
|
|
|
|
.if ${FLAVOR:L:Mno_dba}
|
|
|
|
CONFIGURE_ARGS+= --disable-dba
|
|
|
|
.else
|
|
|
|
MULTI_PACKAGES+= -dba
|
2007-09-15 16:38:20 -04:00
|
|
|
COMMENT-dba= dba GDBM access extensions for php5
|
2004-10-02 07:32:35 -04:00
|
|
|
CONFIGURE_ARGS+= --enable-dba=shared --with-gdbm=${LOCALBASE}
|
2006-11-25 06:45:58 -05:00
|
|
|
LIB_DEPENDS-dba= gdbm.>=2::databases/gdbm
|
2004-10-02 07:32:35 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# dbase
|
|
|
|
PSEUDO_FLAVORS+= no_dbase
|
|
|
|
.if ${FLAVOR:L:Mno_dbase}
|
|
|
|
CONFIGURE_ARGS+= --disable-dbase
|
|
|
|
.else
|
|
|
|
MULTI_PACKAGES+= -dbase
|
2007-09-15 16:38:20 -04:00
|
|
|
COMMENT-dbase= dBase database access extensions for php5
|
2004-10-02 07:32:35 -04:00
|
|
|
CONFIGURE_ARGS+= --enable-dbase=shared
|
2006-11-25 06:45:58 -05:00
|
|
|
LIB_DEPENDS-dbase=
|
2004-10-02 07:32:35 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# gd
|
|
|
|
PSEUDO_FLAVORS+= no_gd
|
|
|
|
.if ${FLAVOR:L:Mno_gd}
|
|
|
|
CONFIGURE_ARGS+= --without-gd --without-xpm-dir --without-ttf \
|
2006-04-06 07:26:39 -04:00
|
|
|
--without-freetype-dir
|
2004-10-02 07:32:35 -04:00
|
|
|
.else
|
|
|
|
MULTI_PACKAGES+= -gd
|
2007-09-15 16:38:20 -04:00
|
|
|
COMMENT-gd= image manipulation extensions for php5
|
2006-11-25 06:45:58 -05:00
|
|
|
LIB_DEPENDS-gd= ${GRAPHIC_DEPENDS} t1.>=5::devel/t1lib
|
|
|
|
WANTLIB-gd= ${WANTLIB} z
|
2006-07-16 18:08:42 -04:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="${LOCALBASE}/include/libpng"
|
2004-10-02 07:32:35 -04:00
|
|
|
CONFIGURE_ARGS+= --with-gd=shared ${GRAPHIC_CONFIG} \
|
2006-04-06 07:26:39 -04:00
|
|
|
--with-t1lib=${LOCALBASE} \
|
|
|
|
--with-freetype-dir=${X11BASE}
|
|
|
|
|
2006-04-15 10:57:24 -04:00
|
|
|
. if ${FLAVOR:L:Mno_x11}
|
2006-11-20 15:57:22 -05:00
|
|
|
CONFIGURE_ARGS+= --without-xpm-dir --without-freetype-dir
|
2007-03-22 18:43:20 -04:00
|
|
|
FULLPKGNAME-gd= php5-gd-${V}-no_x11
|
2006-04-15 10:57:24 -04:00
|
|
|
. else
|
2006-05-09 10:15:40 -04:00
|
|
|
USE_X11= yes
|
|
|
|
CONFIGURE_ARGS+= --with-xpm-dir=${X11BASE}
|
2007-03-22 18:43:20 -04:00
|
|
|
FULLPKGNAME-gd= php5-gd-${V}
|
2006-11-25 06:45:58 -05:00
|
|
|
WANTLIB-gd+= X11 Xpm freetype
|
2005-03-16 15:09:41 -05:00
|
|
|
. endif
|
2004-10-02 07:32:35 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# gmp
|
|
|
|
PSEUDO_FLAVORS+= no_gmp
|
|
|
|
.if ${FLAVOR:L:Mno_gmp}
|
|
|
|
CONFIGURE_ARGS+= --without-gmp
|
|
|
|
.else
|
|
|
|
MULTI_PACKAGES+= -gmp
|
2007-09-15 16:38:20 -04:00
|
|
|
COMMENT-gmp= gmp math library support for php5
|
2004-10-02 07:32:35 -04:00
|
|
|
CONFIGURE_ARGS+= --with-gmp=shared,${LOCALBASE}
|
2006-11-25 06:45:58 -05:00
|
|
|
LIB_DEPENDS-gmp= gmp.>=4::devel/gmp
|
2004-10-02 07:32:35 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# imap
|
|
|
|
PSEUDO_FLAVORS+= no_imap
|
|
|
|
.if ${FLAVOR:L:Mno_imap}
|
|
|
|
CONFIGURE_ARGS+= --without-imap --without-kerberos
|
|
|
|
.else
|
|
|
|
MULTI_PACKAGES+= -imap
|
2007-09-15 16:38:20 -04:00
|
|
|
COMMENT-imap= imap, pop3 and nntp extensions for php5
|
2004-10-02 07:32:35 -04:00
|
|
|
CONFIGURE_ARGS+= --with-imap=shared,${LOCALBASE} \
|
|
|
|
--with-kerberos=/usr --with-imap-ssl
|
2007-10-30 06:13:22 -04:00
|
|
|
LIB_DEPENDS-imap= c-client.>=5::mail/imap-uw,-c-client
|
2006-11-25 06:45:58 -05:00
|
|
|
WANTLIB-imap= ${WANTLIB} gssapi crypto krb5 ssl
|
2004-10-02 07:32:35 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# ldap
|
|
|
|
PSEUDO_FLAVORS+= no_ldap
|
|
|
|
.if ${FLAVOR:L:Mno_ldap}
|
|
|
|
CONFIGURE_ARGS+= --without-ldap
|
|
|
|
.else
|
|
|
|
MULTI_PACKAGES+= -ldap
|
2007-09-15 16:38:20 -04:00
|
|
|
COMMENT-ldap= ldap protocol extensions for php5
|
2004-10-02 07:32:35 -04:00
|
|
|
CONFIGURE_ARGS+= --with-ldap=shared,${LOCALBASE}
|
2006-11-25 06:45:58 -05:00
|
|
|
LIB_DEPENDS-ldap= ldap.>=2,lber::databases/openldap
|
2004-10-02 07:32:35 -04:00
|
|
|
.endif
|
|
|
|
|
2005-07-05 20:50:32 -04:00
|
|
|
# mbstring
|
|
|
|
PSEUDO_FLAVORS+= no_mbstring
|
|
|
|
.if ${FLAVOR:L:Mno_mbstring}
|
|
|
|
CONFIGURE_ARGS+= --disable-mbstring
|
|
|
|
.else
|
|
|
|
MULTI_PACKAGES+= -mbstring
|
2007-09-15 16:38:20 -04:00
|
|
|
COMMENT-mbstring= multibyte characters extensions for php5
|
2005-07-05 20:50:32 -04:00
|
|
|
CONFIGURE_ARGS+= --enable-mbstring=shared
|
2006-11-25 06:45:58 -05:00
|
|
|
LIB_DEPENDS-mbstring=
|
2005-07-05 20:50:32 -04:00
|
|
|
.endif
|
|
|
|
|
2004-10-02 07:32:35 -04:00
|
|
|
# mcrypt
|
|
|
|
PSEUDO_FLAVORS+= no_mcrypt
|
|
|
|
.if ${FLAVOR:L:Mno_mcrypt}
|
|
|
|
CONFIGURE_ARGS+= --without-mcrypt
|
|
|
|
.else
|
|
|
|
MULTI_PACKAGES+= -mcrypt
|
2007-09-15 16:38:20 -04:00
|
|
|
COMMENT-mcrypt= mcrypt encryption/decryption extensions for php5
|
2004-10-02 07:32:35 -04:00
|
|
|
CONFIGURE_ARGS+= --with-mcrypt=shared,${LOCALBASE}
|
2006-11-25 06:45:58 -05:00
|
|
|
LIB_DEPENDS-mcrypt= mcrypt::security/libmcrypt ltdl.>=1::devel/libtool,-ltdl
|
2004-10-02 07:32:35 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# mhash
|
|
|
|
PSEUDO_FLAVORS+= no_mhash
|
|
|
|
.if ${FLAVOR:L:Mno_mhash}
|
|
|
|
CONFIGURE_ARGS+= --without-mhash
|
|
|
|
.else
|
|
|
|
MULTI_PACKAGES+= -mhash
|
2007-09-15 16:38:20 -04:00
|
|
|
COMMENT-mhash= mhash extensions for php5
|
2004-10-02 07:32:35 -04:00
|
|
|
CONFIGURE_ARGS+= --with-mhash=shared,${LOCALBASE}
|
2006-11-25 06:45:58 -05:00
|
|
|
LIB_DEPENDS-mhash= mhash.>=2::security/mhash
|
2004-10-02 07:32:35 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# mysql
|
|
|
|
PSEUDO_FLAVORS+= no_mysql
|
|
|
|
.if ${FLAVOR:L:Mno_mysql}
|
|
|
|
CONFIGURE_ARGS+= --without-mysql
|
|
|
|
.else
|
|
|
|
MULTI_PACKAGES+= -mysql
|
2007-09-15 16:38:20 -04:00
|
|
|
COMMENT-mysql= mysql database access extensions for php5
|
2004-10-02 07:32:35 -04:00
|
|
|
CONFIGURE_ARGS+= --with-mysql=shared,${LOCALBASE}
|
2006-11-25 06:45:58 -05:00
|
|
|
LIB_DEPENDS-mysql= lib/mysql/mysqlclient.>=10::databases/mysql
|
2004-10-02 07:32:35 -04:00
|
|
|
.endif
|
|
|
|
|
2006-05-09 10:15:40 -04:00
|
|
|
# mysqli
|
|
|
|
PSEUDO_FLAVORS+= no_mysqli
|
|
|
|
.if ${FLAVOR:L:Mno_mysqli}
|
|
|
|
CONFIGURE_ARGS+= --without-mysqli
|
|
|
|
.else
|
|
|
|
MULTI_PACKAGES+= -mysqli
|
2007-09-15 16:38:20 -04:00
|
|
|
COMMENT-mysqli= mysql database access extensions for php5
|
2006-05-09 10:15:40 -04:00
|
|
|
CONFIGURE_ARGS+= --with-mysqli=shared,${LOCALBASE}/bin/mysql_config
|
2006-11-25 06:45:58 -05:00
|
|
|
LIB_DEPENDS-mysqli= lib/mysql/mysqlclient.>=10::databases/mysql
|
|
|
|
WANTLIB-mysqli= ${WANTLIB} crypto ssl z
|
2006-05-09 10:15:40 -04:00
|
|
|
.endif
|
|
|
|
|
2004-10-02 07:32:35 -04:00
|
|
|
# ncurses
|
|
|
|
PSEUDO_FLAVORS+= no_ncurses
|
|
|
|
.if ${FLAVOR:L:Mno_ncurses}
|
|
|
|
CONFIGURE_ARGS+= --without-ncurses
|
|
|
|
.else
|
|
|
|
MULTI_PACKAGES+= -ncurses
|
2007-09-15 16:38:20 -04:00
|
|
|
COMMENT-ncurses= ncurses extensions for php5
|
2004-10-02 07:32:35 -04:00
|
|
|
CONFIGURE_ARGS+= --with-ncurses=shared,${LOCALBASE}
|
2006-11-25 06:45:58 -05:00
|
|
|
LIB_DEPENDS-ncurses=
|
|
|
|
WANTLIB-ncurses= ${WANTLIB} ncurses panel
|
2004-10-02 07:32:35 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# odbc
|
|
|
|
PSEUDO_FLAVORS+= no_odbc
|
|
|
|
.if ${FLAVOR:L:Mno_odbc}
|
|
|
|
CONFIGURE_ARGS+= --without-odbc
|
|
|
|
.else
|
|
|
|
MULTI_PACKAGES+= -odbc
|
2007-09-15 16:38:20 -04:00
|
|
|
COMMENT-odbc= odbc database access extensions for php5
|
2004-10-02 07:32:35 -04:00
|
|
|
CONFIGURE_ARGS+= --with-iodbc=shared
|
2006-11-25 06:45:58 -05:00
|
|
|
LIB_DEPENDS-odbc= iodbc.>=2::databases/iodbc
|
2004-10-02 07:32:35 -04:00
|
|
|
.endif
|
|
|
|
|
2007-04-01 17:37:27 -04:00
|
|
|
# pdo-mysql
|
|
|
|
PSEUDO_FLAVORS+= no_pdo_mysql
|
|
|
|
.if ${FLAVOR:L:Mno_pdo_mysql}
|
|
|
|
CONFIGURE_ARGS+= --without-pdo-mysql
|
|
|
|
.else
|
|
|
|
MULTI_PACKAGES+= -pdo_mysql
|
2007-09-15 16:38:20 -04:00
|
|
|
COMMENT-pdo_mysql= PDO mysql database access extensions for php5
|
2007-04-01 17:37:27 -04:00
|
|
|
CONFIGURE_ARGS+= --with-pdo-mysql=shared,${LOCALBASE}
|
|
|
|
LIB_DEPENDS-pdo_mysql= lib/mysql/mysqlclient.>=10::databases/mysql
|
|
|
|
WANTLIB-pdo_mysql= ${WANTLIB} crypto ssl z
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# pdo-pgsql
|
|
|
|
PSEUDO_FLAVORS+= no_pdo_pgsql
|
|
|
|
.if ${FLAVOR:L:Mno_pdo_pgsql}
|
|
|
|
CONFIGURE_ARGS+= --without-pdo-pgsql
|
|
|
|
.else
|
|
|
|
MULTI_PACKAGES+= -pdo_pgsql
|
2007-09-15 16:38:20 -04:00
|
|
|
COMMENT-pdo_pgsql= PDO database access extensions for php5
|
2007-04-01 17:37:27 -04:00
|
|
|
CONFIGURE_ARGS+= --with-pdo-pgsql=shared,${LOCALBASE}
|
|
|
|
LIB_DEPENDS-pdo_pgsql= pq.>=2:postgresql-client-*:databases/postgresql
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# pdo-sqlite
|
|
|
|
PSEUDO_FLAVORS+= no_pdo_sqlite
|
|
|
|
.if ${FLAVOR:L:Mno_pdo_sqlite}
|
|
|
|
CONFIGURE_ARGS+= --without-pdo-sqlite
|
|
|
|
.else
|
|
|
|
MULTI_PACKAGES+= -pdo_sqlite
|
2007-09-15 16:38:20 -04:00
|
|
|
COMMENT-pdo_sqlite= PDO sqlite database access extensions for php5
|
2007-04-01 17:37:27 -04:00
|
|
|
CONFIGURE_ARGS+= --with-pdo-sqlite=shared,${LOCALBASE} --enable-sqlite-utf8
|
|
|
|
LIB_DEPENDS-pdo_sqlite= sqlite3.>=8::databases/sqlite3
|
|
|
|
.endif
|
|
|
|
|
2004-10-02 07:32:35 -04:00
|
|
|
# pgsql
|
|
|
|
PSEUDO_FLAVORS+= no_pgsql
|
|
|
|
.if ${FLAVOR:L:Mno_pgsql}
|
|
|
|
CONFIGURE_ARGS+= --without-pgsql
|
|
|
|
.else
|
|
|
|
MULTI_PACKAGES+= -pgsql
|
2007-09-15 16:38:20 -04:00
|
|
|
COMMENT-pgsql= pgsql database access extensions for php5
|
2004-10-02 07:32:35 -04:00
|
|
|
CONFIGURE_ARGS+= --with-pgsql=shared,${LOCALBASE}
|
2006-11-25 06:45:58 -05:00
|
|
|
LIB_DEPENDS-pgsql= pq.>=2:postgresql-client-*:databases/postgresql
|
2004-10-02 07:32:35 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# shmop
|
|
|
|
PSEUDO_FLAVORS+= no_shmop
|
|
|
|
.if ${FLAVOR:L:Mno_shmop}
|
|
|
|
CONFIGURE_ARGS+= --disable-shmop
|
|
|
|
.else
|
|
|
|
MULTI_PACKAGES+= -shmop
|
2007-09-15 16:38:20 -04:00
|
|
|
COMMENT-shmop= shared memory extensions for php5
|
2004-10-02 07:32:35 -04:00
|
|
|
CONFIGURE_ARGS+= --enable-shmop=shared
|
2006-11-25 06:45:58 -05:00
|
|
|
LIB_DEPENDS-shmop=
|
2004-10-02 07:32:35 -04:00
|
|
|
.endif
|
|
|
|
|
2005-06-06 13:25:33 -04:00
|
|
|
# soap
|
|
|
|
PSEUDO_FLAVORS+= no_soap
|
|
|
|
.if ${FLAVOR:L:Mno_soap}
|
|
|
|
CONFIGURE_ARGS+= --without-soap
|
|
|
|
.else
|
|
|
|
MULTI_PACKAGES+= -soap
|
2007-09-15 16:38:20 -04:00
|
|
|
COMMENT-soap= SOAP functions for php5
|
2005-06-06 13:25:33 -04:00
|
|
|
CONFIGURE_ARGS+= --enable-soap=shared
|
2006-11-25 06:45:58 -05:00
|
|
|
LIB_DEPENDS-soap=
|
|
|
|
WANTLIB-soap= ${WANTLIB} xml2 z iconv
|
2005-06-06 13:25:33 -04:00
|
|
|
.endif
|
|
|
|
|
2005-03-16 15:09:41 -05:00
|
|
|
# snmp
|
2004-10-02 07:32:35 -04:00
|
|
|
PSEUDO_FLAVORS+= no_snmp
|
|
|
|
.if ${FLAVOR:L:Mno_snmp}
|
|
|
|
CONFIGURE_ARGS+= --without-snmp
|
|
|
|
.else
|
|
|
|
MULTI_PACKAGES+= -snmp
|
2007-09-15 16:38:20 -04:00
|
|
|
COMMENT-snmp= snmp protocol extensions for php5
|
2004-10-02 07:32:35 -04:00
|
|
|
CONFIGURE_ARGS+= --with-snmp=shared,${LOCALBASE} --enable-ucd-snmp-hack
|
2006-11-25 06:45:58 -05:00
|
|
|
LIB_DEPENDS-snmp= netsnmp.>=6.2::net/net-snmp
|
|
|
|
WANTLIB-snmp= ${WANTLIB} crypto
|
2004-10-02 07:32:35 -04:00
|
|
|
.endif
|
|
|
|
|
2004-10-18 11:58:53 -04:00
|
|
|
# sqlite
|
2005-05-12 15:09:14 -04:00
|
|
|
PSEUDO_FLAVORS+= no_sqlite
|
2004-10-18 11:58:53 -04:00
|
|
|
.if ${FLAVOR:L:Mno_sqlite}
|
|
|
|
CONFIGURE_ARGS+= --without-sqlite
|
|
|
|
.else
|
|
|
|
MULTI_PACKAGES+= -sqlite
|
2007-09-15 16:38:20 -04:00
|
|
|
COMMENT-sqlite= sqlite database access extensions for php5
|
2004-10-18 11:58:53 -04:00
|
|
|
CONFIGURE_ARGS+= --with-sqlite=shared,${LOCALBASE} --enable-sqlite-utf8
|
2006-11-25 06:45:58 -05:00
|
|
|
LIB_DEPENDS-sqlite= sqlite.>=8::databases/sqlite
|
2004-10-18 11:58:53 -04:00
|
|
|
.endif
|
|
|
|
|
2004-10-02 07:32:35 -04:00
|
|
|
# sybase-ct
|
|
|
|
PSEUDO_FLAVORS+= no_sybase_ct
|
|
|
|
.if ${FLAVOR:L:Mno_sybase_ct}
|
|
|
|
CONFIGURE_ARGS+= --without-sybase-ct
|
|
|
|
.else
|
|
|
|
MULTI_PACKAGES+= -sybase_ct
|
2007-09-15 16:38:20 -04:00
|
|
|
COMMENT-sybase_ct= sybase database access extensions for php5
|
2004-10-02 07:32:35 -04:00
|
|
|
CONFIGURE_ARGS+= --with-sybase-ct=shared,${LOCALBASE}
|
2006-11-25 06:45:58 -05:00
|
|
|
LIB_DEPENDS-sybase_ct= ct::databases/freetds
|
2004-10-02 07:32:35 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# xml-rpc
|
|
|
|
PSEUDO_FLAVORS+= no_xmlrpc
|
|
|
|
.if ${FLAVOR:L:Mno_xmlrpc}
|
|
|
|
CONFIGURE_ARGS+= --without-xmlrpc
|
|
|
|
.else
|
|
|
|
MULTI_PACKAGES+= -xmlrpc
|
2007-09-15 16:38:20 -04:00
|
|
|
COMMENT-xmlrpc= XML RPC functions for php5
|
2004-10-02 07:32:35 -04:00
|
|
|
CONFIGURE_ARGS+= --with-xmlrpc=shared
|
2006-11-25 06:45:58 -05:00
|
|
|
LIB_DEPENDS-xmlrpc=
|
|
|
|
WANTLIB-xmlrpc= ${WANTLIB} iconv xml2 z
|
2004-10-02 07:32:35 -04:00
|
|
|
.endif
|
|
|
|
|
2005-05-12 15:09:14 -04:00
|
|
|
# xsl
|
|
|
|
PSEUDO_FLAVORS+= no_xsl
|
|
|
|
.if ${FLAVOR:L:Mno_xsl}
|
|
|
|
CONFIGURE_ARGS+= --without-xsl
|
|
|
|
.else
|
|
|
|
MULTI_PACKAGES+= -xsl
|
2007-09-15 16:38:20 -04:00
|
|
|
COMMENT-xsl= XSL functions for php5
|
2005-05-12 15:09:14 -04:00
|
|
|
CONFIGURE_ARGS+= --with-xsl=shared --enable-dom
|
2006-11-25 06:45:58 -05:00
|
|
|
LIB_DEPENDS-xsl= xslt.>=3,exslt::textproc/libxslt
|
|
|
|
WANTLIB-xsl= ${WANTLIB} iconv xml2 z
|
2005-05-12 15:09:14 -04:00
|
|
|
.endif
|
|
|
|
|
2004-10-02 07:32:35 -04:00
|
|
|
.for i in ${MULTI_PACKAGES}
|
2007-03-22 18:43:20 -04:00
|
|
|
FULLPKGNAME${i} ?= php5${i}-${V}
|
2006-11-25 06:45:58 -05:00
|
|
|
RUN_DEPENDS${i}= :php5-core-${V}:www/php5/core
|
2006-12-31 08:15:38 -05:00
|
|
|
MODULE_NAME${i}= ${i:S/-//g}
|
2004-10-02 07:32:35 -04:00
|
|
|
.endfor
|
|
|
|
|
2007-10-30 06:13:22 -04:00
|
|
|
FULLPKGNAME-imap= php5-imap-$Vp0
|
|
|
|
|
2004-10-02 07:32:35 -04:00
|
|
|
MESSAGE= ${PKGDIR}/MESSAGE
|
2006-11-25 06:45:58 -05:00
|
|
|
SUBST_VARS= MODULE_NAME PHP_CONFIG_FILE LOCALBASE V
|
|
|
|
|
|
|
|
LIB_DEPENDS-main=
|
|
|
|
MESSAGE-main= ${PKGDIR}/DESCR-main
|
|
|
|
WANTLIB-main=
|
|
|
|
|
2006-11-24 04:27:33 -05:00
|
|
|
BUILD_DEPENDS+= ::textproc/libxml
|
2004-10-02 07:32:35 -04:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/${MODULES_SUBDIR}
|
2006-11-25 06:45:58 -05:00
|
|
|
.for m in ${MULTI_PACKAGES:N-main:S/-//g}
|
2004-10-02 07:32:35 -04:00
|
|
|
${INSTALL_DATA} ${WRKBUILD}/modules/${m}.so \
|
|
|
|
${PREFIX}/${MODULES_SUBDIR}/${m}.so
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|