diff options
Diffstat (limited to 'games-rpg/eternal-lands/eternal-lands-1.9.3-r2.ebuild')
-rw-r--r-- | games-rpg/eternal-lands/eternal-lands-1.9.3-r2.ebuild | 45 |
1 files changed, 24 insertions, 21 deletions
diff --git a/games-rpg/eternal-lands/eternal-lands-1.9.3-r2.ebuild b/games-rpg/eternal-lands/eternal-lands-1.9.3-r2.ebuild index bf01d588d83c..fc8ee94e4301 100644 --- a/games-rpg/eternal-lands/eternal-lands-1.9.3-r2.ebuild +++ b/games-rpg/eternal-lands/eternal-lands-1.9.3-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-rpg/eternal-lands/eternal-lands-1.9.3-r2.ebuild,v 1.2 2012/06/24 16:17:30 rich0 Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-rpg/eternal-lands/eternal-lands-1.9.3-r2.ebuild,v 1.3 2012/12/02 23:23:44 rich0 Exp $ EAPI=4 inherit eutils flag-o-matic gnome2-utils games @@ -15,26 +15,27 @@ SLOT="0" KEYWORDS="~amd64 ~x86 ~x86-fbsd" IUSE="debug doc kernel_linux" -RDEPEND="x11-libs/libX11 - x11-libs/libXau - x11-libs/libXdmcp - x11-libs/libXext - virtual/opengl - virtual/glu - media-libs/libsdl[X] - media-libs/sdl-net - media-libs/sdl-image - media-libs/openal +RDEPEND="dev-libs/libxml2 + media-libs/cal3d[-16bit-indices] media-libs/freealut + media-libs/libpng:0 + media-libs/libsdl[X] media-libs/libvorbis - dev-libs/libxml2 - media-libs/cal3d[-16bit-indices] - media-libs/libpng - >=games-rpg/eternal-lands-data-1.9.3" - + media-libs/openal + media-libs/sdl-image + media-libs/sdl-net + >=games-rpg/eternal-lands-data-1.9.3 + sys-libs/zlib[minizip] + virtual/glu + virtual/opengl + x11-libs/libX11 + x11-libs/libXau + x11-libs/libXdmcp + x11-libs/libXext" DEPEND="${RDEPEND} >=app-admin/eselect-opengl-1.0.6-r1 app-arch/unzip + virtual/pkgconfig doc? ( app-doc/doxygen media-gfx/graphviz )" @@ -53,18 +54,20 @@ src_prepare() { sed -i -e '/#server_address =/ s/.*/#server_address = game.eternal-lands.com/' \ el.ini || die "sed failed" - epatch "${FILESDIR}/${PN}-1.9.2-glext.patch" + epatch "${FILESDIR}/${PN}-1.9.3-glbuild.patch" epatch "${FILESDIR}/${PN}-1.9.3-build.patch" + epatch "${FILESDIR}/${PN}-1.9.3-minizip.patch" - cp Makefile.linux Makefile + # remove bundled minizip + rm io/{crypt,ioapi,unzip,zip}.h || die + rm io/{ioapi,unzip,zip}.c || die - # Fix for Gentoo zlib OF redefine - sed -i '1i#define OF(x) x' `find -name "*.c"` || die "sed failed" + cp Makefile.linux Makefile } src_compile() { emake \ - DEBUG="$(usex debug "yes" "no")" \ + DEBUG="$(usex debug)" \ BSD_KERNEL="$(usex !kernel_linux)" \ DATADIR="${GAMES_DATADIR}/${PN}/" |