blob: 7d8b2d03491b0407a1cdfd5a03c8bfce60feec26 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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"
|