diff options
-rw-r--r-- | games-engines/wyrmgus/Manifest | 1 | ||||
-rw-r--r-- | games-engines/wyrmgus/metadata.xml | 8 | ||||
-rw-r--r-- | games-engines/wyrmgus/wyrmgus-2.7.1.ebuild | 81 |
3 files changed, 90 insertions, 0 deletions
diff --git a/games-engines/wyrmgus/Manifest b/games-engines/wyrmgus/Manifest new file mode 100644 index 0000000..2225a6a --- /dev/null +++ b/games-engines/wyrmgus/Manifest @@ -0,0 +1 @@ +DIST wyrmgus-2.7.1.tar.gz 1434681 SHA256 941af5ef29ad548fa4baed87321c71167f05c40965adf8ab3b2bef7ec1c70878 SHA512 e374fd04bb525169c0209c4979905fa06999d677ff6b3704e5db5766ab2e6a6cee11c231931797729f8a3a47acbdd5cc75a369b83fe247cb76ca2670a043d3e3 WHIRLPOOL 565d00cd61411d2b64c5ace44c4f280691f7c452bb6b5b5e0a0fde1852c42b4ceeea85695ef0e7cf19842d0c16459c0370299d634067f2acf73fe1a5d070cb70 diff --git a/games-engines/wyrmgus/metadata.xml b/games-engines/wyrmgus/metadata.xml new file mode 100644 index 0000000..ce1c67b --- /dev/null +++ b/games-engines/wyrmgus/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>tomboy64@sina.cn</email> + <name>tomboy64</name> + </maintainer> +</pkgmetadata> diff --git a/games-engines/wyrmgus/wyrmgus-2.7.1.ebuild b/games-engines/wyrmgus/wyrmgus-2.7.1.ebuild new file mode 100644 index 0000000..ff60484 --- /dev/null +++ b/games-engines/wyrmgus/wyrmgus-2.7.1.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils + +DESCRIPTION="Modified Stratagus engine for Wyrmsun" +HOMEPAGE="https://andrettin.github.io/" +SRC_URI="https://github.com/Andrettin/Wyrmgus/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug doc mikmod mng ogg opengl static theora" + +RDEPEND="dev-lang/lua:0 + dev-lua/toluapp + media-libs/libpng:= + media-libs/libsdl + media-sound/fluidsynth + mikmod? ( media-sound/mikmod ) + mng? ( + static? ( media-libs/libmng[static-libs] ) + !static? ( media-libs/libmng ) + ) + ogg? ( + static? ( media-libs/libvorbis[static-libs] ) + !static? ( media-libs/libvorbis ) + ) + theora? ( + static? ( media-libs/libtheora[static-libs] ) + !static? ( media-libs/libtheora ) + ) + static? ( + dev-db/sqlite:3[static-libs] + dev-games/physfs[static-libs] + media-sound/oaml[static-libs] + sys-libs/zlib[static-libs] + x11-libs/libICE[static-libs] + x11-libs/libXext[static-libs] + ) + !static? ( + dev-games/physfs + dev-db/sqlite:3 + media-sound/oaml + sys-libs/zlib + x11-libs/libICE + x11-libs/libXext + ) +" + +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen )" + +S="${WORKDIR}/${PN/w/W}-${PV}" + +src_prepare() { + sed -i 's#\(install(TARGETS stratagus DESTINATION \)${GAMEDIR})#\1${BINDIR})#' CMakeLists.txt + eapply_user +} + +src_configure() { + local mycmakeargs=( + -DENABLE_STATIC=$(usex static) + -DENABLE_DOC=$(usex doc) + -DWITH_MIKMOD=$(usex mikmod) + -DWITH_MNG=$(usex mng) + -DWITH_OGGVORBIS=$(usex ogg) + -DWITH_THEORA=$(usex theora) + -DWITH_RENDERER=$(usex opengl OpenGL NativeSDL) + -DWITH_BZIP2=ON + -DWITH_FLUIDSYNTH=ON + -DWITH_PHYSFS=ON + ) + cmake-utils_src_configure +} + +src_install() { + newbin "${BUILD_DIR}/stratagus" wyrmgus +} |