diff --git a/games-fps/chocolate-doom/Manifest b/games-fps/chocolate-doom/Manifest new file mode 100644 index 0000000000..414ec22859 --- /dev/null +++ b/games-fps/chocolate-doom/Manifest @@ -0,0 +1 @@ +DIST chocolate-doom-3.0.0.tar.gz 2495591 BLAKE2B 11989b4b4458098af63c4b89a73552a8bb43c22077d358770b0e89e1b816950b92630592dcb5b4a782ccf673951b7e3d8503bc517577fe59d052d8b4f3f125e1 SHA512 41f235c0d84ef21070636ad0610e97898dfd366fae7f9244bd2aebf8974db98dcf55f70bcab2f93589b9bf31dd421db32e8af88e0f8e0a655d2b9f1d4ead2afd diff --git a/games-fps/chocolate-doom/chocolate-doom-3.0.0.ebuild b/games-fps/chocolate-doom/chocolate-doom-3.0.0.ebuild new file mode 100644 index 0000000000..ffdaa8a0b2 --- /dev/null +++ b/games-fps/chocolate-doom/chocolate-doom-3.0.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit xdg + +DESCRIPTION="A Doom source port that is minimalist and historically accurate" +HOMEPAGE="https://www.chocolate-doom.org" +SRC_URI="https://github.com/${PN}/${PN}/releases/download/${P}/${P}.tar.gz" + +LICENSE="BSD GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="bash-completion libsamplerate png python timidity +vorbis" + +DEPEND=" + media-libs/libsdl2 + media-libs/sdl2-mixer[timidity?,vorbis?] + media-libs/sdl2-net + libsamplerate? ( media-libs/libsamplerate ) + png? ( media-libs/libpng:= )" +RDEPEND=" + ${DEPEND} + bash-completion? ( app-shells/bash-completion ) + python? ( + dev-lang/python + dev-python/pillow + )" + +src_configure() { + econf \ + --docdir="${EPREFIX}/usr/share/doc/${P}/docs" \ + $(use_with libsamplerate) \ + $(use_with png libpng) +} + +pkg_preinst() { + xdg_pkg_preinst +} + +pkg_postinst() { + xdg_pkg_postinst +} + +pkg_postrm() { + xdg_pkg_postrm +} diff --git a/games-fps/chocolate-doom/metadata.xml b/games-fps/chocolate-doom/metadata.xml new file mode 100644 index 0000000000..b236c975b6 --- /dev/null +++ b/games-fps/chocolate-doom/metadata.xml @@ -0,0 +1,16 @@ + + + + + Chocolate Doom aims to accurately reproduce the original DOS version of Doom and other games based on the Doom engine in a form that can be run on modern computers. + + + vilhelm.gray@gmail.com + William Breathitt Gray + + + https://github.com/chocolate-doom/chocolate-doom/issues + https://www.chocolate-doom.org + chocolate-doom/chocolate-doom + + diff --git a/games-fps/crispy-doom/Manifest b/games-fps/crispy-doom/Manifest new file mode 100644 index 0000000000..90c9f22331 --- /dev/null +++ b/games-fps/crispy-doom/Manifest @@ -0,0 +1 @@ +DIST crispy-doom-5.5.2.tar.gz 2609091 BLAKE2B 75d8cad7d1acbd2948e95c6987cbe14ce29111dd357c5be38127875132cae4a170ebceb772e0b39151f137bfa752a8325dc02f419e79acfc767d7585cc8595a0 SHA512 0d17869a175291fc8998bccf7a58a663a3ab424a0f269ddab21ac3e6d354a89f7a34950bd961d9ca160fb7d2fe37b1bc756b58b84fedf099321dfa0eec994672 diff --git a/games-fps/crispy-doom/crispy-doom-5.5.2.ebuild b/games-fps/crispy-doom/crispy-doom-5.5.2.ebuild new file mode 100644 index 0000000000..641dc018d2 --- /dev/null +++ b/games-fps/crispy-doom/crispy-doom-5.5.2.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools xdg + +DESCRIPTION="A limit-removing enhanced-resolution Doom source port based on Chocolate Doom" +HOMEPAGE="https://github.com/fabiangreffrath/crispy-doom" +SRC_URI="https://github.com/fabiangreffrath/${PN}/archive/${P}.tar.gz" + +LICENSE="BSD GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="bash-completion libsamplerate png python timidity +vorbis zlib" + +DEPEND=" + media-libs/libsdl2 + media-libs/sdl2-mixer[timidity?,vorbis?] + media-libs/sdl2-net + libsamplerate? ( media-libs/libsamplerate ) + png? ( media-libs/libpng:= ) + zlib? ( sys-libs/zlib )" +RDEPEND=" + ${DEPEND} + bash-completion? ( app-shells/bash-completion ) + python? ( + dev-lang/python + dev-python/pillow + )" + +S="${WORKDIR}"/${PN}-${P} + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf \ + --docdir="${EPREFIX}/usr/share/doc/${P}/docs" \ + $(use_with libsamplerate) \ + $(use_with png libpng) \ + $(use_with zlib) +} + +pkg_preinst() { + xdg_pkg_preinst +} + +pkg_postinst() { + xdg_pkg_postinst +} + +pkg_postrm() { + xdg_pkg_postrm +} diff --git a/games-fps/crispy-doom/metadata.xml b/games-fps/crispy-doom/metadata.xml new file mode 100644 index 0000000000..5150d4b4d5 --- /dev/null +++ b/games-fps/crispy-doom/metadata.xml @@ -0,0 +1,16 @@ + + + + + Crispy Doom is a friendly fork of Chocolate Doom that provides a higher display resolution, removes the static limits of the Doom engine and offers further optional visual, tactical and physical enhancements while remaining entirely config file, savegame, netplay and demo compatible with the original. + + + vilhelm.gray@gmail.com + William Breathitt Gray + + + https://github.com/fabiangreffrath/crispy-doom/issues + https://github.com/fabiangreffrath/crispy-doom + fabiangreffrath/crispy-doom + + diff --git a/games-fps/gzdoom/files/4.1.1/0001-made-DUMB-library-always-static.patch b/games-fps/gzdoom/files/4.1.1/0001-made-DUMB-library-always-static.patch new file mode 100644 index 0000000000..b6e0829f3c --- /dev/null +++ b/games-fps/gzdoom/files/4.1.1/0001-made-DUMB-library-always-static.patch @@ -0,0 +1,26 @@ +From c96d8c198e95876cb27b7cf9d0ec8d510d7a643d Mon Sep 17 00:00:00 2001 +From: "alexey.lysiuk" +Date: Fri, 10 May 2019 15:35:57 +0300 +Subject: [PATCH] - made DUMB library always static + +DUMB uses dumb_decode_vorbis() function from the main executable, so it failed to link as a dynamic library +--- + dumb/CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/dumb/CMakeLists.txt b/dumb/CMakeLists.txt +index 85e052209..904ca75c3 100644 +--- a/dumb/CMakeLists.txt ++++ b/dumb/CMakeLists.txt +@@ -24,7 +24,7 @@ endif() + + include_directories( include ) + +-add_library( dumb ++add_library( dumb STATIC + src/core/unload.c + src/core/rendsig.c + src/core/rendduh.c +-- +2.21.0 + diff --git a/games-fps/gzdoom/files/4.1.1/0002-Force-STATIC-for-internal-GZDoom-libraries.patch b/games-fps/gzdoom/files/4.1.1/0002-Force-STATIC-for-internal-GZDoom-libraries.patch new file mode 100644 index 0000000000..f05a5f5ce2 --- /dev/null +++ b/games-fps/gzdoom/files/4.1.1/0002-Force-STATIC-for-internal-GZDoom-libraries.patch @@ -0,0 +1,139 @@ +From 4a899ecb9c85d39d49a1d477c0fcdca5fb96c6c0 Mon Sep 17 00:00:00 2001 +From: William Breathitt Gray +Date: Wed, 15 May 2019 23:58:28 +0900 +Subject: [PATCH] Force STATIC for internal GZDoom libraries + +This makes sure the internal versions of these libraries bundled with +the GZDoom source code is used. This prevents the system from building +GZDoom for dynamic linking with incompatible external libraries (see +). +--- + asmjit/CMakeLists.txt | 2 +- + bzip2/CMakeLists.txt | 2 +- + game-music-emu/gme/CMakeLists.txt | 2 +- + gdtoa/CMakeLists.txt | 2 +- + glslang/glslang/CMakeLists.txt | 2 +- + glslang/spirv/CMakeLists.txt | 2 +- + jpeg/CMakeLists.txt | 2 +- + lzma/CMakeLists.txt | 2 +- + zlib/CMakeLists.txt | 2 +- + 9 files changed, 9 insertions(+), 9 deletions(-) + +diff --git a/asmjit/CMakeLists.txt b/asmjit/CMakeLists.txt +index ab5c2fb4f..6b7636ebe 100644 +--- a/asmjit/CMakeLists.txt ++++ b/asmjit/CMakeLists.txt +@@ -97,7 +97,7 @@ set(ASMJIT_SRCS + asmjit/x86/x86regalloc.cpp + ) + +-add_library(${ASMJITNAME} ${ASMJIT_SRCS} ${ASMJIT_PUBLIC_HDRS}) ++add_library(${ASMJITNAME} STATIC ${ASMJIT_SRCS} ${ASMJIT_PUBLIC_HDRS}) + + set_target_properties(${ASMJITNAME} PROPERTIES OUTPUT_NAME asmjit) + +diff --git a/bzip2/CMakeLists.txt b/bzip2/CMakeLists.txt +index 6ff9a2172..7fefb2bf2 100644 +--- a/bzip2/CMakeLists.txt ++++ b/bzip2/CMakeLists.txt +@@ -7,7 +7,7 @@ if( ZD_CMAKE_COMPILER_IS_GNUC_COMPATIBLE ) + endif() + + add_definitions( -DBZ_NO_STDIO ) +-add_library( bz2 ++add_library( bz2 STATIC + blocksort.c + bzlib.c + compress.c +diff --git a/game-music-emu/gme/CMakeLists.txt b/game-music-emu/gme/CMakeLists.txt +index a5e06bc8a..5c37ebd29 100644 +--- a/game-music-emu/gme/CMakeLists.txt ++++ b/game-music-emu/gme/CMakeLists.txt +@@ -163,7 +163,7 @@ set (EXPORTED_HEADERS gme.h) + include_directories(${CMAKE_CURRENT_BINARY_DIR}) + + # Add library to be compiled. +-add_library(gme ${libgme_SRCS}) ++add_library(gme STATIC ${libgme_SRCS}) + + if(ZLIB_FOUND) + message(" ** ZLib library located, compressed file formats will be supported") +diff --git a/gdtoa/CMakeLists.txt b/gdtoa/CMakeLists.txt +index a0b76e0c3..485f3778b 100644 +--- a/gdtoa/CMakeLists.txt ++++ b/gdtoa/CMakeLists.txt +@@ -35,7 +35,7 @@ if( NOT MSVC AND NOT APPLE ) + set( GEN_FP_DEPS ${CMAKE_CURRENT_BINARY_DIR}/arith.h ${CMAKE_CURRENT_BINARY_DIR}/gd_qnan.h ) + endif() + +-add_library( gdtoa ++add_library( gdtoa STATIC + ${GEN_FP_FILES} + dmisc.c + dtoa.c +diff --git a/glslang/glslang/CMakeLists.txt b/glslang/glslang/CMakeLists.txt +index c86eccb6e..e376a9178 100644 +--- a/glslang/glslang/CMakeLists.txt ++++ b/glslang/glslang/CMakeLists.txt +@@ -120,7 +120,7 @@ endmacro(glslang_pch) + + glslang_pch(SOURCES MachineIndependent/pch.cpp) + +-add_library(glslang ${LIB_TYPE} ${BISON_GLSLParser_OUTPUT_SOURCE} ${SOURCES} ${HEADERS}) ++add_library(glslang STATIC ${LIB_TYPE} ${BISON_GLSLParser_OUTPUT_SOURCE} ${SOURCES} ${HEADERS}) + set_property(TARGET glslang PROPERTY FOLDER glslang) + set_property(TARGET glslang PROPERTY POSITION_INDEPENDENT_CODE ON) + target_link_libraries(glslang OGLCompiler OSDependent) +diff --git a/glslang/spirv/CMakeLists.txt b/glslang/spirv/CMakeLists.txt +index 8062f8067..03d34d8f4 100644 +--- a/glslang/spirv/CMakeLists.txt ++++ b/glslang/spirv/CMakeLists.txt +@@ -59,7 +59,7 @@ if(ENABLE_NV_EXTENSIONS) + GLSL.ext.NV.h) + endif(ENABLE_NV_EXTENSIONS) + +-add_library(SPIRV ${LIB_TYPE} ${SOURCES} ${HEADERS}) ++add_library(SPIRV STATIC ${LIB_TYPE} ${SOURCES} ${HEADERS}) + set_property(TARGET SPIRV PROPERTY FOLDER glslang) + set_property(TARGET SPIRV PROPERTY POSITION_INDEPENDENT_CODE ON) + target_include_directories(SPIRV PUBLIC ..) +diff --git a/jpeg/CMakeLists.txt b/jpeg/CMakeLists.txt +index 81834c742..33a3938cf 100644 +--- a/jpeg/CMakeLists.txt ++++ b/jpeg/CMakeLists.txt +@@ -6,7 +6,7 @@ if( ZD_CMAKE_COMPILER_IS_GNUC_COMPATIBLE ) + set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wno-unused-parameter -fomit-frame-pointer" ) + endif() + +-add_library( jpeg ++add_library( jpeg STATIC + jaricom.c + jcomapi.c + jdapimin.c +diff --git a/lzma/CMakeLists.txt b/lzma/CMakeLists.txt +index 3948ea2ee..4246a34f8 100644 +--- a/lzma/CMakeLists.txt ++++ b/lzma/CMakeLists.txt +@@ -34,5 +34,5 @@ else() + set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_7ZIP_ST" ) + endif() + +-add_library( lzma ${LZMA_FILES} ) ++add_library( lzma STATIC ${LZMA_FILES} ) + target_link_libraries( lzma ) +diff --git a/zlib/CMakeLists.txt b/zlib/CMakeLists.txt +index 52542bbaa..a1d6637a9 100644 +--- a/zlib/CMakeLists.txt ++++ b/zlib/CMakeLists.txt +@@ -137,7 +137,7 @@ if(MINGW) + set(ZLIB_SRCS ${ZLIB_SRCS} ${CMAKE_CURRENT_BINARY_DIR}/zlib1rc.obj) + endif() + +-add_library(${ZLIBNAME} ${ZLIB_SRCS} ${ZLIB_PUBLIC_HDRS} ${ZLIB_PRIVATE_HDRS}) ++add_library(${ZLIBNAME} STATIC ${ZLIB_SRCS} ${ZLIB_PUBLIC_HDRS} ${ZLIB_PRIVATE_HDRS}) + set_target_properties(${ZLIBNAME} PROPERTIES DEFINE_SYMBOL ZLIB_DLL) + + set_target_properties(${ZLIBNAME} PROPERTIES SOVERSION 1) +-- +2.21.0 + diff --git a/games-fps/gzdoom/gzdoom-4.1.1.ebuild b/games-fps/gzdoom/gzdoom-4.1.1.ebuild index 78606253a7..61490aca47 100644 --- a/games-fps/gzdoom/gzdoom-4.1.1.ebuild +++ b/games-fps/gzdoom/gzdoom-4.1.1.ebuild @@ -15,7 +15,6 @@ KEYWORDS="~amd64 ~x86" IUSE="fluidsynth gtk openal openmp" DEPEND=" - >=dev-util/glslang-7.11.3114_pre20190415-r1 media-libs/libsdl2[opengl] sys-libs/zlib virtual/jpeg:0 @@ -31,6 +30,8 @@ RDEPEND=" S="${WORKDIR}/${PN}-g${PV}" +PATCHES="${FILESDIR}/${PV}" + src_prepare() { cmake-utils_src_prepare }