From eefc26a4ebd6b26cc5f2bc1dca90f256535a924a Mon Sep 17 00:00:00 2001 From: explorer Date: Sat, 15 May 1999 20:07:54 +0000 Subject: php3 postgresql package --- www/php3-pgsql/Makefile | 20 ++++++++++++++++++++ www/php3-pgsql/pkg/COMMENT | 1 + www/php3-pgsql/pkg/DESCR | 2 ++ www/php3-pgsql/pkg/PLIST | 2 ++ 4 files changed, 25 insertions(+) create mode 100644 www/php3-pgsql/Makefile create mode 100644 www/php3-pgsql/pkg/COMMENT create mode 100644 www/php3-pgsql/pkg/DESCR create mode 100644 www/php3-pgsql/pkg/PLIST (limited to 'www/php3-pgsql') diff --git a/www/php3-pgsql/Makefile b/www/php3-pgsql/Makefile new file mode 100644 index 00000000000..e6327eeaedc --- /dev/null +++ b/www/php3-pgsql/Makefile @@ -0,0 +1,20 @@ +# $NetBSD: Makefile,v 1.1.1.1 1999/05/15 20:07:54 explorer Exp $ +# + +PKGNAME= php-pgsql-${PHP_VERSION} + +DEPENDS+= postgresql-6.4.2:../../databases/postgresql + +CONFIGURE_ARGS+=--with-pgsql=/usr/pkg/pgsql + +BUILDING_EXTENSION_MODULE=yes + +do-build: + cd ${WRKSRC}/functions && \ + ${COMPILE.c} -I.. -I. -I${LOCALBASE}/pgsql/include -fPIC -DPIC -DCOMPILE_DL pgsql.c && \ + ld -Bshareable -o pgsql.so pgsql.o -L${LOCALBASE}/pgsql/lib -R${LOCALBASE}/pgsql/lib -lpq + +do-install: + ${INSTALL_DATA} ${WRKSRC}/functions/pgsql.so ${PREFIX}/lib/php3/ + +.include "../php3/Makefile" diff --git a/www/php3-pgsql/pkg/COMMENT b/www/php3-pgsql/pkg/COMMENT new file mode 100644 index 00000000000..812cae122b3 --- /dev/null +++ b/www/php3-pgsql/pkg/COMMENT @@ -0,0 +1 @@ +PHP3 extension for PostgreSQL databases diff --git a/www/php3-pgsql/pkg/DESCR b/www/php3-pgsql/pkg/DESCR new file mode 100644 index 00000000000..5ec666735fc --- /dev/null +++ b/www/php3-pgsql/pkg/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/www/php3-pgsql/pkg/PLIST b/www/php3-pgsql/pkg/PLIST new file mode 100644 index 00000000000..f9f3020b5cd --- /dev/null +++ b/www/php3-pgsql/pkg/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 1999/05/15 20:07:54 explorer Exp $ +lib/php3/pgsql.so -- cgit v1.2.3