diff options
author | 2018-08-01 16:08:45 +0200 | |
---|---|---|
committer | 2018-08-01 16:08:45 +0200 | |
commit | fdec43b3f34de43874019eaf2fd85b86dd4381bb (patch) | |
tree | 490bb6679ea4ca61dd9e91dd2f9c4ff3861f8e13 /games-fps | |
parent | Remove unused system-timidity useflag for gzdoom (diff) | |
download | haarp-fdec43b3f34de43874019eaf2fd85b86dd4381bb.tar.gz haarp-fdec43b3f34de43874019eaf2fd85b86dd4381bb.tar.bz2 haarp-fdec43b3f34de43874019eaf2fd85b86dd4381bb.zip |
Add GZDoom 3.5.0, including an useflag to switch to vintage builds
Diffstat (limited to 'games-fps')
-rw-r--r-- | games-fps/gzdoom/Manifest | 5 | ||||
-rw-r--r-- | games-fps/gzdoom/gzdoom-3.5.0.ebuild | 85 | ||||
-rw-r--r-- | games-fps/gzdoom/metadata.xml | 1 |
3 files changed, 90 insertions, 1 deletions
diff --git a/games-fps/gzdoom/Manifest b/games-fps/gzdoom/Manifest index 2dd9c9e..060e333 100644 --- a/games-fps/gzdoom/Manifest +++ b/games-fps/gzdoom/Manifest @@ -1,6 +1,9 @@ DIST gzdoom-g3.2.3.zip 10636714 BLAKE2B d3d6c53575f335f843e7e0104950a9a314298d2a3a45301f5e267548198b3540f42eff532e2abd333918203b7981890570bfccb09c55d00b86d5a915d4071fdc SHA512 1b6bdd542c7fe090bf89d81451d877d9b42f111f8b8a406b0040cafdfeb959fa007e343893debd27de447f5c950de67dba240c9d432e697ec577e8602d87ff11 DIST gzdoom-g3.4.1.zip 11499076 BLAKE2B f7e9b1f303752ea2442b67347c106bec054e7cda318b52085c061617b00021d1e550b06001f6f74f6c8b91d15972829e2aafa5033b11b03353aa55e5d73ce522 SHA512 512b2e51b01b6b74cd7373e31643f196f962b71bdae19621fd4fa7f7bf54f863088e26818354b840947b48abe9f6644e05eb80601ded13fb6d18af93d43dc728 +DIST gzdoom-src-g3.5.0.zip 11589396 BLAKE2B 02970808cffcf2098de347997deb05500978f671509baad94d49cd35bd70b5451baebd9d80e4781e03cfdfc25de61fcff1a175eec277f5f61b55d47c93536da3 SHA512 d3cf241b8d7b275a2ed50d601bd3e7ee19fb32ca2c7ec628a25ebf5f9bfebbecf52d7b32d7c63e35538c76d67604992b4cc4dfdb4f6b2a4f3b79702c772f0d2f +DIST gzdoom-src-g3.5.0_legacy.zip 11666223 BLAKE2B a9964e6b99ad58db9da2abfd956c0f82001f7a1ec3496b53fe038c9b9f91a5d84e1696dbec33f4996028ce26de4776fe613ef2e00894d1379061ff588c911585 SHA512 5a82bd0a90a82c56cd5167c0455dd29a15cad2e9b3058a686f9d3d1314f5153004c53eab8cd35a4f06196af29c5149ad7037a830f08cb88f379f1c9acb9c7ce6 EBUILD gzdoom-3.2.3.ebuild 1534 BLAKE2B 3ac64e6f8de37bf85a1cf2b4a1dc4c1cb3712c33273477c28a3eaf81fe8134dbf533995f64b4450157fb3bfac20c854182f9231c0ea15739d9e1dd8c584b9d57 SHA512 725c7d9407d3c372b50540fec7e56782927ebecd8b7167e023869f9b7d9d8376a1ed15ee32acb83c36a3b547b975fa62b806799b38f049921fdb5d04e3c89af9 EBUILD gzdoom-3.4.1-r1.ebuild 2156 BLAKE2B 8cc27f651fd011dbe0b9871ed405d2f6cb6d2210c9f28430a48a9dc87855e6d3d516ebeb872a9e7ff500040f9629cf1ecd25191ad2cbaa2d908fea92ded64aac SHA512 fa77101e7ee6d477517f19d57e433d35dc93d9b5465d2c5f1ce90ffb1ae5abacf7a4846073dcf917ec27d9c70882a332c1694718aca86fe606b4cca368891480 +EBUILD gzdoom-3.5.0.ebuild 2215 BLAKE2B 7e07bb27d41e3161f3f920ee6a5eb639738f67bf6d69b21ce03e7af66d8b9254971c64a690498a3092c6c8870f66c535e62d27131b107d98cb695911b21090cd SHA512 5ab8d14a63e85380398387cdd72f104ef29417d1f81fd61d520a196976a90c6ef541570bc3de19e14f3dee3e592d0b890520cc7315734f2dee5a5aaea0e1a18e EBUILD gzdoom-9999-r1.ebuild 2156 BLAKE2B 8cc27f651fd011dbe0b9871ed405d2f6cb6d2210c9f28430a48a9dc87855e6d3d516ebeb872a9e7ff500040f9629cf1ecd25191ad2cbaa2d908fea92ded64aac SHA512 fa77101e7ee6d477517f19d57e433d35dc93d9b5465d2c5f1ce90ffb1ae5abacf7a4846073dcf917ec27d9c70882a332c1694718aca86fe606b4cca368891480 -MISC metadata.xml 209 BLAKE2B 33379e9e99cbdf92e08d56493ff29921c92fa82e54df125720deac16f4e1baa34008718c880034426c16f756bb7d0be0eb6a41632712e724efadbf05200a104b SHA512 ea91ad4eadb2073643e37878109c4849a1cc73692e6e88552fbc3f5f0ef16367ae186951ef8ccc59173b023d5f344d22c758e6adabed2d215563c4304262295b +MISC metadata.xml 313 BLAKE2B 71630a90c0ad19f32abafcb65b182f3d731de7372423cea0ec0aab49fcc3cffd57c86316e31ae01b7d0d6e94ebc4ffeccaacc99609af87bcb15af2e626bf5645 SHA512 3682ec2b82243507a1ddf1cdb4045820003d61faf1506f93066682b9046ea02abed19ef3ca52dfa8df2d4d973d14431fcba8419012238f525a61fd1a61e22a56 diff --git a/games-fps/gzdoom/gzdoom-3.5.0.ebuild b/games-fps/gzdoom/gzdoom-3.5.0.ebuild new file mode 100644 index 0000000..5391eda --- /dev/null +++ b/games-fps/gzdoom/gzdoom-3.5.0.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils cmake-utils + +DESCRIPTION="A 3D-accelerated Doom source port based on ZDoom code" +HOMEPAGE="https://zdoom.org" + +SRC_URI="https://zdoom.org/files/gzdoom/src/${PN}-src-g${PV}.zip https://zdoom.org/files/gzdoom/src/${PN}-src-g${PV}_legacy.zip" +KEYWORDS="~amd64 ~x86" + +LICENSE="GPL-3" +SLOT="0" +IUSE="+gtk3 legacy-opengl" + +RDEPEND="gtk3? ( x11-libs/gtk+:3 ) + media-libs/libsdl2 + virtual/glu + virtual/jpeg:62 + virtual/opengl" + +DEPEND="${RDEPEND} + || ( dev-lang/nasm dev-lang/yasm )" + +src_unpack(){ + if use legacy-opengl; then + S="${WORKDIR}/${PN}-g${PV}_legacy" + else + S="${WORKDIR}/${PN}-g${PV}" + fi + + default +} + +src_prepare() { + # Use default data path + sed -i -e "s:/usr/local/share/:/usr/share/doom-data/:" src/posix/i_system.h + sed -i -e '/SetValueForKey ("Path", "\/usr\/share\/games\/doom", true);/ a \\t\tSetValueForKey ("Path", "/usr/share/doom-data", true);' \ + src/gameconfigfile.cpp + sed -i -e '/SetValueForKey("Path", "\/usr\/share\/games\/doom\/soundfonts", true);/ a \\t\tSetValueForKey ("Path", "/usr/share/doom-data/soundfonts", true);' \ + src/gameconfigfile.cpp + + cmake-utils_src_prepare +} + +src_configure() { + mycmakeargs=( + -DNO_GTK="$(usex gtk3 no yes)" + ) + + cmake-utils_src_configure +} + +src_install() { + dodoc docs/*.txt + dohtml docs/console*.{css,html} + + newicon "src/posix/zdoom.xpm" "${PN}.xpm" + make_desktop_entry "${PN}" "GZDoom" "${PN}" "Game;ActionGame;" + + cd "${BUILD_DIR}" + + insinto "/usr/share/doom-data" + doins *.pk3 + insinto "/usr/share/doom-data/soundfonts" + doins soundfonts/*.sf2 + + dobin "${PN}" +} + +pkg_postinst() { + elog "Copy or link wad files into /usr/share/doom-data/" + elog "ATTENTION: The path has changed! It used to be /usr/share/games/doom-data/" + elog + elog "Starting from GZDoom 3.3.0, TiMidity++ is now an internal MIDI player." + elog "Unfortunately, it does not support system soundfonts directly." + elog "To make them selectable, turn '/usr/share/timidity/foo' into a zip archive and put it" + elog 'into /usr/share/doom-data/soundfonts/ or $HOME/.config/gzdoom/soundfonts/' + elog + elog "To play, simply run:" + elog " gzdoom" + elog +} diff --git a/games-fps/gzdoom/metadata.xml b/games-fps/gzdoom/metadata.xml index 524f595..c864252 100644 --- a/games-fps/gzdoom/metadata.xml +++ b/games-fps/gzdoom/metadata.xml @@ -3,5 +3,6 @@ <pkgmetadata> <use> <flag name="gtk3">Build graphical IWAD picker</flag> + <flag name="legacy-opengl">Build "vintage" version for better performance on OpenGL 2 hardware</flag> </use> </pkgmetadata> |