diff options
author | Christian Faulhammer <opfer@gentoo.org> | 2006-12-06 11:47:39 +0000 |
---|---|---|
committer | Christian Faulhammer <opfer@gentoo.org> | 2006-12-06 11:47:39 +0000 |
commit | f20a0bf6d02dc3bf18f8c348c922c787225979b8 (patch) | |
tree | 818478d81c4e6dc925e346e3f0a378f76602719f /x11-misc/gaia/gaia-0.1.2.ebuild | |
parent | Important change: make ALSA_CARDS an use-expanded variable, so list all the a... (diff) | |
download | gentoo-2-f20a0bf6d02dc3bf18f8c348c922c787225979b8.tar.gz gentoo-2-f20a0bf6d02dc3bf18f8c348c922c787225979b8.tar.bz2 gentoo-2-f20a0bf6d02dc3bf18f8c348c922c787225979b8.zip |
version bump; only fixes in the build system. Added patches to avoid dependency checks of the program itself. Maybe helps people to link with --as-needed
(Portage version: 2.1.1-r2)
Diffstat (limited to 'x11-misc/gaia/gaia-0.1.2.ebuild')
-rw-r--r-- | x11-misc/gaia/gaia-0.1.2.ebuild | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/x11-misc/gaia/gaia-0.1.2.ebuild b/x11-misc/gaia/gaia-0.1.2.ebuild new file mode 100644 index 000000000000..4c815af47292 --- /dev/null +++ b/x11-misc/gaia/gaia-0.1.2.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/gaia/gaia-0.1.2.ebuild,v 1.1 2006/12/06 11:47:39 opfer Exp $ + +inherit eutils + +DESCRIPTION="opensource 3D interface to the planet, based on NASA World Wind data" +HOMEPAGE="http://gaia.serezhkin.com/ + http://sourceforge.net/projects/gaia-clean" +SRC_URI="mirror://sourceforge/gaia-clean/${P}.tar.bz2" + + +SLOT="0" +LICENSE="GPL-2" + +IUSE="gps doc" +KEYWORDS="~x86" + +RDEPEND="media-libs/jpeg + media-libs/libpng + >=media-libs/libsdl-1.2 + net-misc/curl + virtual/opengl + gps? ( sci-geosciences/gpsd ) + doc? ( app-doc/doxygen )" + +DEPEND="${RDEPEND} + dev-util/scons" + +src_unpack() { + unpack ${A} + + # the binary would fail with a wrong hard coded path for font.png + cd ${S}/programs/gaia/ + epatch "${FILESDIR}/${P}-font_inclusion.patch" + + # when linked with --as-needed it will fail checking the deps, so we just + # remove them, as we have our own dependency checks + cd ${S}/programs/gaia/ + epatch "${FILESDIR}/${P}-remove_dep_checks_gaia.patch" + cd ${S}/lib/wwfetch/ + epatch "${FILESDIR}/${P}-remove_dep_checks_wwfetch.patch" +} + +src_compile() { + # Due to an error in the build script, the variable CCFLAGS is expected, + # setting it here is simpler than patching + export CCFLAGS=${CFLAGS} + # respect variables from the environment + local myconf="use_env=yes" + + if use gps; then + myconf="${myconf} gpsd=yes" + fi + + scons ${MAKEOPTS} ${myconf} || die + + use doc && doxygen +} + +src_install() { + dodir /usr/bin/ + dodir /usr/share/gaia/ + + dodoc TODO README ChangeLog + + if use doc; then + insinto /usr/share/doc/${P}/html/ + doins ${S}/doc/html/* + fi + + # local defines if there is installation requested, while prefix determines the + # target + export CCFLAGS=${CFLAGS} + scons local=no prefix="${D}/usr" install +} + +pkg_postinst() { + einfo + einfo "Please set color depth of X11 to 24 or 32 bpp" + einfo +}
\ No newline at end of file |