games-engines/urho3d: new pkg; add 1.8_alpha anf 9999

Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Maciej Barć <xgqt@protonmail.com>
This commit is contained in:
Maciej Barć 2020-12-27 20:36:53 +01:00
parent 5d0925499f
commit 8a416579f6
No known key found for this signature in database
GPG Key ID: 031C9FE65BED714A
4 changed files with 194 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST urho3d-1.8_alpha.tar.gz 65073727 BLAKE2B 344d01d133a10203acb02857d9f40528a3b6c46a6dcb0457adbb3464251e4e82ed9fd61eab02230e6d0c16e6630cab52857ce7e712b7d3dd80525715f03a6c24 SHA512 ece2b3e6f827e867b36f3494cb27d7558c05085a50b0975492d452cda9d0021e3eca4baca4ae2ff798be436866e5fb38111c9ef7a03212b4d6244f9761344c85

View File

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>xgqt@protonmail.com</email>
<name>Maciej Barć</name>
</maintainer>
<use>
<flag name="vulkan">
Enable support for Vulkan
</flag>
</use>
<upstream>
<remote-id type="github">urho3d/Urho3D</remote-id>
</upstream>
<longdescription>
Urho3D is a free lightweight, cross-platform 2D and 3D game
engine implemented in C++ and released under the MIT license.
Greatly inspired by OGRE and Horde3D.
</longdescription>
</pkgmetadata>

View File

@ -0,0 +1,86 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
MY_PN="Urho3D"
inherit xdg cmake
DESCRIPTION="Cross-platform 2D and 3D game engine"
HOMEPAGE="https://urho3d.github.io/"
if [[ "${PV}" == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/${PN}/${MY_PN}.git"
else
if [[ "${PV}" == *_alpha ]]; then
MY_PV="${PV/_alpha/-ALPHA}"
else
MY_PV="${PV}"
fi
SRC_URI="https://github.com/${PN}/${MY_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
S="${WORKDIR}/${MY_PN}-${MY_PV}"
fi
RESTRICT="mirror test"
LICENSE="MIT"
SLOT="0"
IUSE="X alsa doc jack pulseaudio vulkan wayland"
RDEPEND="
media-libs/glew
media-libs/libsdl2
virtual/opengl
X? (
x11-apps/xinput
x11-libs/libX11
x11-libs/libXScrnSaver
x11-libs/libXcursor
x11-libs/libXinerama
x11-libs/libXrandr
)
alsa? ( media-libs/alsa-lib )
jack? ( virtual/jack )
pulseaudio? ( media-sound/pulseaudio )
vulkan? ( dev-util/vulkan-headers )
wayland? ( dev-libs/wayland )
"
DEPEND="
${RDEPEND}
doc? ( app-doc/doxygen[dot] )
"
src_configure() {
filter-flags -fno-common
append-flags -fcommon
filter-flags -D_FORTIFY_SOURCE=2
local mycmakeargs=(
-DALSA=$(usex alsa ON OFF)
-DALSA_SHARED=$(usex alsa ON OFF)
-DASSEMBLY=ON
-DJACK=$(usex jack ON OFF)
-DJACK_SHARED=$(usex jack ON OFF)
-DPULSEAUDIO=$(usex pulseaudio ON OFF)
-DPULSEAUDIO_SHARED=$(usex pulseaudio ON OFF)
-DURHO3D_DOCS=$(usex doc ON OFF)
-DVIDEO_OPENGL=ON
-DVIDEO_OPENGLES=OFF
-DVIDEO_VULKAN=$(usex vulkan ON OFF)
-DVIDEO_WAYLAND=$(usex wayland ON OFF)
-DVIDEO_WAYLAND_QT_TOUCH=OFF
-DVIDEO_X11=$(usex X ON OFF)
-DVIDEO_X11_XCURSOR=$(usex X ON OFF)
-DVIDEO_X11_XINERAMA=$(usex X ON OFF)
-DVIDEO_X11_XINPUT=$(usex X ON OFF)
-DVIDEO_X11_XRANDR=$(usex X ON OFF)
-DVIDEO_X11_XSCRNSAVER=$(usex X ON OFF)
-DVIDEO_X11_XSHAPE=$(usex X ON OFF)
-DVIDEO_X11_XVM=$(usex X ON OFF)
-DWAYLAND_SHARED=$(usex wayland ON OFF)
-DX11_SHARED=$(usex X ON OFF)
)
cmake_src_configure
}

View File

@ -0,0 +1,86 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
MY_PN="Urho3D"
inherit xdg cmake
DESCRIPTION="Cross-platform 2D and 3D game engine"
HOMEPAGE="https://urho3d.github.io/"
if [[ "${PV}" == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/${PN}/${MY_PN}.git"
else
if [[ "${PV}" == *_alpha ]]; then
MY_PV="${PV/_alpha/-ALPHA}"
else
MY_PV="${PV}"
fi
SRC_URI="https://github.com/${PN}/${MY_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
S="${WORKDIR}/${MY_PN}-${MY_PV}"
fi
RESTRICT="mirror test"
LICENSE="MIT"
SLOT="0"
IUSE="X alsa doc jack pulseaudio vulkan wayland"
RDEPEND="
media-libs/glew
media-libs/libsdl2
virtual/opengl
X? (
x11-apps/xinput
x11-libs/libX11
x11-libs/libXScrnSaver
x11-libs/libXcursor
x11-libs/libXinerama
x11-libs/libXrandr
)
alsa? ( media-libs/alsa-lib )
jack? ( virtual/jack )
pulseaudio? ( media-sound/pulseaudio )
vulkan? ( dev-util/vulkan-headers )
wayland? ( dev-libs/wayland )
"
DEPEND="
${RDEPEND}
doc? ( app-doc/doxygen[dot] )
"
src_configure() {
filter-flags -fno-common
append-flags -fcommon
filter-flags -D_FORTIFY_SOURCE=2
local mycmakeargs=(
-DALSA=$(usex alsa ON OFF)
-DALSA_SHARED=$(usex alsa ON OFF)
-DASSEMBLY=ON
-DJACK=$(usex jack ON OFF)
-DJACK_SHARED=$(usex jack ON OFF)
-DPULSEAUDIO=$(usex pulseaudio ON OFF)
-DPULSEAUDIO_SHARED=$(usex pulseaudio ON OFF)
-DURHO3D_DOCS=$(usex doc ON OFF)
-DVIDEO_OPENGL=ON
-DVIDEO_OPENGLES=OFF
-DVIDEO_VULKAN=$(usex vulkan ON OFF)
-DVIDEO_WAYLAND=$(usex wayland ON OFF)
-DVIDEO_WAYLAND_QT_TOUCH=OFF
-DVIDEO_X11=$(usex X ON OFF)
-DVIDEO_X11_XCURSOR=$(usex X ON OFF)
-DVIDEO_X11_XINERAMA=$(usex X ON OFF)
-DVIDEO_X11_XINPUT=$(usex X ON OFF)
-DVIDEO_X11_XRANDR=$(usex X ON OFF)
-DVIDEO_X11_XSCRNSAVER=$(usex X ON OFF)
-DVIDEO_X11_XSHAPE=$(usex X ON OFF)
-DVIDEO_X11_XVM=$(usex X ON OFF)
-DWAYLAND_SHARED=$(usex wayland ON OFF)
-DX11_SHARED=$(usex X ON OFF)
)
cmake_src_configure
}