# $NetBSD: Makefile,v 1.1.1.1 2004/11/04 18:42:03 jdolecek Exp $ # PKGNAME= ap-php-${PHP_BASE_VERS} COMMENT= Apache (${PKG_APACHE}) module for ${PKG_PHP} USE_BUILDLINK3= YES APACHE_MODULE= YES SHLIBTOOL_OVERRIDE= libtool .include "../../lang/php/phpversion.mk" .include "${PHPPKGSRCDIR}/Makefile.php" # Ensure we export symbols in the linked shared object. LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS} do-install: if [ -f ${WRKSRC}/.libs/libphp${PKG_PHP_VERSION}.so ]; then \ ${INSTALL_DATA} ${WRKSRC}/.libs/libphp${PKG_PHP_VERSION}.so \ ${PREFIX}/lib/httpd/mod_php${PKG_PHP_VERSION}.so; \ elif [ -f ${WRKSRC}/libs/libphp${PKG_PHP_VERSION}.so ]; then \ ${INSTALL_DATA} ${WRKSRC}/libs/libphp${PKG_PHP_VERSION}.so \ ${PREFIX}/lib/httpd/mod_php${PKG_PHP_VERSION}.so; \ fi .include "${PHPPKGSRCDIR}/buildlink3.mk" .include "../../mk/apache.mk" .include "../../mk/bsd.pkg.mk"