Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update DEPs to require >=app-emulation/emul-linux-x86-xlibs-20091226

since this now includes GLEW (FINALLY FINALLY FINALLY FINALLY)!
  • Loading branch information...
commit dd4eded29d58fb4555107114daee0c868de2eac0 1 parent 96d5614
@eatnumber1 authored
View
5 games-emulation/ps2emu-zerogs/Manifest
@@ -4,6 +4,7 @@ AUX ps2emu-zerogs_custom-cflags.patch 537 RMD160 e7d32c813c3afc362c6e8b975cdc04f
AUX ps2emu-zerogs_devbuild-paths.patch 1430 RMD160 d3c4385ee11f5d863c1625f1da498cc7f82b412e SHA1 19b229b49475332b6a329a075f27048ba9662151 SHA256 6a03f12a878e69291b8bcd63ad9f2a0ed6399522e24fe2aa83e26834cd1346a7
AUX ps2emu-zerogs_gcc43.patch 820 RMD160 7b6eaa6691e3c63fa1386bc6b8d8ffb49af3ba3a SHA1 14ca775008e1b4855c8ddea7c7bc4ee30efd848a SHA256 a5aae482a6ce591b6fa5bdf61a574c5f7411130cd4c150e362c3170f91e0aceb
AUX ps2emu-zerogs_gentoo.patch 622 RMD160 21bc9d0a58a70d6d653de0248f79fc8000e8e641 SHA1 1daef4d4ad8180943642053578ee984f611fbd30 SHA256 c3728234ab09be53eb29fd2d7d6ff5940f030ed163dcff4507cdee7e2754ae5f
-DIST Pcsx2_0.9.6_source.7z 4019202 RMD160 a4570fbc196c9898abd966590f4547cc7d34ad8d SHA1 53a89b2a5248cfa0793fc30c0db26fa1649ceae3 SHA256 f55ea7364347331b2bfeef48d5288bb430c53d6173be0374e9e7c1bb0c2f866f
-EBUILD ps2emu-zerogs-0.96.7-r1.ebuild 2753 RMD160 d62b6a1a442f59496d2568ae261878a90bd964f6 SHA1 99b49ba512a2df4df4c6d022a8088d0e63a82660 SHA256 efe57c277552752a4e6e5f968eecd525cee39629818a16af547262787ac6d975
MISC metadata.xml 359 RMD160 aa811da978a36e86e732198143c4c562f71bade7 SHA1 4519e62ec2c34305e43a5ad14f08866ad2341084 SHA256 ceff97d20cfb873d3c0ce9ac99d5c01727d05b9aff200eae9ce1097780fcf52c
+EBUILD ps2emu-zerogs-0.96.7-r1.ebuild 2753 RMD160 d62b6a1a442f59496d2568ae261878a90bd964f6 SHA1 99b49ba512a2df4df4c6d022a8088d0e63a82660 SHA256 efe57c277552752a4e6e5f968eecd525cee39629818a16af547262787ac6d975
+EBUILD ps2emu-zerogs-0.96.7-r2.ebuild 2781 RMD160 d741b845b6404cc9a48396f1fbd77a501d1a767e SHA1 1c123f8c676290a596bad8266a395dec3140ed25 SHA256 d4f977d4ec93d961c711cf9102f0e45d77117860791a2421d5599fbca217bb54
+DIST Pcsx2_0.9.6_source.7z 4019202 RMD160 a4570fbc196c9898abd966590f4547cc7d34ad8d SHA1 53a89b2a5248cfa0793fc30c0db26fa1649ceae3 SHA256 f55ea7364347331b2bfeef48d5288bb430c53d6173be0374e9e7c1bb0c2f866f
View
119 games-emulation/ps2emu-zerogs/ps2emu-zerogs-0.96.7-r2.ebuild
@@ -0,0 +1,119 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=2
+inherit eutils games flag-o-matic multilib autotools
+
+DESCRIPTION="PS2Emu ZeroGS OpenGL plugin"
+HOMEPAGE="http://www.pcsx2.net/"
+PCSX2_VER="0.9.6"
+SRC_URI="http://www.pcsx2.net/files/12310 -> Pcsx2_${PCSX2_VER}_source.7z"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+RESTRICT="primaryuri"
+IUSE="debug sse2 shaders"
+
+DEPEND="
+ app-arch/p7zip
+ 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
+ )"
+
+
+RDEPEND="${DEPEND}
+ !games-emulation/ps2emu-zzogl
+ games-emulation/pcsx2"
+
+#S="${WORKDIR}/opengl"
+S="${WORKDIR}/rc_${PCSX2_VER}/plugins/zerogs/opengl"
+
+pkg_setup() {
+ games_pkg_setup
+
+ if ! use debug && use shaders; then
+ append-ldflags -Wl,--no-as-needed
+ fi
+ append-ldflags -Wl,--no-undefined
+
+ if use shaders; then
+ ewarn "If compilation fails, try recompiling with USE=\"-shaders\""
+ fi
+
+ 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_prepare() {
+ epatch "${FILESDIR}/${PN}_gcc43.patch"
+ epatch "${FILESDIR}/${PN}_devbuild-paths.patch"
+ epatch "${FILESDIR}/${PN}_consistent-naming.patch"
+ epatch "${FILESDIR}/${PN}_custom-cflags.patch"
+ epatch "${FILESDIR}/${PN}_compile-shaders.patch"
+ epatch "${FILESDIR}/${PN}_gentoo.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
+ eerror "If the failure is about undefined references to __glew*, make"
+ eerror "sure you have the media-libs/glew from the pcsx2 overlay installed."
+ 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.* libZeroGSogl.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
+}
View
3  games-emulation/ps2emu-zzogl/Manifest
@@ -4,5 +4,6 @@ AUX ps2emu-zzogl_gcc43.patch 407 RMD160 6fb0bc838f07b891925f12ec5b5bd14a540cd674
AUX ps2emu-zzogl_gentoo.patch 1163 RMD160 f0fa0290d510c1f7aa923d76cd9b8a1baddd976a SHA1 ce0275bb0898a6bc9da287ebcd3ef468c8ec4097 SHA256 0c222a58f54334d526ba2e3daec0a6ca2b4c545885a28ba821a2841b280833d3
AUX ps2emu-zzogl_include-paths.patch 516 RMD160 3834a15176bb4526df3f854d25a662e2c8a9ba66 SHA1 c2320005986eab371e0f33d84a40080020468107 SHA256 27c307667bae7d3bdda06735ed0aa608ed9ed61bd02659aac16cba7b19f938f6
AUX ps2emu-zzogl_required-libraries.patch 787 RMD160 b89f9f86b081f0c46162a6741c6dd854aa1681b7 SHA1 5eb052472b79238de55e3c36a0cab61de92e1a70 SHA256 cd50437fa10862131c1541442d7923f9eccc312ad26d67ec9eba9e5bb57d43cc
-EBUILD ps2emu-zzogl-0.1.166.ebuild 2760 RMD160 a068cfc535bbada84b8c44047b267e4ac4c93252 SHA1 78566651c7777cb6ac1561e813b611b5a8064f31 SHA256 903e1ae525a00e8860bdeccffdbb7acf974e76c884f1c4e8d64adfbe95c58b87
MISC metadata.xml 359 RMD160 aa811da978a36e86e732198143c4c562f71bade7 SHA1 4519e62ec2c34305e43a5ad14f08866ad2341084 SHA256 ceff97d20cfb873d3c0ce9ac99d5c01727d05b9aff200eae9ce1097780fcf52c
+EBUILD ps2emu-zzogl-0.1.166-r1.ebuild 2768 RMD160 23bea591be38ee7ec953712000ca5f5f5360f1c2 SHA1 b86afc92c167727c5a7a7727245f0553d24d1154 SHA256 7040d8daf07b5abada90ffef9b1b4626d103f05fce2f95736839df81f081a0b7
+EBUILD ps2emu-zzogl-0.1.166.ebuild 2760 RMD160 a068cfc535bbada84b8c44047b267e4ac4c93252 SHA1 78566651c7777cb6ac1561e813b611b5a8064f31 SHA256 903e1ae525a00e8860bdeccffdbb7acf974e76c884f1c4e8d64adfbe95c58b87
View
121 games-emulation/ps2emu-zzogl/ps2emu-zzogl-0.1.166-r1.ebuild
@@ -0,0 +1,121 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=2
+MY_PV="166"
+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
+ )
+ "
+
+RDEPEND="${DEPEND}
+ !games-emulation/ps2emu-zerogs
+ 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,--no-undefined
+
+ if use shaders; then
+ ewarn "If compilation fails, try recompiling with USE=\"-shaders\""
+ fi
+
+ 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
+ eerror "If the failure is about undefined references to __glew*, make"
+ eerror "sure you have the media-libs/glew from the pcsx2 overlay installed."
+ 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
+}
Please sign in to comment.
Something went wrong with that request. Please try again.