diff options
author | Chris Gianelloni <wolf31o2@gentoo.org> | 2006-05-11 15:27:53 +0000 |
---|---|---|
committer | Chris Gianelloni <wolf31o2@gentoo.org> | 2006-05-11 15:27:53 +0000 |
commit | 5b3f808f12cd515c1d72c104a56ac19163abd443 (patch) | |
tree | a4f6759ee6ec51d37f3ad2494d9638afb48ed1f4 /games-fps/blackshades-cvs | |
parent | Added blackshades-cvs for bug #132815. (diff) | |
download | gentoo-2-5b3f808f12cd515c1d72c104a56ac19163abd443.tar.gz gentoo-2-5b3f808f12cd515c1d72c104a56ac19163abd443.tar.bz2 gentoo-2-5b3f808f12cd515c1d72c104a56ac19163abd443.zip |
Added patch to make blackshades-cvs work with the latest openal versions and closing bug #132815.
(Portage version: 2.1_pre10-r5)
Diffstat (limited to 'games-fps/blackshades-cvs')
4 files changed, 91 insertions, 1 deletions
diff --git a/games-fps/blackshades-cvs/ChangeLog b/games-fps/blackshades-cvs/ChangeLog index 5250cff1af65..20a0cd7f6215 100644 --- a/games-fps/blackshades-cvs/ChangeLog +++ b/games-fps/blackshades-cvs/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for games-fps/blackshades-cvs # Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-fps/blackshades-cvs/ChangeLog,v 1.10 2006/02/12 22:25:24 tupone Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-fps/blackshades-cvs/ChangeLog,v 1.11 2006/05/11 15:27:53 wolf31o2 Exp $ + +*blackshades-cvs-20031110-r1 (11 May 2006) + + 11 May 2006; Chris Gianelloni <wolf31o2@gentoo.org> + +files/blackshades-cvs-freealut.patch, + +blackshades-cvs-20031110-r1.ebuild: + Added patch to make blackshades-cvs work with the latest openal versions and + closing bug #132815. 12 Feb 2006; <Tupone@gentoo.org> blackshades-cvs-20031110.ebuild: modular X dependency fix diff --git a/games-fps/blackshades-cvs/blackshades-cvs-20031110-r1.ebuild b/games-fps/blackshades-cvs/blackshades-cvs-20031110-r1.ebuild new file mode 100644 index 000000000000..2d8bf9aa2f66 --- /dev/null +++ b/games-fps/blackshades-cvs/blackshades-cvs-20031110-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-fps/blackshades-cvs/blackshades-cvs-20031110-r1.ebuild,v 1.1 2006/05/11 15:27:53 wolf31o2 Exp $ + +#ECVS_PASS="anonymous" +#ECVS_SERVER="icculus.org:/cvs/cvsroot" +ECVS_MODULE="blackshades" +#inherit cvs +inherit eutils games + +DESCRIPTION="you control a psychic bodyguard, and try to protect the VIP" +HOMEPAGE="http://www.wolfire.com/blackshades.html http://www.icculus.org/blackshades/" +SRC_URI="http://filesingularity.timedoctor.org/Textures.tar.bz2 + mirror://gentoo/blackshades-${PV}.tar.bz2" + +LICENSE="blackshades" +SLOT="0" +KEYWORDS="~amd64 ~ppc x86" +IUSE="" + +DEPEND="virtual/opengl + virtual/glu + media-libs/libvorbis + ~media-libs/openal-0.0.8 + media-libs/freealut + media-libs/libsdl" + +S=${WORKDIR}/${ECVS_MODULE} + +src_unpack() { + if [ -z "${ECVS_SERVER}" ] ; then + unpack blackshades-${PV}.tar.bz2 + else + cvs_src_unpack + fi + cd "${WORKDIR}" + unpack Textures.tar.bz2 + cd "${S}" + rm -rf Data/Textures + mv "${WORKDIR}"/Textures Data/ || die "mv failed" + sed -i \ + -e "/^CFLAGS/s:$: ${CFLAGS}:" Makefile \ + || die "sed Makefile failed" + find "${S}" -type d -name CVS -exec rm -rf \{\} \; 2> /dev/null + find "${S}/Data/Textures" -type f -name ".*" -exec rm -f \{\} \; + find "${S}/Data/" -type f -exec chmod a-x \{\} \; + # Glut is not really needed, but there is an include in the source + # We patch it + sed -i \ + -e "/glut.h/d" Source/Decals.h \ + || die "removing glut include failed" + epatch "${FILESDIR}"/${PN}-freealut.patch +} + +src_install() { + games_make_wrapper blackshades blackshades-bin "${GAMES_DATADIR}/${PN}" + newgamesbin objs/blackshades blackshades-bin || die "newgamesbin failed" + + insinto "${GAMES_DATADIR}"/${PN} + doins -r Data/ || die "doins failed" + + dodoc IF_THIS_IS_A_README_YOU_HAVE_WON Readme TODO uDevGame_Readme + make_desktop_entry blackshades "Black Shades" + prepgamesdirs +} diff --git a/games-fps/blackshades-cvs/files/blackshades-cvs-freealut.patch b/games-fps/blackshades-cvs/files/blackshades-cvs-freealut.patch new file mode 100644 index 000000000000..4c0324fa3b06 --- /dev/null +++ b/games-fps/blackshades-cvs/files/blackshades-cvs-freealut.patch @@ -0,0 +1,11 @@ +--- Makefile ++++ Makefile +@@ -8,7 +8,7 @@ + + CFLAGS := -O2 -Wall -g $(shell sdl-config --cflags) -I$(SRCDIR) -include Source/Support.h + CXXFLAGS := $(CFLAGS) +-LDFLAGS := $(shell sdl-config --libs) -lGL -lGLU -lopenal # -framework QuickTime ++LDFLAGS := $(shell sdl-config --libs) -lGL -lGLU -lopenal -lalut # -framework QuickTime + + # Don't want ogg? + #CFLAGS += -DNOOGG diff --git a/games-fps/blackshades-cvs/files/digest-blackshades-cvs-20031110-r1 b/games-fps/blackshades-cvs/files/digest-blackshades-cvs-20031110-r1 new file mode 100644 index 000000000000..b1f552daec7f --- /dev/null +++ b/games-fps/blackshades-cvs/files/digest-blackshades-cvs-20031110-r1 @@ -0,0 +1,6 @@ +MD5 3fcee1f31c0a062ed7a0d8d6aafc1b06 Textures.tar.bz2 340110 +RMD160 6fa3072a7a013649093da0d586e69be3bba02b54 Textures.tar.bz2 340110 +SHA256 084f4592e1c83a0ae79a14823f59fe210dc6ae83ff35111972d3b0239b276607 Textures.tar.bz2 340110 +MD5 15635e23702a292d97f4cb97410ebb83 blackshades-20031110.tar.bz2 765970 +RMD160 8ed3b2c3d683bbd3c0e56179d8d69b71c9642ad9 blackshades-20031110.tar.bz2 765970 +SHA256 2fd16d4b1c7a5b48854040e2a7857089fc0cbd7d72d489005530b89b769fd003 blackshades-20031110.tar.bz2 765970 |