27 lines
687 B
Makefile
27 lines
687 B
Makefile
# $NetBSD: Makefile,v 1.19 2014/06/13 14:17:07 fhajny Exp $
|
|
|
|
MODNAME= pdo_mysql
|
|
CATEGORIES+= databases
|
|
COMMENT= PHP extension for PHP Data Objects (MySQL)
|
|
|
|
USE_PHP_EXT_PATCHES= yes
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.include "../../lang/php/ext.mk"
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.php-pdo_mysql
|
|
PKG_SUPPORTED_OPTIONS= mysqlnd
|
|
PKG_SUGGESTED_OPTIONS= # empty
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
.if !empty(PKG_OPTIONS:Mmysqlnd)
|
|
CONFIGURE_ARGS+= --with-${MODNAME}=shared,mysqlnd
|
|
.else
|
|
CONFIGURE_ARGS+= --with-${MODNAME}=shared,${BUILDLINK_PREFIX.mysql-client}
|
|
.include "../../mk/mysql.buildlink3.mk"
|
|
.endif
|
|
|
|
.include "../../databases/php-pdo/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|