diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /games-fps/blackshades/blackshades-20070723-r1.ebuild | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'games-fps/blackshades/blackshades-20070723-r1.ebuild')
-rw-r--r-- | games-fps/blackshades/blackshades-20070723-r1.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/games-fps/blackshades/blackshades-20070723-r1.ebuild b/games-fps/blackshades/blackshades-20070723-r1.ebuild new file mode 100644 index 000000000000..a531ebbe5987 --- /dev/null +++ b/games-fps/blackshades/blackshades-20070723-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils + +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/${P}.tar.bz2" + +LICENSE="blackshades" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=" + media-libs/freealut + media-libs/libsdl + media-libs/libvorbis + media-libs/openal + virtual/glu + virtual/opengl" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/${PN} + +PATCHES=( + "${FILESDIR}"/${PN}-datadir.patch +) + +src_prepare() { + default + + rm -rf Data/Textures || die + rm -f ../Textures/{,Blood/}._* || die + mv -f ../Textures Data || die "mv failed" + sed -i \ + -e "s/-O2 \(-Wall\) -g/${CXXFLAGS} \1/" \ + -e "/^LINKER/s:$: ${LDFLAGS}:" \ + Makefile \ + || die "sed Makefile failed" + sed -i "s:@DATADIR@:/usr/share/${PN}:" \ + Source/Main.cpp \ + || die "sed Main.cpp failed" +} + +src_compile() { + emake bindir + emake +} + +src_install() { + newbin objs/blackshades ${PN} + insinto /usr/share/${PN} + doins -r Data + dodoc IF_THIS_IS_A_README_YOU_HAVE_WON Readme TODO uDevGame_Readme + make_desktop_entry ${PN} "Black Shades" +} |