Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

Compiling Phoenix from source

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
193 posts
  • Page 1 of 8
    • Jump to page:
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 8
  • Next
Author
Message
vers_iq
Apprentice
Apprentice
Posts: 264
Joined: Sat May 18, 2002 8:41 pm

Compiling Phoenix from source

  • Quote

Post by vers_iq » Sat Nov 02, 2002 10:56 pm

Ok guys, i cant help it. I just compiled my own phoenix web browser, and yes i know there are threads about phoenix. The reason i compile my own is because the pre-compiled 0.4 release doesnt run as fast as i expected and fonts look ugly. this screenshot is the result and it starts very fast barely reach a second (im not kidding).

If any of you would like to compile your own these are some tips:
first get the latest "nightly" mozilla source. Then extract it to wherever u like i.e /usr/src and will give a dir /usr/src/mozilla from /usr/src run

Code: Select all

cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot checkout mozilla/browser mozilla/toolkit
. Now enter the source dir and create .mozconfig file and add these basic lines in it:

Code: Select all

 export MOZ_PHOENIX=1
mk_add_options MOZ_PHOENIX=1
ac_add_options --enable-crypto
ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --disable-mailnews
ac_add_options --disable-composer
but i have some extended one

Code: Select all

export MOZ_PHOENIX=1
mk_add_options MOZ_PHOENIX=1
ac_add_options --disable-composer
ac_add_options --with-x
ac_add_options --with-system-jpeg
ac_add_options --with-system-zlib
ac_add_options --with-system-png
ac_add_options --with-system-mng
ac_add_options --disable-mailnews
ac_add_options --enable-xft
ac_add_options --disable-pedantic
ac_add_options --disable-svg
ac_add_options --enable-mathml
ac_add_options --without-system-nspr
ac_add_options --enable-nspr-autoconf
ac_add_options --disable-ipv6
ac_add_options --enable-xsl
ac_add_options --enable-crypto
ac_add_options --enable-xinerama=no
ac_add_options --with-java-supplement
ac_add_options --with-pthreads
ac_add_options --with-default-mozilla-five-home=/usr/lib/phoenix
ac_add_options --with-user-appdir=.phoenix
ac_add_options --disable-jsd
ac_add_options --disable-accessibility
ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --disable-dtd-debug
ac_add_options --disable-logging
ac_add_options --enable-reorder
ac_add_options --enable-strip
ac_add_options --enable-strip-libs
ac_add_options --enable-cpp-rtti
ac_add_options --enable-xterm-updates
ac_add_options --enable-toolkit-gtk
ac_add_options --enable-default-toolkit=gtk
ac_add_options --disable-toolkit-qt
ac_add_options --disable-toolkit-xlib
ac_add_options --disable-toolkit-gtk2
ac_add_options --disable-ldap
ac_add_options --enable-old-abi-compat-wrappers
Then all you have to do is CFLAGS=<whats yours> CXXFLAGS=<whats yours> ./configure --prefix=/usr/lib/phoenix
and make.

btw you can create a simple bash script for this: this is mine

Code: Select all

#!/bin/bash
cvs up -Pd browser and toolkit
#cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot checkout mozilla/browser mozilla/toolkit

export S=/usr/src/use/mozilla
export MOZ_PHOENIX=1
export MOZ_CALENDAR=0
export MOZ_ENABLE_XFT=1

export CFLAGS="-Os -march=pentium3 -pipe -s -fforce-addr"
export CXXFLAGS="-Os -march=pentium3 -pipe -s -fforce-addr -Wno-deprecated"

./configure --prefix=/usr/lib/phoenix

make -j2

#cd $S/security/coreconf
#cp headers.mk headers.mk.orig
#echo 'INCLUDES += -I$(DIST)/include/nspr -I$(DIST)/include/dbm'        >>headers.mk
#make -j2


#cd $S/security/nss
#       make -j2 moz_import
#       make -j2

#cd ${S}/extensions/ipc
#       make -j2

#cd ${S}/extensions/enigmail
#       make -j2
ignore the lines with # mark, and make sure u drop -fomit-frame-pointer for your cflags, you might notice im using -Os flag, looks like this flag create a smaller binary and it also loads quite fast.

