pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www Make sure plugin's dir exists before linking into it.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0e7946cf83fa
branches:  trunk
changeset: 459836:0e7946cf83fa
user:      jmc <jmc%pkgsrc.org@localhost>
date:      Fri Aug 08 18:18:05 2003 +0000

description:
Make sure plugin's dir exists before linking into it.

diffstat:

 www/phoenix-bin-acroread/Makefile.common |  7 +++++--
 www/phoenix-bin-java/Makefile            |  8 ++++++--
 www/phoenix-bin-realplayer/Makefile      |  8 +++++---
 3 files changed, 16 insertions(+), 7 deletions(-)

diffs (67 lines):

diff -r f948b1672c64 -r 0e7946cf83fa www/phoenix-bin-acroread/Makefile.common
--- a/www/phoenix-bin-acroread/Makefile.common  Fri Aug 08 16:55:27 2003 +0000
+++ b/www/phoenix-bin-acroread/Makefile.common  Fri Aug 08 18:18:05 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.2 2003/05/24 10:36:03 jmmv Exp $
+# $NetBSD: Makefile.common,v 1.3 2003/08/08 18:18:05 jmc Exp $
 
 WRKSRC=                        ${WRKDIR}
 CATEGORIES=            www print
@@ -17,9 +17,12 @@
 PLIST_SRC=             ../../www/phoenix-bin-acroread/PLIST
 PLIST_SUBST+=          ACROREAD=${ACROREAD}
 PLIST_SUBST+=          PLATFORM=${PLATFORM}
+NS_PLUGINS_DIR=         ${PREFIX}/lib/MozillaFirebird-linux/plugins
+
 
 do-install:
+       ${INSTALL_DATA_DIR} ${NS_PLUGINS_DIR}
        ${LN} -s ${PREFIX}/${ACROREAD}/Browsers/${PLATFORM}/nppdf.so \
-               ${PREFIX}/lib/MozillaFirebird-linux/plugins/nppdf.so
+               ${NS_PLUGINS_DIR}/nppdf.so
 
 .include "../../mk/bsd.pkg.mk"
diff -r f948b1672c64 -r 0e7946cf83fa www/phoenix-bin-java/Makefile
--- a/www/phoenix-bin-java/Makefile     Fri Aug 08 16:55:27 2003 +0000
+++ b/www/phoenix-bin-java/Makefile     Fri Aug 08 18:18:05 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2003/07/29 16:39:04 wiz Exp $
+# $NetBSD: Makefile,v 1.5 2003/08/08 18:18:05 jmc Exp $
 
 DISTNAME=              phoenix-bin-java-1.0
 PKGREVISION=           1
@@ -21,7 +21,11 @@
 NO_CONFIGURE=          YES
 NO_BUILD=              YES
 
+NS_PLUGINS_DIR=         ${PREFIX}/lib/MozillaFirebird-linux/plugins
+PLUGIN=                ${PREFIX}/java/sun-1.3.1/plugin/i386/ns600/libjavaplugin_oji.so
+
 do-install:
-                       ${LN} -s ${PREFIX}/java/sun-1.3.1/plugin/i386/ns600/libjavaplugin_oji.so ${PREFIX}/lib/MozillaFirebird-linux/plugins/libjavaplugin_oji.so
+       ${INSTALL_DATA_DIR} ${NS_PLUGINS_DIR}
+       ${LN} -s ${PLUGIN} ${NS_PLUGINS_DIR}/libjavaplugin_oji.so
 
 .include "../../mk/bsd.pkg.mk"
diff -r f948b1672c64 -r 0e7946cf83fa www/phoenix-bin-realplayer/Makefile
--- a/www/phoenix-bin-realplayer/Makefile       Fri Aug 08 16:55:27 2003 +0000
+++ b/www/phoenix-bin-realplayer/Makefile       Fri Aug 08 18:18:05 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2003/07/17 22:55:57 grant Exp $
+# $NetBSD: Makefile,v 1.4 2003/08/08 18:18:05 jmc Exp $
 
 DISTNAME=              phoenix-bin-realplayer-1.0
 PKGREVISION=           1
@@ -19,8 +19,10 @@
 NO_CONFIGURE=          YES
 NO_BUILD=              YES
 
+NS_PLUGINS_DIR=                ${PREFIX}/lib/MozillaFirebird-linux/plugins
+PLUGIN_SOURCE=         ${PREFIX}/lib/netscape/plugins/rpnp.so
+
 do-install:
-                       ${LN} -s ${PREFIX}/lib/netscape/plugins/rpnp.so \
-                               ${PREFIX}/lib/MozillaFirebird-linux/plugins/rpnp.so
+       ${LN} -s ${PLUGIN_SOURCE}/rpnp.so ${NS_PLUGINS_DIR}/rpnp.so
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index