Date: Wed, 23 Oct 2002 14:51:45 -0400 (EDT) From: Josh Elsasser <jre@vineyard.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/44419: New port: www/phoenix Message-ID: <20021023185145.97FD6147826@joshe.dyndns.org>
next in thread | raw e-mail | index | archive | help
>Number: 44419 >Category: ports >Synopsis: New port: www/phoenix >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Oct 23 12:00:03 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Josh Elsasser >Release: FreeBSD 4.7-RC i386 >Organization: >Environment: System: FreeBSD jade.nat.elsasser.org 4.7-RC FreeBSD 4.7-RC #0: Wed Sep 25 15:44:32 EDT 2002 joshe@jade.nat.elsasser.org:/usr/src/sys/compile/JADE i386 >Description: New port for mozilla-based phoenix web browser. Note that since the phoenix developers refuse to make source tarballs for releases available, I have had to make my own source tarball from mozilla cvs. Also, because I can't exactly replicate a given phoenix release, I've decided to use the date of the cvs snapshot as a version number, rather then pretending that it is the same as an official release. The source tarball is currently hosted on my box (http://elsasser.org:8080/phoenix/phoenix-20021022.tar.bz2), but I don't have the bandwidth or reliability to host it for real. I'm requesting that whomever commits this puts the source on freefall and sets MASTER_SITES and MASTER_SITE_SUBDIR in the Makefile. >How-To-Repeat: n/a >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # phoenix # phoenix/files # phoenix/files/patch-security::coreconf::FreeBSD.mk # phoenix/files/patch-modules::libpref::src::unix::unix.js # phoenix/files/patch-configure # phoenix/files/patch-browser::base::locale::browser.dtd # phoenix/files/patch-Makefile.in # phoenix/files/patch-browser::base::content::browser.xul # phoenix/files/patch-nsprpub::pr::src::pthreads::ptio.c # phoenix/files/patch-build_unix_run-mozilla.sh # phoenix/files/phoenix.sh # phoenix/files/patch-config::preprocessor.pl # phoenix/files/patch-config::preprocessor.pl~ # phoenix/pkg-comment # phoenix/pkg-descr # phoenix/distinfo # phoenix/pkg-message # phoenix/Makefile # echo c - phoenix mkdir -p phoenix > /dev/null 2>&1 echo c - phoenix/files mkdir -p phoenix/files > /dev/null 2>&1 echo x - phoenix/files/patch-security::coreconf::FreeBSD.mk sed 's/^X//' >phoenix/files/patch-security::coreconf::FreeBSD.mk << 'END-of-phoenix/files/patch-security::coreconf::FreeBSD.mk' X X$FreeBSD: ports/www/mozilla/files/patch-security::coreconf::FreeBSD.mk,v 1.4 2002/10/22 03:42:20 marcus Exp $ X X--- security/coreconf/FreeBSD.mk.orig Sat Mar 9 00:17:36 2002 X+++ security/coreconf/FreeBSD.mk Tue Mar 12 17:19:15 2002 X@@ -35,9 +35,7 @@ X X include $(CORE_DEPTH)/coreconf/UNIX.mk X X-DEFAULT_COMPILER = gcc X-CC = gcc X-CCC = g++ X+CCC = ${CXX} X RANLIB = ranlib X X ifeq ($(OS_TEST),alpha) X@@ -70,7 +68,7 @@ X DLL_SUFFIX = so.1.0 X endif X X-MKSHLIB = $(CC) $(DSO_LDOPTS) X+MKSHLIB = $(CC) $(DSO_LDOPTS) -o $@ X ifdef MAPFILE X # Add LD options to restrict exported symbols to those in the map file X endif END-of-phoenix/files/patch-security::coreconf::FreeBSD.mk echo x - phoenix/files/patch-modules::libpref::src::unix::unix.js sed 's/^X//' >phoenix/files/patch-modules::libpref::src::unix::unix.js << 'END-of-phoenix/files/patch-modules::libpref::src::unix::unix.js' X X$FreeBSD: ports/www/mozilla/files/patch-modules::libpref::src::unix::unix.js,v 1.3 2002/10/22 03:42:20 marcus Exp $ X X--- modules/libpref/src/unix/unix.js 2002/03/14 15:04:20 1.1 X+++ modules/libpref/src/unix/unix.js 2002/03/14 15:04:38 X@@ -227,7 +227,7 @@ X X // TrueType X pref("font.FreeType2.enable", false); X-pref("font.freetype2.shared-library", "libfreetype.so.6"); X+pref("font.freetype2.shared-library", "libfreetype.so.9"); X // if libfreetype was built without hinting compiled in X // it is best to leave hinting off X pref("font.FreeType2.autohinted", false); END-of-phoenix/files/patch-modules::libpref::src::unix::unix.js echo x - phoenix/files/patch-configure sed 's/^X//' >phoenix/files/patch-configure << 'END-of-phoenix/files/patch-configure' X--- configure.orig Fri Oct 18 15:39:24 2002 X+++ configure Tue Oct 22 14:50:20 2002 X@@ -7964,7 +7964,7 @@ X EOF X X if test "$ac_cv_have_dash_pthread" = "yes"; then X- _PTHREAD_LDFLAGS="" X+ _PTHREAD_LDFLAGS="-pthread" X else X _PTHREAD_LDFLAGS="-lc_r" X fi X@@ -10678,7 +10678,7 @@ X fi X MOC=$HOST_MOC X X- QT_CFLAGS="-I${QTDIR}${QTINCDIR} -DQT_GENUINE_STR" X+ QT_CFLAGS="-I${QTDIR}/include/X11/qt -DQT_GENUINE_STR" X QT_LIBS="-L/usr/X11R6/lib -L${QTDIR}/lib -lqt -lXext -lX11" X X MOZ_QT_LDFLAGS=$QT_LIBS X@@ -11434,7 +11434,7 @@ X X X X-MOZ_EXTENSIONS_DEFAULT=" cookie wallet content-packs xml-rpc xmlextras help pref transformiix venkman inspector irc universalchardet typeaheadfind" X+MOZ_EXTENSIONS_DEFAULT=" cookie wallet content-packs xml-rpc xmlextras help pref transformiix venkman inspector universalchardet typeaheadfind" X X MOZ_EXTENSIONS_ALL="$MOZ_EXTENSIONS_DEFAULT xmlterm access-builtin p3p interfaceinfo datetime finger cview" X END-of-phoenix/files/patch-configure echo x - phoenix/files/patch-browser::base::locale::browser.dtd sed 's/^X//' >phoenix/files/patch-browser::base::locale::browser.dtd << 'END-of-phoenix/files/patch-browser::base::locale::browser.dtd' X--- browser/base/locale/browser.dtd.orig Wed Oct 23 00:08:03 2002 X+++ browser/base/locale/browser.dtd Wed Oct 23 00:17:50 2002 X@@ -264,7 +264,7 @@ X #ifdef XP_WIN X <!ENTITY quitApplicationCmd.label "Exit"> X <!ENTITY quitApplicationCmd.accesskey "x"> X-#elifdef XP_UNIX X+#else X <!ENTITY goBackCmd.commandKey "["> X <!ENTITY goForwardCmd.commandKey "]"> X <!ENTITY quitApplicationCmd.label "Quit"> END-of-phoenix/files/patch-browser::base::locale::browser.dtd echo x - phoenix/files/patch-Makefile.in sed 's/^X//' >phoenix/files/patch-Makefile.in << 'END-of-phoenix/files/patch-Makefile.in' X--- Makefile.in.orig Thu May 30 20:39:07 2002 X+++ Makefile.in Wed Aug 28 13:55:32 2002 X@@ -70,8 +70,7 @@ X $(tier_0_dirs) \ X $(tier_1_dirs) \ X $(tier_2_dirs) \ X- $(tier_9_dirs) \ X- $(NULL) X+ $(tier_9_dirs) X X ifdef GC_LEAK_DETECTOR X DIRS += gc/boehm X@@ -90,7 +89,8 @@ X DIRS += $(tier_98_dirs) X endif X X-DIRS += $(tier_99_dirs) X+DIRS += $(tier_99_dirs) \ X+ $(NULL) X X # X # tier 0 - base build config dirs END-of-phoenix/files/patch-Makefile.in echo x - phoenix/files/patch-browser::base::content::browser.xul sed 's/^X//' >phoenix/files/patch-browser::base::content::browser.xul << 'END-of-phoenix/files/patch-browser::base::content::browser.xul' X--- browser/base/content/browser.xul.orig Wed Oct 23 00:14:51 2002 X+++ browser/base/content/browser.xul Wed Oct 23 00:15:02 2002 X@@ -213,7 +213,7 @@ X <key id="goHome" keycode="VK_HOME" command="Browser:Home" modifiers="alt"/> X X <key id="key_fullScreen" keycode="VK_F11" command="View:FullScreen"/> X-#elifdef XP_UNIX X+#else X <key id="key_selectAll" key="&selectAllCmd.key;" modifiers="alt"/> X <key id="goBackKb" keycode="VK_LEFT" command="Browser:Back" modifiers="alt"/> X <key id="goForwardKb" keycode="VK_RIGHT" command="Browser:Forward" modifiers="alt"/> END-of-phoenix/files/patch-browser::base::content::browser.xul echo x - phoenix/files/patch-nsprpub::pr::src::pthreads::ptio.c sed 's/^X//' >phoenix/files/patch-nsprpub::pr::src::pthreads::ptio.c << 'END-of-phoenix/files/patch-nsprpub::pr::src::pthreads::ptio.c' XIndex: nsprpub/pr/src/pthreads/ptio.c Xdiff -u nsprpub/pr/src/pthreads/ptio.c.orig nsprpub/pr/src/pthreads/ptio.c X--- nsprpub/pr/src/pthreads/ptio.c.orig Fri Apr 12 03:14:39 2002 X+++ nsprpub/pr/src/pthreads/ptio.c Tue Jul 30 18:52:11 2002 X@@ -3414,6 +3414,17 @@ X if (osfd == -1) pt_MapError(_PR_MD_MAP_SOCKET_ERROR, errno); X else X { X+#if (defined(_PR_INET6_PROBE) || defined(_PR_INET6)) && \ X+ defined(__FreeBSD__) && defined(IPV6_V6ONLY) X+ if (domain == PR_AF_INET6) { X+ int opt = 0; X+ if (setsockopt(osfd, IPPROTO_IPV6, IPV6_V6ONLY, X+ &opt, sizeof(opt))) { X+ close(osfd); X+ return NULL; X+ } X+ } X+#endif X fd = pt_SetMethods(osfd, ftype, PR_FALSE, PR_FALSE); X if (fd == NULL) close(osfd); X } END-of-phoenix/files/patch-nsprpub::pr::src::pthreads::ptio.c echo x - phoenix/files/patch-build_unix_run-mozilla.sh sed 's/^X//' >phoenix/files/patch-build_unix_run-mozilla.sh << 'END-of-phoenix/files/patch-build_unix_run-mozilla.sh' X--- build/unix/run-mozilla.sh.orig Thu Oct 17 00:00:21 2002 X+++ build/unix/run-mozilla.sh Thu Oct 17 00:01:24 2002 X@@ -392,7 +392,7 @@ X export XSUNTRANSPORT XSUNSMESIZE X fi X # Font path for Xft X-FONTCONFIG_PATH="/etc/fonts:${MOZILLA_FIVE_HOME}/res/Xft" X+FONTCONFIG_PATH="%%PREFIX%%/etc/fonts:${MOZILLA_FIVE_HOME}/res/Xft" X export FONTCONFIG_PATH X X if [ "$moz_debug" -eq 1 ] X@@ -435,6 +435,9 @@ X # X export MOZILLA_FIVE_HOME LD_LIBRARY_PATH X export SHLIB_PATH LIBPATH LIBRARY_PATH ADDON_PATH DYLD_LIBRARY_PATH X+ X+MOZ_PLUGIN_PATH=%%PREFIX%%/lib/browser_plugins X+export MOZ_PLUGIN_PATH X X if [ $moz_debug -eq 1 ] X then END-of-phoenix/files/patch-build_unix_run-mozilla.sh echo x - phoenix/files/phoenix.sh sed 's/^X//' >phoenix/files/phoenix.sh << 'END-of-phoenix/files/phoenix.sh' X#!/bin/sh X# X# $FreeBSD$ X Xcd @PREFIX@/lib/phoenix Xexec ./phoenix "$@" END-of-phoenix/files/phoenix.sh echo x - phoenix/files/patch-config::preprocessor.pl sed 's/^X//' >phoenix/files/patch-config::preprocessor.pl << 'END-of-phoenix/files/patch-config::preprocessor.pl' X--- config/preprocessor.pl.orig Mon Oct 14 00:12:34 2002 X+++ config/preprocessor.pl Wed Oct 23 09:42:18 2002 X@@ -71,6 +71,7 @@ X ######################################################################## X X package main; X+use lib '%%LOCALBASE%%/lib/perl5/site_perl/%%PERLVER%%'; X use File::Spec 0.8; X use File::Spec::Unix; # on all platforms, because the #include syntax is unix-based X END-of-phoenix/files/patch-config::preprocessor.pl echo x - phoenix/files/patch-config::preprocessor.pl~ sed 's/^X//' >phoenix/files/patch-config::preprocessor.pl~ << 'END-of-phoenix/files/patch-config::preprocessor.pl~' X--- config/preprocessor.pl.orig Mon Oct 14 00:12:34 2002 X+++ config/preprocessor.pl Wed Oct 23 09:42:18 2002 X@@ -71,6 +71,7 @@ X ######################################################################## X X package main; X+use lib '%%LOCALBASE%%/lib/perl5/site_perl/%%PERLVER%%' X use File::Spec 0.8; X use File::Spec::Unix; # on all platforms, because the #include syntax is unix-based X END-of-phoenix/files/patch-config::preprocessor.pl~ echo x - phoenix/pkg-comment sed 's/^X//' >phoenix/pkg-comment << 'END-of-phoenix/pkg-comment' XWeb browser branched from Mozilla END-of-phoenix/pkg-comment echo x - phoenix/pkg-descr sed 's/^X//' >phoenix/pkg-descr << 'END-of-phoenix/pkg-descr' XPhoenix is a redesign of the Mozilla browser component, similar to XGaleon, K-Meleon and Chimera, but written using the XUL user interface Xlanguage and designed to be cross-platform. X XWWW: http://mozilla.org/projects/phoenix/ END-of-phoenix/pkg-descr echo x - phoenix/distinfo sed 's/^X//' >phoenix/distinfo << 'END-of-phoenix/distinfo' XMD5 (phoenix-20021022.tar.bz2) = 67ed008565e46dc2fb844849b1b22c5d END-of-phoenix/distinfo echo x - phoenix/pkg-message sed 's/^X//' >phoenix/pkg-message << 'END-of-phoenix/pkg-message' X### XA symlink has been created for the Java plugin. However, in order for Java Xto function, you must first install the java/jdk13 port. If you do not Xdo this, you will see the following error when starting Phoenix: X XLoadPlugin: failed to initialize shared library /usr/local/jdk1.3.1/jre/plugin/i386/ns600/libjavaplugin_oji.so [Cannot open "/usr/local/jdk1.3.1/jre/plugin/i386/ns600/libjavaplugin_oji.so"] X XIf you do not want Java support, you can safely ignore this message. X### END-of-phoenix/pkg-message echo x - phoenix/Makefile sed 's/^X//' >phoenix/Makefile << 'END-of-phoenix/Makefile' X# New ports collection makefile for: phoenix X# Date created: 22 October 2002 X# Whom: Josh Elsasser <jre@vineyard.net> X# X# $FreeBSD$ X# X XPORTNAME= phoenix XPORTVERSION= 20021022 XCATEGORIES= www XMASTER_SITES= http://elsasser.org:8080/phoenix/ X XMAINTAINER= jre@vineyard.net X XBUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip \ X freetype-config:${PORTSDIR}/print/freetype2 \ X ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec XLIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \ X png.5:${PORTSDIR}/graphics/png \ X mng.1:${PORTSDIR}/graphics/libmng \ X freetype.9:${PORTSDIR}/print/freetype2 \ X IDL.2:${PORTSDIR}/devel/ORBit X XEXTRACT_AFTER_ARGS= | ${TAR} -xf - --exclude */CVS/* \ X --exclude */macbuild/*\ X --exclude */package/* \ X --exclude .cvsignore \ X --exclude makefile.win \ X --exclude MANIFEST X XUSE_BZIP2= yes XUSE_X_PREFIX= yes XUSE_PERL5= yes XUSE_GMAKE= yes XUSE_GTK= yes XUSE_REINPLACE= yes XGNU_CONFIGURE= yes XCONFIGURE_ARGS= --with-pthreads \ X --with-system-jpeg=${LOCALBASE} \ X --with-system-zlib \ X --with-system-png=${LOCALBASE} \ X --with-system-mng=${LOCALBASE} \ X --enable-default-toolkit=gtk \ X --disable-mailnews \ X --disable-ldap \ X --enable-crypto \ X --enable-xinerama \ X --disable-composer \ X --enable-svg \ X --disable-tests \ X --disable-debug \ X --disable-optimize \ X --enable-strip \ X --disable-xterm-updates \ X --enable-default-mozilla-five-home=${PREFIX}/lib/phoenix \ X --disable-pedantic \ X --disable-cpp-rtti \ X --disable-cpp-exceptions \ X --disable-auto-deps \ X --disable-md X XPLIST= ${WRKSRC}/pkg-plist XCONFIGURE_ENV= MOZ_INTERNAL_LIBART_LGPL=1 \ X MOZ_PHOENIX=1 X X.include <bsd.port.pre.mk> X XMAKE_ENV= LD_LIBRARY_PATH=${WRKSRC}/dist/bin \ X MOZ_INTERNAL_LIBART_LGPL=1 \ X MOZ_PHOENIX=1 XMAKE_ARGS= MOZ_PHOENIX=1 XALL_TARGET= default X X.if exists(${LOCALBASE}/include/freetype/freetype.h) XBROKEN="You must upgrade your freetype port to 1.3.1_2 or higher before installing Phoenix. If you have 1.3.1_2 installed, please remove ${LOCALBASE}/include/freetype, then build Phoenix" X.endif X Xpost-patch: X @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \ X ${WRKSRC}/build/unix/run-mozilla.sh X @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ X -e 's|%%PERLVER%%|${PERL_VER}|g' \ X ${WRKSRC}/config/preprocessor.pl X Xpost-build: X ${SED} -e "s;@PREFIX@;${PREFIX};g" \ X ${FILESDIR}/phoenix.sh >${WRKSRC}/phoenix X (cd ${WRKSRC}/dist/bin; \ X ${SETENV} LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. ./regxpcom; \ X ${SETENV} LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. ./regchrome; \ X ${TOUCH} ./chrome/user-skins.rdf ./chrome/user-locales.rdf) X ${FIND} ${WRKSRC}/dist/bin -type d | /usr/bin/sort -r | \ X ${XARGS} ${RMDIR} 2> /dev/null || ${TRUE} X Xpre-install: X ${ECHO_CMD} bin/phoenix > ${PLIST} X ${TEST} -e ${PREFIX}/lib/browser_plugins/libjavaplugin_oji.so || \ X ${ECHO_CMD} lib/browser_plugins/libjavaplugin_oji.so >> ${PLIST} X cd ${WRKSRC}/dist/bin && ${FIND} -s * -type f -o -type l | \ X ${SED} -e 's:^:lib/phoenix/:' >> ${PLIST} \ X && ${FIND} -d * -type d | \ X ${SED} -e 's:^:@dirrm lib/phoenix/:' >> ${PLIST} X ${ECHO_CMD} @dirrm lib/phoenix >> ${PLIST} X Xdo-install: X ${MKDIR} ${PREFIX}/lib/phoenix X ${CHMOD} 755 ${PREFIX}/lib/phoenix X cd ${WRKSRC}/dist/bin && ${FIND} . | \ X cpio -pdm -L -R ${LIBOWN}:${LIBGRP} ${PREFIX}/lib/phoenix X ${INSTALL_SCRIPT} ${WRKSRC}/phoenix ${PREFIX}/bin X ${TEST} -d ${PREFIX}/lib/browser_plugins || \ X ${MKDIR} ${PREFIX}/lib/browser_plugins X ${TEST} -L ${PREFIX}/lib/browser_plugins/libjavaplugin_oji.so || \ X ${LN} -sf ${LOCALBASE}/jdk1.3.1/jre/plugin/i386/ns600/libjavaplugin_oji.so \ X ${PREFIX}/lib/browser_plugins/libjavaplugin_oji.so X Xpost-install: X @${CAT} ${PKGMESSAGE} X X.include <bsd.port.post.mk> END-of-phoenix/Makefile exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021023185145.97FD6147826>