From e68d405c5d712af4387159df07e226217bdda049 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 6 Apr 2022 22:33:41 +0100 Subject: gentoo resync : 06.04.2022 --- games-fps/Manifest.gz | Bin 11370 -> 11372 bytes games-fps/rott/Manifest | 2 +- games-fps/rott/rott-1.1.2-r1.ebuild | 18 ++- games-fps/urbanterror/Manifest | 6 +- ...anterror-4.3.4_p20180708-fix-build_system.patch | 94 ----------- ...urbanterror-4.3.4_p20211208-respect-flags.patch | 79 ++++++++++ .../urbanterror/urbanterror-4.3.4_p20210304.ebuild | 169 -------------------- .../urbanterror/urbanterror-4.3.4_p20211208.ebuild | 172 +++++++++++++++++++++ 8 files changed, 266 insertions(+), 274 deletions(-) delete mode 100644 games-fps/urbanterror/files/urbanterror-4.3.4_p20180708-fix-build_system.patch create mode 100644 games-fps/urbanterror/files/urbanterror-4.3.4_p20211208-respect-flags.patch delete mode 100644 games-fps/urbanterror/urbanterror-4.3.4_p20210304.ebuild create mode 100644 games-fps/urbanterror/urbanterror-4.3.4_p20211208.ebuild (limited to 'games-fps') diff --git a/games-fps/Manifest.gz b/games-fps/Manifest.gz index aee1f208dadf..96e82813edc2 100644 Binary files a/games-fps/Manifest.gz and b/games-fps/Manifest.gz differ diff --git a/games-fps/rott/Manifest b/games-fps/rott/Manifest index be626cd2edd9..7bc271772367 100644 --- a/games-fps/rott/Manifest +++ b/games-fps/rott/Manifest @@ -1,4 +1,4 @@ DIST rott-1.1.2.tar.gz 749079 BLAKE2B 1c18ef25b8bb97a7edf8c376bf0b6da3829ca0406100ee9f44652077c06414d826086e354850a551152901036673b91d686d4d2e816ba6bb29b8dcce68144c00 SHA512 809a9064fe31c63afccb9a6397ac2c9d4172cdd802b055697cf3b0090ee6a78c9e40b52a4a8df25196489d9a0259304c91e2f84f95413a293bc66192502cf200 DIST swdata.zip 2889672 BLAKE2B 593f95cbfb4a285ab3b946372d618b6b5cf785aa4b2e5228ac8aaaf702ceb8e4cc000d606f5b3aea85af1b34a4fe45bdebc2f692ba3bfc9c1d3afc7c570ad8a0 SHA512 99373097356afa583021367b2e0ec6ec745941890e4f17f4e07206c66dd370dfa9e928bc0bd6ab9809d8c72646dcc609e3c19f688d2b89a886f215a153b6dd0d -EBUILD rott-1.1.2-r1.ebuild 1070 BLAKE2B e4c9cc7c141b62e75daf5e3a3384a81f6cb901bc2b61a49280090c356661bf30ecbe6ae9e0eae6eeb64eba07898b7645582d2f3832637bde70d9719f82afb6df SHA512 08b1ce570b416b03c53a52af07d45c4d09b27605a9e3469942ce651597ea2eed9383cfaec32aacdb52d4d7c06507726a89ad2500512d50612fb5c81c284768f4 +EBUILD rott-1.1.2-r1.ebuild 1116 BLAKE2B 31cc3351f2451aef7c98f22f05decab677fd3f7e81c8c4b1d3b9ac700ee3876db4eb21b0dfa0824c6a23c4cc2d11df547c6a0e82efc590aa6a54cade67fea39a SHA512 5010f2fd7eb2770571d1033378f0fa366264d735033fdf4d87dccf5b9af3873bbe34498737544017ba6d7c53f79060fdda87b70e247ba5fc8de840905cc846ad MISC metadata.xml 1096 BLAKE2B f38d7f693103d6885e64fc4fe416df77cbb1ca66454bbde61639f9e8f00a7feb80538fa744e6517d4bfb7f23d30398fd008bfe64a2897e4ff2b53462d833cef7 SHA512 9301c43740edf37dc7833248cb3b4953d7a970cbe0146be41b88ae45d23719a80813ed1345bf30800f31aeaeb09b04aca41b0ac87a08616915fffa63dfbb150e diff --git a/games-fps/rott/rott-1.1.2-r1.ebuild b/games-fps/rott/rott-1.1.2-r1.ebuild index 915ad6efa315..a11a0d2074c1 100644 --- a/games-fps/rott/rott-1.1.2-r1.ebuild +++ b/games-fps/rott/rott-1.1.2-r1.ebuild @@ -1,24 +1,27 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=8 + +inherit toolchain-funcs DESCRIPTION="Rise of the Triad for Linux!" -HOMEPAGE="http://www.icculus.org/rott/" -SRC_URI="http://www.icculus.org/rott/releases/${P}.tar.gz +HOMEPAGE="https://www.icculus.org/rott/" +SRC_URI="https://www.icculus.org/rott/releases/${P}.tar.gz demo? ( http://filesingularity.timedoctor.org/swdata.zip )" -LICENSE="GPL-2" +LICENSE="GPL-2+" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="demo" -RDEPEND="media-libs/libsdl[sound,joystick,video] +RDEPEND=" + media-libs/libsdl[sound,joystick,video] media-libs/sdl-mixer" DEPEND="${RDEPEND} app-arch/unzip" -S=${WORKDIR}/${P}/rott +S="${WORKDIR}/${P}/rott" src_prepare() { default @@ -30,6 +33,7 @@ src_prepare() { } src_compile() { + tc-export CC emake -j1 \ EXTRACFLAGS="${CFLAGS} -DDATADIR=\\\"/usr/share/${PN}/\\\"" \ SHAREWARE=$(usex demo "1" "0") diff --git a/games-fps/urbanterror/Manifest b/games-fps/urbanterror/Manifest index b5b8774bee41..1bcc4cb0b78b 100644 --- a/games-fps/urbanterror/Manifest +++ b/games-fps/urbanterror/Manifest @@ -1,4 +1,4 @@ -AUX urbanterror-4.3.4_p20180708-fix-build_system.patch 2736 BLAKE2B 1feaa3012915877abfc2b10b3ab602f9047d16ae7c69a234558aac286548eb91d9e49dcdc41cd51e7c0c9d28b1545a66e0b54a1cf996a370515bbba811715853 SHA512 9afd32a706d6c5de39b6fc1a7d3831873e2fbaa3e13ae41046b6e7a1e639c22bcfc7e2e61cff8d0fb87094b4dc31157c7f4d6f9ea7b1b97504bf40a61acb0906 -DIST urbanterror-4.3.4_p20210304.tar.gz 6189619 BLAKE2B 2a92674372c1d6c988f19179b4514926b171bc7e3e027242d261971c8ed40eca159fd33584ea869562b3002f721c31efd6d3e65c4f96ce2df1b61bcba19a8cbd SHA512 ccdfa55ded774f19028250e6c8fcd371a5934284d85e265879193fab8f50c5026366f68c0bb359003f67528f2e2cb896dc6f3a3da5b5ea144d6e235e864d34e2 -EBUILD urbanterror-4.3.4_p20210304.ebuild 4472 BLAKE2B da2f63c10ffe5a9fd3b7208824e86f63b99ceba176b61fe24341799c1aa0e44692021d5915e4bd00796db0fc1277fb0ce9b3f5da8feeb9d40d94183477310e7b SHA512 24d90ac6b16264da072a62e8a3552ad617e94dea2fbc33939264f54c05891f723d8cd9634ff2b076e28715834eea978aa41f5fdf827f515708a6ccd6fef26b71 +AUX urbanterror-4.3.4_p20211208-respect-flags.patch 2259 BLAKE2B 432fdf6ddc4aab01cc91096a269a7347e357b2f701eb67db6134e2d74cda1406cf126c6a8871a7d4c0db361a5433a9537115d52d29d0088d4cd60942e3e21e34 SHA512 5b0ce59605dfd7e8634f59071a391ba362001d6d24aabab27cb0054ea571fb6a4d3920f5b28d835e425ee724f32dc6281a922885413f3d5161668b0510ca5e17 +DIST urbanterror-4.3.4_p20211208.tar.gz 6187667 BLAKE2B 7901ad0d23d9b80634a3e4e68973227f302bb7004bdb1f450f7ab520f1a3243821aa49712a486d1e577e5bb055504d4005555fa273e64a2e2b57a75661044370 SHA512 24c0fe6775a165ddcc6b919bc46872fdcfff7e471c6ff88b635e6926bce051cc034e7ef8a5145996d67c79632cef763e4cc6c5c988d36088de0f69bb5626ff86 +EBUILD urbanterror-4.3.4_p20211208.ebuild 4500 BLAKE2B 48c0360fa0b8b489a8c46a2193064000a31d5acb6204e346278e7388b18f525608f3ae2c4ecd74fd962e1bcfc992eb011b99a48b8674f87ebca5289e584384ed SHA512 420e2edbecd3b7222029ba7b35239fd04413a7368672acc194f0d8e498bf991014eb22b08610109d34053aa311013bd27629a66672eae06b813f6d6f8801ef08 MISC metadata.xml 1089 BLAKE2B dc34404fa38f542dd2f026c718e432ba6659dcf459d4ab759f3adb0853ec840651b493f929d7b60bbe7500f45b98c842bfadc58cdeea4e3246301a0e09db466b SHA512 82ee4115569a3278f5e69ed01e41bbda362a4ff9367f00d94173a87a9298944387b0dd5a12cbf0dee4cbb0005dfa80932b5a458733b820acd94416fe077b2d10 diff --git a/games-fps/urbanterror/files/urbanterror-4.3.4_p20180708-fix-build_system.patch b/games-fps/urbanterror/files/urbanterror-4.3.4_p20180708-fix-build_system.patch deleted file mode 100644 index fddd8df5bf37..000000000000 --- a/games-fps/urbanterror/files/urbanterror-4.3.4_p20180708-fix-build_system.patch +++ /dev/null @@ -1,94 +0,0 @@ -Author: Nils Freydank -Date: Fri Nov 17 20:30:00 2017 +0100 - -Respect CFLAGS, CPPFLAGS etc. This patch is inspired -by hasufell’s patch. - -Edit 2018-03-19: Now with server support! -Edit 2018-09-01: Update to take Makefile changes into account. - ---- a/Makefile 2018-07-08 11:00:00.000000000 +0200 -+++ b/Makefile 2018-09-01 11:00:00.000000001 +0200 -@@ -308,34 +308,33 @@ - CLIENT_EXTRA_FILES= - - ifneq (,$(findstring "$(PLATFORM)", "linux" "gnu_kfreebsd" "kfreebsd-gnu" "gnu")) -- BASE_CFLAGS = -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes \ -- -pipe -DUSE_ICON -DARCH_STRING=\\\"$(ARCH)\\\" -+ BASE_CFLAGS = -DUSE_ICON -DARCH_STRING=\\\"$(ARCH)\\\" - CLIENT_CFLAGS += $(SDL_CFLAGS) - -- OPTIMIZEVM = -O3 -- OPTIMIZE = $(OPTIMIZEVM) -ffast-math -+ OPTIMIZEVM = -+ OPTIMIZE = $(OPTIMIZEVM) - - ifeq ($(ARCH),x86_64) -- OPTIMIZEVM = -O3 -- OPTIMIZE = $(OPTIMIZEVM) -ffast-math -+ OPTIMIZEVM = -+ OPTIMIZE = $(OPTIMIZEVM) - HAVE_VM_COMPILED = true - else - ifeq ($(ARCH),x86) -- OPTIMIZEVM = -O3 -march=i586 -- OPTIMIZE = $(OPTIMIZEVM) -ffast-math -+ OPTIMIZEVM = -+ OPTIMIZE = $(OPTIMIZEVM) - HAVE_VM_COMPILED=true - else - ifeq ($(ARCH),ppc) -- ALTIVEC_CFLAGS = -maltivec -+ ALTIVEC_CFLAGS = - HAVE_VM_COMPILED=true - endif - ifeq ($(ARCH),ppc64) -- ALTIVEC_CFLAGS = -maltivec -+ ALTIVEC_CFLAGS = - HAVE_VM_COMPILED=true - endif - ifeq ($(ARCH),sparc) -- OPTIMIZE += -mtune=ultrasparc3 -mv8plus -- OPTIMIZEVM += -mtune=ultrasparc3 -mv8plus -+ OPTIMIZE += -+ OPTIMIZEVM += - HAVE_VM_COMPILED=true - endif - ifeq ($(ARCH),armv7l) -@@ -1143,7 +1142,7 @@ - - define DO_CC - $(echo_cmd) "CC $<" --$(Q)$(CC) $(NOTSHLIBCFLAGS) $(CFLAGS) $(CLIENT_CFLAGS) $(OPTIMIZE) -o $@ -c $< -+$(Q)$(CC) $(NOTSHLIBCFLAGS) $(CFLAGS) $(CPPFLAGS) $(CLIENT_CFLAGS) $(OPTIMIZE) -o $@ -c $< - endef - - define DO_CC_ALTIVEC -@@ -1153,7 +1152,7 @@ - - define DO_REF_CC - $(echo_cmd) "REF_CC $<" --$(Q)$(CC) $(SHLIBCFLAGS) $(CFLAGS) $(CLIENT_CFLAGS) $(OPTIMIZE) -o $@ -c $< -+$(Q)$(CC) $(SHLIBCFLAGS) $(CFLAGS) $(CPPFLAGS) $(CLIENT_CFLAGS) $(OPTIMIZE) -o $@ -c $< - endef - - define DO_REF_CC_ALTIVEC -@@ -1171,7 +1170,7 @@ - - define DO_BOT_CC - $(echo_cmd) "BOT_CC $<" --$(Q)$(CC) $(NOTSHLIBCFLAGS) $(CFLAGS) $(BOTCFLAGS) $(OPTIMIZE) -DBOTLIB -o $@ -c $< -+$(Q)$(CC) $(NOTSHLIBCFLAGS) $(CFLAGS) $(CPPFLAGS) $(BOTCFLAGS) $(OPTIMIZE) -DBOTLIB -o $@ -c $< - endef - - ifeq ($(GENERATE_DEPENDENCIES),1) -@@ -1185,7 +1184,7 @@ - - define DO_DED_CC - $(echo_cmd) "DED_CC $<" --$(Q)$(CC) $(NOTSHLIBCFLAGS) -DDEDICATED $(CFLAGS) $(SERVER_CFLAGS) $(OPTIMIZE) -o $@ -c $< -+$(Q)$(CC) $(NOTSHLIBCFLAGS) -DDEDICATED $(CFLAGS) $(CPPFLAGS) $(SERVER_CFLAGS) $(OPTIMIZE) -o $@ -c $< - endef - - define DO_WINDRES - diff --git a/games-fps/urbanterror/files/urbanterror-4.3.4_p20211208-respect-flags.patch b/games-fps/urbanterror/files/urbanterror-4.3.4_p20211208-respect-flags.patch new file mode 100644 index 000000000000..d6938f3a4609 --- /dev/null +++ b/games-fps/urbanterror/files/urbanterror-4.3.4_p20211208-respect-flags.patch @@ -0,0 +1,79 @@ +--- a/Makefile ++++ b/Makefile +@@ -322,30 +322,30 @@ ifneq (,$(findstring "$(PLATFORM)", "linux" "gnu_kfreebsd" "kfreebsd-gnu" "gnu") + -pipe -DUSE_ICON -DARCH_STRING=\\\"$(ARCH)\\\" + CLIENT_CFLAGS += $(SDL_CFLAGS) + +- OPTIMIZEVM = -O3 +- OPTIMIZE = $(OPTIMIZEVM) -ffast-math ++ OPTIMIZEVM = ++ OPTIMIZE = $(OPTIMIZEVM) + + ifeq ($(ARCH),x86_64) +- OPTIMIZEVM = -O3 +- OPTIMIZE = $(OPTIMIZEVM) -ffast-math ++ OPTIMIZEVM = ++ OPTIMIZE = $(OPTIMIZEVM) + HAVE_VM_COMPILED = true + else + ifeq ($(ARCH),x86) +- OPTIMIZEVM = -O3 -march=i586 +- OPTIMIZE = $(OPTIMIZEVM) -ffast-math ++ OPTIMIZEVM = ++ OPTIMIZE = $(OPTIMIZEVM) + HAVE_VM_COMPILED=true + else + ifeq ($(ARCH),ppc) +- ALTIVEC_CFLAGS = -maltivec ++ ALTIVEC_CFLAGS = + HAVE_VM_COMPILED=true + endif + ifeq ($(ARCH),ppc64) +- ALTIVEC_CFLAGS = -maltivec ++ ALTIVEC_CFLAGS = + HAVE_VM_COMPILED=true + endif + ifeq ($(ARCH),sparc) +- OPTIMIZE += -mtune=ultrasparc3 -mv8plus +- OPTIMIZEVM += -mtune=ultrasparc3 -mv8plus ++ OPTIMIZE += ++ OPTIMIZEVM += + HAVE_VM_COMPILED=true + endif + ifeq ($(ARCH),armv7l) +@@ -1153,7 +1153,7 @@ endif + + define DO_CC + $(echo_cmd) "CC $<" +-$(Q)$(CC) $(NOTSHLIBCFLAGS) $(CFLAGS) $(CLIENT_CFLAGS) $(OPTIMIZE) -o $@ -c $< ++$(Q)$(CC) $(NOTSHLIBCFLAGS) $(CFLAGS) $(CPPFLAGS) $(CLIENT_CFLAGS) $(OPTIMIZE) -o $@ -c $< + endef + + define DO_CC_ALTIVEC +@@ -1163,7 +1163,7 @@ endef + + define DO_REF_CC + $(echo_cmd) "REF_CC $<" +-$(Q)$(CC) $(SHLIBCFLAGS) $(CFLAGS) $(CLIENT_CFLAGS) $(OPTIMIZE) -o $@ -c $< ++$(Q)$(CC) $(SHLIBCFLAGS) $(CFLAGS) $(CPPFLAGS) $(CLIENT_CFLAGS) $(OPTIMIZE) -o $@ -c $< + endef + + define DO_REF_CC_ALTIVEC +@@ -1181,7 +1181,7 @@ endef + + define DO_BOT_CC + $(echo_cmd) "BOT_CC $<" +-$(Q)$(CC) $(NOTSHLIBCFLAGS) $(CFLAGS) $(BOTCFLAGS) $(OPTIMIZE) -DBOTLIB -o $@ -c $< ++$(Q)$(CC) $(NOTSHLIBCFLAGS) $(CFLAGS) $(CPPFLAGS) $(BOTCFLAGS) $(OPTIMIZE) -DBOTLIB -o $@ -c $< + endef + + ifeq ($(GENERATE_DEPENDENCIES),1) +@@ -1195,7 +1195,7 @@ endef + + define DO_DED_CC + $(echo_cmd) "DED_CC $<" +-$(Q)$(CC) $(NOTSHLIBCFLAGS) -DDEDICATED $(CFLAGS) $(SERVER_CFLAGS) $(OPTIMIZE) -o $@ -c $< ++$(Q)$(CC) $(NOTSHLIBCFLAGS) -DDEDICATED $(CFLAGS) $(CPPFLAGS) $(SERVER_CFLAGS) $(OPTIMIZE) -o $@ -c $< + endef + + define DO_WINDRES diff --git a/games-fps/urbanterror/urbanterror-4.3.4_p20210304.ebuild b/games-fps/urbanterror/urbanterror-4.3.4_p20210304.ebuild deleted file mode 100644 index 79cdded4b1d5..000000000000 --- a/games-fps/urbanterror/urbanterror-4.3.4_p20210304.ebuild +++ /dev/null @@ -1,169 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="7" - -inherit desktop flag-o-matic toolchain-funcs xdg-utils - -DESCRIPTION="Hollywood tactical shooter based on the ioquake3 engine" -HOMEPAGE="https://urbanterror.info https://github.com/mickael9/ioq3" - -if [[ ${PV} == *9999 ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/mickael9/ioq3.git" - EGIT_BRANCH="urt" -else - COMMIT_ID="0429c03056720523d27ca71d5a4aa3e8d00709e7" - SRC_URI="https://github.com/mickael9/ioq3/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz" - S="${WORKDIR}/ioq3-${COMMIT_ID}" - KEYWORDS="~amd64 ~x86" -fi - -LICENSE="GPL-2" -SLOT="0" -IUSE="+altgamma +client +curl debug mumble openal +opus server +skeetshootmod voip vorbis" -REQUIRED_USE="|| ( client server ) - voip? ( opus )" - -DOCS=( ChangeLog README.md README.ioq3.md md4-readme.txt ) - -PATCHES=( - "${FILESDIR}"/${PN}-4.3.4_p20180708-fix-build_system.patch -) - -RDEPEND=" - client? ( - media-libs/libsdl2:=[X,sound,joystick,opengl,video] - mumble? ( media-sound/mumble:= ) - openal? ( media-libs/openal:= ) - opus? ( media-libs/opusfile:= ) - vorbis? ( media-libs/libvorbis:= ) - ) - curl? ( net-misc/curl ) - ~games-fps/urbanterror-data-4.3.4 - sys-libs/zlib:=[minizip] - virtual/jpeg:0 -" - -DEPEND="${RDEPEND}" - -pkg_pretend() { - if use client; then - if ! use openal && ! use opus && ! use vorbis; then - ewarn - ewarn "No sound implementation selected. Enable 'openal', 'opus' or 'vorbis' USE flag to get sound!" - fi - fi -} - -src_configure() { - default - - tc-export CC -} - -src_compile() { - # Workaround for used zlib macro, which got renamed in Gentoo - # wrt bug #449510 - append-cppflags "-DOF=_Z_OF" - - local myemakeargs=( - ARCH=$(usex amd64 "x86_64" "i686" ) - DEFAULT_BASEDIR="/usr/share/urbanterror" - BUILD_CLIENT=$(usex "client" 1 0) - BUILD_SERVER=$(usex "server" 1 0) - BUILD_BASEGAME=1 - BUILD_MISSIONPACK=0 - BUILD_GAME_SO=0 - BUILD_GAME_QVM=0 - BUILD_STANDALONE=1 - SERVERBIN="Quake3-UrT-Ded" - CLIENTBIN="Quake3-UrT" - USE_RENDERER_DLOPEN=0 - USE_YACC=0 - BASEGAME="q3ut4" - BASEGAME_CFLAGS="${CFLAGS}" - USE_OPENAL=$(usex "openal" 1 0) - USE_OPENAL_DLOPEN=$(usex "openal" 1 0) - USE_CURL=$(usex "curl" 1 0) - USE_CURL_DLOPEN=$(usex "curl" 1 0) - USE_CODEC_VORBIS=$(usex "vorbis" 1 0) - USE_CODEC_OPUS=$(usex "opus" 1 0) - USE_MUMBLE=$(usex "mumble" 1 0) - USE_SKEETMOD=$(usex "skeetshootmod" 1 0) - USE_VOIP=$(usex "mumble" 1 0) - USE_INTERNAL_LIBS=0 - USE_LOCAL_HEADERS=0 - USE_ALTGAMMA=$(usex "altgamma" 1 0) - $(usex "debug" "debug" "release") - ) - emake "${myemakeargs[@]}" -} - -src_install() { - local myarch=$(usex amd64 "x86_64" "i386") - local myreleasetype=$(usex debug "debug" "release") - - if use client; then - newbin build/${myreleasetype}-linux-${myarch}/Quake3-UrT.${myarch} ${PN} - # Shooter as defined in https://specifications.freedesktop.org/menu-spec/latest/apas02.html - make_desktop_entry ${PN} "UrbanTerror" ${PN} - fi - - if use server && ! use client; then - # dedicated server only - newbin build/${myreleasetype}-linux-${myarch}/Quake3-UrT-Ded.${myarch} ${PN}-ded - fi - - einstalldocs -} - -pkg_postinst() { - use client && xdg_desktop_database_update - - if [[ -z "${REPLACING_VERSIONS}" ]]; then - # ^this is a new installation, so: - if use openal; then - elog "" - elog "You might need to set:" - elog " seta s_useopenal \"1\"" - elog "in your ~/.q3a/q3ut4/q3config.cfg for openal to work." - fi - - if use altgamma; then - elog "" - elog "You might need to set:" - elog " seta r_altgamma \"1\"" - elog "in your ~/.q3a/q3ut4/q3config.cfg for altgamma to work." - elog "Be aware that altgamme works on a global scale, so external" - elog "applications like redshift can cause trouble. Disabling" - elog "these while playing is a usable workaround." - fi - - if ! use altgamma; then - elog "" - elog "If you are using a modesetting graphics driver you might" - elog "consider setting USE=\"altgamma\"." - elog "For details take a look at:" - elog "https://bugs.freedesktop.org/show_bug.cgi?id=27222" - fi - - if ! use client; then - elog "" - elog "You disabled client support. You won't be able to connect" - elog "to any servers and play. If you want to do so, enable" - elog "USE=\"client\"." - fi - - if use skeetshootmod; then - elog "" - elog "You might need to set:" - elog " seta sv_skeetshoot \"1\"" - elog "in your ~/.q3a/q3ut4/q3config.cfg to use the skeetshoot mod." - fi - fi -} - -pkg_postrm() { - use client && xdg_desktop_database_update -} diff --git a/games-fps/urbanterror/urbanterror-4.3.4_p20211208.ebuild b/games-fps/urbanterror/urbanterror-4.3.4_p20211208.ebuild new file mode 100644 index 000000000000..5a8e0c3737e8 --- /dev/null +++ b/games-fps/urbanterror/urbanterror-4.3.4_p20211208.ebuild @@ -0,0 +1,172 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop flag-o-matic toolchain-funcs xdg-utils + +DESCRIPTION="Hollywood tactical shooter based on the ioquake3 engine" +HOMEPAGE="https://urbanterror.info https://github.com/mickael9/ioq3" + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/mickael9/ioq3.git" + EGIT_BRANCH="urt" +else + COMMIT_ID="c988f7669bd70b59beb384563d4c8304062ae011" + SRC_URI="https://github.com/mickael9/ioq3/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/ioq3-${COMMIT_ID}" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="+altgamma +client +curl debug mumble openal +opus server +skeetshootmod voip vorbis" +REQUIRED_USE=" + || ( client server ) + voip? ( opus ) +" + +DOCS=( ChangeLog README.md README.ioq3.md md4-readme.txt ) + +PATCHES=( + "${FILESDIR}"/${PN}-4.3.4_p20211208-respect-flags.patch +) + +RDEPEND=" + client? ( + media-libs/libsdl2[X,sound,joystick,opengl,video] + mumble? ( media-sound/mumble:= ) + openal? ( media-libs/openal:= ) + opus? ( media-libs/opusfile ) + vorbis? ( media-libs/libvorbis ) + ) + curl? ( net-misc/curl ) + ~games-fps/urbanterror-data-4.3.4 + sys-libs/zlib:=[minizip] + virtual/jpeg:0 + x11-libs/libX11 + x11-libs/libXxf86vm +" + +DEPEND="${RDEPEND}" + +pkg_pretend() { + if use client; then + if ! use openal && ! use opus && ! use vorbis; then + ewarn + ewarn "No sound implementation selected. Enable 'openal', 'opus' or 'vorbis' USE flag to get sound!" + fi + fi +} + +src_configure() { + tc-export CC + default +} + +src_compile() { + # Workaround for used zlib macro, which got renamed in Gentoo + # wrt bug #449510 + append-cppflags "-DOF=_Z_OF" + + local myemakeargs=( + ARCH=$(usex amd64 "x86_64" "i686" ) + DEFAULT_BASEDIR="/usr/share/urbanterror" + BUILD_CLIENT=$(usex "client" 1 0) + BUILD_SERVER=$(usex "server" 1 0) + BUILD_BASEGAME=1 + BUILD_MISSIONPACK=0 + BUILD_GAME_SO=0 + BUILD_GAME_QVM=0 + BUILD_STANDALONE=1 + SERVERBIN="Quake3-UrT-Ded" + CLIENTBIN="Quake3-UrT" + USE_RENDERER_DLOPEN=0 + USE_YACC=0 + BASEGAME="q3ut4" + BASEGAME_CFLAGS="${CFLAGS}" + USE_OPENAL=$(usex "openal" 1 0) + USE_OPENAL_DLOPEN=$(usex "openal" 1 0) + USE_CURL=$(usex "curl" 1 0) + USE_CURL_DLOPEN=$(usex "curl" 1 0) + USE_CODEC_VORBIS=$(usex "vorbis" 1 0) + USE_CODEC_OPUS=$(usex "opus" 1 0) + USE_MUMBLE=$(usex "mumble" 1 0) + USE_SKEETMOD=$(usex "skeetshootmod" 1 0) + USE_VOIP=$(usex "mumble" 1 0) + USE_INTERNAL_LIBS=0 + USE_LOCAL_HEADERS=0 + USE_ALTGAMMA=$(usex "altgamma" 1 0) + $(usex "debug" "debug" "release") + ) + emake "${myemakeargs[@]}" +} + +src_install() { + local myarch=$(usex amd64 "x86_64" "i386") + local myreleasetype=$(usex debug "debug" "release") + + if use client; then + newbin build/${myreleasetype}-linux-${myarch}/Quake3-UrT.${myarch} ${PN} + # Shooter as defined in https://specifications.freedesktop.org/menu-spec/latest/apas02.html + make_desktop_entry ${PN} "UrbanTerror" ${PN} + fi + + if use server && ! use client; then + # dedicated server only + newbin build/${myreleasetype}-linux-${myarch}/Quake3-UrT-Ded.${myarch} ${PN}-ded + fi + + einstalldocs +} + +pkg_postinst() { + use client && xdg_desktop_database_update + + if [[ -z "${REPLACING_VERSIONS}" ]]; then + # ^this is a new installation, so: + if use openal; then + elog "" + elog "You might need to set:" + elog " seta s_useopenal \"1\"" + elog "in your ~/.q3a/q3ut4/q3config.cfg for openal to work." + fi + + if use altgamma; then + elog "" + elog "You might need to set:" + elog " seta r_altgamma \"1\"" + elog "in your ~/.q3a/q3ut4/q3config.cfg for altgamma to work." + elog "Be aware that altgamme works on a global scale, so external" + elog "applications like redshift can cause trouble. Disabling" + elog "these while playing is a usable workaround." + fi + + if ! use altgamma; then + elog "" + elog "If you are using a modesetting graphics driver you might" + elog "consider setting USE=\"altgamma\"." + elog "For details take a look at:" + elog "https://bugs.freedesktop.org/show_bug.cgi?id=27222" + fi + + if ! use client; then + elog "" + elog "You disabled client support. You won't be able to connect" + elog "to any servers and play. If you want to do so, enable" + elog "USE=\"client\"." + fi + + if use skeetshootmod; then + elog "" + elog "You might need to set:" + elog " seta sv_skeetshoot \"1\"" + elog "in your ~/.q3a/q3ut4/q3config.cfg to use the skeetshoot mod." + fi + fi +} + +pkg_postrm() { + use client && xdg_desktop_database_update +} -- cgit v1.2.3