1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils games multilib
8 DESCRIPTION="Postal 2: Share the Pain - Free Multiplayer Edition"
9 HOMEPAGE="http://icculus.org/news/news.php?id=4419"
10 SRC_URI="http://0day.icculus.org/postal2/Postal2STP-FreeMP-linux.tar.bz2 -> ${P}.tar.bz2"
12 LICENSE="postal2stp-freemp"
14 KEYWORDS="~amd64 ~x86"
17 PROPERTIES="interactive"
19 RDEPEND="virtual/opengl
20 amd64? ( app-emulation/emul-linux-x86-sdl )
22 media-libs/libsdl[X,opengl]
26 GAMES_CHECK_LICENSE="yes"
28 S=${WORKDIR}/Postal2STP-FreeMP-linux
31 has_multilib_profile && ABI=x86
33 dir=${GAMES_PREFIX_OPT}/${PN}
36 doins -r Animations KarmaData Maps Music Sounds \
37 StaticMeshes System Textures Web || die "doins failed"
38 dosym /usr/$(get_libdir)/libopenal.so "${dir}"/System/openal.so || die
39 dosym /usr/$(get_libdir)/libSDL-1.2.so.0 "${dir}"/System/libSDL-1.2.so.0 || die
41 fperms +x "${dir}"/System/postal2-bin || die "fperms failed"
43 games_make_wrapper ${PN} ./postal2-bin "${dir}"/System .
44 newicon postal2.xpm ${PN}.xpm || die
45 make_desktop_entry ${PN} "Postal 2 (Free MultiPlayer Ed.)"