diff options
author | grant <grant> | 2003-11-22 08:24:40 +0000 |
---|---|---|
committer | grant <grant> | 2003-11-22 08:24:40 +0000 |
commit | c4ddab57c77d26255869a7730ab43e502bf00827 (patch) | |
tree | 2bec69812308fdf03b680c08699101c6ec91fed6 /www | |
parent | 228d79bce98cd0ba63f7ec3fc216c18dc61fa338 (diff) | |
download | pkgsrc-c4ddab57c77d26255869a7730ab43e502bf00827.tar.gz |
not all platforms build libphp4.so in ${WRKSRC}/.libs, so install
if it exists, else install ${WRKSRC}/libs/libphp4.so.
Diffstat (limited to 'www')
-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" |