diff options
author | grant <grant@pkgsrc.org> | 2003-11-22 08:24:40 +0000 |
---|---|---|
committer | grant <grant@pkgsrc.org> | 2003-11-22 08:24:40 +0000 |
commit | b5c7f9cad2ba5b101c1c7d2c5b53651dca3dc864 (patch) | |
tree | 2bec69812308fdf03b680c08699101c6ec91fed6 /www | |
parent | 5fdbc209722219f4e766a69a83161ec7aa8ed2d0 (diff) | |
download | pkgsrc-b5c7f9cad2ba5b101c1c7d2c5b53651dca3dc864.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" |