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 | 8df2733c01a77186b70bd8300d85ed3584e37227 (patch) | |
tree | 2bec69812308fdf03b680c08699101c6ec91fed6 /www/ap-php4 | |
parent | 8e9b843db5c566879aa651ab974eaf3771b5ff64 (diff) | |
download | pkgsrc-8df2733c01a77186b70bd8300d85ed3584e37227.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/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" |