aboutsummaryrefslogtreecommitdiff
path: root/www/linux-firefox/Makefile
diff options
context:
space:
mode:
authorTrevor Johnson <trevor@FreeBSD.org>2002-10-11 22:14:00 +0000
committerTrevor Johnson <trevor@FreeBSD.org>2002-10-11 22:14:00 +0000
commitd5d0232436db532e3e6b2cf9ce5f50b9c0c8f70c (patch)
treef8c45bb9230dc5514e3067cc6aac7b4739921558 /www/linux-firefox/Makefile
parentee2f3c05ce276fcac36690a26141379141a3cf5a (diff)
downloadports-d5d0232436db532e3e6b2cf9ce5f50b9c0c8f70c.tar.gz
ports-d5d0232436db532e3e6b2cf9ce5f50b9c0c8f70c.zip
new Linux/i386 binary port of the Phoenix browser
Aaron Voisine submitted a port of this, but I like my version better because it has a script to scavenge plugins, and because it saves space by generating its packing list. I've given the maintainership to Mr. Voisine. PR: 43936 and 43937
Notes
Notes: svn path=/head/; revision=67825
Diffstat (limited to 'www/linux-firefox/Makefile')
-rw-r--r--www/linux-firefox/Makefile77
1 files changed, 77 insertions, 0 deletions
diff --git a/www/linux-firefox/Makefile b/www/linux-firefox/Makefile
new file mode 100644
index 000000000000..85aa40e8afc9
--- /dev/null
+++ b/www/linux-firefox/Makefile
@@ -0,0 +1,77 @@
+# New ports collection makefile for: linux-phoenix
+# Date created: 2002-10-10
+# Whom: trevor
+#
+# $FreeBSD$
+#
+
+PORTNAME= phoenix
+PORTVERSION= 0.2
+CATEGORIES= www linux
+MASTER_SITES= ${MASTER_SITE_MOZILLA}
+MASTER_SITE_SUBDIR= phoenix/releases/${PORTVERSION}
+PKGNAMEPREFIX= linux-
+DISTNAME= phoenix-${PORTVERSION}-i686-pc-linux-gnu
+
+MAINTAINER= voisine@bytemobile.com
+
+RUN_DEPENDS= \
+ ${LINUXBASE}/usr/lib/libgtk-1.2.so.0:${PORTSDIR}/x11-toolkits/linux-gtk
+
+NO_BUILD= yes
+NO_FILTER_SHLIBS=yes
+ONLY_FOR_ARCHS= i386
+PKGMESSAGE= ${WRKDIR}/pkg-message
+PLIST= ${WRKDIR}/pkg-plist
+USE_LINUX= yes
+USE_XLIB= yes
+USE_X_PREFIX= yes
+WRKSRC= ${WRKDIR}/phoenix
+
+do-patch:
+ ${ECHO_CMD} "#!/bin/sh" > ${WRKDIR}/linkfarm
+ ${ECHO_CMD} \
+ "# Run this after installing Beonex, Mozilla or Netscape plugins." \
+ >>${WRKDIR}/linkfarm
+ ${ECHO_CMD} "cd ${PREFIX}/lib/linux-phoenix/plugins" \
+ >>${WRKDIR}/linkfarm
+.for ii in linux-beonex/plugins netscape-linux/plugins flash \
+ linux-mozilla/plugins linux-netscape*/plugins
+ ${ECHO_CMD} -n "${FIND} ${LOCALBASE}/lib/${ii}/*" \
+ >>${WRKDIR}/linkfarm
+ ${ECHO_CMD} " -maxdepth 1 -exec ${LN} -s {} \; 2>/dev/null" \
+ >>${WRKDIR}/linkfarm
+.endfor
+
+pre-install:
+ ${ECHO_CMD} bin/linux-phoenix > ${PLIST}
+ ${ECHO_CMD} "@unexec ${FIND} ${PREFIX}/lib/linux-phoenix/plugins \
+ -type l -exec ${RM} {} \;" >> ${PLIST}
+ cd ${WRKSRC} && ${FIND} -s * -type f -o -type l | \
+ ${SED} -e 's:^:lib/linux-phoenix/:' >> ${PLIST} \
+ && ${FIND} -d * -type d | \
+ ${SED} -e 's:^:@dirrm lib/linux-phoenix/:' >> ${PLIST}
+ ${ECHO_CMD} lib/linux-phoenix/linkfarm >> ${PLIST}
+ ${ECHO_CMD} @dirrm lib/linux-phoenix >> ${PLIST}
+ ${ECHO_CMD} "@exec ${PREFIX}/lib/linux-phoenix/linkfarm" >> ${PLIST}
+
+do-install:
+ ${MKDIR} ${PREFIX}/lib/linux-phoenix
+ ${CHMOD} 755 ${PREFIX}/lib/linux-phoenix
+ cd ${WRKSRC} && ${FIND} * | \
+ cpio -pdm -L -R ${LIBOWN}:${LIBGRP} ${PREFIX}/lib/linux-phoenix
+ ${LN} -s ${PREFIX}/lib/linux-phoenix/phoenix \
+ ${PREFIX}/bin/linux-phoenix
+ ${INSTALL_SCRIPT} ${WRKDIR}/linkfarm ${PREFIX}/lib/linux-phoenix
+
+post-install:
+ @${ECHO_CMD} \*\* After adding plugins to \(Linux\) Beonex,
+ @${ECHO_CMD} \*\* Mozilla or Netscape, run\
+ > ${PKGMESSAGE}
+ @${ECHO_CMD} \*\* ${PREFIX}/lib/linux-beonex/linkfarm >> ${PKGMESSAGE}
+ @${ECHO_CMD} \*\* as root to make them available to linux-phoenix. \
+ >> ${PKGMESSAGE}
+ @- ${SH} ${PREFIX}/lib/linux-phoenix/linkfarm || true
+ @ ${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>