View | Details | Raw Unified
Collapse All | Expand All

(-) /usr/portage/sci-astronomy/stellarium/stellarium-0.8.2.ebuild (-16 / +11 lines)
 Lines 2-42    Link Here 
# Distributed under the terms of the GNU General Public License v2
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/stellarium/stellarium-0.8.2.ebuild,v 1.6 2007/02/03 22:47:25 tgall Exp $
# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/stellarium/stellarium-0.8.2.ebuild,v 1.6 2007/02/03 22:47:25 tgall Exp $
inherit eutils flag-o-matic
DESCRIPTION="Stellarium renders 3D photo-realistic skies in real time."
DESCRIPTION="Stellarium renders 3D photo-realistic skies in real time."
HOMEPAGE="http://www.stellarium.org/"
HOMEPAGE="http://www.stellarium.org/"
SRC_URI="mirror://sourceforge/stellarium/${P}.tar.gz"
SRC_URI="mirror://sourceforge/stellarium/${P}.tar.gz"
LICENSE="GPL-2"
LICENSE="GPL-2"
SLOT="0"
SLOT="0"
KEYWORDS="amd64 ppc ppc64 x86"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
IUSE="nls"
IUSE="mixer nls"
RDEPEND="virtual/opengl
RDEPEND="virtual/opengl
	virtual/glu
	virtual/glu
	media-libs/libsdl
	media-libs/libsdl
	media-libs/libpng
	media-libs/sdl-mixer
	media-libs/sdl-mixer
	sys-libs/zlib
	media-libs/libpng
	media-libs/freetype
	media-libs/freetype
	dev-libs/boost
	media-libs/jpeg
	net-misc/curl
	=x11-libs/qt-4.2*
	mixer? ( media-libs/sdl-mixer )
	nls? ( virtual/libintl )"
	nls? ( virtual/libintl )"
DEPEND="${RDEPEND}
DEPEND="${RDEPEND}
	>=dev-util/cmake-2.4.6
	nls? ( sys-devel/gettext )
	nls? ( sys-devel/gettext )
	|| ( x11-libs/libXt virtual/x11 )"
	|| ( x11-libs/libXt virtual/x11 )"
src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${FILESDIR}/${P}-amd64.patch"
}
src_compile() {
src_compile() {
	append-flags -fno-strict-aliasing
	cmake -DCMAKE_INSTALL_PREFIX="${ROOT/%\//}/usr" || die "cmake failed"
	econf \
		--disable-dependency-tracking \
		$(use_enable nls) \
		|| die
	emake || die "emake failed"
	emake || die "emake failed"
}
}