diff options
Diffstat (limited to 'games-fps/quake4-bin')
-rw-r--r-- | games-fps/quake4-bin/Manifest | 5 | ||||
-rw-r--r-- | games-fps/quake4-bin/metadata.xml | 25 | ||||
-rw-r--r-- | games-fps/quake4-bin/quake4-bin-1.4.2-r1.ebuild | 144 |
3 files changed, 174 insertions, 0 deletions
diff --git a/games-fps/quake4-bin/Manifest b/games-fps/quake4-bin/Manifest new file mode 100644 index 000000000000..331c6efbb2be --- /dev/null +++ b/games-fps/quake4-bin/Manifest @@ -0,0 +1,5 @@ +DIST quake4-linux-1.4.2.x86.run 287552973 SHA256 9203b387b1a4075a1b9ad1eb7be32b49a88141a448d9330d9cbe1f40a145bd6a SHA512 a6a390a8f46c7e696fe865d0688c9a95eb0d9e32ad62ecb796dcc03618994ec065e8c74358518221cb6c8771d2414ed7e144c77a1a8ecd4ae9ce6406459c5f36 WHIRLPOOL 14064a8553a3e4b4defb74e450beaade3b687c7b102ad71881c0fa86f5e3f0e848f2b6e6c896a1c6e8bc3faadc8969535e30dfb315e9009ae902c64de1bbed9a +EBUILD quake4-bin-1.4.2-r1.ebuild 4012 SHA256 9a076e1e1e7f5de4c405604a2fd943777a0ad7481ff3eb75a3b2a08b1c315b7a SHA512 e1c9ccbee99071028b83db5796e45fb5dda7a563aa991781ba85c461b89781e956f380f8da70dcf60b337ce66d714259c3b9118767fa6f71b564851252e7c04a WHIRLPOOL c79a9bfdc53c72e4d3ee130f556baeeea33668e65909aa3f3440cb10724f111f60582290801727db5cdfbb8e3d740b5fa2bd978a02788a7b73a1e888947f40b5 +MISC ChangeLog 2585 SHA256 9a17df6fbb5896aa1a0231e78c8c1dcfde48d700a90b24b81008daaca5d93a49 SHA512 68e8f0e96b6031ccc33ae922b8ab17ff9c6bf9ed258644ffc75039dd51d43c4e782fc55dc8b749c0c1a75046fa08cc9b535e900556c419ff4d36053924d1f7c2 WHIRLPOOL 464fe5de52fe7a062c6e198e24a517f6cdaaedb3eafacc89524c206b7359b9f769f17194bf67ade5b1bfbf9aa4e984ca8e0777037c966a3be7e6edfbf7c73eb4 +MISC ChangeLog-2015 7151 SHA256 a87f931f1337fd433bb59a75203af7b18bab92fe3abfe8e296b6cf2ee3feba77 SHA512 840e85247ed177a062571ffa2205c9430af65d5e749fc82f0072514046aff21adbd5691e6356397f45b2700e9672da5a87a73308e59b8d162abf0429bc557566 WHIRLPOOL cc434d33f2ef7d0ee8350e86eb46a399c8344f75821bb121e093d7621dacb3ce891087f62dd27fe0586af54958cbcff109fb591692feca5bf2062e23890290b5 +MISC metadata.xml 1137 SHA256 5986bf72fc86948c8b4f17b25aae8913350391768b1bcc43c916414690eab496 SHA512 1ede51f4fcebc6a451ab4790e5d26fd07f464461d15b31c065eb02a77bdc114ba4ec35fb0ca380d980c416007e4671532b053477709fd7d28210b64423132d31 WHIRLPOOL 8502586683556faed16f29c9ac748d3125dfde05586875dffbfb25a86a98e9a8ddf1103b9a1a722f93daf9eab5b5d8d2279de96be97b48f9be2e8ed97ee5c7de diff --git a/games-fps/quake4-bin/metadata.xml b/games-fps/quake4-bin/metadata.xml new file mode 100644 index 000000000000..068a2588cec4 --- /dev/null +++ b/games-fps/quake4-bin/metadata.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> +</maintainer> +<longdescription> +In a desparate war for Earth's survival against and unrelenting alient enemy, +the only way to defeat them is to become one of them. + +Earth is under seige by the Strogg, a barbaric alien race moving through the +universe consuming, recycling and annihilating any civilization in their path. +In a deperate attempt to survive, an armada of Earth's finest warriors is sent +to take the battle to the Strogg home planet. + +You are Matthow Kane, an elite member of Rhino Squad and Eath's valiant invasion +force. Fight alone, with your squad, or in hover tanks and mechanized walkers +as you engage in a heroic mission the the heart of the Strogg war machine. + +Quake 4 is the fourth installment of the extremely popular and successful Quake +series by id software. This game is commercial software, and requires the data +from a retail copy of the game to play. +</longdescription> +</pkgmetadata> diff --git a/games-fps/quake4-bin/quake4-bin-1.4.2-r1.ebuild b/games-fps/quake4-bin/quake4-bin-1.4.2-r1.ebuild new file mode 100644 index 000000000000..46165b2bef2b --- /dev/null +++ b/games-fps/quake4-bin/quake4-bin-1.4.2-r1.ebuild @@ -0,0 +1,144 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils unpacker games + +DESCRIPTION="Sequel to Quake 2, an id Software 3D first-person shooter" +HOMEPAGE="http://www.quake4game.com/" +SRC_URI="mirror://idsoftware/quake4/linux/quake4-linux-${PV}.x86.run" + +LICENSE="QUAKE4" +SLOT="0" +KEYWORDS="-* amd64 x86" +IUSE="cdinstall dedicated l10n_cs l10n_fr l10n_it l10n_pl l10n_ru" +RESTRICT="strip" + +# QUAKE4 NEEDS s3tc support, which can be obtained for OSS drivers via +# media-libs/libtxc_dxtn and is built into the proprietary drivers. +# depend optionally on them but elog too, in case a user has both +# proprietary and OSS drivers installed and sees the segfault. + +RDEPEND="sys-libs/glibc + amd64? ( sys-libs/glibc[multilib] ) + sys-libs/zlib[abi_x86_32(-)] + dedicated? ( app-misc/screen ) + !dedicated? ( + || ( + >=media-libs/libtxc_dxtn-1.0.1-r1[abi_x86_32(-)] + x11-drivers/nvidia-drivers + >=x11-drivers/ati-drivers-8.8.25-r1 + ) + >=x11-libs/libX11-1.6.2[abi_x86_32(-)] + >=x11-libs/libXext-1.3.2[abi_x86_32(-)] + >=media-libs/libsdl-1.2.15-r4[X,opengl,sound,abi_x86_32(-)] + ) + cdinstall? ( games-fps/quake4-data )" + +S=${WORKDIR} +dir=${GAMES_PREFIX_OPT}/quake4 +Ddir=${D}/${dir} + +QA_TEXTRELS="${dir:1}/pb/pbag.so + ${dir:1}/pb/pbags.so + ${dir:1}/pb/pbcl.so + ${dir:1}/pb/pbcls.so + ${dir:1}/pb/pbsv.so + ${dir:1}/libSDL-1.2.id.so.0" +QA_EXECSTACK="${dir:1}/quake4.x86 + ${dir:1}/quake4smp.x86 + ${dir:1}/q4ded.x86 + ${dir:1}/libSDL-1.2.id.so.0" + +zpaklang() { + if ! use l10n_${1} ; then + einfo "Removing ${2} zpak files" + rm -f q4base/zpak_${2}* + fi +} + +src_unpack() { + unpack_makeself ${A} + + mv q4icon.bmp quake4.bmp || die + + # Am including the Spanish files because Spanish is the default language + #zpaklang es spanish + zpaklang cs czech + zpaklang fr french + zpaklang it italian + zpaklang pl polish + zpaklang ru russian + + # Rename the .off files, so they will be used + cd q4base + if [[ ! -z $(ls *.off 2> /dev/null) ]] ; then + local f + for f in *.off ; do + einfo "Renaming ${f}" + mv "${f}" "${f%.off}" || die "mv ${f}" + done + fi +} + +src_install() { + insinto "${dir}" + doins CHANGES* License.txt sdl.patch.1.2.10 us/version.info + doins -r pb q4mp + dodoc README* + + insinto "${dir}"/q4base + doins q4base/* us/q4base/* || die "doins q4base" + games_make_wrapper quake4-ded ./q4ded.x86 "${dir}" "${dir}" + + exeinto "${dir}" + doexe openurl.sh bin/Linux/x86/q4ded.x86 + + if ! use dedicated ; then + doexe bin/Linux/x86/{quake4{,smp}.x86,*.id.so.?} + doicon quake4.bmp || die "doicon" + games_make_wrapper quake4 "./quake4.x86" "${dir}" "${dir}" + games_make_wrapper quake4-smp ./quake4smp.x86 "${dir}" "${dir}" + icon_path="quake4" + if [ -e "${FILESDIR}"/quake4.png ] + then + doicon "${FILESDIR}"/quake4.png || die "copying icon" + elif [ -e "${DISTDIR}"/quake4.png ] + then + doicon "${DISTDIR}"/quake4.png || die "copying icon" + else + icon_path=/usr/share/pixmaps/quake4.bmp + fi + make_desktop_entry quake4 "Quake IV" ${icon_path} + make_desktop_entry quake4-smp "Quake IV (SMP)" ${icon_path} + fi + + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + + if ! use cdinstall ; then + elog "You need to copy pak001.pk4 through pak012.pk4, along with" + elog "zpak*.pk4 from either your installation media or your hard drive" + elog "to ${dir}/q4base before running the game." + echo + fi + if ! use dedicated ; then + elog "To play the game, run: quake4" + elog + # The default language is Spanish! + elog "To reset the language from Spanish to English, run:" + elog " sed -i 's:spanish:english:' ~/.quake4/q4base/Quake4Config.cfg" + elog + elog "Saved games from previous Quake 4 versions might not be compatible." + elog + elog "If you get a segmentation fault or an error regarding" + elog "'GL_EXT_texture_compression_s3tc', you can obtain the" + elog "necessary support for your mesa drivers by installing" + elog "media-libs/libtxc_dxtn (for abi_x86_32 if multilib)." + echo + fi + elog "To start the dedicated server, run: quake4-ded" +} |