You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
84 lines
2.0 KiB
84 lines
2.0 KiB
6 years ago
|
# Copyright 1999-2018 Gentoo Authors
|
||
11 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
6 years ago
|
EAPI=6
|
||
11 years ago
|
|
||
|
CMAKE_WARN_UNUSED_CLI=yes
|
||
6 years ago
|
inherit cmake-utils gnome2-utils
|
||
11 years ago
|
|
||
|
DESCRIPTION="Cross-platform port of Arx Fatalis, a first-person role-playing game"
|
||
6 years ago
|
HOMEPAGE="https://arx-libertatis.org/"
|
||
11 years ago
|
SRC_URI="mirror://sourceforge/arx/${P}/${P}.tar.xz"
|
||
|
|
||
|
LICENSE="GPL-3"
|
||
|
SLOT="0"
|
||
7 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
6 years ago
|
IUSE="c++0x crash-reporter debug static tools +unity-build"
|
||
11 years ago
|
|
||
|
COMMON_DEPEND="
|
||
|
media-libs/freetype
|
||
|
media-libs/libsdl[X,video,opengl]
|
||
|
media-libs/openal
|
||
|
sys-libs/zlib
|
||
|
virtual/opengl
|
||
|
crash-reporter? (
|
||
6 years ago
|
dev-qt/qtcore:5
|
||
|
dev-qt/qtgui:5
|
||
|
dev-qt/qtnetwork:5[ssl]
|
||
|
dev-qt/qtwidgets:5
|
||
11 years ago
|
)
|
||
6 years ago
|
!static? ( media-libs/glew:= )"
|
||
11 years ago
|
RDEPEND="${COMMON_DEPEND}
|
||
|
crash-reporter? ( sys-devel/gdb )"
|
||
|
DEPEND="${COMMON_DEPEND}
|
||
|
dev-libs/boost
|
||
|
virtual/pkgconfig
|
||
|
static? ( media-libs/glew[static-libs] )"
|
||
|
|
||
|
DOCS=( README.md AUTHORS CHANGELOG )
|
||
|
|
||
6 years ago
|
PATCHES=( "${FILESDIR}"/${P}-cmake-3.5.patch )
|
||
8 years ago
|
|
||
11 years ago
|
src_configure() {
|
||
|
# editor does not build
|
||
|
local mycmakeargs=(
|
||
|
-DBUILD_EDITOR=OFF
|
||
6 years ago
|
-DBUILD_TOOLS=$(usex tools)
|
||
|
-DDEBUG=$(usex debug)
|
||
11 years ago
|
-DICONDIR=/usr/share/icons/hicolor/128x128/apps
|
||
|
-DINSTALL_SCRIPTS=ON
|
||
|
-DSET_OPTIMIZATION_FLAGS=OFF
|
||
|
-DSTRICT_USE=ON
|
||
6 years ago
|
-DUNITY_BUILD=$(usex unity-build)
|
||
|
-DUSE_CXX11=$(usex c++0x)
|
||
11 years ago
|
-DUSE_NATIVE_FS=ON
|
||
|
-DUSE_OPENAL=ON
|
||
|
-DUSE_OPENGL=ON
|
||
|
-DUSE_SDL=ON
|
||
6 years ago
|
-DBUILD_CRASHREPORTER=$(usex crash-reporter)
|
||
6 years ago
|
$(usex crash-reporter "-DUSE_QT5=ON" "")
|
||
6 years ago
|
-DUSE_STATIC_LIBS=$(usex static)
|
||
11 years ago
|
)
|
||
|
|
||
|
cmake-utils_src_configure
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
elog "optional dependencies:"
|
||
|
elog " games-rpg/arx-fatalis-data (from CD or GOG)"
|
||
|
elog " games-rpg/arx-fatalis-demo (free demo)"
|
||
|
elog
|
||
|
elog "This package only installs the game binary."
|
||
|
elog "You need the demo or full game data. Also see:"
|
||
|
elog "http://wiki.arx-libertatis.org/Getting_the_game_data"
|
||
|
elog
|
||
|
elog "If you have already installed the game or use the STEAM version,"
|
||
6 years ago
|
elog "run \"/usr/bin/arx-install-data\""
|
||
11 years ago
|
|
||
|
gnome2_icon_cache_update
|
||
|
}
|
||
|
|
||
|
pkg_postrm() {
|
||
|
gnome2_icon_cache_update
|
||
|
}
|