2016-02-16 14:59:31 +00:00
|
|
|
# Copyright 2016 Julian Ospald <hasufell@posteo.de>
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2017-06-15 17:26:21 +00:00
|
|
|
require github [ user=arx project=ArxLibertatis tag=${PV/_p/-r} ]
|
2016-04-23 02:22:08 +00:00
|
|
|
require cmake [ api=2 ] gtk-icon-cache
|
2016-02-16 14:59:31 +00:00
|
|
|
|
|
|
|
SUMMARY="Cross-platform port of Arx Fatalis, a first-person role-playing game"
|
|
|
|
HOMEPAGE="http://arx-libertatis.org/"
|
|
|
|
|
|
|
|
LICENCES="GPL-3"
|
|
|
|
SLOT="0"
|
|
|
|
PLATFORMS="~amd64 ~x86"
|
|
|
|
|
|
|
|
DEPENDENCIES="
|
2016-02-28 23:05:15 +00:00
|
|
|
build:
|
|
|
|
dev-libs/boost
|
|
|
|
virtual/pkg-config
|
2016-02-16 14:59:31 +00:00
|
|
|
build+run:
|
|
|
|
media-libs/freetype:2
|
|
|
|
media-libs/glew
|
|
|
|
media-libs/openal
|
|
|
|
media-libs/SDL:0[X]
|
|
|
|
sys-libs/zlib
|
2016-02-17 11:35:52 +00:00
|
|
|
suggestion:
|
|
|
|
app-arch/innoextract [[ description = [ For extracting game files
|
|
|
|
from CD, used by the
|
|
|
|
arx-install-data tool ] ]]
|
2016-02-16 14:59:31 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
CMAKE_SRC_CONFIGURE_PARAMS=(
|
|
|
|
-DBUILD_EDITOR=OFF
|
|
|
|
-DCMAKE_INSTALL_DATAROOTDIR="/usr/share"
|
|
|
|
-DCMAKE_INSTALL_PREFIX="/usr"
|
|
|
|
-DCMAKE_INSTALL_BINDIR="/usr/$(exhost --target)/bin"
|
|
|
|
-DICONDIR=/usr/share/icons/hicolor/128x128/apps
|
|
|
|
-DINSTALL_SCRIPTS=ON
|
|
|
|
-DSET_OPTIMIZATION_FLAGS=OFF
|
|
|
|
-DSTRICT_USE=ON
|
|
|
|
-DUSE_NATIVE_FS=ON
|
|
|
|
-DUSE_OPENAL=ON
|
|
|
|
-DUSE_OPENGL=ON
|
|
|
|
-DUSE_SDL=ON
|
|
|
|
-DBUILD_CRASHREPORTER=OFF
|
|
|
|
-DBUILD_TOOLS=ON
|
|
|
|
-DUNITY_BUILD=OFF
|
|
|
|
-DUSE_STATIC_LIBS=OFF
|
|
|
|
)
|
|
|
|
|
|
|
|
pkg_postinst() {
|
2016-02-17 01:53:28 +00:00
|
|
|
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,"
|
|
|
|
elog "run \"/usr/$(exhost --target)/bin/arx-install-data\""
|
2016-02-16 14:59:31 +00:00
|
|
|
|
|
|
|
gtk-icon-cache_pkg_postinst
|
|
|
|
}
|
|
|
|
|