Oh i almost forgot, u might notice from the screen shot under preferences, the fonts are named quite different way, this is because this source uses xft2 so u need to unmask xft and install it first and yeah it uses xft2 and all the fonts are AA'ed by default, u dont have to mess with unix.js even

Code: Select all

pref("font.FreeType2.enable", true/false);
is set as false.

FAQ:
Q:can i use gtk2 widget?
A:U can try, i tried this prior to gtk1 but it failed, i think it needs gtk-2.1 but i dont want to break my gtk2 yet. u might have to chance these lines in .mozconfig

Code: Select all

ac_add_options --enable-toolkit-gtk2
ac_add_options --enable-default-toolkit=gtk2
ac_add_options --disable-toolkit-gtk
Q:How long does it take to compile?
A:How long does mozilla take? almost the same, unless u add some extensions or something else.

Q:Phoenix doesnt recognise my mozilla plugin.
A:yes it wont find them if all the plugins are installed/linked to /usr/lib/mozilla/plugins or $MOZILLA_FIVE_HOME/plugins generally. But it will find any plugin in ~/.mozilla/plugins and u can also install/link to /usr/lib/phoenix/lib/mozilla-1.2b/plugins. btw you wont be needing mozilla after this. :)

ok that's it for now, sorry for my bad presentation.

Edit:::

Ebuild;

Code: Select all

# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later

filter-flags "-fomit-frame-pointer"
inherit flag-o-matic gcc makeedit

MY_PN=${PN/_}
S=${WORKDIR}/mozilla
DESCRIPTION="The Phoenix Web Browser"
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla/nightly/latest/mozilla-source.tar.gz"
HOMEPAGE="http://www.mozilla.org/projects/phoenix/"
KEYWORDS="~x86 ~ppc ~sparc ~sparc64"
SLOT="0"
LICENSE="MPL-1.1 | NPL-1.1"

RDEPEND=">=x11-base/xfree-4.2.0-r11
   >=gnome-base/ORBit-0.5.10-r1
   >=dev-libs/libIDL-0.8.0
   >=sys-libs/zlib-1.1.4
   >=media-libs/jpeg-6b
   >=media-libs/libpng-1.2.1
   >=sys-apps/portage-2.0.14
   >=x11-libs/xft-2.0
   dev-util/cvs
   dev-libs/expat
   app-arch/zip
   app-arch/unzip
  ( gtk2? >=x11-libs/gtk+-2.0.9 :
          =x11-libs/gtk+-1.2* )
  ( gtk2? >=dev-libs/glib-2.0.6 :
          =dev-libs/glib-1.2* )
  !gtk2? ( >=media-libs/fontconfig-2.0-r3 )
  java?  ( virtual/jre )"

DEPEND="${RDEPEND}
   virtual/x11
   dev-util/pkgconfig
   sys-devel/perl
   java? ( >=dev-java/java-config-0.2.0 )"

# needed by src_compile() and src_install()
export MOZ_PHOENIX=1
export MOZ_CALENDAR=0
export MOZ_ENABLE_XFT=1
if [ -n "`use svg`" ] ; then
      export MOZ_INTERNAL_LIBART_LGPL=1
fi

src_unpack() {

   unpack ${A}
   cd ${S}/../
   cvs -d:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot checkout mozilla/browser mozilla/toolkit
   cd ${S}
   chown -R root.root *
}

