define MULTI_PACKAGES separately for each extension. ok avsm@

This commit is contained in:
jakob 2002-07-10 08:13:27 +00:00
parent c4f1233c9f
commit b95b220f13

View File

@ -1,10 +1,8 @@
# $OpenBSD: Makefile,v 1.5 2002/07/09 19:35:10 avsm Exp $
# $OpenBSD: Makefile,v 1.6 2002/07/10 08:13:27 jakob Exp $
PKGNAME= php4-gd-${V}
MULTI_PACKAGES= -bz2 -curl -dba -dbase -filepro \
-gmp -imap -ldap -mcrypt -mhash -mysql -ncurses \
-odbc -pdf -pgsql -shmop -snmp -sybase_ct -xml -xslt
MULTI_PACKAGES=
SUBPACKAGE?=
FLAVORS+= no_x11
@ -30,25 +28,30 @@ FULLPKGNAME${i}= php4${i}-${V}
.endfor
# bz2
MULTI_PACKAGES+= -bz2
COMMENT-bz2= "bzip2 compression extensions for php4"
CONFIGURE_ARGS+= --with-bz2=shared,${LOCALBASE}
BZ2_DEPENDS= bz2.10::archivers/bzip2
# curl
MULTI_PACKAGES+= -curl
COMMENT-curl= "curl URL library extensions for php4"
CONFIGURE_ARGS+= --with-curl=shared,${LOCALBASE}
CURL_DEPENDS= curl.2::net/curl
# dba
MULTI_PACKAGES+= -dba
COMMENT-dba= "dba GDBM access extensions for php4"
CONFIGURE_ARGS+= --enable-dba=shared --with-gdbm=${LOCALBASE}
DBA_DEPENDS= gdbm.2::databases/gdbm
# dbase
MULTI_PACKAGES+= -dbase
COMMENT-dbase= "dBase database access extensions for php4"
CONFIGURE_ARGS+= --enable-dbase=shared
# filepro
MULTI_PACKAGES+= -filepro
COMMENT-filepro= "filepro database access extensions for php4"
CONFIGURE_ARGS+= --enable-filepro=shared
@ -63,77 +66,92 @@ CONFIGURE_ARGS+= --without-xpm-dir --without-freetype-dir --without-ttf
.endif
# gmp
MULTI_PACKAGES+= -gmp
COMMENT-gmp= "gmp math library support for php4"
CONFIGURE_ARGS+= --with-gmp=shared,${LOCALBASE}
GMP_DEPENDS= gmp.4::devel/gmp
# imap
MULTI_PACKAGES+= -imap
COMMENT-imap= "imap, pop3 and nntp extensions for php4"
CONFIGURE_ARGS+= --with-imap=shared,${LOCALBASE} \
--with-kerberos=/usr/lib --with-imap-ssl
IMAP_DEPENDS= c-client.3::mail/c-client
# ldap
MULTI_PACKAGES+= -ldap
COMMENT-ldap= "ldap protocol extensions for php4"
CONFIGURE_ARGS+= --with-ldap=shared,${LOCALBASE}
LDAP_DEPENDS= ldap.2,lber::databases/openldap
# mcrypt
MULTI_PACKAGES+= -mcrypt
COMMENT-mcrypt= "mcrypt encryption/decryption extensions for php4"
CONFIGURE_ARGS+= --with-mcrypt=shared,${LOCALBASE}
MCRYPT_DEPENDS= mcrypt::security/libmcrypt
# mhash
MULTI_PACKAGES+= -mhash
COMMENT-mhash= "mhash extensions for php4"
CONFIGURE_ARGS+= --with-mhash=shared,${LOCALBASE}
MHASH_DEPENDS= mhash.2::security/mhash
# mysql
MULTI_PACKAGES+= -mysql
COMMENT-mysql= "mysql database access extensions for php4"
CONFIGURE_ARGS+= --with-mysql=shared,${LOCALBASE}
MYSQL_DEPENDS= lib/mysql/mysqlclient.10:mysql-client-3.23.*:databases/mysql
# ncurses
MULTI_PACKAGES+= -ncurses
COMMENT-ncurses= "ncurses extensions for php4"
CONFIGURE_ARGS+= --with-ncurses=shared,${LOCALBASE}
# odbc
MULTI_PACKAGES+= -odbc
COMMENT-odbc= "odbc database access extensions for php4"
CONFIGURE_ARGS+= --with-iodbc=shared
ODBC_DEPENDS= iodbc.2::databases/iodbc
# pdf
MULTI_PACKAGES+= -pdf
COMMENT-pdf= "pdf viewing and creation extensions for php4"
CONFIGURE_ARGS+= --with-pdflib=shared,${LOCALBASE}
PDF_DEPENDS= pdf.2::print/pdflib ${JPEG_DEPENDS} \
${PNG_DEPENDS} ${TIFF_DEPENDS}
# pgsql
MULTI_PACKAGES+= -pgsql
COMMENT-pgsql= "pgsql database access extensions for php4"
CONFIGURE_ARGS+= --with-pgsql=shared,${LOCALBASE}
PGSQL_DEPENDS= pq.2::databases/postgresql
# shmop
MULTI_PACKAGES+= -shmop
COMMENT-shmop= "shared memory extensions for php4"
CONFIGURE_ARGS+= --enable-shmop=shared
# snmp
MULTI_PACKAGES+= -snmp
COMMENT-snmp= "snmp protocol extensions for php4"
CONFIGURE_ARGS+= --with-snmp=shared,${LOCALBASE} --enable-ucd-snmp-hack
LIB_DEPENDS+= snmp.42::net/ucd-snmp
# sybase-ct
MULTI_PACKAGES+= -sybase_ct
COMMENT-sybase_ct= "sybase database access extensions for php4"
CONFIGURE_ARGS+= --with-sybase-ct=shared,${LOCALBASE}
SYBASE_CT_DEPENDS= tds.0,ct.0::databases/freetds
# wddx & xml
MULTI_PACKAGES+= -xml
COMMENT-xml= "xml parsing extensions for php4"
CONFIGURE_ARGS+= --with-wddx=shared --with-xml=shared \
--with-expat-dir=shared,${LOCALBASE}
XML_DEPENDS= expat.2::textproc/expat
# xslt
MULTI_PACKAGES+= -xslt
COMMENT-xslt= "xslt transformation extensions for php4"
CONFIGURE_ARGS+= --enable-xslt=shared --with-xslt-sablot=shared=${LOCALBASE} \
--with-expat-dir=shared,${LOCALBASE}