diff options
Diffstat (limited to 'www/ap-php4')
-rw-r--r-- | www/ap-php4/Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/www/ap-php4/Makefile b/www/ap-php4/Makefile index 547a14171f8..d126bee3df0 100644 --- a/www/ap-php4/Makefile +++ b/www/ap-php4/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.32 2003/09/12 20:07:29 grant Exp $ +# $NetBSD: Makefile,v 1.33 2003/11/22 08:24:40 grant Exp $ # PKGNAME= ap-php-${PHP_BASE_VERS} @@ -17,8 +17,14 @@ SHLIBTOOL_OVERRIDE= ${WRKSRC}/libtool LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS} do-install: - ${INSTALL_DATA} ${WRKSRC}/.libs/libphp4.so \ - ${PREFIX}/lib/httpd/mod_php4.so + if [ -f ${WRKSRC}/.libs/libphp4.so ]; then \ + ${INSTALL_DATA} ${WRKSRC}/.libs/libphp4.so \ + ${PREFIX}/lib/httpd/mod_php4.so; \ + elif [ -f ${WRKSRC}/libs/libphp4.so ]; then \ + ${INSTALL_DATA} ${WRKSRC}/libs/libphp4.so \ + ${PREFIX}/lib/httpd/mod_php4.so; \ + fi + .include "../../mk/apache.mk" |