Permalink
Browse files

Version bump: ps2emu-zzogl-0.1.205

  • Loading branch information...
1 parent a2a2272 commit c5f18e656c661cf9674c4c3b56eb4cfcb8e65c36 Russell Harmon committed Dec 28, 2009
Showing with 121 additions and 0 deletions.
  1. +1 −0 games-emulation/ps2emu-zzogl/Manifest
  2. +120 −0 games-emulation/ps2emu-zzogl/ps2emu-zzogl-0.1.205.ebuild
@@ -7,3 +7,4 @@ AUX ps2emu-zzogl_required-libraries.patch 787 RMD160 b89f9f86b081f0c46162a6741c6
MISC metadata.xml 359 RMD160 aa811da978a36e86e732198143c4c562f71bade7 SHA1 4519e62ec2c34305e43a5ad14f08866ad2341084 SHA256 ceff97d20cfb873d3c0ce9ac99d5c01727d05b9aff200eae9ce1097780fcf52c
EBUILD ps2emu-zzogl-0.1.166-r1.ebuild 2680 RMD160 0426f8bd126aaad21b8bd66a5bbbe45244923bb3 SHA1 fafe5dfbe57bbd4be58a7d4094c4df784ec28278 SHA256 01b937638318bbd6fb452ee10d8ab6c29221872963c420988dfe29f3e3b2072a
EBUILD ps2emu-zzogl-0.1.166.ebuild 2760 RMD160 a068cfc535bbada84b8c44047b267e4ac4c93252 SHA1 78566651c7777cb6ac1561e813b611b5a8064f31 SHA256 903e1ae525a00e8860bdeccffdbb7acf974e76c884f1c4e8d64adfbe95c58b87
+EBUILD ps2emu-zzogl-0.1.205.ebuild 2680 RMD160 0426f8bd126aaad21b8bd66a5bbbe45244923bb3 SHA1 fafe5dfbe57bbd4be58a7d4094c4df784ec28278 SHA256 01b937638318bbd6fb452ee10d8ab6c29221872963c420988dfe29f3e3b2072a
@@ -0,0 +1,120 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=2
+
+inherit versionator
+MY_PV="$(get_version_component_range 3)"
+ESVN_REPO_URI="http://sanechka.spb.ru/svnroot/ruslan/zerogs/@${MY_PV}"
+inherit eutils games flag-o-matic multilib autotools subversion
+
+DESCRIPTION="PS2Emu ZZogl OpenGL plugin"
+HOMEPAGE="http://www.pcsx2.net/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+RESTRICT="primaryuri"
+IUSE="debug sse2 shaders"
+
+DEPEND="
+ x86? (
+ x11-libs/libX11
+ media-libs/glew
+ virtual/opengl
+ media-libs/jpeg
+ sys-libs/zlib
+ x11-libs/libXxf86vm
+ x11-proto/xproto
+ x11-proto/xf86vidmodeproto
+ >=x11-libs/gtk+-2
+ )
+ amd64? (
+ >=app-emulation/emul-linux-x86-xlibs-20091226[opengl]
+ >=app-emulation/emul-linux-x86-baselibs-20081109
+ app-emulation/emul-linux-x86-gtklibs
+ >=media-gfx/nvidia-cg-toolkit-2.1.0017[multilib]
+ )
+ !amd64? (
+ >=media-gfx/nvidia-cg-toolkit-2.1.0016
+ )
+ !games-emulation/ps2emu-zerogs"
+
+RDEPEND="${DEPEND}
+ games-emulation/pcsx2"
+
+S="${WORKDIR}/opengl"
+
+pkg_setup() {
+ games_pkg_setup
+
+ # Fix for compile error.
+ append-flags "-I${S}/common"
+ append-ldflags -Wl,--no-as-needed
+
+ if use amd64 && ! has_multilib_profile; then
+ eerror "You must be on a multilib profile to use pcsx2!"
+ die "No multilib profile."
+ fi
+ use amd64 && multilib_toolchain_setup x86
+}
+
+src_unpack() {
+ local S="${WORKDIR}"
+ subversion_src_unpack
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}_gcc43.patch"
+ epatch "${FILESDIR}/${PN}_consistent-naming.patch"
+ epatch "${FILESDIR}/${PN}_gentoo.patch"
+ epatch "${FILESDIR}/${PN}_ambiguous-abs.patch"
+ epatch "${FILESDIR}/${PN}_include-paths.patch"
+ epatch "${FILESDIR}/${PN}_required-libraries.patch"
+
+ eautoreconf -v --install || die
+ chmod +x configure
+}
+
+src_configure() {
+ egamesconf \
+ $(use_enable debug devbuild) \
+ $(use_enable debug) \
+ $(use_enable sse2) \
+ || die
+}
+
+src_compile() {
+ if ! emake; then
+ if use shaders; then
+ eerror "Tips for debugging your build failure:"
+ eerror " Try building with USE=\"-shaders\""
+ fi
+ die "emake failed"
+ fi
+
+ if ! use debug && use shaders; then
+ einfo "Compiling shaders..."
+ emake -C ZeroGSShaders || die "Unable to compile shader compiler."
+ ./ZeroGSShaders/zgsbuild ps2hw.fx ps2hw.dat || \
+ die "Unable to compile shaders"
+ fi
+}
+
+src_install() {
+ exeinto "$(games_get_libdir)/ps2emu/plugins"
+ insinto "$(games_get_libdir)/ps2emu/plugins"
+ newexe libZeroGSogl.so.* libZZogl.so || die
+ if use debug; then
+ doins ps2hw.fx || die
+ doins ctx1/ps2hw_ctx.fx || die
+ else
+ if use shaders; then
+ doins ps2hw.dat || die
+ else
+ doins Win32/ps2hw.dat || die
+ fi
+ fi
+ prepgamesdirs
+}

0 comments on commit c5f18e6

Please sign in to comment.