# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: DESCRIPTION="SGE is an add-on graphics library for the Simple Direct Media Layer." HOMEPAGE="http://www.etek.chalmers.se/~e8cal1/sge/index.html" SRC_URI="http://www.etek.chalmers.se/~e8cal1/sge/files/sge030809.tar.gz" KEYWORDS="~x86" LICENSE="GPL-2" SLOT="0" IUSE="truetype" DEPEND=">=media-libs/libsdl-1.2 media-libs/sdl-image truetype? ( >=media-libs/freetype-2 )" src_compile() { cd $WORKDIR/sge030809/ use truetype || sed -i s/"#USE_FT = n"/"USE_FT = n"/g Makefile.conf use truetype && sed -i s/"#USE_FT = y"/"USE_FT = n"/g Makefile.conf sed -i "s,PREFIX =\$(shell sdl-config --prefix),PREFIX =$D/\$(shell sdl-config --prefix),g" Makefile.conf sed -i "s,PREFIX_H =\$(shell sdl-config --prefix)/include/SDL,PREFIX_H =$D/\$(shell sdl-config --prefix)/include/SDL,g" Makefile.conf emake shared || die "emake failed" } src_install() { cd $WORKDIR/sge030809/ emake install || die "emake install failed" dodoc INSTALL LICENSE README Todo WhatsNew || die "dodoc failed" dohtml docs/* }