# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-libs/gigi/gigi-20050808.ebuild,v 1.6 2004/08/03 11:22:08 dholm Exp $ inherit eutils python DESCRIPTION="GiGi is a library for UI and graphic things developed for FreeOrion" HOMEPAGE="http://gigi.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/GG-${PV}.tgz" S="${WORKDIR}/GG" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~x86" IUSE="debug threads" RDEPEND="virtual/libc" DEPEND="${RDEPEND} >=sys-devel/gcc-3.3 dev-util/scons >=dev-libs/log4cpp-0.3 >=media-libs/devil-1.6.7 =dev-libs/boost-1.32.0-r4 >=media-libs/freetype-2.1.9 >=media-libs/libsdl-1.2.8 >=media-libs/sdl-net-1.2.5" src_compile() { epatch ${FILESDIR}/gigi-sconspatch.diff || einfo "patching didn't work; SConsfile changed... may not install cleanly" INST_OPTS="" if use debug then einfo "enabling debug mode" INST_OPTS="${INST_OPTS} debug=1" fi if use !threads then einfo "disabling threads" INST_OPTS="${INST_OPTS} multithreaded=0" fi scons prefix="/usr/" ${INST_OPTS} || die "make failed" einfo "build completed, installing files" } src_install() { scons prefix="${D}/usr/" libdir="${D}/usr/lib/" pkgconfigdir="${D}/usr/lib/pkgconfig" install || die "install failed" dolib.so *.so dosym /usr/lib/libGiGi.so /usr/lib/libGiGi.so.${PV} dosym /usr/lib/libGiGiSDL.so /usr/lib/libGiGiSDL.so.${PV} dosym /usr/lib/libGiGiNet.so /usr/lib/libGiGiNet.so.${PV} }