diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2013-08-06 13:32:53 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2013-08-06 13:32:53 +0000 |
commit | 93234e51cef0eb6f314f3a172c4baa660379fcc9 (patch) | |
tree | 1758bd78432bf4b8fa97d5c04fcb769a99394bbd /games-fps/worldofpadman | |
parent | Remove gcc[-nocxx] from dependencies, the nocxx flag is gone. (diff) | |
download | gentoo-2-93234e51cef0eb6f314f3a172c4baa660379fcc9.tar.gz gentoo-2-93234e51cef0eb6f314f3a172c4baa660379fcc9.tar.bz2 gentoo-2-93234e51cef0eb6f314f3a172c4baa660379fcc9.zip |
Fix building with libjpeg-turbo libjpeg.so.62 extended API wrt #479652#c1 by Mike Lothian
(Portage version: 2.2.0_alpha191/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)
Diffstat (limited to 'games-fps/worldofpadman')
-rw-r--r-- | games-fps/worldofpadman/ChangeLog | 6 | ||||
-rw-r--r-- | games-fps/worldofpadman/worldofpadman-1.6.ebuild | 39 |
2 files changed, 25 insertions, 20 deletions
diff --git a/games-fps/worldofpadman/ChangeLog b/games-fps/worldofpadman/ChangeLog index 2bcd50dc5760..6a65f586089e 100644 --- a/games-fps/worldofpadman/ChangeLog +++ b/games-fps/worldofpadman/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for games-fps/worldofpadman # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-fps/worldofpadman/ChangeLog,v 1.13 2013/01/24 00:20:21 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-fps/worldofpadman/ChangeLog,v 1.14 2013/08/06 13:32:53 ssuominen Exp $ + + 06 Aug 2013; Samuli Suominen <ssuominen@gentoo.org> worldofpadman-1.6.ebuild: + Fix building with libjpeg-turbo libjpeg.so.62 extended API wrt #479652#c1 by + Mike Lothian 24 Jan 2013; Michael Sterrett <mr_bones_@gentoo.org> -worldofpadman-1.2-r1.ebuild: diff --git a/games-fps/worldofpadman/worldofpadman-1.6.ebuild b/games-fps/worldofpadman/worldofpadman-1.6.ebuild index 94e3d73d8f23..0abaf7e0a201 100644 --- a/games-fps/worldofpadman/worldofpadman-1.6.ebuild +++ b/games-fps/worldofpadman/worldofpadman-1.6.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-fps/worldofpadman/worldofpadman-1.6.ebuild,v 1.4 2012/05/21 20:08:47 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-fps/worldofpadman/worldofpadman-1.6.ebuild,v 1.5 2013/08/06 13:32:53 ssuominen Exp $ -EAPI=3 +EAPI=5 -inherit eutils base games +inherit eutils games DESCRIPTION="A cartoon style multiplayer first-person shooter" HOMEPAGE="http://worldofpadman.com/" @@ -19,7 +19,7 @@ IUSE="+curl dedicated maps +openal +theora +vorbis" RDEPEND="sys-libs/zlib !dedicated? ( media-libs/speex - virtual/jpeg + virtual/jpeg:0 media-libs/libsdl virtual/opengl openal? ( media-libs/openal ) @@ -33,15 +33,20 @@ RDEPEND="sys-libs/zlib DEPEND="${RDEPEND} app-arch/unzip" -S="${WORKDIR}"/${P}_svn2178-src - -PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) +S=${WORKDIR}/${P}_svn2178-src src_unpack() { unpack ${A} unzip XTRAS/"editing files"/${P}-src.zip } +src_prepare() { + epatch "${FILESDIR}"/${P}-gentoo.patch + sed -i \ + -e 's:JPEG_LIB_VERSION < 80:JPEG_LIB_VERSION < 62:' \ + code/renderer/tr_image_jpg.c || die #479652 +} + src_compile() { local arch @@ -66,28 +71,24 @@ src_compile() { USE_RENDERER_DLOPEN=0 \ USE_INTERNAL_ZLIB=0 \ USE_INTERNAL_JPEG=0 \ - USE_INTERNAL_SPEEX=0 \ - || die "died running emake" + USE_INTERNAL_SPEEX=0 } src_install() { - newgamesbin build/release-*/wopded.* ${PN}-ded \ - || die "newgamesbin ${PN}-ded failed" + newgamesbin build/release-*/wopded.* ${PN}-ded if ! use dedicated ; then - newgamesbin build/release-*/wop.* ${PN} \ - || die "newgamesbin ${PN} failed" - newicon misc/quake3.png ${PN}.png || die "newicon failed" + newgamesbin build/release-*/wop.* ${PN} + newicon misc/quake3.png ${PN}.png make_desktop_entry ${PN} "World of Padman" fi insinto "${GAMES_DATADIR}"/${PN} - doins -r ../wop || die "doins failed" + doins -r ../wop dodoc id-readme.txt \ IOQ3-README \ voip-readme.txt \ ../XTRAS/changelog.txt \ - ../XTRAS/sounds_readme.txt \ - || die "dodoc failed" - dohtml -r ../XTRAS/readme{,.html} || die "dohtml failed" + ../XTRAS/sounds_readme.txt + dohtml -r ../XTRAS/readme{,.html} prepgamesdirs } |