src_compile() {
   local myconf="--disable-composer \
      --disable-mailnews \
      --disable-calender \
      --enable-extension=default,-irc,-venkman,-inspector,-wallet \
      --disable-ldap \
     
      --with-x \
      --with-system-zlib \
      --disable-short-wchar \
      --without-mng \
     
      --enable-xft \
      --disable-pedantic \
      --enable-mathml \
      --without-system-nspr \
      --enable-nspr-autoconf \
      --enable-xsl \
      --enable-crypto \
      --enable-xinerama=no \
      --with-java-supplement \
      --with-pthreads \
     
      --with-default-mozilla-five-home=/usr/lib/phoenix \
      --with-user-appdir=.phoenix \
      --disable-jsd \
     
      --disable-accessibility \
      --disable-tests \
      --disable-debug \
      --disable-dtd-debug \
      --disable-reorder \
      --enable-strip \
      --enable-strip-libs \
      --enable-cpp-rtti \
      --disable-xterm-updates"


   if [ -n "`use gtk2`" ] ; then
        myconf="${myconf} --enable-toolkit-gtk2 \
                          --enable-default-toolkit=gtk2 \
                          --disable-toolkit-qt \
                          --disable-toolkit-xlib \
                          --disable-toolkit-gtk \
                          --enable-logging"
   else
        myconf="${myconf} --enable-toolkit-gtk \
                          --enable-default-toolkit=gtk \
                          --disable-toolkit-qt \
                          --disable-toolkit-xlib \
                          --disable-toolkit-gtk2 \
                          --disable-logging"
   fi

   if [ -n "`use ipv6`" ] ; then
        myconf="${myconf} --enable-ipv6"
    fi

    if [ "${ARCH}" = "x86" ] ; then
      myconf="${myconf} --enable-old-abi-compat-wrappers"
    fi

   if [ "${ARCH}" = "sparc" ] ; then
      myconf="${myconf} --enable-js-ultrasparc"
   fi

   if [ -n "`use svg`" ] ; then
      myconf="${myconf} --enable-svg"
   fi
  
   export MAKE="emake"
   export CXXFLAGS="${CXXFLAGS} -Wno-deprecated"

    cd ${S}
    einfo "Configuring Mozilla..."
   ./configure --prefix=/usr/lib/phoenix \
      ${myconf} || die

   edit_makefiles
   emake MOZ_PHOENIX=1 || die
}

