# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Browser for MacOSX with gecko engine that has cocoa UI" HOMEPAGE="http://www.mozilla.org/products/camino/" SRC_URI="ftp://laera.web.cs.unibo.it/gentoo/camino-20040908.tar.bz2" LICENSE="MPL-1.1 | NPL-1.1" SLOT="0" KEYWORDS="-* ~macos" IUSE="static debug" DEPEND="=dev-libs/glib-1* =gnome-base/orbit-0*" pkg_setup() { einfo "Camino build process has some requirements that portage can't" einfo "satisfy: please, install it yourself following the instruction at" einfo "http://www.mozilla.org/ports/fizzilla/ChimChim.html in the section" einfo "\"Preparing to build\"." einfo einfo "What you ONLY need is:" einfo "1. Mac OS X Panther;" einfo "2. Xcode 1.1 or later with installed:" einfo " a. Cross-development;" einfo " b. Mac OS X 10.2 SDK;" einfo "3. Shared Menus Framework." einfo einfo "Portage will do the rest, Fink is not required ;)" [ -e "/Developer/SDKs/MacOSX10.2.8.sdk" ] || \ [ -e "/Developer/SDKs/MacOSX10.2.7.sdk" ] || \ die "You have to install Mac OS X 10.2 sdk from Xcode!" [ -e "/Developer/SDKs/MacOSX10.2.8.sdk/Library/Frameworks/SharedMenusCocoa.framework" ] \ || die "You have to install Shared Menus correctly!" } src_unpack() { unpack ${P}.tar.bz2 } src_compile() { local mozconf="--enable-default-toolkit=cocoa --disable-tests --enable-crypto --disable-mailnews --disable-ldap --disable-accessibility --disable-jsd --enable-plaintext-editor-only --disable-mathml --disable-xpinstall --enable-extensions=cookie,xmlextras,universalchardet,typeaheadfind,transformiix --enable-single-profile --with-macos-sdk=/Developer/SDKs/MacOSX10.2.8.sdk" if use debug; then mozconf="${mozconf} --disable-optimize --enable-debug" else mozconf="${mozconf} --enable-optimize=-O2 --disable-debug" fi if use static; then mozconf="${mozconf} --disable-shared --enable-static" fi mozconf=$(echo ${mozconf}|sed -e "s/^/ac_add_options /") cd ${WORKDIR}/mozilla || die echo ${mozconf} > .mozconfig make -w -f camino.mk build || die }