summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Timo Gurr <tgurr@exherbo.org> 2017-12-22 16:52:22 +0100
committerAvatar Timo Gurr <tgurr@exherbo.org> 2017-12-22 17:01:03 +0100
commit92dcded2fbf61ebd278edbce815c28d2d3ad300c (patch)
tree792be08631a955e6e6717ad9303d26123b0f26a6
parentcf915be55129adaa36dfe706e5e28b837d20f31d (diff)
downloadgames-master.tar.gz
games-master.tar.xz
fs2_open: initial exheresHEADmaster
Change-Id: I2e58b204b965deea18baeb2233d3afe029624591 Reviewed-on: https://galileo.mailstation.de/gerrit/10886 Reviewed-by: Timo Gurr <tgurr@exherbo.org>
-rw-r--r--packages/games-simulation/fs2_open/fs2_open-3.8.0.exheres-085
1 files changed, 85 insertions, 0 deletions
diff --git a/packages/games-simulation/fs2_open/fs2_open-3.8.0.exheres-0 b/packages/games-simulation/fs2_open/fs2_open-3.8.0.exheres-0
new file mode 100644
index 0000000..32f96e5
--- /dev/null
+++ b/packages/games-simulation/fs2_open/fs2_open-3.8.0.exheres-0
@@ -0,0 +1,85 @@
+# Copyright 2017 Timo Gurr <tgurr@exherbo.org>
+# Distributed under the terms of the GNU General Public License v2
+
+MY_PNV=${PN}_${PV//./_}
+
+require github [ user=scp-fs2open project=fs2open.github.com release=release_${PV//./_} pnv=${MY_PNV}-source-Unix suffix=tar.gz ] \
+ cmake [ api=2 cmake_minimum_version=3.4 ] \
+ lua [ multibuild=false whitelist="5.1" ]
+
+SUMMARY="FreeSpace2 Source Code Project"
+HOMEPAGE+=" http://scp.indiegames.us/"
+
+LICENCES="fs2_open"
+SLOT="0"
+PLATFORMS="~amd64"
+MYOPTIONS="
+ editor [[ description = [ Build the mission editor ] ]]
+ ( providers: ijg-jpeg jpeg-turbo ) [[ number-selected = exactly-one ]]
+ ( providers: ffmpeg libav ) [[ number-selected = exactly-one ]]
+"
+
+RESTRICT="test"
+
+DEPENDENCIES="
+ build:
+ virtual/pkg-config
+ build+run:
+ dev-libs/jansson[>=2.2]
+ media-libs/SDL:2[X]
+ media-libs/libpng:=
+ media-libs/openal
+ editor? ( x11-libs/wxGTK:3.0[providers:gtk2] )
+ providers:ffmpeg? ( media/ffmpeg )
+ providers:ijg-jpeg? ( media-libs/jpeg:= )
+ providers:jpeg-turbo? ( media-libs/libjpeg-turbo )
+ providers:libav? ( media/libav )
+"
+
+CMAKE_SRC_CONFIGURE_PARAMS=(
+ -DCMAKE_BUILD_TYPE:STRING=Release
+ -DFFMPEG_USE_PRECOMPILED:BOOL=FALSE
+ -DFSO_BUILD_APPIMAGE:BOOL=FALSE
+ -DFSO_BUILD_INCLUDED_LIBS:BOOL=FALSE
+ -DFSO_BUILD_TESTS:BOOL=FALSE
+ -DFSO_BUILD_TOOLS:BOOL=FALSE
+ -DFSO_USE_LUAJIT:BOOL=FALSE
+)
+
+CMAKE_SOURCE=${WORKBASE}/fs2open.github.com
+
+src_prepare() {
+ cmake_src_prepare
+
+ if option editor ; then
+ edo sed \
+ -e 's:#include <globalincs/pstypes.h>::g' \
+ -i wxfred2/{frmFRED2,wxfred2}.cpp
+ fi
+}
+
+src_configure() {
+ local cmakeparams=(
+ -DFSO_BUILD_WXFRED2:BOOL=$(option editor TRUE FALSE)
+ )
+
+ ecmake \
+ "${CMAKE_SRC_CONFIGURE_PARAMS[@]}" \
+ "${cmakeparams[@]}"
+}
+
+src_install() {
+ dobin bin/${MY_PNV}_x64
+
+ if option editor ; then
+ dobin bin/wxfred2_${PV//./_}_x64
+ fi
+
+ dodoc "${CMAKE_SOURCE}"/AUTHORS
+}
+
+pkg_postinst() {
+ elog "${PN} requires a copy of the original FreeSpace2 resources. For more information see:"
+ elog "http://wiki.hard-light.net/index.php/Manually_Installing_FreeSpace_2_Open"
+}
+