1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 )
7 inherit cmake-utils python-single-r1 xdg
9 DESCRIPTION="A free turn-based space empire and galactic conquest game"
10 HOMEPAGE="http://www.freeorion.org"
12 if [[ ${PV} == 9999 ]]; then
14 EGIT_REPO_URI="https://github.com/freeorion/freeorion.git"
17 SRC_URI="https://github.com/${PN}/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
19 S="${WORKDIR}/${PN}-${MY_PV}"
22 LICENSE="GPL-2 LGPL-2.1 CC-BY-SA-3.0"
27 >=dev-libs/boost-1.56:=[python,threads,${PYTHON_USEDEP}]
32 >=media-libs/libogg-1.1.3
34 media-libs/libsdl2[X,opengl,video]
35 >=media-libs/libvorbis-1.1.2
41 # Use bundled gigi as of freeorion-0.4.3
49 # build system is using FindPythonLibs.cmake which needs python:2
50 python-single-r1_pkg_setup
54 sed -e "s/-O3//" -i CMakeLists.txt || die
56 cmake-utils_src_prepare
61 -DCMAKE_BUILD_TYPE=Release
65 #append-cppflags -DBOOST_OPTIONAL_CONFIG_USE_OLD_IMPLEMENTATION_OF_OPTIONAL
67 cmake-utils_src_configure
71 cmake-utils_src_install
74 newenvd "${FILESDIR}/${PN}.envd" 99${PN}