summaryrefslogtreecommitdiff
path: root/games-fps/serious-sam-tfe
diff options
context:
space:
mode:
Diffstat (limited to 'games-fps/serious-sam-tfe')
-rw-r--r--games-fps/serious-sam-tfe/Manifest8
-rw-r--r--games-fps/serious-sam-tfe/metadata.xml5
-rw-r--r--games-fps/serious-sam-tfe/serious-sam-tfe-1_beta3.ebuild137
3 files changed, 150 insertions, 0 deletions
diff --git a/games-fps/serious-sam-tfe/Manifest b/games-fps/serious-sam-tfe/Manifest
new file mode 100644
index 000000000000..f2e8c948f2f9
--- /dev/null
+++ b/games-fps/serious-sam-tfe/Manifest
@@ -0,0 +1,8 @@
+DIST ssam-tfe-lnx-beta1a.run 8802528 SHA256 844b0387696e6e217285833fa7506e1a2d2494a38d5e843edb3a063bce32b7ea SHA512 dfef0c34a6f96e296272a1e82a3ffeaa3fde4a7affc8290f6d1878e5c65855ec24ab57fe895b62795369acf11fdfbc93e47c8cfaf362d531fbccca9aadb8f0fc WHIRLPOOL 95de7e653d896fa67b50640083b44f685eec70e425accb671470853345d0ef8dcb5d00abf853059c5559521c28c5bd4de8d7322c0352ca132289d315410c464f
+DIST ssamtfe-beta1b.sh.bin 1799399 SHA256 712309ac99ed139ffbd91360167c5e82d7fb8378b005c9873e835f581011b619 SHA512 c7f416b2b21443c2092ebe8806757b59d19b286956f6c2ce74b77f9aaf4ec6a0ff3cd1db888bdb39cc8b427238c4a851c875bc9c9ec4733c82a557231391a346 WHIRLPOOL 4b095d4a96a9dae1d474a8a73c23b76154fcc3d9567a5f2b926abadd5ab86675458fdb48504a5ce4f340d632e9eac0c06530168c47f910c0208a53e6401eed3e
+DIST ssamtfe-beta2.sh.bin 3083565 SHA256 6e43a8f536423f5d675a339925516d608f1f4ace9ad360674956b5f9cc3376b6 SHA512 9e592d8c47d169738eb9b0c7c3ee4960fdf1f0427d53ed1d5918934ecd0fe0f81c34798de7410f971e36b7b11f7a569fdcb74136610bde0472d059c529c826c5 WHIRLPOOL 1702ee0537a9193084703e4cbe0fbdc0153db446b5b42be6cd2bcca028a9729e4aba0b9f46c3a03e71898aa00b3bfacb6a71fb023c0c70a51813cfc64b69e43e
+DIST ssamtfe-beta3.sh.bin 3828409 SHA256 609f5b5fd21821e6a079b36770d9dbdcabc5e64ed6ac190d4005df5ec22e980f SHA512 a3055cab0a5162358ae7696eac5613a344a3ab2a1369f3693e56647650f4d21ebc566ee99fb5f03885b4416aec830d93b00e838d9ebb8187924918b333b072a2 WHIRLPOOL 9a8db0a4a47b695f9389aefc1dca04689129269f820d3bc392834443eb8d1d051a972f82aaeace15250715fd9a263fe3f1ebe846c3b349e66971160e47e73fed
+EBUILD serious-sam-tfe-1_beta3.ebuild 3179 SHA256 f000cda7b93c375e6e029a02ce42ade7198a66e1cc0b2c144e3af40537dbc59f SHA512 85a7f0571f2d7cf715a5902c88bec1de1095ae784c6ad2aef0a2080ab7eb73a374a18447ced56fb52f129e517fa9bc449f42a911f878fe651c42156444d877e9 WHIRLPOOL aef7207c95a7e05613599fa205639e44ec0e5e4cc84cea53aab616fcae488d926bed0fb822767135fa51ea052e1f72170e93ba23a6576a475f24258f93061a67
+MISC ChangeLog 2205 SHA256 be2cf996455ee04c808b63a4d8d098fb2fcbd9e218572ac1545a38c2d62f600a SHA512 92684eac76fd2dda95b394583df571fe0b9e61cb566b640983e7f021cc0c0a606bd9483a169af52ce1237ca4bd53cf95bb100f0bc06e7f9247eea541e148b7bf WHIRLPOOL 13971903a19e0bf2e267556f663a153dbb0c970608500482ff0bcc14595c3b4f18fd8e3e554869fa4479902dc333b49b148187152a08ec231372031cb2a6c63a
+MISC ChangeLog-2015 894 SHA256 ec736c9e5761b1438fe0141717b10ef7719d1e25bc03c14d6ce26f79ed6a3152 SHA512 f53dbadea1bf00de8dad55d6b25f6ecf076cfb3cacbd78cb637b9b4bf497d8cc08b3104198b5f3d6e054473ae7b37ad5fd86f12c0a9bdc2cb88a898aa3033bec WHIRLPOOL 635a948cf31d375ff08a84327a9e746e2f4e27fdc5a5f051dcaa689e9da56f8ae32f727100eeb27eb30d80261da99ae0ab8480161248180e7fd08943677cf4e6
+MISC metadata.xml 167 SHA256 5fe493e76bba84455c54b3a46adfae5a1bfe01c764ef0d9e5f6d3e8a1d142188 SHA512 7c8decb24ee3a850e38186cf3c7f8933a28017426806870ad6ef9ceb2533be147a2681fc789b535a81cb528af8c29d90d3006e4f250aee23bd7dea4561294e33 WHIRLPOOL dc6c3dfc7fd7f0d76c97f0786cb76a55b8564f8437f96d4ccebf985817b9f6dcc4c61830aa5df80d725e4a54b281ea2e03d6b0859214af081112cba15025e64b
diff --git a/games-fps/serious-sam-tfe/metadata.xml b/games-fps/serious-sam-tfe/metadata.xml
new file mode 100644
index 000000000000..7a38bb900964
--- /dev/null
+++ b/games-fps/serious-sam-tfe/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/games-fps/serious-sam-tfe/serious-sam-tfe-1_beta3.ebuild b/games-fps/serious-sam-tfe/serious-sam-tfe-1_beta3.ebuild
new file mode 100644
index 000000000000..e42a75cfd668
--- /dev/null
+++ b/games-fps/serious-sam-tfe/serious-sam-tfe-1_beta3.ebuild
@@ -0,0 +1,137 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit cdrom eutils games unpacker
+
+MY_PN="ssamtfe"
+
+DESCRIPTION="Serious Sam: The First Encounter"
+HOMEPAGE="http://www.croteam.com/
+ http://www.seriouszone.com/
+ http://icculus.org/betas/ssam/"
+SRC_URI="http://icculus.org/betas/ssam/ssam-tfe-lnx-beta1a.run
+ http://icculus.org/updates/ssam/${MY_PN}-beta1b.sh.bin
+ http://icculus.org/updates/ssam/${MY_PN}-beta2.sh.bin
+ http://icculus.org/updates/ssam/${MY_PN}-beta3.sh.bin"
+LICENSE="LOKI-EULA"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+RESTRICT="strip"
+IUSE="alsa"
+
+RDEPEND="
+ >=media-libs/libsdl-1.2.15-r5[X,joystick,opengl,video,abi_x86_32(-)]
+ virtual/opengl[abi_x86_32(-)]
+ alsa? (
+ >=media-libs/libogg-1.3.1[abi_x86_32(-)]
+ >=media-libs/libsdl-1.2.15-r5[alsa,sound,abi_x86_32(-)]
+ >=media-libs/libvorbis-1.3.3-r1[abi_x86_32(-)]
+ )
+"
+
+DEPEND="games-util/loki_patch"
+
+S=${WORKDIR}
+
+QA_TEXTRELS="
+opt/ssamtfe/Bin/libGame.so
+opt/ssamtfe/Bin/libEntities.so
+opt/ssamtfe/Bin/libamp11lib.so
+opt/ssamtfe/Bin/libShaders.so
+"
+
+QA_FLAGS_IGNORED="
+opt/ssamtfe/Bin/libEntities.so
+opt/ssamtfe/Bin/libGame.so
+opt/ssamtfe/Bin/libamp11lib.so
+opt/ssamtfe/Bin/libShaders.so
+opt/ssamtfe/Bin/ssam_lnxded
+opt/ssamtfe/Bin/ssam_lnxded.dynamic
+opt/ssamtfe/Bin/ssam_lnx.dynamic
+opt/ssamtfe/Bin/ssam_lnx
+"
+
+pkg_setup() {
+ games_pkg_setup
+
+ cdrom_get_cds "Install/1_00c.gro"
+}
+
+src_unpack() {
+ mkdir Mods Levels
+ unpack_makeself ssam-tfe-lnx-beta1a.run
+
+ # Copy files during unpack as the patches below apply to some of them
+ einfo "Copying from ${CDROM_ROOT}"
+ cp -r "${CDROM_ROOT}/Install"/* . || die "copy from CD failed"
+
+ nonfatal unpack ./SeriousSamPatch105_USA_linux.tar.bz2
+ unpack ./setupstuff.tar.gz
+ unpack ./bins.tar.bz2
+
+ # We need only runscript from bin/ directory
+ mv bin/${MY_PN} .
+ rm -r bin
+}
+
+src_prepare() {
+ # Apply the Icculus patches
+ local v
+ for v in 1b 2 3 ; do
+ echo "Unpacking version ${v}"
+ unpack_makeself "${MY_PN}-beta${v}.sh.bin"
+ loki_patch patch.dat . || die "loki patch ${v} failed"
+ rm patch.dat
+ done
+
+ # Remove unneeded files from Loki patches
+ rm -r bin
+
+ # Switch to dynamic executable - runs at sane speeds on modern hardware
+ sed -i -e 's;exec "./ssam_lnx";exec "./ssam_lnx.dynamic";' ${MY_PN} \
+ || die "dynamic binary update failed"
+}
+
+src_install() {
+ local dir=${GAMES_PREFIX_OPT}/${MY_PN}
+
+ # Remove bundled libs
+ rm Bin/{libogg,libvorbis,libvorbisfile}.so
+
+ # Remove unneeded files
+ rm *.{bin,bz2,cab,exe,ex_,ini,gz,sh}
+ rm -r data setup* Players Temp
+
+ # Install icon
+ newicon ssam.xpm ${MY_PN}.xpm
+
+ # Install documentation
+ dodoc README*
+
+ # Install all other files
+ insinto "${dir}"
+ doins -r *
+
+ # Install executables and wrapper script
+ exeinto "${dir}"
+ doexe ${MY_PN}
+ exeinto "${dir}"/Bin
+ doexe Bin/ssam_lnx*
+
+ games_make_wrapper ${MY_PN} ./${MY_PN} "${dir}" "${dir}"
+ make_desktop_entry ${MY_PN} "Serious Sam - First Encounter" ${MY_PN}
+
+ # Ensure that file datestamps from the CD are sane
+ find "${D}/${dir}" -exec touch '{}' \;
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ elog "The warning regarding 'XiG-SUNDRY-NONSTANDARD missing' is harmless"
+ echo
+}