games-engines/ioquake3: disable forced LTO, update live ebuild
Signed-off-by: Shin'ya Minazuki <shinyoukai@laidback.moe>
This commit is contained in:
parent
0635843323
commit
603fb272a6
2 changed files with 29 additions and 3 deletions
|
|
@ -0,0 +1,19 @@
|
||||||
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
|
index 4f0f8be5..5c7336b3 100644
|
||||||
|
--- CMakeLists.txt
|
||||||
|
+++ CMakeLists.txt
|
||||||
|
@@ -42,14 +42,6 @@ if(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
|
||||||
|
set(CMAKE_BUILD_TYPE Release)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
-# Try to enable LTO by default
|
||||||
|
-include(CheckIPOSupported)
|
||||||
|
-check_ipo_supported(RESULT IPO_SUPPORTED)
|
||||||
|
-if(IPO_SUPPORTED)
|
||||||
|
- set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
|
||||||
|
- set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_DEBUG FALSE)
|
||||||
|
-endif()
|
||||||
|
-
|
||||||
|
set(CMAKE_C_STANDARD 99)
|
||||||
|
set(CMAKE_C_STANDARD_REQUIRED ON)
|
||||||
|
set(CMAKE_SHARED_LIBRARY_PREFIX "")
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
# Copyright 2026 Shin'ya Minazuki
|
# Copyright 2026 Shin'ya Minazuki
|
||||||
EAPI=8
|
EAPI=8
|
||||||
|
|
||||||
inherit git-r3
|
inherit cmake git-r3
|
||||||
|
|
||||||
DESCRIPTION="Community effort to maintain and improve the id Tech 3 engine"
|
DESCRIPTION="Community effort to maintain and improve the id Tech 3 engine"
|
||||||
HOMEPAGE="https://www.ioquake3.org/"
|
HOMEPAGE="https://www.ioquake3.org/"
|
||||||
|
|
@ -39,8 +39,8 @@ src_configure() {
|
||||||
local -a mycmakeargs=(
|
local -a mycmakeargs=(
|
||||||
-DBUILD_CLIENT=$(usex client)
|
-DBUILD_CLIENT=$(usex client)
|
||||||
-DBUILD_SERVER=$(usex server)
|
-DBUILD_SERVER=$(usex server)
|
||||||
-DBUILD_RENDERER_OPENGL1=$(usex renderer_gl1)
|
-DBUILD_RENDERER_GL1=$(usex renderer_gl1)
|
||||||
-DBUILD_RENDERER_OPENGL2=$(usex renderer_gl2)
|
-DBUILD_RENDERER_GL2=$(usex renderer_gl2)
|
||||||
-DBUILD_GAME_LIBRARIES=ON
|
-DBUILD_GAME_LIBRARIES=ON
|
||||||
-DBUILD_GAME_QVMS=ON
|
-DBUILD_GAME_QVMS=ON
|
||||||
-DBUILD_STANDALONE=OFF
|
-DBUILD_STANDALONE=OFF
|
||||||
|
|
@ -54,10 +54,17 @@ src_configure() {
|
||||||
# Extra compilation time for yet unknown benefit
|
# Extra compilation time for yet unknown benefit
|
||||||
# Disable by default
|
# Disable by default
|
||||||
-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=OFF
|
-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=OFF
|
||||||
|
-DCMAKE_INSTALL_PREFIX=${EPREFIX}/usr/$(get_libdir)/${PN}
|
||||||
)
|
)
|
||||||
cmake_src_configure
|
cmake_src_configure
|
||||||
}
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
cmake_src_install
|
||||||
|
use client && dosym "/usr/$(get_libdir)/${PN}/${PN}" "/usr/bin/${PN}"
|
||||||
|
use server && dosym "/usr/$(get_libdir)/${PN}/ioq3ded" "/usr/bin/ioq3ded"
|
||||||
|
}
|
||||||
|
|
||||||
pkg_postinst() {
|
pkg_postinst() {
|
||||||
elog "In order to play Quake III Arena, get the data files first"
|
elog "In order to play Quake III Arena, get the data files first"
|
||||||
elog "How to get them will not be covered here, that's on you"
|
elog "How to get them will not be covered here, that's on you"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue