Merge from vendor branch TNF:
[pkgsrc.git] / www / php3-pgsql / Makefile
1 # $NetBSD: Makefile,v 1.6 2000/04/09 04:00:35 jlam Exp $
2 #
3
4 PKGNAME=        php-pgsql-${PHP_VERSION}
5
6 DEPENDS+=       postgresql>=6.5.3:../../databases/postgresql
7
8 CONFIGURE_ARGS+=--with-pgsql=${LOCALBASE}/pgsql
9
10 BUILDING_EXTENSION_MODULE=yes
11
12 do-build:
13         cd ${WRKSRC}/functions && \
14                 ${COMPILE.c} -I.. -I. -I${LOCALBASE}/include/pgsql -fPIC -DPIC -DCOMPILE_DL pgsql.c && \
15                 ld -Bshareable -o pgsql.so pgsql.o -L${LOCALBASE}/lib -R${LOCALBASE}/lib -lpq -lcrypt
16
17 do-install:
18         ${INSTALL_DATA} ${WRKSRC}/functions/pgsql.so ${PREFIX}/lib/php3/
19
20 .include "../php3/Makefile"