pkgsrc/databases/php-pdo/Makefile
taca d96ad712dc * Use pdo_error instead of php56 for PLIST_VARS.
* Set PLIST.pdo_errors for PKG_PHP_VERSION is not "55" instead of
  PKG_PHP_VERSION is "56".
2015-12-06 13:51:30 +00:00

31 lines
701 B
Makefile

# $NetBSD: Makefile,v 1.14 2015/12/06 13:51:30 taca Exp $
MODNAME= pdo
CATEGORIES+= databases
COMMENT= PHP extension for PHP Data Objects (base)
USE_PHP_EXT_PATCHES= yes
.include "../../mk/bsd.prefs.mk"
.include "../../lang/php/ext.mk"
CONFIGURE_ARGS+= --with-${MODNAME}
INSTALLATION_DIRS+= include/php/ext/pdo
PDO_INCLUDES= php_pdo_driver.h php_pdo.h
PLIST_VARS+= pdo_error
PLIST_SRC+= ${.CURDIR}/../../databases/php-pdo/PLIST.pdo
.if ${PKG_PHP_VERSION} != "55"
PDO_INCLUDES+= php_pdo_error.h
PLIST.pdo_error= yes
.endif
post-install:
.for inc in ${PDO_INCLUDES}
${INSTALL_DATA} ${WRKSRC}/${inc} ${DESTDIR}${PREFIX}/include/php/ext/pdo/${inc}
.endfor
.include "../../mk/bsd.pkg.mk"