pkgsrc/www/php3-pgsql/Makefile
jlam f79573370a Mechanical changes to 375 files to change dependency patterns of the form
foo-* to foo-[0-9]*.  This is to cause the dependencies to match only the
packages whose base package name is "foo", and not those named "foo-bar".
A concrete example is p5-Net-* matching p5-Net-DNS as well as p5-Net.  Also
change dependency examples in Packages.txt to reflect this.
2001-09-27 23:17:41 +00:00

22 lines
630 B
Makefile

# $NetBSD: Makefile,v 1.10 2001/09/27 23:18:56 jlam Exp $
#
PKGNAME= php-pgsql-${PHP_VERSION}
COMMENT= PHP3 extension for PostgreSQL databases
DEPENDS+= postgresql-{6.5.3*,7.0*,lib-[0-9]*}:../../databases/postgresql-lib
CONFIGURE_ARGS+=--with-pgsql=${LOCALBASE}/pgsql
BUILDING_EXTENSION_MODULE=yes
do-build:
cd ${WRKSRC}/functions && \
${COMPILE.c} -I.. -I. -I${LOCALBASE}/include/pgsql -fPIC -DPIC -DCOMPILE_DL pgsql.c && \
ld -Bshareable -o pgsql.so pgsql.o -L${LOCALBASE}/lib -R${LOCALBASE}/lib -lpq -lcrypt
do-install:
${INSTALL_DATA} ${WRKSRC}/functions/pgsql.so ${PREFIX}/lib/php3/
.include "../php3/Makefile"