openbsd-ports/www/php4/extensions/Makefile

333 lines
8.3 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.59 2007/11/20 19:23:25 sturm Exp $
2006-11-24 03:39:03 -05:00
FULLPKGNAME-main= php4-extensions-${V}p1
COMMENT-main= informational package about PHP4 extensions
2006-11-24 03:39:03 -05:00
MULTI_PACKAGES=-main
# extensions get installed under the apache chroot
2006-11-24 03:39:03 -05:00
PREFIX= ${CHROOT_DIR}
FLAVORS= no_x11
2005-02-06 08:10:38 -05:00
FLAVOR?=
WANTLIB= stdc++ m
2004-12-11 08:29:20 -05:00
MODULES= devel/gettext
2002-09-14 11:22:06 -04:00
CONFIGURE_ARGS+= --with-apxs=/usr/sbin/apxs \
2003-04-03 05:27:22 -05:00
--with-iconv-dir=${LOCALBASE} \
--with-iconv=${LOCALBASE}
2006-08-03 20:10:42 -04:00
GRAPHIC_DEPENDS= jpeg.>=62::graphics/jpeg \
png.>=3::graphics/png
2003-04-03 05:27:22 -05:00
GRAPHIC_CONFIG= --with-jpeg-dir=${LOCALBASE} \
--with-png-dir=${LOCALBASE} \
2005-02-06 08:10:38 -05:00
--with-zlib-dir=/usr
# bz2
PSEUDO_FLAVORS+= no_bz2
.if ${FLAVOR:L:Mno_bz2}
CONFIGURE_ARGS+= --without-bz2
.else
MULTI_PACKAGES+= -bz2
COMMENT-bz2= bzip2 compression extensions for php4
CONFIGURE_ARGS+= --with-bz2=shared,${LOCALBASE}
2006-11-24 03:39:03 -05:00
LIB_DEPENDS-bz2= bz2.>=10::archivers/bzip2
.endif
# curl
PSEUDO_FLAVORS+= no_curl
.if ${FLAVOR:L:Mno_curl}
CONFIGURE_ARGS+= --without-curl
.else
MULTI_PACKAGES+= -curl
COMMENT-curl= curl URL library extensions for php4
CONFIGURE_ARGS+= --with-curl=shared,${LOCALBASE}
2006-11-24 03:39:03 -05:00
LIB_DEPENDS-curl= curl.>=2::net/curl
WANTLIB-curl= ${WANTLIB} crypto idn ssl z
FULLPKGNAME-curl= php4-curl-${V}p2
.endif
# dba
PSEUDO_FLAVORS+= no_dba
.if ${FLAVOR:L:Mno_dba}
CONFIGURE_ARGS+= --disable-dba
.else
MULTI_PACKAGES+= -dba
COMMENT-dba= dba GDBM access extensions for php4
CONFIGURE_ARGS+= --enable-dba=shared --with-gdbm=${LOCALBASE}
2006-11-24 03:39:03 -05:00
LIB_DEPENDS-dba= gdbm.>=2::databases/gdbm
.endif
# dbase
PSEUDO_FLAVORS+= no_dbase
.if ${FLAVOR:L:Mno_dbase}
CONFIGURE_ARGS+= --disable-dbase
.else
MULTI_PACKAGES+= -dbase
COMMENT-dbase= dBase database access extensions for php4
CONFIGURE_ARGS+= --enable-dbase=shared
2006-11-24 03:39:03 -05:00
LIB_DEPENDS-dbase=
.endif
2003-04-03 09:04:25 -05:00
# dbx
PSEUDO_FLAVORS+= no_dbx
.if ${FLAVOR:L:Mno_dbx}
CONFIGURE_ARGS+= --disable-dbx
.else
MULTI_PACKAGES+= -dbx
COMMENT-dbx= dbx database abstraction interface for php4
2005-02-06 08:10:38 -05:00
CONFIGURE_ARGS+= --enable-dbx=shared
2006-11-24 03:39:03 -05:00
LIB_DEPENDS-dbx=
2003-04-03 09:04:25 -05:00
.endif
# domxml
PSEUDO_FLAVORS+= no_domxml
.if ${FLAVOR:L:Mno_domxml}
CONFIGURE_ARGS+= --disable-dom
.else
MULTI_PACKAGES+= -domxml
COMMENT-domxml= manipulate XML via the DOM API in php4
CONFIGURE_ARGS+= --with-dom=shared,${LOCALBASE}
2006-11-24 03:39:03 -05:00
LIB_DEPENDS-domxml= xml2.>=6::textproc/libxml
WANTLIB-domxml= ${WANTLIB} z iconv
.endif
# filepro
PSEUDO_FLAVORS+= no_filepro
.if ${FLAVOR:L:Mno_filepro}
CONFIGURE_ARGS+= --disable-filepro
.else
MULTI_PACKAGES+= -filepro
COMMENT-filepro= filepro database access extensions for php4
CONFIGURE_ARGS+= --enable-filepro=shared
2006-11-24 03:39:03 -05:00
LIB_DEPENDS-filepro=
.endif
# gd
PSEUDO_FLAVORS+= no_gd
.if ${FLAVOR:L:Mno_gd}
CONFIGURE_ARGS+= --without-gd --without-xpm-dir --without-ttf \
--without-freetype-dir
.else
MULTI_PACKAGES+= -gd
COMMENT-gd= image manipulation extensions for php4
2006-11-24 03:39:03 -05:00
LIB_DEPENDS-gd= ttf.>=1::print/freetype ${GRAPHIC_DEPENDS} \
2006-08-03 20:10:42 -04:00
t1.>=5::devel/t1lib
2006-11-24 03:39:03 -05:00
WANTLIB-gd= ${WANTLIB} z
2003-04-03 05:27:22 -05:00
CONFIGURE_ARGS+= --with-gd=shared ${GRAPHIC_CONFIG} \
--with-ttf=shared,${LOCALBASE} --without-freetype-dir \
--with-t1lib=${LOCALBASE}
.if !${FLAVOR:L:Mno_x11}
2003-04-03 05:27:22 -05:00
USE_X11= yes
CONFIGURE_ARGS+= --with-xpm-dir=${X11BASE}
2006-11-24 03:39:03 -05:00
WANTLIB-gd+= X11 Xpm
2007-01-01 18:10:24 -05:00
FULLPKGNAME-gd= php4-gd-${V}p5
.else
2003-04-03 05:27:22 -05:00
CONFIGURE_ARGS+= --without-xpm-dir
2007-01-01 18:10:24 -05:00
FULLPKGNAME-gd= php4-gd-${V}p5-no_x11
.endif
.endif
# gmp
PSEUDO_FLAVORS+= no_gmp
.if ${FLAVOR:L:Mno_gmp}
CONFIGURE_ARGS+= --without-gmp
.else
MULTI_PACKAGES+= -gmp
COMMENT-gmp= gmp math library support for php4
CONFIGURE_ARGS+= --with-gmp=shared,${LOCALBASE}
2006-11-24 03:39:03 -05:00
LIB_DEPENDS-gmp= gmp.>=4::devel/gmp
.endif
# imap
PSEUDO_FLAVORS+= no_imap
.if ${FLAVOR:L:Mno_imap}
CONFIGURE_ARGS+= --without-imap --without-kerberos
.else
MULTI_PACKAGES+= -imap
COMMENT-imap= imap, pop3 and nntp extensions for php4
CONFIGURE_ARGS+= --with-imap=shared,${LOCALBASE} \
2003-04-03 05:27:22 -05:00
--with-kerberos=/usr --with-imap-ssl
LIB_DEPENDS-imap= c-client.>=5::mail/imap-uw,-c-client
2006-11-24 03:39:03 -05:00
WANTLIB-imap= ${WANTLIB} des gssapi crypto krb5 ssl
FULLPKGNAME-imap= php4-imap-$Vp2
.endif
# ldap
PSEUDO_FLAVORS+= no_ldap
.if ${FLAVOR:L:Mno_ldap}
CONFIGURE_ARGS+= --without-ldap
.else
MULTI_PACKAGES+= -ldap
COMMENT-ldap= ldap protocol extensions for php4
CONFIGURE_ARGS+= --with-ldap=shared,${LOCALBASE}
2006-11-24 03:39:03 -05:00
LIB_DEPENDS-ldap= ldap.>=2,lber::databases/openldap
.endif
# mcrypt
PSEUDO_FLAVORS+= no_mcrypt
.if ${FLAVOR:L:Mno_mcrypt}
CONFIGURE_ARGS+= --without-mcrypt
.else
MULTI_PACKAGES+= -mcrypt
COMMENT-mcrypt= mcrypt encryption/decryption extensions for php4
CONFIGURE_ARGS+= --with-mcrypt=shared,${LOCALBASE}
2006-11-24 03:39:03 -05:00
LIB_DEPENDS-mcrypt= mcrypt::security/libmcrypt ltdl.>=1::devel/libtool,-ltdl
.endif
# mhash
PSEUDO_FLAVORS+= no_mhash
.if ${FLAVOR:L:Mno_mhash}
CONFIGURE_ARGS+= --without-mhash
.else
MULTI_PACKAGES+= -mhash
COMMENT-mhash= mhash extensions for php4
CONFIGURE_ARGS+= --with-mhash=shared,${LOCALBASE}
2006-11-24 03:39:03 -05:00
LIB_DEPENDS-mhash= mhash.>=2::security/mhash
.endif
# mysql
PSEUDO_FLAVORS+= no_mysql
.if ${FLAVOR:L:Mno_mysql}
CONFIGURE_ARGS+= --without-mysql
.else
MULTI_PACKAGES+= -mysql
COMMENT-mysql= mysql database access extensions for php4
CONFIGURE_ARGS+= --with-mysql=shared,${LOCALBASE}
2006-11-24 03:39:03 -05:00
LIB_DEPENDS-mysql= lib/mysql/mysqlclient.>=10::databases/mysql
.endif
2002-06-26 18:16:40 -04:00
# ncurses
PSEUDO_FLAVORS+= no_ncurses
.if ${FLAVOR:L:Mno_ncurses}
CONFIGURE_ARGS+= --without-ncurses
.else
MULTI_PACKAGES+= -ncurses
COMMENT-ncurses= ncurses extensions for php4
2002-06-26 18:16:40 -04:00
CONFIGURE_ARGS+= --with-ncurses=shared,${LOCALBASE}
2006-11-24 03:39:03 -05:00
LIB_DEPENDS-ncurses=
WANTLIB-ncurses= ${WANTLIB} ncurses panel
.endif
2002-06-26 18:16:40 -04:00
# odbc
PSEUDO_FLAVORS+= no_odbc
.if ${FLAVOR:L:Mno_odbc}
CONFIGURE_ARGS+= --without-odbc
.else
MULTI_PACKAGES+= -odbc
COMMENT-odbc= odbc database access extensions for php4
CONFIGURE_ARGS+= --with-iodbc=shared
2006-11-24 03:39:03 -05:00
LIB_DEPENDS-odbc= iodbc.>=2::databases/iodbc
.endif
# pdf
PSEUDO_FLAVORS+= no_pdf
.if ${FLAVOR:L:Mno_pdf}
CONFIGURE_ARGS+= --without-pdflib
.else
MULTI_PACKAGES+= -pdf
COMMENT-pdf= pdf viewing and creation extensions for php4
CONFIGURE_ARGS+= --with-pdflib=shared,${LOCALBASE} ${GRAPHIC_CONFIG} \
2005-02-10 07:38:28 -05:00
--with-tiff-dir=${LOCALBASE}
2006-11-24 03:39:03 -05:00
LIB_DEPENDS-pdf= pdf.>=2::print/pdflib ${GRAPHIC_DEPENDS} \
2006-08-03 20:10:42 -04:00
tiff.>=35::graphics/tiff
2006-11-24 03:39:03 -05:00
WANTLIB-pdf= ${WANTLIB} z
.endif
# pgsql
PSEUDO_FLAVORS+= no_pgsql
.if ${FLAVOR:L:Mno_pgsql}
CONFIGURE_ARGS+= --without-pgsql
.else
MULTI_PACKAGES+= -pgsql
COMMENT-pgsql= pgsql database access extensions for php4
CONFIGURE_ARGS+= --with-pgsql=shared,${LOCALBASE}
2006-11-24 03:39:03 -05:00
LIB_DEPENDS-pgsql= pq.>=2:postgresql-client-*:databases/postgresql
.endif
# shmop
PSEUDO_FLAVORS+= no_shmop
.if ${FLAVOR:L:Mno_shmop}
CONFIGURE_ARGS+= --disable-shmop
.else
MULTI_PACKAGES+= -shmop
COMMENT-shmop= shared memory extensions for php4
CONFIGURE_ARGS+= --enable-shmop=shared
2006-11-24 03:39:03 -05:00
LIB_DEPENDS-shmop=
.endif
2005-02-06 08:10:38 -05:00
# snmp
PSEUDO_FLAVORS+= no_snmp
.if ${FLAVOR:L:Mno_snmp}
CONFIGURE_ARGS+= --without-snmp
.else
MULTI_PACKAGES+= -snmp
COMMENT-snmp= snmp protocol extensions for php4
2002-07-09 15:35:10 -04:00
CONFIGURE_ARGS+= --with-snmp=shared,${LOCALBASE} --enable-ucd-snmp-hack
2006-11-24 03:39:03 -05:00
LIB_DEPENDS-snmp= netsnmp.>=6.2::net/net-snmp
WANTLIB-snmp= ${WANTLIB} crypto
.endif
# sybase-ct
PSEUDO_FLAVORS+= no_sybase_ct
.if ${FLAVOR:L:Mno_sybase_ct}
CONFIGURE_ARGS+= --without-sybase-ct
.else
MULTI_PACKAGES+= -sybase_ct
COMMENT-sybase_ct= sybase database access extensions for php4
CONFIGURE_ARGS+= --with-sybase-ct=shared,${LOCALBASE}
2006-11-24 03:39:03 -05:00
LIB_DEPENDS-sybase_ct= ct::databases/freetds
.endif
2004-02-28 19:25:41 -05:00
# xml-rpc
PSEUDO_FLAVORS+= no_xmlrpc
.if ${FLAVOR:L:Mno_xmlrpc}
CONFIGURE_ARGS+= --without-xmlrpc
.else
MULTI_PACKAGES+= -xmlrpc
COMMENT-xmlrpc= XML RPC functions for php4
2004-02-28 19:25:41 -05:00
CONFIGURE_ARGS+= --with-xmlrpc=shared
2007-04-28 15:54:06 -04:00
WANTLIB-xmlrpc= ${WANTLIB} expat iconv
LIB_DEPENDS-xmlrpc=
FULLPKGNAME-xmlrpc= php4-xmlrpc-${V}p3
2004-02-28 19:25:41 -05:00
.endif
# xslt
PSEUDO_FLAVORS+= no_xslt
.if ${FLAVOR:L:Mno_xslt}
CONFIGURE_ARGS+= --disable-xslt
.else
MULTI_PACKAGES+= -xslt
COMMENT-xslt= xslt transformation extensions for php4
2007-10-21 05:43:22 -04:00
CONFIGURE_ARGS+= --enable-xslt=shared --with-xslt-sablot=shared,${LOCALBASE}
2007-04-28 15:54:06 -04:00
LIB_DEPENDS-xslt= sablot.>=96::textproc/sablotron
WANTLIB-xslt= ${WANTLIB} expat iconv
FULLPKGNAME-xslt= php4-xslt-${V}p2
.endif
2002-07-10 05:00:49 -04:00
.for i in ${MULTI_PACKAGES}
2007-01-01 18:10:24 -05:00
FULLPKGNAME${i}?= php4${i}-${V}p1
2006-11-24 03:39:03 -05:00
RUN_DEPENDS${i}= :php4-core-${V}:www/php4/core
MODULE_NAME${i}= ${i:S/-//g}
2002-07-10 05:00:49 -04:00
.endfor
MESSAGE= ${PKGDIR}/MESSAGE
2006-11-24 03:39:03 -05:00
SUBST_VARS= MODULE_NAME PHP_CONFIG_FILE LOCALBASE V
LIB_DEPENDS-main=
MESSAGE-main= ${PKGDIR}/DESCR-main
WANTLIB-main=
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/${MODULES_SUBDIR}
2006-11-24 03:39:03 -05:00
.for m in ${MULTI_PACKAGES:N-main:S/-//g}
${INSTALL_DATA} ${WRKBUILD}/modules/${m}.so \
${PREFIX}/${MODULES_SUBDIR}/${m}.so
.endfor
.include <bsd.port.mk>