diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-07-03 22:55:11 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-07-03 23:46:28 +0200 |
commit | 0878cf05d86cee613935dd529040721ed455bbb1 (patch) | |
tree | 26ccf9bbbbec5e5ac3c938993de974da1b748acf /games-engines | |
parent | www-plugins/lightspark: Bump to 0.8.5 (diff) | |
download | gentoo-0878cf05d86cee613935dd529040721ed455bbb1.tar.gz gentoo-0878cf05d86cee613935dd529040721ed455bbb1.tar.bz2 gentoo-0878cf05d86cee613935dd529040721ed455bbb1.zip |
games-engines/stratagus: Bump to 3.1.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'games-engines')
-rw-r--r-- | games-engines/stratagus/Manifest | 1 | ||||
-rw-r--r-- | games-engines/stratagus/stratagus-3.1.0.ebuild | 74 |
2 files changed, 75 insertions, 0 deletions
diff --git a/games-engines/stratagus/Manifest b/games-engines/stratagus/Manifest index 85594b2e5562..4825b00442db 100644 --- a/games-engines/stratagus/Manifest +++ b/games-engines/stratagus/Manifest @@ -1,2 +1,3 @@ DIST stratagus-2.4.3.tar.gz 1123537 BLAKE2B 90e40b2b277b5c52977f3c0ae2ae8f2e65d940d765e2ca4f7def4f8cf903399350f5e46f6dc6fbc38f3a53c7ca9ecaf5cf38025ec69154972869f28da37865d4 SHA512 16271c4fed3fb75fb8fb08e363e72713ede7979ea7e25b7c83db2fa9a0688fb7927cad3379e3b23e172c409cf0f6db18f7c6557d19a693c9a7f24109b56d2a56 DIST stratagus-3.0.0.tar.gz 1149659 BLAKE2B 62a14bdc84462f22867b836b9a83f58ba31c7793c20f25cd8a0ca58adf7e5a38ee4559e96dddf8eb61dd1572dac55e08b16c95f8b7590644da0d0ffd040e0360 SHA512 baef3636471134c53ae0a60471f217daf694c20f439db125cf31cc33a510be456486aa905950aec15f28acada1af39a245e97fc85045d849b10532939a8f3a83 +DIST stratagus-3.1.0.tar.gz 1188722 BLAKE2B 7eefd0d1c2ab35e657d8dc3c90c279deab073588c7a5830e317b99d72518b3d9b1260b56952e1deeadccc79334442441896c0d9520891a5eeea75da52871a4b2 SHA512 41f4dc6e6232cdd31258b7c402c64d3604c77b07bd46f29474a4b4979cd30dec809faeb5f0034521e26442c4afefba3076154a632bd445f57e04801b4199573b diff --git a/games-engines/stratagus/stratagus-3.1.0.ebuild b/games-engines/stratagus/stratagus-3.1.0.ebuild new file mode 100644 index 000000000000..b457463d8b3d --- /dev/null +++ b/games-engines/stratagus/stratagus-3.1.0.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +LUA_COMPAT=( lua5-1 ) +inherit cmake lua-single optfeature + +DESCRIPTION="A realtime strategy game engine" +HOMEPAGE=" + https://stratagus.com/stratagus.html + https://github.com/Wargus/stratagus" +SRC_URI="https://github.com/Wargus/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0/3" +KEYWORDS="~amd64 ~x86" +IUSE="bzip2 debug doc mng theora vorbis" +REQUIRED_USE=" + ${LUA_REQUIRED_USE} + theora? ( vorbis )" + +RDEPEND=" + ${LUA_DEPS} + dev-db/sqlite:3 + dev-lua/toluapp[${LUA_SINGLE_USEDEP}] + media-libs/libpng:0 + x11-libs/libX11 + media-libs/libsdl2[sound,opengl,video] + media-libs/sdl2-mixer[vorbis] + media-libs/sdl2-image[png] + sys-libs/zlib + bzip2? ( app-arch/bzip2 ) + mng? ( media-libs/libmng ) + vorbis? ( + media-libs/libogg + media-libs/libvorbis + theora? ( media-libs/libtheora ) + )" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + doc? ( app-doc/doxygen )" + +PATCHES=( + "${FILESDIR}/${PN}"-2.3.0-doc.patch +) + +src_prepare() { + sed -i -e 's:-Werror::' CMakeLists.txt || die + cmake_src_prepare +} + +src_configure() { + # there are in-source switches + use debug && CMAKE_BUILD_TYPE=Debug + + local mycmakeargs=( + -DGAMEDIR="/usr/bin" + -DDOCDIR="/usr/share/doc/${PF}" + -DWITH_BZIP2=$(usex bzip2) + -DWITH_MNG=$(usex mng) + -DWITH_OGGVORBIS=$(usex vorbis) + -DWITH_THEORA=$(usex theora) + -DENABLE_DOC=$(usex doc) + -DENABLE_DEV=ON + ) + + cmake_src_configure +} + +pkg_postinst() { + optfeature "MIDI music support" "media-libs/sdl2-mixer[midi]" +} |