src_install() {

     dodir /usr/lib/phoenix
     cp -RL --no-preserve=links ${S}/dist/bin/* ${D}/usr/lib/phoenix
     

     touch ${S}/phoenix
     echo "#!/bin/bash" >>${S}/phoenix
     echo "MOZILLA_FIVE_HOME=/usr/lib/phoenix /usr/lib/phoenix/phoenix" > ${S}/phoenix
     chmod +x ${S}/phoenix
     dobin ${S}/phoenix

     dodir /usr/lib/nsbrowser/plugins
     mv ${D}/usr/lib/phoenix/plugins /${D}usr/lib/phoenix/plugins.temp
     dosym ../nsbrowser/plugins /usr/lib/phoenix/
     mv ${D}/usr/lib/phoenix/plugins.temp/* ${D}/usr/lib/phoenix/plugins/
     rmdir ${D}/usr/lib/phoenix/plugins.temp
}

pkg_preinst() {
     [ -d /usr/lib/phoenix/plugins ] && rm -r /usr/lib/phoenix/plugins
} 
NOTE: THE CVS PART IN THIS EXTIRE PROCESS IS IMPORTANT TO MAKE SURE WE GET THE SOURCE OF PHOENIX COMPONENT SINCE IT IS NOT INCLUDED IN MOZILLA SOURCE.
Last edited by vers_iq on Sat Jan 04, 2003 2:03 am, edited 3 times in total.
Top
bonto
n00b
n00b
User avatar
Posts: 49
Joined: Fri Aug 30, 2002 11:31 pm

DUDE!

  • Quote

Post by bonto » Sun Nov 03, 2002 3:23 am

dude! im gonna try this asap, u are my savior, i love phoenix but have been to lazy to figure out how to do it up right, u are awesome!...if this doesnt work however this post will be deleted asap :wink:
Never sneeze on an angry rhino...
Top
ronmon
Veteran
Veteran
User avatar
Posts: 1043
Joined: Mon Apr 15, 2002 12:53 pm
Location: Key West, FL

  • Quote

Post by ronmon » Sun Nov 03, 2002 5:14 am

Jammin'! It's building right now. I'll let you know how gtk2 works :)
Top
ronmon
Veteran
Veteran
User avatar
Posts: 1043
Joined: Mon Apr 15, 2002 12:53 pm
Location: Key West, FL

  • Quote

Post by ronmon » Sun Nov 03, 2002 6:08 am

Oh boy is it fast and pretty. It is not picking up my gtk2 theme, but the new fonts are working for both menu text and page content.

I used all your extra options and enabled gtk2 (I have gtk+-2.1.1). Just as an added note, I had to run 'make install' after building it and then set:

Code: Select all

export MOZILLA_FIVE_HOME=/usr/lib/phoenix/lib/mozilla-1.2b
Nice job!
Top
vers_iq
Apprentice
Apprentice
Posts: 264
Joined: Sat May 18, 2002 8:41 pm

  • Quote

Post by vers_iq » Sun Nov 03, 2002 12:08 pm

ronmon wrote:Oh boy is it fast and pretty. It is not picking up my gtk2 theme, but the new fonts are working for both menu text and page content.

I used all your extra options and enabled gtk2 (I have gtk+-2.1.1). Just as an added note, I had to run 'make install' after building it and then set:

Code: Select all

export MOZILLA_FIVE_HOME=/usr/lib/phoenix/lib/mozilla-1.2b
Nice job!
oh yeah i forgot about make install, and besides

Code: Select all

export MOZILLA_FIVE_HOME=/usr/lib/phoenix/lib/mozilla-1.2b
you can also use

Code: Select all

unset MOZILLA_FIVE_HOME
which im using now.
Top
Wedge_
Advocate
Advocate
User avatar
Posts: 3614
Joined: Thu Aug 08, 2002 4:00 pm
Location: Scotland

  • Quote

Post by Wedge_ » Sun Nov 03, 2002 12:45 pm

The screenshot looks really nice. I'll try it out as soon as my poor 56k finishes with the mozilla source :)
Top
grandpajive
n00b
n00b
User avatar
Posts: 46
Joined: Mon Jun 17, 2002 12:37 pm

  • Quote

Post by grandpajive » Sun Nov 03, 2002 1:29 pm

I actually used this whole thing to build mozilla 1.2 beta+ .. worked out quite well.

Actually had to fix one or two things with file locations [basically dump all of $mozilla/bin and $mozilla/lib into the $mozilla dir] and fix up the /usr/bin/mozilla file to point at /usr/bin/mozilla-new

Thank you so much for the instructions! I've been hoping for a gentoo ebuild of moz 1.2 with xft and now it works.

also, my fonts show up exactly like your screenshot. So it is using xft. woot. Didn't build with gtk2 tho as things get weird with mozilla whenever I do.

Anyways, thanks again.
-gj
Top
vers_iq
Apprentice
Apprentice
Posts: 264
Joined: Sat May 18, 2002 8:41 pm

  • Quote

Post by vers_iq » Sun Nov 03, 2002 1:50 pm

Anybody have a nice and beautiful phoenix icon/s. im currently using the one as shown in the screenshot the last icon on the right on my e17 iconbar.

thank you.
Top
rlyacht
Apprentice
Apprentice
User avatar
Posts: 170
Joined: Wed Apr 17, 2002 1:13 am

  • Quote

Post by rlyacht » Sun Nov 03, 2002 3:46 pm

Ummm ... this is just what I've been looking for, but it doesn't work for me.
I cd'd to /usr/local/src, then ran the cvs command.

The download was suspiciously fast, making me wonder if I got everything. To add to this, I can't find configure anywhere under /usr/local/src/mozilla. Also, where exactly does .mozconfig go? In /usr/src/mozilla?
Top
Wedge_
Advocate
Advocate
User avatar
Posts: 3614
Joined: Thu Aug 08, 2002 4:00 pm
Location: Scotland

  • Quote

Post by Wedge_ » Sun Nov 03, 2002 4:21 pm

Wow, you weren't kidding, it starts really, really quickly, and the fonts look great. Thanks :D

rylacht, did you download and extract the latest nightly tar.bz2 before you tried the CVS command? I did, and everything worked fine. The .mozconfig file should go in /usr/local/src/mozilla.
Top
rlyacht
Apprentice
Apprentice
User avatar
Posts: 170
Joined: Wed Apr 17, 2002 1:13 am

  • Quote

Post by rlyacht » Sun Nov 03, 2002 4:27 pm

Thanks, I missed that step :-) I didn't read the directions carefully enough!!
Top
nempo
Guru
Guru
User avatar
Posts: 360
Joined: Tue Apr 16, 2002 8:43 pm
Location: Linkoping, Sweden
Contact:
Contact nempo
Website

  • Quote

Post by nempo » Sun Nov 03, 2002 4:34 pm

Is it just me who hates mozilla/phoenix installing themself in /usr/lib/ ?
Top
_SkeLeToN_
Guru
Guru
User avatar
Posts: 506
Joined: Thu Sep 12, 2002 3:25 pm
Location: Montreal,Canada

  • Quote

Post by _SkeLeToN_ » Sun Nov 03, 2002 5:05 pm

Look very nice. I have one question. I know mozilla behave really bad with optimization flag higher than I686 -O2 -pipe does phoenix react the same or I can use my optimization flag I use right now ?
Top
bonto
n00b
n00b
User avatar
Posts: 49
Joined: Fri Aug 30, 2002 11:31 pm

heh

  • Quote

Post by bonto » Sun Nov 03, 2002 5:07 pm

rlyacht wrote:Thanks, I missed that step :-) I didn't read the directions carefully enough!!
I'm glasd u asked that quesiton I had the same problem but was to embarassed to ask, so thanx! :D
Never sneeze on an angry rhino...
Top
vers_iq
Apprentice
Apprentice
Posts: 264
Joined: Sat May 18, 2002 8:41 pm

  • Quote

Post by vers_iq » Sun Nov 03, 2002 5:55 pm

_SkeLeToN_ wrote:Look very nice. I have one question. I know mozilla behave really bad with optimization flag higher than I686 -O2 -pipe does phoenix react the same or I can use my optimization flag I use right now ?
as u can see from my compiling steps, i use

Code: Select all

CFLAGS="-Os -march=pentium3 -pipe -s -fforce-addr" 
and

Code: Select all

CXXFLAGS="-Os -march=pentium3 -pipe -s -fforce-addr -Wno-deprecated"
i use to use -O3 before this but find -Os is more promising, (-O3 is more optimized than -Os and -Os is basically -O2 with extra flags to create smaller binaries) notice i dropped -fomit-frame-pointer cause this flag may cause segfault. i have no idea about other -march=? but pentium3 works just fine.
Top
nempo
Guru
Guru
User avatar
Posts: 360
Joined: Tue Apr 16, 2002 8:43 pm
Location: Linkoping, Sweden
Contact:
Contact nempo
Website

  • Quote

Post by nempo » Sun Nov 03, 2002 6:31 pm

For you lazy people out there, here's an ebuild.
Its just a hack of dcstimm:s ebuild.

Code: Select all

# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later

inherit makeedit
inherit flag-o-matic

EMVER="0.65.2"
IPCVER="1.0.0.1"

MY_PV1=${PV/_}
MY_PV2=${MY_PV1/eta}
S=${WORKDIR}/mozilla
DESCRIPTION="The Phoenix Web Browser"
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla/nightly/latest/mozilla-source.tar.bz2"
HOMEPAGE="http://www.mozilla.org/projects/phoenix/"

KEYWORDS="x86 ppc sparc sparc64"
SLOT="0"
LICENSE="MPL-1.1 | NPL-1.1"

RDEPEND=">=x11-base/xfree-4.2.0-r11
	>=gnome-base/ORBit-0.5.10-r1
	>=sys-libs/zlib-1.1.4
	>=media-libs/jpeg-6b
	>=media-libs/libmng-1.0.0
	>=media-libs/libpng-1.2.1
	>=sys-apps/portage-2.0.36
	>=x11-libs/xft-2.0
	dev-util/cvs
	dev-libs/expat
	app-arch/zip
	app-arch/unzip
	( gtk2? >=x11-libs/gtk+-2.0.5 :
	  =x11-libs/gtk+-1.2* )
	( gtk2? >=dev-libs/glib-2.0.4 :
	  =dev-libs/glib-1.2* )
	java?  ( virtual/jre )"

DEPEND="${RDEPEND}
	virtual/x11
	sys-devel/perl
	java? ( >=dev-java/java-config-0.2.0 )"

# needed by src_compile() and src_install()
export MOZ_PHOENIX=1
export MOZ_CALENDAR=0
export MOZ_ENABLE_XFT=1 

src_unpack() {
	
	unpack ${A}

	cd ${S}/../

    echo
	einfo
	einfo "*****************************************************************"
	einfo "* This will log you in to the mozilla cvs, just                 *"
	einfo "* press enter to proceed                                        *"
	einfo "*****************************************************************"
	einfo

	cvs -d:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot checkout mozilla/browser mozilla/toolkit

	cd ${S}

	# Fix a ownership porblem
	chown -R root.root *
}

src_compile() {
	local myconf=""

	#This should enable parallel builds, I hope
	export MAKE="emake"
		
	# Crashes on start when compiled with -fomit-frame-pointer
	CFLAGS="${CFLAGS/-fomit-frame-pointer}"
	CXXFLAGS="${CXXFLAGS/-fomit-frame-pointer} -Wno-deprecated"

	./configure --prefix=/usr/share/phoenix \
		--disable-composer \
		--with-x \
		--with-system-jpeg \
		--with-system-zlib \
		--with-system-png \
		--with-system-mng \
		--disable-mailnews \
		--enable-xft \
		--disable-pedantic \
		--disable-svg \
		--enable-mathml \
		--without-system-nspr \
		--enable-nspr-autoconf \
		--disable-ipv6 \
		--enable-xsl \
		--enable-crypto \
		--enable-xinerama=no \
		--with-java-supplement \
		--with-pthreads \
		--with-default-mozilla-five-home=/usr/share/phoenix \
		--with-user-appdir=.phoenix \
		--disable-jsd \
		--disable-accessibility \
		--disable-tests \
		--disable-debug \
		--disable-dtd-debug \
		--disable-logging \
		--enable-reorder \
		--enable-strip \
		--enable-strip-libs \
		--enable-cpp-rtti \
		--enable-xterm-updates \
		--enable-toolkit-gtk \
		--enable-default-toolkit=gtk \
		--disable-toolkit-qt \
		--disable-toolkit-xlib \
		--disable-toolkit-gtk2 \
		--disable-ldap \
		--enable-old-abi-compat-wrappers  \
		${myconf} || die

	edit_makefiles
	make MOZ_PHOENIX=1 || die
}

src_install() {
		make DESTDIR=${D} install || die
}

pkg_postinst() {
    echo
	einfo
	einfo "*****************************************************************"
	einfo "* For phoenix to work you need to set the MOZILLA_FIVE_HOME     *"
	einfo "* variable, I would make a simple simple script to launch it    *"
	einfo "* for example:                                                  *"
	einfo "* #!/bin/bash                                                   *"
	einfo "* export MOZILLA_FIVE_HOME=/usr/share/phoenix/lib/mozilla-1.2b  *"
	einfo "* /usr/share/phoenix/bin/phoenix                                *"
	einfo "*****************************************************************"
	einfo
}
Last edited by nempo on Sun Nov 03, 2002 7:21 pm, edited 1 time in total.
Top
vers_iq
Apprentice
Apprentice
Posts: 264
Joined: Sat May 18, 2002 8:41 pm

  • Quote

Post by vers_iq » Sun Nov 03, 2002 6:59 pm

That's great man, i was about to create one actually, but i use this for my guide. hmm i think u missed a thing out there, another line for RDEPEND

Code: Select all

RDEPEND=">=x11-libs/xft-2.0"
and yet xft is still masked. :?
Top
_SkeLeToN_
Guru
Guru
User avatar
Posts: 506
Joined: Thu Sep 12, 2002 3:25 pm
Location: Montreal,Canada

  • Quote

Post by _SkeLeToN_ » Sun Nov 03, 2002 7:13 pm

Ok, i've compile phoenix and now its run faster than the binary from the webpage. I found that freetype2 have better font than XFT. It's my own opinion ... If anyone wanna see my screenshot pm because I've no where to host my picture.

[/img]
Top
nempo
Guru
Guru
User avatar
Posts: 360
Joined: Tue Apr 16, 2002 8:43 pm
Location: Linkoping, Sweden
Contact:
Contact nempo
Website

  • Quote

Post by nempo » Sun Nov 03, 2002 7:22 pm

vers_iq wrote:That's great man, i was about to create one actually, but i use this for my guide. hmm i think u missed a thing out there, another line for RDEPEND

Code: Select all

RDEPEND=">=x11-libs/xft-2.0"
and yet xft is still masked. :?
fixed
Top
vers_iq
Apprentice
Apprentice
Posts: 264
Joined: Sat May 18, 2002 8:41 pm

  • Quote

Post by vers_iq » Sun Nov 03, 2002 8:04 pm

just a derivation from nempo's ebuild, a bit more flexible i hope,

Code: Select all

# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later

inherit makeedit
inherit flag-o-matic

EMVER="0.65.2"
IPCVER="1.0.0.1"

MY_PV1=${PV/_}
MY_PV2=${MY_PV1/eta}
S=${WORKDIR}/mozilla
DESCRIPTION="The Phoenix Web Browser"
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla/nightly/latest/mozilla-source.tar.bz2"
HOMEPAGE="http://www.mozilla.org/projects/phoenix/"

KEYWORDS="x86 ppc sparc sparc64"
SLOT="0"
LICENSE="MPL-1.1 | NPL-1.1"

RDEPEND=">=x11-base/xfree-4.2.0-r11
   >=gnome-base/ORBit-0.5.10-r1
   >=x11-libs/xft-2.0
   >=sys-libs/zlib-1.1.4
   >=media-libs/jpeg-6b
   >=media-libs/libmng-1.0.0
   >=media-libs/libpng-1.2.1
   >=sys-apps/portage-2.0.36
   dev-util/cvs
   dev-libs/expat
   app-arch/zip
   app-arch/unzip
   ( gtk2? >=x11-libs/gtk+-2.1.1 :
     =x11-libs/gtk+-1.2* )
   java?  ( virtual/jre )"

DEPEND="${RDEPEND}
   virtual/x11
   sys-devel/perl
   java? ( >=dev-java/java-config-0.2.0 )"

# needed by src_compile() and src_install()
export MOZ_PHOENIX=1
export MOZ_CALENDAR=0
export MOZ_ENABLE_XFT=1

# somebody says this is good but it's your choice
if [ -n "`use svg`" ] ; then
		export MOZ_INTERNAL_LIBART_LGPL=1
fi

src_unpack() {
   
   unpack ${A}

   cd ${S}/../

    echo
   einfo
   einfo "*****************************************************************"
   einfo "* This will log you in to the mozilla cvs, just                 *"
   einfo "* press enter to proceed                                        *"
   einfo "*****************************************************************"
   einfo

   cvs -d:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot checkout mozilla/browser mozilla/toolkit

   cd ${S}

   # Fix a ownership porblem
   chown -R root.root *
}

src_compile() {
   local myconf="--disable-composer \
      --with-x \
      --with-system-jpeg \
      --with-system-zlib \
      --with-system-png \
      --with-system-mng \
      --disable-mailnews \
      --enable-xft \
      --disable-pedantic \
      --enable-mathml \
      --without-system-nspr \
      --enable-nspr-autoconf \
      --enable-xsl \
      --enable-crypto \
      --enable-xinerama=no \
      --with-java-supplement \
      --with-pthreads \
      --with-default-mozilla-five-home=/usr/lib/phoenix \
      --with-user-appdir=.phoenix \
      --disable-jsd \
      --disable-accessibility \
      --disable-tests \
      --disable-debug \
      --disable-dtd-debug \
      --disable-logging \
      --disable-reorder \
      --enable-strip \
      --enable-strip-libs \
      --enable-cpp-rtti \
      --enable-xterm-updates \
      --disable-ldap "

	  
	if [ -n "`use gtk2`" ] ; then
        myconf="${myconf} --enable-toolkit-gtk2 \
                          --enable-default-toolkit=gtk2 \
                          --disable-toolkit-qt \
                          --disable-toolkit-xlib \
                          --disable-toolkit-gtk"
	else
        myconf="${myconf} --enable-toolkit-gtk \
                          --enable-default-toolkit=gtk \
                          --disable-toolkit-qt \
                          --disable-toolkit-xlib \
                          --disable-toolkit-gtk2"
	fi

	if [ -n "`use ipv6`" ] ; then
        myconf="${myconf} --enable-ipv6"
    fi  

    if [ "${ARCH}" = "x86" ] ; then
		myconf="${myconf} --enable-old-abi-compat-wrappers"
    fi

	if [ "${ARCH}" = "sparc" ] ; then
		myconf="${myconf} --enable-js-ultrasparc"
	fi

	if [ -n "`use svg`" ] ; then
		myconf="${myconf} --enable-svg"
	fi
	
	export MAKE="emake"
	
 	# Crashes on start when compiled with -fomit-frame-pointer   
   CFLAGS="${CFLAGS/-fomit-frame-pointer}"
   CXXFLAGS="${CXXFLAGS/-fomit-frame-pointer} -Wno-deprecated"

   ./configure --prefix=/usr/lib/phoenix \
      ${myconf} || die

   edit_makefiles
   emake MOZ_PHOENIX=1 || die
}

src_install() {
      make DESTDIR=${D} install || die

	  touch ${S}/phoenix
	  chmod +x ${S}/phoenix
	  echo "#!/bin/bash" >> ${S}/phoenix
	  echo "export MOZILLA_FIVE_HOME=/usr/lib/phoenix/lib/mozilla-1.2b" >> ${S}/phoenix
	  echo "/usr/lib/phoenix/bin/phoenix" >> ${S}/phoenix

	  exeinto /usr/bin
	  newexe ${S}/phoenix
}

pkg_postinst() {
    echo
   einfo
   einfo "*****************************************************************"
   einfo "something need to do with java plugin"
   einfo "*****************************************************************"
   einfo
} 
changes: gtk1 and gtk2 USE option, RDEPEND add another (xft-2.0) and gtk-2.1.1 for gtk2 toolkit (gtk-2.0.x doesnt seem to work).

still something need to be done with java, all jre/jsdk binaries available from portage wont work, unless gcc used to compile phoenix is 2.95.3. and yes if anyone using their own java and using dynamix motif (lesstiff) LD_PRELOAD=/usr/lib/libXm.so need to be add in /usr/bin/phoenix or java will crash when opening template.

Thank you to nempo.

EDIT: Ok i removed the old one and replace it with this, fix some typos due to bad copy/cut/paste and option to enable svg (people says it's good) and some other things. can someone test this ebuild please. :)

EDIT: Change prefices
Last edited by vers_iq on Mon Nov 04, 2002 10:44 pm, edited 2 times in total.
Top
bonto
n00b
n00b
User avatar
Posts: 49
Joined: Fri Aug 30, 2002 11:31 pm

ummm

  • Quote

Post by bonto » Sun Nov 03, 2002 10:00 pm

i cant find an xft ebuild masked or unmasked, except for gdkxft.... im missing something important....
Never sneeze on an angry rhino...
Top
bonto
n00b
n00b
User avatar
Posts: 49
Joined: Fri Aug 30, 2002 11:31 pm

nm

  • Quote

Post by bonto » Sun Nov 03, 2002 10:54 pm

i just switched it to freetype2....i hope that'll work
Never sneeze on an angry rhino...
Top
zenexsys
n00b
n00b
Posts: 14
Joined: Tue Oct 29, 2002 3:13 am
Location: Northeast

  • Quote

Post by zenexsys » Sun Nov 03, 2002 11:23 pm

There should be a masked xft-2.0.ebuild at

x11-libs/xft


try to search for it again after emerge rsync
Top
KiTaSuMbA
Guru
Guru
User avatar
Posts: 430
Joined: Fri Jun 28, 2002 11:54 pm
Location: Naples Italy

  • Quote

Post by KiTaSuMbA » Mon Nov 04, 2002 1:26 am

vers_iq wrote:still something need to be done with java, all jre/jsdk binaries available from portage wont work, unless gcc used to compile phoenix is 2.95.3. and yes if anyone using their own java and using dynamix motif (lesstiff) LD_PRELOAD-/usr/lib/libXm.so need to be add in /usr/bin/phoenix or java will crash when opening template.
This last LD_PRELOAD wasn't very clear to me... Ok, I use lesstif too, but just exactly where should I add what?
Need to flame people LIVE on IRC? Join #gentoo-otw on freenode!
Top
bonto
n00b
n00b
User avatar
Posts: 49
Joined: Fri Aug 30, 2002 11:31 pm

  • Quote

Post by bonto » Mon Nov 04, 2002 1:33 am

zenexsys wrote:There should be a masked xft-2.0.ebuild at

x11-libs/xft


try to search for it again after emerge rsync
thanx! it worked this time! odd tho cause i thought tried it before
Never sneeze on an angry rhino...
Top
Post Reply

193 posts
  • Page 1 of 8
    • Jump to page:
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 8
  • Next

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy