pkgsrc/www/php3-mysql/Makefile

22 lines
619 B
Makefile

# $NetBSD: Makefile,v 1.11 2001/03/26 14:54:20 bad Exp $
#
PKGNAME= php-mysql-${PHP_VERSION}
COMMENT= PHP3 extension for MySQL databases
DEPENDS+= mysql-client>=3.23.35:../../databases/mysql-client
CONFIGURE_ARGS+=--with-mysql=${LOCALBASE}
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 -lm
do-install:
${INSTALL_DATA} ${WRKSRC}/functions/mysql.so ${PREFIX}/lib/php3/
.include "../php3/Makefile"