From a5b65c81168c90928784a1e92cda84ed5d6b9eb3 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 25 Sep 2019 19:33:39 +0100 Subject: gentoo resync : 25.09.2019 --- games-fps/gzdoom/gzdoom-4.2.1.ebuild | 82 ++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 games-fps/gzdoom/gzdoom-4.2.1.ebuild (limited to 'games-fps/gzdoom/gzdoom-4.2.1.ebuild') diff --git a/games-fps/gzdoom/gzdoom-4.2.1.ebuild b/games-fps/gzdoom/gzdoom-4.2.1.ebuild new file mode 100644 index 000000000000..baca2173701c --- /dev/null +++ b/games-fps/gzdoom/gzdoom-4.2.1.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake-utils desktop xdg + +DESCRIPTION="A modder-friendly OpenGL source port based on the DOOM engine" +HOMEPAGE="https://zdoom.org" +SRC_URI="https://github.com/coelckers/${PN}/archive/g${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD BZIP2 DUMB-0.9.3 GPL-3 LGPL-3 MIT + nonfree? ( Activision ChexQuest3 DOOM-COLLECTORS-EDITION freedist )" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="gtk gtk2 +nonfree openmp" + +DEPEND=" + media-libs/libsdl2[opengl] + media-libs/libsndfile + media-libs/openal + media-sound/fluidsynth:= + media-sound/mpg123 + sys-libs/zlib + virtual/jpeg:0 + gtk? ( + gtk2? ( x11-libs/gtk+:2 ) + !gtk2? ( x11-libs/gtk+:3 ) + )" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${PN}-g${PV}" +PATCHES=( + "${FILESDIR}/${P}-install_soundfonts.patch" + "${FILESDIR}/${P}-Introduce-the-BUILD_NONFREE-option.patch" +) + +src_prepare() { + rm -rf docs/licenses || die + if ! use nonfree ; then + rm -rf wadsrc_bm wadsrc_extra || die + fi + + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DINSTALL_DOCS_PATH="${EPREFIX}/usr/share/doc/${PF}" + -DINSTALL_PK3_PATH="${EPREFIX}/usr/share/doom" + -DINSTALL_SOUNDFONT_PATH="${EPREFIX}/usr/share/doom" + -DDYN_FLUIDSYNTH=OFF + -DDYN_OPENAL=OFF + -DDYN_SNDFILE=OFF + -DDYN_MPG123=OFF + -DNO_GTK="$(usex !gtk)" + -DNO_OPENAL=OFF + -DNO_OPENMP="$(usex !openmp)" + -DBUILD_NONFREE="$(usex nonfree)" + ) + cmake-utils_src_configure +} + +src_install() { + newicon src/posix/zdoom.xpm "${PN}.xpm" + make_desktop_entry "${PN}" "GZDoom" "${PN}" "Game;ActionGame" + cmake-utils_src_install +} + +pkg_postinst() { + xdg_pkg_postinst + + if ! use nonfree ; then + ewarn + ewarn "GZDoom installed without nonfree components." + ewarn "Note: The nonfree game_support.pk3 file is needed to play" + ewarn " games natively supported by GZDoom." + ewarn "A list of games natively supported by GZDoom may be found" + ewarn "on the ZDoom wiki: https://zdoom.org/wiki/IWAD" + ewarn + fi +} -- cgit v1.2.3