diff options
author | grant <grant@pkgsrc.org> | 2003-07-18 07:31:13 +0000 |
---|---|---|
committer | grant <grant@pkgsrc.org> | 2003-07-18 07:31:13 +0000 |
commit | 48dbe1740e38d58ac8e6f3d06df11a2fb89eda07 (patch) | |
tree | 5b49950275d954598e177667f73bac78908ee5b7 /www/mozilla-bin-nightly | |
parent | 31f433d64bbcf2b5904e1b009c09e2ce7d3e837f (diff) | |
download | pkgsrc-48dbe1740e38d58ac8e6f3d06df11a2fb89eda07.tar.gz |
allow these to work with -current glib/gtk on Solaris, add links for
libgmodule and handle symlinked libraries more cleanly.
Diffstat (limited to 'www/mozilla-bin-nightly')
-rw-r--r-- | www/mozilla-bin-nightly/Makefile | 23 | ||||
-rw-r--r-- | www/mozilla-bin-nightly/files/mozilla.sh | 4 |
2 files changed, 14 insertions, 13 deletions
diff --git a/www/mozilla-bin-nightly/Makefile b/www/mozilla-bin-nightly/Makefile index 110d2171ad7..ae472efa801 100644 --- a/www/mozilla-bin-nightly/Makefile +++ b/www/mozilla-bin-nightly/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2003/06/11 17:43:15 grant Exp $ +# $NetBSD: Makefile,v 1.4 2003/07/18 07:31:17 grant Exp $ # DISTNAME= # see Makefile.${OPSYS}.${ARCH} @@ -41,21 +41,22 @@ do-install: | ${XARGS} ${CHMOD} a+rx post-install: +# this build for Solaris wants exactly 'libgtk-1.2.so.0', etc. +.if ${OPSYS} == "SunOS" + @cd ${MOZILLA_LIB} && \ + ${LN} -s ${LOCALBASE}/lib/libglib.*so* .; \ + ${LN} -s ${LOCALBASE}/lib/libgmodule.*so* .; \ + ${LN} -s ${X11BASE}/lib/libgdk.*so* .; \ + ${LN} -s ${X11BASE}/lib/libgtk.*so* .; \ + ${LN} -s libgtk.so libgtk-1.2.so.0; \ + ${LN} -s libgdk.so libgdk-1.2.so.0; \ + ${LN} -s libglib.so libglib-1.2.so.0 +.endif @${CP} -f ${PKGDIR}/PLIST ${PLIST_SRC} @${ECHO} bin/mozilla-${PLATFORM} >> ${PLIST_SRC} @${FIND} ${MOZILLA_LIB} \( -type f -o -type l \) -print \ | ${SORT} | ${SED} -e "s,${PREFIX}/,,g" \ >> ${PLIST_SRC} -# this build for Solaris wants exactly 'libgtk-1.2.so.0' -.if ${OPSYS} == "SunOS" - @cd ${MOZILLA_LIB} && \ - ${LN} -s ${LOCALBASE}/lib/libglib.so libglib-1.2.so.0; \ - ${LN} -s ${X11BASE}/lib/libgdk.so libgdk-1.2.so.0; \ - ${LN} -s ${X11BASE}/lib/libgtk.so libgtk-1.2.so.0 -. for _lib_ in glib gdk gtk - @${ECHO} lib/mozilla-${PLATFORM}/lib${_lib_}-1.2.so.0 >> ${PLIST_SRC} -. endfor -.endif @${FIND} ${MOZILLA_LIB} -type d -print \ | ${SORT} -r | ${SED} -e "s,${PREFIX}/,@dirrm ,g" \ >> ${PLIST_SRC} diff --git a/www/mozilla-bin-nightly/files/mozilla.sh b/www/mozilla-bin-nightly/files/mozilla.sh index 781012ba4c4..42c1cf7f5ee 100644 --- a/www/mozilla-bin-nightly/files/mozilla.sh +++ b/www/mozilla-bin-nightly/files/mozilla.sh @@ -1,7 +1,7 @@ #!@SH@ -# $NetBSD: mozilla.sh,v 1.2 2003/06/11 17:43:16 grant Exp $ +# $NetBSD: mozilla.sh,v 1.3 2003/07/18 07:31:17 grant Exp $ -LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:@PREFIX@/lib/mozilla-@PLATFORM@" +LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:@PREFIX@/lib/mozilla-@PLATFORM@:@PREFIX@/lib" export LD_LIBRARY_PATH exec @PREFIX@/lib/mozilla-@PLATFORM@/mozilla "$@" |