Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Compiling Phoenix from source
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2, 3, 4, 5, 6, 7, 8  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
vers_iq
Apprentice
Apprentice


Joined: 18 May 2002
Posts: 264

PostPosted: Sat Nov 02, 2002 10:56 pm    Post subject: Compiling Phoenix from source Reply with quote

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:
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:
 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:
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:
#!/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:
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:
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:
# 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
Back to top
View user's profile Send private message
bonto
n00b
n00b


Joined: 30 Aug 2002
Posts: 49

PostPosted: Sun Nov 03, 2002 3:23 am    Post subject: DUDE! Reply with quote

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...
Back to top
View user's profile Send private message
ronmon
Veteran
Veteran


Joined: 15 Apr 2002
Posts: 1043
Location: Key West, FL

PostPosted: Sun Nov 03, 2002 5:14 am    Post subject: Reply with quote

Jammin'! It's building right now. I'll let you know how gtk2 works :)
Back to top
View user's profile Send private message
ronmon
Veteran
Veteran


Joined: 15 Apr 2002
Posts: 1043
Location: Key West, FL

PostPosted: Sun Nov 03, 2002 6:08 am    Post subject: Reply with quote

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:
export MOZILLA_FIVE_HOME=/usr/lib/phoenix/lib/mozilla-1.2b


Nice job!
Back to top
View user's profile Send private message
vers_iq
Apprentice
Apprentice


Joined: 18 May 2002
Posts: 264

PostPosted: Sun Nov 03, 2002 12:08 pm    Post subject: Reply with quote

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:
export MOZILLA_FIVE_HOME=/usr/lib/phoenix/lib/mozilla-1.2b


Nice job!


oh yeah i forgot about make install, and besides
Code:
export MOZILLA_FIVE_HOME=/usr/lib/phoenix/lib/mozilla-1.2b
you can also use
Code:
unset MOZILLA_FIVE_HOME
which im using now.
Back to top
View user's profile Send private message
Wedge_
Advocate
Advocate


Joined: 08 Aug 2002
Posts: 3614
Location: Scotland

PostPosted: Sun Nov 03, 2002 12:45 pm    Post subject: Reply with quote

The screenshot looks really nice. I'll try it out as soon as my poor 56k finishes with the mozilla source :)
Back to top
View user's profile Send private message
grandpajive
n00b
n00b


Joined: 17 Jun 2002
Posts: 46

PostPosted: Sun Nov 03, 2002 1:29 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
vers_iq
Apprentice
Apprentice


Joined: 18 May 2002
Posts: 264

PostPosted: Sun Nov 03, 2002 1:50 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
rlyacht
Apprentice
Apprentice


Joined: 17 Apr 2002
Posts: 170

PostPosted: Sun Nov 03, 2002 3:46 pm    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
Wedge_
Advocate
Advocate


Joined: 08 Aug 2002
Posts: 3614
Location: Scotland

PostPosted: Sun Nov 03, 2002 4:21 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
rlyacht
Apprentice
Apprentice


Joined: 17 Apr 2002
Posts: 170

PostPosted: Sun Nov 03, 2002 4:27 pm    Post subject: Reply with quote

Thanks, I missed that step :-) I didn't read the directions carefully enough!!
Back to top
View user's profile Send private message
nempo
Guru
Guru


Joined: 16 Apr 2002
Posts: 360
Location: Linkoping, Sweden

PostPosted: Sun Nov 03, 2002 4:34 pm    Post subject: Reply with quote

Is it just me who hates mozilla/phoenix installing themself in /usr/lib/ ?
Back to top
View user's profile Send private message
_SkeLeToN_
Guru
Guru


Joined: 12 Sep 2002
Posts: 506
Location: Montreal,Canada

PostPosted: Sun Nov 03, 2002 5:05 pm    Post subject: Reply with quote

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 ?
Back to top
View user's profile Send private message
bonto
n00b
n00b


Joined: 30 Aug 2002
Posts: 49

PostPosted: Sun Nov 03, 2002 5:07 pm    Post subject: heh Reply with quote

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...
Back to top
View user's profile Send private message
vers_iq
Apprentice
Apprentice


Joined: 18 May 2002
Posts: 264

PostPosted: Sun Nov 03, 2002 5:55 pm    Post subject: Reply with quote

_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:
CFLAGS="-Os -march=pentium3 -pipe -s -fforce-addr"
and
Code:
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.
Back to top
View user's profile Send private message
nempo
Guru
Guru


Joined: 16 Apr 2002
Posts: 360
Location: Linkoping, Sweden

PostPosted: Sun Nov 03, 2002 6:31 pm    Post subject: Reply with quote

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

Code:

# 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
Back to top
View user's profile Send private message
vers_iq
Apprentice
Apprentice


Joined: 18 May 2002
Posts: 264

PostPosted: Sun Nov 03, 2002 6:59 pm    Post subject: Reply with quote

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:
RDEPEND=">=x11-libs/xft-2.0"
and yet xft is still masked. :?
Back to top
View user's profile Send private message
_SkeLeToN_
Guru
Guru


Joined: 12 Sep 2002
Posts: 506
Location: Montreal,Canada

PostPosted: Sun Nov 03, 2002 7:13 pm    Post subject: Reply with quote

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]
Back to top
View user's profile Send private message
nempo
Guru
Guru


Joined: 16 Apr 2002
Posts: 360
Location: Linkoping, Sweden

PostPosted: Sun Nov 03, 2002 7:22 pm    Post subject: Reply with quote

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:
RDEPEND=">=x11-libs/xft-2.0"
and yet xft is still masked. :?


fixed
Back to top
View user's profile Send private message
vers_iq
Apprentice
Apprentice


Joined: 18 May 2002
Posts: 264

PostPosted: Sun Nov 03, 2002 8:04 pm    Post subject: Reply with quote

just a derivation from nempo's ebuild, a bit more flexible i hope,
Code:
# 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
Back to top
View user's profile Send private message
bonto
n00b
n00b


Joined: 30 Aug 2002
Posts: 49

PostPosted: Sun Nov 03, 2002 10:00 pm    Post subject: ummm Reply with quote

i cant find an xft ebuild masked or unmasked, except for gdkxft.... im missing something important....
_________________
Never sneeze on an angry rhino...
Back to top
View user's profile Send private message
bonto
n00b
n00b


Joined: 30 Aug 2002
Posts: 49

PostPosted: Sun Nov 03, 2002 10:54 pm    Post subject: nm Reply with quote

i just switched it to freetype2....i hope that'll work
_________________
Never sneeze on an angry rhino...
Back to top
View user's profile Send private message
zenexsys
n00b
n00b


Joined: 29 Oct 2002
Posts: 14
Location: Northeast

PostPosted: Sun Nov 03, 2002 11:23 pm    Post subject: Reply with quote

There should be a masked xft-2.0.ebuild at

x11-libs/xft


try to search for it again after emerge rsync
Back to top
View user's profile Send private message
KiTaSuMbA
Guru
Guru


Joined: 28 Jun 2002
Posts: 430
Location: Naples Italy

PostPosted: Mon Nov 04, 2002 1:26 am    Post subject: Reply with quote

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!
Back to top
View user's profile Send private message
bonto
n00b
n00b


Joined: 30 Aug 2002
Posts: 49

PostPosted: Mon Nov 04, 2002 1:33 am    Post subject: Reply with quote

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...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page 1, 2, 3, 4, 5, 6, 7, 8  Next
Page 1 of 8

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum