2011-09-21 15:10:25 +02:00
|
|
|
# $NetBSD: Makefile,v 1.26 2011/09/21 13:10:25 adam Exp $
|
2004-11-04 19:42:03 +01:00
|
|
|
|
2006-06-02 20:27:54 +02:00
|
|
|
PKGNAME= ${APACHE_PKG_PREFIX}-${PHP_PKG_PREFIX}-${PHP_BASE_VERS}
|
2011-08-12 14:24:52 +02:00
|
|
|
PKGREVISION= 1
|
2004-11-04 19:42:03 +01:00
|
|
|
COMMENT= Apache (${PKG_APACHE}) module for ${PKG_PHP}
|
|
|
|
|
2008-06-12 04:14:13 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2006-06-02 20:27:54 +02:00
|
|
|
CONFLICTS= ap-php-[0-9]*
|
|
|
|
|
2007-11-17 13:04:11 +01:00
|
|
|
USE_TOOLS+= lex
|
|
|
|
|
2004-11-04 19:42:03 +01:00
|
|
|
APACHE_MODULE= YES
|
|
|
|
|
|
|
|
.include "../../lang/php/phpversion.mk"
|
|
|
|
.include "${PHPPKGSRCDIR}/Makefile.php"
|
|
|
|
|
2011-09-21 15:10:25 +02:00
|
|
|
MESSAGE_SUBST+= PKG_PHP_MAJOR_VERS=${PKG_PHP_MAJOR_VERS}
|
|
|
|
|
2004-11-04 19:42:03 +01:00
|
|
|
# Ensure we export symbols in the linked shared object.
|
2011-09-21 15:10:25 +02:00
|
|
|
CONFIGURE_ENV+= EXTRA_LDFLAGS=${EXPORT_SYMBOLS_LDFLAGS:M*:Q}
|
2004-11-04 19:42:03 +01:00
|
|
|
|
2005-06-17 05:50:19 +02:00
|
|
|
INSTALLATION_DIRS= lib/httpd
|
|
|
|
|
2004-11-04 19:42:03 +01:00
|
|
|
do-install:
|
2010-03-16 16:36:39 +01:00
|
|
|
if [ -f ${WRKSRC}/.libs/libphp${PKG_PHP_MAJOR_VERS}.so ]; then \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/.libs/libphp${PKG_PHP_MAJOR_VERS}.so \
|
|
|
|
${DESTDIR}${PREFIX}/lib/httpd/mod_php${PKG_PHP_MAJOR_VERS}.so; \
|
|
|
|
elif [ -f ${WRKSRC}/libs/libphp${PKG_PHP_MAJOR_VERS}.so ]; then \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/libs/libphp${PKG_PHP_MAJOR_VERS}.so \
|
|
|
|
${DESTDIR}${PREFIX}/lib/httpd/mod_php${PKG_PHP_MAJOR_VERS}.so; \
|
2004-11-04 19:42:03 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
.include "${PHPPKGSRCDIR}/buildlink3.mk"
|
|
|
|
.include "../../mk/apache.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|