summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>1999-05-06 23:53:41 +0000
committertv <tv@pkgsrc.org>1999-05-06 23:53:41 +0000
commitea6abe0ea5ea803d0210da2c278fa9af67bf1627 (patch)
tree81682a10075d8c18be927433a29ce6130b271b21 /www
parentfccb40ed14db68bac2a78576a1d61f014f260773 (diff)
downloadpkgsrc-ea6abe0ea5ea803d0210da2c278fa9af67bf1627.tar.gz
PHP3 module for MySQL.
Diffstat (limited to 'www')
-rw-r--r--www/php3-mysql/Makefile20
-rw-r--r--www/php3-mysql/pkg/COMMENT1
-rw-r--r--www/php3-mysql/pkg/DESCR2
-rw-r--r--www/php3-mysql/pkg/PLIST2
4 files changed, 25 insertions, 0 deletions
diff --git a/www/php3-mysql/Makefile b/www/php3-mysql/Makefile
new file mode 100644
index 00000000000..7d8b2d03491
--- /dev/null
+++ b/www/php3-mysql/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1.1.1 1999/05/06 23:53:41 tv Exp $
+#
+
+PKGNAME= php-mysql-${PHP_VERSION}
+
+DEPENDS+= mysql-client-3.22.22:../../databases/mysql
+
+CONFIGURE_ARGS+=--with-mysql=/usr/pkg
+
+BUILDING_EXTENSION_MODULE=yes
+
+do-build:
+ cd ${WRKSRC}/functions && \
+ ${COMPILE.c} -I.. -I. -I${LOCALBASE}/include/mysql -fPIC -DPIC -DCOMPILE_DL mysql.c && \
+ ld -Bshareable -o mysql.so mysql.o -L${LOCALBASE}/lib/mysql -R${LOCALBASE}/lib/mysql -lmysqlclient
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/functions/mysql.so ${PREFIX}/lib/php3/
+
+.include "../php3/Makefile"
diff --git a/www/php3-mysql/pkg/COMMENT b/www/php3-mysql/pkg/COMMENT
new file mode 100644
index 00000000000..40f061271f4
--- /dev/null
+++ b/www/php3-mysql/pkg/COMMENT
@@ -0,0 +1 @@
+PHP3 extension for MySQL databases
diff --git a/www/php3-mysql/pkg/DESCR b/www/php3-mysql/pkg/DESCR
new file mode 100644
index 00000000000..23f8c25ea3d
--- /dev/null
+++ b/www/php3-mysql/pkg/DESCR
@@ -0,0 +1,2 @@
+PHP is a programming language designed to be embedded into web pages.
+This module provides access to MySQL databases.
diff --git a/www/php3-mysql/pkg/PLIST b/www/php3-mysql/pkg/PLIST
new file mode 100644
index 00000000000..9ba3b4ed451
--- /dev/null
+++ b/www/php3-mysql/pkg/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 1999/05/06 23:53:41 tv Exp $
+lib/php3/mysql.so