pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/ap-php4 not all platforms build libphp4.so in ${WR...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/01fac25af694
branches:  trunk
changeset: 463643:01fac25af694
user:      grant <grant%pkgsrc.org@localhost>
date:      Sat Nov 22 08:24:40 2003 +0000

description:
not all platforms build libphp4.so in ${WRKSRC}/.libs, so install
if it exists, else install ${WRKSRC}/libs/libphp4.so.

diffstat:

 www/ap-php4/Makefile |  12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 85a56964a9c9 -r 01fac25af694 www/ap-php4/Makefile
--- a/www/ap-php4/Makefile      Sat Nov 22 03:35:49 2003 +0000
+++ b/www/ap-php4/Makefile      Sat Nov 22 08:24:40 2003 +0000
@@ -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 @@
 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"
 



Home | Main Index | Thread Index | Old Index