blob: 7d0bc979f37dc9c11770b4aaa6031c94cc96cd90 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# $NetBSD: Makefile,v 1.8 2001/02/17 17:22:30 wiz Exp $
#
PKGNAME= php-pgsql-${PHP_VERSION}
COMMENT= PHP3 extension for PostgreSQL databases
DEPENDS+= postgresql>=6.5.3:../../databases/postgresql
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"
|