# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="SDL Graphics Extensions" HOMEPAGE="http://www.etek.chalmers.se/~e8cal1/sge/index.html" SRC_URI="http://www.etek.chalmers.se/~e8cal1/sge/files/${PN}${PV}.tar.gz" ##Got a 404 when I tried these: #HOMEPAGE="http://home.swipnet.se/cal_home/sge/index.html" #SRC_URI="http://home.swipnet.se/cal_home/sge/files/${PN}${PV}.tar.gz" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~x86" IUSE="truetype image" DEPEND=">=media-libs/libsdl-1.2 >=sys-apps/sed-4 image? ( >=media-libs/sdl-image-1.2 ) truetype? ( >=media-libs/freetype-2 )" S=${WORKDIR}/${PN}${PV} src_compile() { #Freetype and/or sdl-image presence is auto-detected by package sed -i "s,PREFIX =\$(shell sdl-config --prefix),PREFIX =$D/\$(shell sdl-config --prefix),g" ${S}/Makefile.conf sed -i "s,PREFIX_H =\$(shell sdl-config --prefix)/include/SDL,PREFIX_H =$D/\$(shell sdl-config --prefix)/include/SDL,g" ${S}/Makefile.conf } src_install() { emake install || die "emake install failed" dodoc INSTALL LICENSE README Todo WhatsNew || die "dodoc failed" dohtml docs/* #remove instructions on compiling the examples, doesn't work anyway #without including ../Makefile.conf and setting user permission in dir sed -i "4,6d" examples/README insinto /usr/doc/${P}/examples doins examples/README examples/ttf_readme doins examples/*.{c,cpp,bmp,ttf} }