summaryrefslogtreecommitdiff
path: root/www/phoenix-bin
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2003-07-18 07:31:13 +0000
committergrant <grant@pkgsrc.org>2003-07-18 07:31:13 +0000
commit48dbe1740e38d58ac8e6f3d06df11a2fb89eda07 (patch)
tree5b49950275d954598e177667f73bac78908ee5b7 /www/phoenix-bin
parent31f433d64bbcf2b5904e1b009c09e2ce7d3e837f (diff)
downloadpkgsrc-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/phoenix-bin')
-rw-r--r--www/phoenix-bin/Makefile23
-rw-r--r--www/phoenix-bin/files/phoenix.sh6
2 files changed, 17 insertions, 12 deletions
diff --git a/www/phoenix-bin/Makefile b/www/phoenix-bin/Makefile
index 075373545fc..c69b260e9ac 100644
--- a/www/phoenix-bin/Makefile
+++ b/www/phoenix-bin/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2003/06/25 14:14:36 salo Exp $
+# $NetBSD: Makefile,v 1.8 2003/07/18 07:31:13 grant Exp $
#
DISTNAME= # see Makefile.${OPSYS}.${ARCH}
@@ -35,21 +35,22 @@ do-install:
@${RM} -f ${PHOENIX_LIB}/plugins/libnullplugin.so
post-install:
+# this build for Solaris wants exactly 'libgtk-1.2.so.0', etc.
+.if ${OPSYS} == "SunOS"
+ @cd ${PHOENIX_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/phoenix-${PLATFORM} >> ${PLIST_SRC}
@${FIND} ${PHOENIX_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 ${PHOENIX_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/MozillaFirebird-${PLATFORM}/lib${_lib_}-1.2.so.0 >> ${PLIST_SRC}
-. endfor
-.endif
@${FIND} ${PHOENIX_LIB} -type d -print \
| ${SORT} -r | ${SED} -e "s,${PREFIX}/,@dirrm ,g" \
>> ${PLIST_SRC}
diff --git a/www/phoenix-bin/files/phoenix.sh b/www/phoenix-bin/files/phoenix.sh
index 916c0e9f6a5..bc5ee964338 100644
--- a/www/phoenix-bin/files/phoenix.sh
+++ b/www/phoenix-bin/files/phoenix.sh
@@ -1,3 +1,7 @@
#!@SH@
-# $NetBSD: phoenix.sh,v 1.3 2003/05/18 03:43:02 grant Exp $
+# $NetBSD: phoenix.sh,v 1.4 2003/07/18 07:31:14 grant Exp $
+
+LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:@PREFIX@/lib/MozillaFirebird-@PLATFORM@:@PREFIX@/lib"
+export LD_LIBRARY_PATH
+
exec @PREFIX@/lib/MozillaFirebird-@PLATFORM@/MozillaFirebird "$@"