2010-03-16 12:54:31 +01:00
|
|
|
# $NetBSD: Makefile,v 1.11 2010/03/16 11:54:31 taca Exp $
|
2005-12-03 18:24:28 +01:00
|
|
|
|
2009-03-13 11:57:20 +01:00
|
|
|
MODNAME= pdo
|
|
|
|
CATEGORIES+= databases
|
|
|
|
COMMENT= PHP extension for PHP Data Objects (base)
|
2005-12-03 18:24:28 +01:00
|
|
|
|
2008-06-12 04:14:13 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
2009-03-13 11:57:20 +01:00
|
|
|
USE_PHP_EXT_PATCHES= yes
|
2008-06-12 04:14:13 +02:00
|
|
|
|
2009-03-13 11:57:20 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2005-12-03 18:24:28 +01:00
|
|
|
|
2009-03-13 11:57:20 +01:00
|
|
|
.include "../../lang/php/ext.mk"
|
2005-10-09 15:11:18 +02:00
|
|
|
|
2009-03-13 11:57:20 +01:00
|
|
|
CONFIGURE_ARGS+= --with-${MODNAME}
|
2005-10-09 15:11:18 +02:00
|
|
|
|
2009-03-13 11:57:20 +01:00
|
|
|
INSTALLATION_DIRS+= include/php/ext/pdo
|
2005-10-09 15:11:18 +02:00
|
|
|
|
|
|
|
PDO_INCLUDES= php_pdo_driver.h php_pdo.h
|
2009-03-13 11:57:20 +01:00
|
|
|
PLIST_SRC+= ${.CURDIR}/../../databases/php-pdo/PLIST.pdo
|
2008-06-12 04:14:13 +02:00
|
|
|
|
2005-10-09 15:11:18 +02:00
|
|
|
post-install:
|
2006-05-03 08:37:36 +02:00
|
|
|
.for inc in ${PDO_INCLUDES}
|
2008-06-12 04:14:13 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${inc} ${DESTDIR}${PREFIX}/include/php/ext/pdo/${inc}
|
2006-05-01 15:52:55 +02:00
|
|
|
.endfor
|
2009-10-09 05:49:43 +02:00
|
|
|
|
2005-10-09 15:11:18 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|