summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjdolecek <jdolecek>2004-10-31 19:30:29 +0000
committerjdolecek <jdolecek>2004-10-31 19:30:29 +0000
commit6c803e23b4734f72875cd236fad2ef1e49791770 (patch)
tree9eebc2a4ea3e6fa6c783e1abb83bc43228266985
parent43d39f7ea20ff84e080d74bfb7d3b0d3e773cb8c (diff)
downloadpkgsrc-6c803e23b4734f72875cd236fad2ef1e49791770.tar.gz
new PHP extension module framework, which makes it possible to build
individual PHP extension packages with either PHP 4.x or PHP 5.x convert existing php4-* packages to this framework and import as php-*
-rw-r--r--archivers/php-bz2/DESCR2
-rw-r--r--archivers/php-bz2/Makefile14
-rw-r--r--archivers/php-zlib/DESCR2
-rw-r--r--archivers/php-zlib/Makefile17
-rw-r--r--converters/php-iconv/DESCR3
-rw-r--r--converters/php-iconv/Makefile27
-rw-r--r--databases/php-dba/DESCR2
-rw-r--r--databases/php-dba/Makefile27
-rw-r--r--databases/php-dbase/DESCR2
-rw-r--r--databases/php-dbase/Makefile13
-rw-r--r--databases/php-filepro/DESCR2
-rw-r--r--databases/php-filepro/Makefile13
-rw-r--r--databases/php-ldap/DESCR2
-rw-r--r--databases/php-ldap/Makefile14
-rw-r--r--databases/php-mssql/DESCR2
-rw-r--r--databases/php-mssql/Makefile13
-rw-r--r--databases/php-mysql/DESCR2
-rw-r--r--databases/php-mysql/Makefile19
-rw-r--r--databases/php-odbc/DESCR2
-rw-r--r--databases/php-odbc/Makefile14
-rw-r--r--databases/php-pgsql/DESCR2
-rw-r--r--databases/php-pgsql/Makefile14
-rw-r--r--devel/php-gettext/DESCR2
-rw-r--r--devel/php-gettext/Makefile14
-rw-r--r--devel/php-gmp/DESCR2
-rw-r--r--devel/php-gmp/Makefile14
-rw-r--r--devel/php-posix/DESCR2
-rw-r--r--devel/php-posix/Makefile13
-rw-r--r--devel/php-shmop/DESCR14
-rw-r--r--devel/php-shmop/Makefile13
-rw-r--r--devel/php-sysvsem/DESCR2
-rw-r--r--devel/php-sysvsem/Makefile13
-rw-r--r--devel/php-sysvshm/DESCR2
-rw-r--r--devel/php-sysvshm/Makefile13
-rw-r--r--graphics/php-exif/DESCR4
-rw-r--r--graphics/php-exif/Makefile13
-rw-r--r--graphics/php-gd/DESCR2
-rw-r--r--graphics/php-gd/Makefile28
-rw-r--r--lang/php/ext.mk13
-rw-r--r--lang/php/phpversion.mk71
-rw-r--r--mail/php-imap/DESCR3
-rw-r--r--mail/php-imap/Makefile21
-rw-r--r--math/php-bcmath/DESCR2
-rw-r--r--math/php-bcmath/Makefile13
-rw-r--r--misc/php-calendar/DESCR2
-rw-r--r--misc/php-calendar/Makefile13
-rw-r--r--misc/php-mbstring/DESCR2
-rw-r--r--misc/php-mbstring/Makefile13
-rw-r--r--net/php-ftp/DESCR2
-rw-r--r--net/php-ftp/Makefile18
-rw-r--r--net/php-snmp/DESCR2
-rw-r--r--net/php-snmp/Makefile14
-rw-r--r--net/php-sockets/DESCR2
-rw-r--r--net/php-sockets/Makefile13
-rw-r--r--net/php-yp/DESCR2
-rw-r--r--net/php-yp/Makefile13
-rw-r--r--security/php-mcrypt/DESCR2
-rw-r--r--security/php-mcrypt/Makefile14
-rw-r--r--security/php-mhash/DESCR2
-rw-r--r--security/php-mhash/Makefile14
-rw-r--r--security/php-openssl/DESCR2
-rw-r--r--security/php-openssl/Makefile21
-rw-r--r--textproc/php-wddx/DESCR2
-rw-r--r--textproc/php-wddx/Makefile14
-rw-r--r--www/php-curl/DESCR2
-rw-r--r--www/php-curl/Makefile14
66 files changed, 665 insertions, 0 deletions
diff --git a/archivers/php-bz2/DESCR b/archivers/php-bz2/DESCR
new file mode 100644
index 00000000000..4f778a38578
--- /dev/null
+++ b/archivers/php-bz2/DESCR
@@ -0,0 +1,2 @@
+PHP is a programming language designed to be embedded into web pages.
+This module provides bzip2 compression support.
diff --git a/archivers/php-bz2/Makefile b/archivers/php-bz2/Makefile
new file mode 100644
index 00000000000..11729a4bf33
--- /dev/null
+++ b/archivers/php-bz2/Makefile
@@ -0,0 +1,14 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/31 19:30:30 jdolecek Exp $
+
+MODNAME= bz2
+CATEGORIES+= archivers
+PKGREVISION= # empty
+COMMENT= PHP extension for bzip2 compression
+
+USE_BUILDLINK3= YES
+
+CONFIGURE_ARGS+= --with-${MODNAME}=shared,${BUILDLINK_PREFIX.bzip2}
+
+.include "../../lang/php/ext.mk"
+.include "../../archivers/bzip2/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/archivers/php-zlib/DESCR b/archivers/php-zlib/DESCR
new file mode 100644
index 00000000000..0533c96ecb3
--- /dev/null
+++ b/archivers/php-zlib/DESCR
@@ -0,0 +1,2 @@
+PHP is a programming language designed to be embedded into web pages.
+This module provides zlib compression support.
diff --git a/archivers/php-zlib/Makefile b/archivers/php-zlib/Makefile
new file mode 100644
index 00000000000..ce676651b4e
--- /dev/null
+++ b/archivers/php-zlib/Makefile
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/31 19:30:29 jdolecek Exp $
+
+MODNAME= zlib
+CATEGORIES+= archivers
+PKGREVISION= # empty
+COMMENT= PHP extension for zlib compression
+
+USE_BUILDLINK3= YES
+
+CONFIGURE_ARGS+= --with-${MODNAME}-dir=${BUILDLINK_DIR}
+
+post-extract:
+ cd ${WRKSRC}; ${RM} -f config.m4; ${LN} -sf config0.m4 config.m4
+
+.include "../../lang/php/ext.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/converters/php-iconv/DESCR b/converters/php-iconv/DESCR
new file mode 100644
index 00000000000..d7a4d54eef3
--- /dev/null
+++ b/converters/php-iconv/DESCR
@@ -0,0 +1,3 @@
+PHP is a programming language designed to be embedded into web pages.
+This module provides character set conversion facility, using iconv()
+programming interface.
diff --git a/converters/php-iconv/Makefile b/converters/php-iconv/Makefile
new file mode 100644
index 00000000000..1a0e673143a
--- /dev/null
+++ b/converters/php-iconv/Makefile
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/31 19:30:30 jdolecek Exp $
+
+MODNAME= iconv
+CATEGORIES+= converters
+PKGREVISION= # empty
+COMMENT= PHP extension for character set conversion
+
+USE_BUILDLINK3= YES
+
+# this is necessary so that PHP would find either the libc iconv
+# or use the packaged iconv, as appropriate; using
+# --with-iconv=shared,${BUILDLINK_PREFIX.iconv} assumes libiconv exists
+
+.include "../../converters/libiconv/buildlink3.mk"
+.include "../../mk/bsd.prefs.mk"
+.include "../../mk/buildlink3/bsd.builtin.mk"
+
+.if !empty(USE_BUILTIN.iconv:M[nN][oO])
+# use libiconv
+CONFIGURE_ARGS+= --with-iconv=shared,${BUILDLINK_PREFIX.iconv}
+.else
+# use libc-provided iconv
+CONFIGURE_ARGS+= --with-iconv
+.endif
+
+.include "../../lang/php/ext.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/databases/php-dba/DESCR b/databases/php-dba/DESCR
new file mode 100644
index 00000000000..df1a8eca7e6
--- /dev/null
+++ b/databases/php-dba/DESCR
@@ -0,0 +1,2 @@
+PHP is a programming language designed to be embedded into web pages.
+This module provides support for DBM database access.
diff --git a/databases/php-dba/Makefile b/databases/php-dba/Makefile
new file mode 100644
index 00000000000..1d33270182a
--- /dev/null
+++ b/databases/php-dba/Makefile
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/31 19:30:30 jdolecek Exp $
+
+MODNAME= dba
+CATEGORIES+= databases
+PKGREVISION= # empty
+COMMENT= PHP extension for DBM database access
+
+USE_BUILDLINK3= YES
+
+CONFIGURE_ARGS+= --enable-${MODNAME}=shared
+
+CONFIGURE_ARGS+= --without-cdb
+CONFIGURE_ARGS+= --without-db2
+CONFIGURE_ARGS+= --without-db3
+CONFIGURE_ARGS+= --without-dbm
+
+.if exists(/usr/include/ndbm.h)
+CONFIGURE_ARGS+= --without-gdbm
+CONFIGURE_ARGS+= --with-ndbm=/usr
+.else
+CONFIGURE_ARGS+= --with-gdbm=shared,${BUILDLINK_PREFIX.gdbm}
+CONFIGURE_ARGS+= --without-ndbm
+.include "../../databases/gdbm/buildlink3.mk"
+.endif
+
+.include "../../lang/php/ext.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/databases/php-dbase/DESCR b/databases/php-dbase/DESCR
new file mode 100644
index 00000000000..f5cd018a2fe
--- /dev/null
+++ b/databases/php-dbase/DESCR
@@ -0,0 +1,2 @@
+PHP is a programming language designed to be embedded into web pages.
+This module provides support for dBase database access.
diff --git a/databases/php-dbase/Makefile b/databases/php-dbase/Makefile
new file mode 100644
index 00000000000..ea97c49d2ea
--- /dev/null
+++ b/databases/php-dbase/Makefile
@@ -0,0 +1,13 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/31 19:30:30 jdolecek Exp $
+
+MODNAME= dbase
+CATEGORIES+= databases
+PKGREVISION= # empty
+COMMENT= PHP extension for dBase database access
+
+USE_BUILDLINK3= YES
+
+CONFIGURE_ARGS+= --with-${MODNAME}=shared
+
+.include "../../lang/php/ext.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/databases/php-filepro/DESCR b/databases/php-filepro/DESCR
new file mode 100644
index 00000000000..d1c54f0f50b
--- /dev/null
+++ b/databases/php-filepro/DESCR
@@ -0,0 +1,2 @@
+PHP is a programming language designed to be embedded into web pages.
+This module provides support for read-only filePro database access.
diff --git a/databases/php-filepro/Makefile b/databases/php-filepro/Makefile
new file mode 100644
index 00000000000..ff1a53ad099
--- /dev/null
+++ b/databases/php-filepro/Makefile
@@ -0,0 +1,13 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/31 19:30:30 jdolecek Exp $
+
+MODNAME= filepro
+CATEGORIES+= databases
+PKGREVISION= # empty
+COMMENT= PHP extension for read-only filePro database access
+
+USE_BUILDLINK3= YES
+
+CONFIGURE_ARGS+= --with-${MODNAME}=shared
+
+.include "../../lang/php/ext.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/databases/php-ldap/DESCR b/databases/php-ldap/DESCR
new file mode 100644
index 00000000000..66aabece2a8
--- /dev/null
+++ b/databases/php-ldap/DESCR
@@ -0,0 +1,2 @@
+PHP is a programming language designed to be embedded into web pages.
+This module provides access to LDAP databases.
diff --git a/databases/php-ldap/Makefile b/databases/php-ldap/Makefile
new file mode 100644
index 00000000000..346b9351fb2
--- /dev/null
+++ b/databases/php-ldap/Makefile
@@ -0,0 +1,14 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/31 19:30:30 jdolecek Exp $
+
+MODNAME= ldap
+PKGREVISION= # empty
+CATEGORIES+= databases
+COMMENT= PHP extension for LDAP database access
+
+USE_BUILDLINK3= YES
+
+CONFIGURE_ARGS+= --with-${MODNAME}=shared,${BUILDLINK_PREFIX.openldap}
+
+.include "../../lang/php/ext.mk"
+.include "../../databases/openldap/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/databases/php-mssql/DESCR b/databases/php-mssql/DESCR
new file mode 100644
index 00000000000..ababdd93b06
--- /dev/null
+++ b/databases/php-mssql/DESCR
@@ -0,0 +1,2 @@
+PHP is a programming language designed to be embedded into web pages.
+This module provides access to MS SQL databases, using FreeTDS.
diff --git a/databases/php-mssql/Makefile b/databases/php-mssql/Makefile
new file mode 100644
index 00000000000..87ce66e2389
--- /dev/null
+++ b/databases/php-mssql/Makefile
@@ -0,0 +1,13 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/31 19:30:30 jdolecek Exp $
+
+MODNAME= mssql
+CATEGORIES+= databases
+COMMENT= PHP extension for MS SQL databases
+
+USE_BUILDLINK3= yes
+
+CONFIGURE_ARGS+= --with-${MODNAME}=shared,${BUILDLINK_DIR}/freetds
+
+.include "../../lang/php/ext.mk"
+.include "../../databases/freetds/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/databases/php-mysql/DESCR b/databases/php-mysql/DESCR
new file mode 100644
index 00000000000..21a48ab18b0
--- /dev/null
+++ b/databases/php-mysql/DESCR
@@ -0,0 +1,2 @@
+PHP is a programming language designed to be embedded into web pages.
+This module provides standard access to MySQL databases.
diff --git a/databases/php-mysql/Makefile b/databases/php-mysql/Makefile
new file mode 100644
index 00000000000..cc4f1812717
--- /dev/null
+++ b/databases/php-mysql/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/31 19:30:30 jdolecek Exp $
+
+MODNAME= mysql
+CATEGORIES+= databases
+PKGREVISION= # empty
+COMMENT= PHP extension for MySQL databases
+
+MAINTAINER= tech-pkg@NetBSD.org
+
+USE_BUILDLINK3= yes
+USE_PHP_EXT_PATCHES= yes
+
+EVAL_PREFIX+= MYSQLDIR=mysql-client
+CONFIGURE_ARGS+= --with-${MODNAME}=shared,${MYSQLDIR}
+LDFLAGS+= ${COMPILER_RPATH_FLAG}${LOCALBASE}/lib/mysql
+
+.include "../../lang/php/ext.mk"
+.include "../../mk/mysql.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/databases/php-odbc/DESCR b/databases/php-odbc/DESCR
new file mode 100644
index 00000000000..3d9f8aac189
--- /dev/null
+++ b/databases/php-odbc/DESCR
@@ -0,0 +1,2 @@
+PHP is a programming language designed to be embedded into web pages.
+This module provides access to ODBC data sources.
diff --git a/databases/php-odbc/Makefile b/databases/php-odbc/Makefile
new file mode 100644
index 00000000000..23eff4eaaad
--- /dev/null
+++ b/databases/php-odbc/Makefile
@@ -0,0 +1,14 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/31 19:30:30 jdolecek Exp $
+
+MODNAME= odbc
+CATEGORIES+= databases
+PKGREVISION= # empty
+COMMENT= PHP extension for ODBC access
+
+USE_BUILDLINK3= YES
+
+CONFIGURE_ARGS+= --with-unixODBC=shared,${BUILDLINK_PREFIX.unixodbc}
+
+.include "../../lang/php/ext.mk"
+.include "../../databases/unixodbc/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/databases/php-pgsql/DESCR b/databases/php-pgsql/DESCR
new file mode 100644
index 00000000000..5ec666735fc
--- /dev/null
+++ b/databases/php-pgsql/DESCR
@@ -0,0 +1,2 @@
+PHP is a programming language designed to be embedded into web pages.
+This module provides access to PostgreSQL databases.
diff --git a/databases/php-pgsql/Makefile b/databases/php-pgsql/Makefile
new file mode 100644
index 00000000000..24882ec9958
--- /dev/null
+++ b/databases/php-pgsql/Makefile
@@ -0,0 +1,14 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/31 19:30:30 jdolecek Exp $
+
+MODNAME= pgsql
+PKGREVISION= # empty
+CATEGORIES+= databases
+COMMENT= PHP extension for PostgreSQL databases
+
+USE_BUILDLINK3= YES
+
+CONFIGURE_ARGS+= --with-${MODNAME}=shared,${PGSQL_PREFIX}
+
+.include "../../lang/php/ext.mk"
+.include "../../mk/pgsql.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/php-gettext/DESCR b/devel/php-gettext/DESCR
new file mode 100644
index 00000000000..da77542825d
--- /dev/null
+++ b/devel/php-gettext/DESCR
@@ -0,0 +1,2 @@
+PHP is a programming language designed to be embedded into web pages.
+This module provides an gettext support.
diff --git a/devel/php-gettext/Makefile b/devel/php-gettext/Makefile
new file mode 100644
index 00000000000..91098510cac
--- /dev/null
+++ b/devel/php-gettext/Makefile
@@ -0,0 +1,14 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/31 19:30:30 jdolecek Exp $
+
+MODNAME= gettext
+CATEGORIES+= devel
+PKGREVISION= # empty
+COMMENT= PHP extension for gettext support
+
+USE_BUILDLINK3= YES
+
+CONFIGURE_ARGS+= --with-${MODNAME}=shared,${BUILDLINK_PREFIX.gettext}
+
+.include "../../lang/php/ext.mk"
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/php-gmp/DESCR b/devel/php-gmp/DESCR
new file mode 100644
index 00000000000..d5ed6f41db8
--- /dev/null
+++ b/devel/php-gmp/DESCR
@@ -0,0 +1,2 @@
+PHP is a programming language designed to be embedded into web pages.
+This module provides an interface to GNU MP for arbitrary precision math.
diff --git a/devel/php-gmp/Makefile b/devel/php-gmp/Makefile
new file mode 100644
index 00000000000..ce8c3aff496
--- /dev/null
+++ b/devel/php-gmp/Makefile
@@ -0,0 +1,14 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/31 19:30:30 jdolecek Exp $
+
+MODNAME= gmp
+CATEGORIES+= devel math
+PKGREVISION= # empty
+COMMENT= PHP extension for arbitrary precision math
+
+USE_BUILDLINK3= YES
+
+CONFIGURE_ARGS+= --with-${MODNAME}=shared,${BUILDLINK_PREFIX.gmp}
+
+.include "../../lang/php/ext.mk"
+.include "../../devel/gmp/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/php-posix/DESCR b/devel/php-posix/DESCR
new file mode 100644
index 00000000000..efba4615f23
--- /dev/null
+++ b/devel/php-posix/DESCR
@@ -0,0 +1,2 @@
+PHP is a programming language designed to be embedded into web pages.
+This module provides support for POSIX-like functions.
diff --git a/devel/php-posix/Makefile b/devel/php-posix/Makefile
new file mode 100644
index 00000000000..b36030fd953
--- /dev/null
+++ b/devel/php-posix/Makefile
@@ -0,0 +1,13 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/31 19:30:30 jdolecek Exp $
+
+MODNAME= posix
+CATEGORIES+= devel
+PKGREVISION= # empty
+COMMENT= PHP extension for POSIX-like functions
+
+USE_BUILDLINK3= YES
+
+CONFIGURE_ARGS+= --enable-${MODNAME}=shared
+
+.include "../../lang/php/ext.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/php-shmop/DESCR b/devel/php-shmop/DESCR
new file mode 100644
index 00000000000..b86cc49ecd9
--- /dev/null
+++ b/devel/php-shmop/DESCR
@@ -0,0 +1,14 @@
+PHP is a programming language designed to be embedded into web pages.
+
+Shmop is an easy to use set of functions that allows PHP to read,
+write, create and delete Unix SysV-style shared memory segments.
+
+While developing a search deamon we needed a php based front end
+to communicate the deamon via SHM. PHP already had a shared memory
+extention (sysvshm) written by Christian Cartus <cartus@atrior.de>,
+unfortunatly this extention was designed with PHP only in mind and
+offers high level features which are extremly bothersome for basic
+SHM we had in mind. After spending a day trying to reverse engineer
+and figure out the format of sysvshm we decided that it would be
+much easier to add our own extention to php for simple SHM operations,
+we were right :)).
diff --git a/devel/php-shmop/Makefile b/devel/php-shmop/Makefile
new file mode 100644
index 00000000000..487675040bd
--- /dev/null
+++ b/devel/php-shmop/Makefile
@@ -0,0 +1,13 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/31 19:30:30 jdolecek Exp $
+
+MODNAME= shmop
+CATEGORIES+= devel
+PKGREVISION= # empty
+COMMENT= PHP extension for simple SysV shared memory operations
+
+USE_BUILDLINK3= YES
+
+CONFIGURE_ARGS+= --enable-${MODNAME}=shared,${BUILDLINK_DIR}
+
+.include "../../lang/php/ext.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/php-sysvsem/DESCR b/devel/php-sysvsem/DESCR
new file mode 100644
index 00000000000..8def1b72dc2
--- /dev/null
+++ b/devel/php-sysvsem/DESCR
@@ -0,0 +1,2 @@
+PHP is a programming language designed to be embedded into web pages.
+This module provides support for SysV semaphores.
diff --git a/devel/php-sysvsem/Makefile b/devel/php-sysvsem/Makefile
new file mode 100644
index 00000000000..65ce16232e8
--- /dev/null
+++ b/devel/php-sysvsem/Makefile
@@ -0,0 +1,13 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/31 19:30:30 jdolecek Exp $
+
+MODNAME= sysvsem
+CATEGORIES+= devel
+PKGREVISION= # empty
+COMMENT= PHP extension for SysV semaphore support
+
+USE_BUILDLINK3= YES
+
+CONFIGURE_ARGS+= --enable-${MODNAME}=shared,${BUILDLINK_DIR}
+
+.include "../../lang/php/ext.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/php-sysvshm/DESCR b/devel/php-sysvshm/DESCR
new file mode 100644
index 00000000000..db1feb60ca7
--- /dev/null
+++ b/devel/php-sysvshm/DESCR
@@ -0,0 +1,2 @@
+PHP is a programming language designed to be embedded into web pages.
+This module provides support for SysV shared memory.
diff --git a/devel/php-sysvshm/Makefile b/devel/php-sysvshm/Makefile
new file mode 100644
index 00000000000..980e6950af5
--- /dev/null
+++ b/devel/php-sysvshm/Makefile
@@ -0,0 +1,13 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/31 19:30:30 jdolecek Exp $
+
+MODNAME= sysvshm
+CATEGORIES+= devel
+PKGREVISION= # empty
+COMMENT= PHP extension for SysV shared memory support
+
+USE_BUILDLINK3= YES
+
+CONFIGURE_ARGS+= --enable-${MODNAME}=shared,${BUILDLINK_DIR}
+
+.include "../../lang/php/ext.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/php-exif/DESCR b/graphics/php-exif/DESCR
new file mode 100644
index 00000000000..3d48ad4d9a6
--- /dev/null
+++ b/graphics/php-exif/DESCR
@@ -0,0 +1,4 @@
+PHP is a programming language designed to be embedded into web pages.
+This extension allows one to extract information from files with a EXIF
+header within a PHP script. Usually, digital camera will produce JPEG
+or other image files with an EXIF header.
diff --git a/graphics/php-exif/Makefile b/graphics/php-exif/Makefile
new file mode 100644
index 00000000000..e16ab406745
--- /dev/null
+++ b/graphics/php-exif/Makefile
@@ -0,0 +1,13 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/31 19:30:30 jdolecek Exp $
+
+MODNAME= exif
+CATEGORIES+= graphics
+PKGREVISION= # empty
+COMMENT= PHP extension to extract information from EXIF headers
+
+USE_BUILDLINK3= YES
+
+CONFIGURE_ARGS+= --with-${MODNAME}=shared
+
+.include "../../lang/php/ext.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/php-gd/DESCR b/graphics/php-gd/DESCR
new file mode 100644
index 00000000000..e4e0ac63eda
--- /dev/null
+++ b/graphics/php-gd/DESCR
@@ -0,0 +1,2 @@
+PHP is a programming language designed to be embedded into web pages.
+This module provides GD graphics library support.
diff --git a/graphics/php-gd/Makefile b/graphics/php-gd/Makefile
new file mode 100644
index 00000000000..18d17e993f0
--- /dev/null
+++ b/graphics/php-gd/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/31 19:30:30 jdolecek Exp $
+
+MODNAME= gd
+CATEGORIES+= graphics
+PKGREVISION= # empty
+COMMENT= PHP extension for GD graphics library
+
+USE_BUILDLINK3= YES
+USE_X11= YES
+
+CONFIGURE_ARGS+= --with-${MODNAME} # use bundled libgd
+CONFIGURE_ARGS+= --with-jpeg-dir=${BUILDLINK_DIR}
+CONFIGURE_ARGS+= --with-png-dir=${BUILDLINK_DIR}
+CONFIGURE_ARGS+= --with-zlib-dir=${BUILDLINK_DIR}
+CONFIGURE_ARGS+= --with-xpm-dir=${BUILDLINK_DIR}
+CONFIGURE_ARGS+= --with-ttf=${BUILDLINK_DIR}
+CONFIGURE_ARGS+= --with-freetype-dir=${BUILDLINK_DIR}
+CONFIGURE_ARGS+= --enable-${MODNAME}-native-ttf
+CONFIGURE_ARGS+= --enable-${MODNAME}-jis-conv
+CONFIGURE_ARGS+= --without-t1lib
+
+.include "../../lang/php/ext.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../graphics/jpeg/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../graphics/xpm/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/lang/php/ext.mk b/lang/php/ext.mk
new file mode 100644
index 00000000000..d9883819eba
--- /dev/null
+++ b/lang/php/ext.mk
@@ -0,0 +1,13 @@
+# $NetBSD: ext.mk,v 1.1.1.1 2004/10/31 19:30:30 jdolecek Exp $
+# PHP wrapper, for module builds
+
+.if !defined(PHPEXT_MK)
+PHPEXT_MK= defined
+
+.include "../../lang/php/phpversion.mk"
+
+.if (defined(USE_BUILDLINK3) && empty(USE_BUILDLINK3:M[nN][oO]))
+. include "${PHPPKGSRCDIR}/Makefile.module"
+.endif
+
+.endif # PHPEXT_MK
diff --git a/lang/php/phpversion.mk b/lang/php/phpversion.mk
new file mode 100644
index 00000000000..9ff4f5c3d22
--- /dev/null
+++ b/lang/php/phpversion.mk
@@ -0,0 +1,71 @@
+# $NetBSD: phpversion.mk,v 1.1.1.1 2004/10/31 19:30:30 jdolecek Exp $
+# PHP wrapper, for module builds
+
+.if !defined(PHPVERSION_MK)
+PHPVERSION_MK= defined
+
+.include "../../mk/bsd.prefs.mk"
+
+PHP_VERSION_DEFAULT?= 4
+PHP_VERSIONS_ACCEPTED?= 4 5
+
+# transform the list into individual variables
+.for pv in ${PHP_VERSIONS_ACCEPTED}
+_PHP_VERSION_${pv}_OK= yes
+.endfor
+
+# check what is installed
+.if exists(${LOCALBASE}/lib/php/20020429)
+_PHP_VERSION_4_INSTALLED= yes
+.endif
+.if exists(${LOCALBASE}/lib/php/20040412)
+_PHP_VERSION_5_INSTALLED= yes
+.endif
+
+# if a version is explicitely required, take it
+.if defined(PHP_VERSION_REQD)
+_PHP_VERSION= ${PHP_VERSION_REQD}
+.endif
+# if the default is already installed, it is first choice
+.if !defined(_PHP_VERSION)
+.if defined(_PHP_VERSION_${PHP_VERSION_DEFAULT}_OK)
+.if defined(_PHP_VERSION_${PHP_VERSION_DEFAULT}_INSTALLED)
+_PHP_VERSION= ${PHP_VERSION_DEFAULT}
+.endif
+.endif
+.endif
+# prefer an already installed version, in order of "accepted"
+.if !defined(_PHP_VERSION)
+.for pv in ${PHP_VERSIONS_ACCEPTED}
+.if defined(_PHP_VERSION_${pv}_INSTALLED)
+_PHP_VERSION?= ${pv}
+.else
+# keep information as last resort - see below
+_PHP_VERSION_FIRSTACCEPTED?= ${pv}
+.endif
+.endfor
+.endif
+# if the default is OK for the addon pkg, take this
+.if !defined(_PHP_VERSION)
+.if defined(_PHP_VERSION_${PHP_VERSION_DEFAULT}_OK)
+_PHP_VERSION= ${PHP_VERSION_DEFAULT}
+.endif
+.endif
+# take the first one accepted by the package
+.if !defined(_PHP_VERSION)
+_PHP_VERSION= ${_PHP_VERSION_FIRSTACCEPTED}
+.endif
+
+#
+# set variables for the version we decided to use:
+#
+.if ${_PHP_VERSION} == "4"
+PHPPKGSRCDIR= ../../www/php4
+.elif ${_PHP_VERSION} == "5"
+PHPPKGSRCDIR= ../../lang/php5
+.else
+# force an error
+PKG_SKIP_REASON+= "PHP${_PHP_VERSION} is not a valid package"
+.endif
+
+.endif # PHPVERSION_MK
diff --git a/mail/php-imap/DESCR b/mail/php-imap/DESCR
new file mode 100644
index 00000000000..fbe4c2cdc96
--- /dev/null
+++ b/mail/php-imap/DESCR
@@ -0,0 +1,3 @@
+PHP is a programming language designed to be embedded into web pages.
+This module provides access to IMAP (Internet Mailbox Access Protocol)
+servers.
diff --git a/mail/php-imap/Makefile b/mail/php-imap/Makefile
new file mode 100644
index 00000000000..a535552fd96
--- /dev/null
+++ b/mail/php-imap/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/31 19:30:30 jdolecek Exp $
+
+MODNAME= imap
+PKGREVISION= # empty
+CATEGORIES+= mail
+COMMENT= PHP extension for IMAP (Internet Mailbox Access Protocol)
+
+USE_BUILDLINK3= YES
+USE_PHP_EXT_PATCHES= yes
+
+CONFIGURE_ARGS+= --with-${MODNAME}=shared,${BUILDLINK_PREFIX.imap-uw}
+CONFIGURE_ARGS+= --with-${MODNAME}-ssl=${SSLBASE}
+CONFIGURE_ARGS+= --with-${MODNAME}-linkage
+CONFIGURE_ENV+= ac_cv_lib_pam_pam_start=no
+
+LIBS+= -lssl -lcrypto
+
+.include "../../lang/php/ext.mk"
+.include "../../mail/imap-uw/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/math/php-bcmath/DESCR b/math/php-bcmath/DESCR
new file mode 100644
index 00000000000..d8f75669ad8
--- /dev/null
+++ b/math/php-bcmath/DESCR
@@ -0,0 +1,2 @@
+PHP is a programming language designed to be embedded into web pages.
+This module provides support for bc-style arbitrary precision math.
diff --git a/math/php-bcmath/Makefile b/math/php-bcmath/Makefile
new file mode 100644
index 00000000000..5be398a773b
--- /dev/null
+++ b/math/php-bcmath/Makefile
@@ -0,0 +1,13 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/31 19:30:30 jdolecek Exp $
+
+MODNAME= bcmath
+CATEGORIES+= math
+PKGREVISION= # empty
+COMMENT= PHP extension for bc-style arbitrary precision math
+
+USE_BUILDLINK3= YES
+
+CONFIGURE_ARGS+= --enable-${MODNAME}
+
+.include "../../lang/php/ext.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/misc/php-calendar/DESCR b/misc/php-calendar/DESCR
new file mode 100644
index 00000000000..e64bd4a3dab
--- /dev/null
+++ b/misc/php-calendar/DESCR
@@ -0,0 +1,2 @@
+PHP is a programming language designed to be embedded into web pages.
+This module provides support for calendar date conversions.
diff --git a/misc/php-calendar/Makefile b/misc/php-calendar/Makefile
new file mode 100644
index 00000000000..bc34e5a2d8f
--- /dev/null
+++ b/misc/php-calendar/Makefile
@@ -0,0 +1,13 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/31 19:30:30 jdolecek Exp $
+
+MODNAME= calendar
+CATEGORIES+= misc
+PKGREVISION= # empty
+COMMENT= PHP extension for calendar conversion support
+
+USE_BUILDLINK3= YES
+
+CONFIGURE_ARGS+= --enable-${MODNAME}
+
+.include "../../lang/php/ext.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/misc/php-mbstring/DESCR b/misc/php-mbstring/DESCR
new file mode 100644
index 00000000000..27f12e9d68f
--- /dev/null
+++ b/misc/php-mbstring/DESCR
@@ -0,0 +1,2 @@
+PHP is a programming language designed to be embedded into web pages.
+This module provides multibyte (currently, Japanese only) support.
diff --git a/misc/php-mbstring/Makefile b/misc/php-mbstring/Makefile
new file mode 100644
index 00000000000..4abe494a8f6
--- /dev/null
+++ b/misc/php-mbstring/Makefile
@@ -0,0 +1,13 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/31 19:30:30 jdolecek Exp $
+
+MODNAME= mbstring
+CATEGORIES+= misc
+PKGREVISION= # empty
+COMMENT= PHP extension for multibyte characters support (currently, Japanese only)
+
+USE_BUILDLINK3= YES
+
+CONFIGURE_ARGS+= --enable-${MODNAME}=shared,${BUILDLINK_DIR}
+
+.include "../../lang/php/ext.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/php-ftp/DESCR b/net/php-ftp/DESCR
new file mode 100644
index 00000000000..14c70f9402e
--- /dev/null
+++ b/net/php-ftp/DESCR
@@ -0,0 +1,2 @@
+PHP is a programming language designed to be embedded into web pages.
+This module provides access to FTP sites through a FTP library.
diff --git a/net/php-ftp/Makefile b/net/php-ftp/Makefile
new file mode 100644
index 00000000000..5d59dcc4956
--- /dev/null
+++ b/net/php-ftp/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/31 19:30:30 jdolecek Exp $
+
+MODNAME= ftp
+PKGREVISION= # empty
+CATEGORIES+= net
+COMMENT= PHP extension for FTP access
+
+USE_BUILDLINK3= YES
+
+CONFIGURE_ARGS+= --enable-${MODNAME}
+
+# adjust so that the pkg gets built with SSL support
+LIBS+= -lssl -lcrypto
+CFLAGS+= -DHAVE_OPENSSL_EXT
+
+.include "../../lang/php/ext.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/php-snmp/DESCR b/net/php-snmp/DESCR
new file mode 100644
index 00000000000..4f9847f40a8
--- /dev/null
+++ b/net/php-snmp/DESCR
@@ -0,0 +1,2 @@
+PHP is a programming language designed to be embedded into web pages.
+This module provides support for SNMP.
diff --git a/net/php-snmp/Makefile b/net/php-snmp/Makefile
new file mode 100644
index 00000000000..8e2d7ba004e
--- /dev/null
+++ b/net/php-snmp/Makefile
@@ -0,0 +1,14 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/31 19:30:30 jdolecek Exp $
+
+MODNAME= snmp
+CATEGORIES+= net
+PKGREVISION= # empty
+COMMENT= PHP extension for SNMP
+
+USE_BUILDLINK3= YES
+
+CONFIGURE_ARGS+= --with-${MODNAME}=${PREFIX}
+
+.include "../../lang/php/ext.mk"
+.include "../../net/net-snmp/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/php-sockets/DESCR b/net/php-sockets/DESCR
new file mode 100644
index 00000000000..65ef93df1c5
--- /dev/null
+++ b/net/php-sockets/DESCR
@@ -0,0 +1,2 @@
+PHP is a programming language designed to be embedded into web pages.
+This module provides sockets support.
diff --git a/net/php-sockets/Makefile b/net/php-sockets/Makefile
new file mode 100644
index 00000000000..3d3119a78bf
--- /dev/null
+++ b/net/php-sockets/Makefile
@@ -0,0 +1,13 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/31 19:30:30 jdolecek Exp $
+
+MODNAME= sockets
+CATEGORIES+= net
+PKGREVISION= # empty
+COMMENT= PHP extension for sockets support
+
+USE_BUILDLINK3= YES
+
+CONFIGURE_ARGS+= --enable-${MODNAME}=shared,${BUILDLINK_DIR}
+
+.include "../../lang/php/ext.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/php-yp/DESCR b/net/php-yp/DESCR
new file mode 100644
index 00000000000..ead05d20689
--- /dev/null
+++ b/net/php-yp/DESCR
@@ -0,0 +1,2 @@
+PHP is a programming language designed to be embedded into web pages.
+This module provides access to a YP domain.
diff --git a/net/php-yp/Makefile b/net/php-yp/Makefile
new file mode 100644
index 00000000000..c731e3d1e74
--- /dev/null
+++ b/net/php-yp/Makefile
@@ -0,0 +1,13 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/31 19:30:30 jdolecek Exp $
+
+MODNAME= yp
+CATEGORIES+= net
+PKGREVISION= # empty
+COMMENT= PHP extension for YP domain support
+
+USE_BUILDLINK3= YES
+
+CONFIGURE_ARGS+= --enable-${MODNAME}=shared,${BUILDLINK_DIR}
+
+.include "../../lang/php/ext.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/security/php-mcrypt/DESCR b/security/php-mcrypt/DESCR
new file mode 100644
index 00000000000..b03dcd80683
--- /dev/null
+++ b/security/php-mcrypt/DESCR
@@ -0,0 +1,2 @@
+PHP is a programming language designed to be embedded into web pages.
+This module provides access to the mcrypt crypto algorithms library.
diff --git a/security/php-mcrypt/Makefile b/security/php-mcrypt/Makefile
new file mode 100644
index 00000000000..9f59adf4409
--- /dev/null
+++ b/security/php-mcrypt/Makefile
@@ -0,0 +1,14 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/31 19:30:30 jdolecek Exp $
+
+MODNAME= mcrypt
+CATEGORIES+= security
+PKGREVISION= # empty
+COMMENT= PHP extension for the mcrypt crypto algorithms library
+
+USE_BUILDLINK3= YES
+
+CONFIGURE_ARGS+= --with-${MODNAME}=shared,${BUILDLINK_PREFIX.libmcrypt}
+
+.include "../../lang/php/ext.mk"
+.include "../../security/libmcrypt/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/security/php-mhash/DESCR b/security/php-mhash/DESCR
new file mode 100644
index 00000000000..dece779b038
--- /dev/null
+++ b/security/php-mhash/DESCR
@@ -0,0 +1,2 @@
+PHP is a programming language designed to be embedded into web pages.
+This module provides access to the mhash hash algorithms library.
diff --git a/security/php-mhash/Makefile b/security/php-mhash/Makefile
new file mode 100644
index 00000000000..0a276e79144
--- /dev/null
+++ b/security/php-mhash/Makefile
@@ -0,0 +1,14 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/31 19:30:30 jdolecek Exp $
+
+MODNAME= mhash
+CATEGORIES+= security
+PKGREVISION= # empty
+COMMENT= PHP extension for the mhash hash algorithms library
+
+USE_BUILDLINK3= YES
+
+CONFIGURE_ARGS+= --with-${MODNAME}=shared,${BUILDLINK_PREFIX.mhash}
+
+.include "../../lang/php/ext.mk"
+.include "../../security/mhash/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/security/php-openssl/DESCR b/security/php-openssl/DESCR
new file mode 100644
index 00000000000..02094829dfa
--- /dev/null
+++ b/security/php-openssl/DESCR
@@ -0,0 +1,2 @@
+PHP is a programming language designed to be embedded into web pages.
+This module provides access to the OpenSSL library.
diff --git a/security/php-openssl/Makefile b/security/php-openssl/Makefile
new file mode 100644
index 00000000000..309fe65aab6
--- /dev/null
+++ b/security/php-openssl/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/31 19:30:30 jdolecek Exp $
+
+MODNAME= openssl
+CATEGORIES+= security
+PKGREVISION= # empty
+COMMENT= PHP extension for the OpenSSL library
+
+USE_BUILDLINK3= YES
+
+CONFIGURE_ARGS+= --with-${MODNAME}=shared,${BUILDLINK_PREFIX.openssl}
+
+# the config test for -lssl fails to link in -lcrypto; just force it
+# to succeed
+CONFIGURE_ENV+= ac_cv_lib_ssl_SSL_CTX_set_ssl_version=yes
+
+post-extract:
+ cd ${WRKSRC} && ln -s config0.m4 config.m4
+
+.include "../../lang/php/ext.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/php-wddx/DESCR b/textproc/php-wddx/DESCR
new file mode 100644
index 00000000000..36961fa7031
--- /dev/null
+++ b/textproc/php-wddx/DESCR
@@ -0,0 +1,2 @@
+PHP is a programming language designed to be embedded into web pages.
+This module provides support for WDDX (Web Direct Data eXchange).
diff --git a/textproc/php-wddx/Makefile b/textproc/php-wddx/Makefile
new file mode 100644
index 00000000000..3ea194cc5ce
--- /dev/null
+++ b/textproc/php-wddx/Makefile
@@ -0,0 +1,14 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/31 19:30:30 jdolecek Exp $
+
+MODNAME= wddx
+CATEGORIES+= textproc
+PKGREVISION= # empty
+COMMENT= PHP extension for WDDX support
+
+USE_BUILDLINK3= YES
+
+CONFIGURE_ARGS+= --enable-${MODNAME}=shared,${BUILDLINK_PREFIX.expat}
+
+.include "../../lang/php/ext.mk"
+.include "../../textproc/expat/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/php-curl/DESCR b/www/php-curl/DESCR
new file mode 100644
index 00000000000..2a74a843a8c
--- /dev/null
+++ b/www/php-curl/DESCR
@@ -0,0 +1,2 @@
+PHP is a programming language designed to be embedded into web pages.
+This module provides curl functions.
diff --git a/www/php-curl/Makefile b/www/php-curl/Makefile
new file mode 100644
index 00000000000..680b2119d4b
--- /dev/null
+++ b/www/php-curl/Makefile
@@ -0,0 +1,14 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/31 19:30:30 jdolecek Exp $
+
+MODNAME= curl
+PKGREVISION= # empty
+CATEGORIES+= www
+COMMENT= PHP extension for curl functions
+
+USE_BUILDLINK3= YES
+
+CONFIGURE_ARGS+= --with-curl=shared,${BUILDLINK_PREFIX.curl}
+
+.include "../../lang/php/ext.mk"
+.include "../../www/curl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"