Index: games/Makefile =================================================================== --- games/Makefile +++ games/Makefile @@ -315,6 +315,7 @@ SUBDIR += frogatto SUBDIR += frotz SUBDIR += frozen-bubble + SUBDIR += fs2open SUBDIR += fteqw SUBDIR += funnyboat SUBDIR += galaxis Index: games/fs2open/Makefile =================================================================== --- /dev/null +++ games/fs2open/Makefile @@ -0,0 +1,36 @@ +# $FreeBSD$ + +PORTNAME= fs2open +DISTVERSIONPREFIX= release_ +DISTVERSION= 3_8_0 +CATEGORIES= games + +MAINTAINER= pkubaj@FreeBSD.org +COMMENT= Open source of FreeSpace 2 + +LICENSE= VOLITION +LICENSE_FILE= ${WRKSRC}/COPYING +LICENSE_PERMS= dist-mirror auto-accept +LICENSE_NAME= Volition Copyright + +LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg \ + libpng16.so:graphics/png + +USES= cmake compiler:c++11-lang lua:51 jpeg openal pkgconfig sdl +USE_GITHUB= yes +GH_ACCOUNT= scp-fs2open +GH_PROJECT= fs2open.github.com +GH_TUPLE= asarium:cmake-modules:7cef957:cmakemodules/cmake/external/rpavlik-cmake-modules \ + sakra:cotire:40a46bf:cotire/cmake/external/cotire +USE_SDL= sdl2 +CMAKE_ON= CMAKE_DISABLE_FIND_PACKAGE_Doxygen + +SUB_FILES= pkg-message + +PLIST_FILES= bin/fs2_open + +do-install: + ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/bin/fs2_open \ + ${STAGEDIR}${PREFIX}/bin + +.include Index: games/fs2open/distinfo =================================================================== --- /dev/null +++ games/fs2open/distinfo @@ -0,0 +1,7 @@ +TIMESTAMP = 1529864788 +SHA256 (scp-fs2open-fs2open.github.com-3.8.0-release_3_8_0_GH0.tar.gz) = c932d86daa2fe3dedf533a8904ed0cc9916bfe8ccf8e1cffcc20911a88d36457 +SIZE (scp-fs2open-fs2open.github.com-3.8.0-release_3_8_0_GH0.tar.gz) = 8711455 +SHA256 (asarium-cmake-modules-7cef957_GH0.tar.gz) = 5d1e7954bb92c61c1509ad0bb0d2274af4863621dc864199aac85c2d43921c0e +SIZE (asarium-cmake-modules-7cef957_GH0.tar.gz) = 267299 +SHA256 (sakra-cotire-40a46bf_GH0.tar.gz) = f58794a6c7fa639c6797083a56fc21df0a94cc689c881bf6e3f50439ad313d58 +SIZE (sakra-cotire-40a46bf_GH0.tar.gz) = 62758 Index: games/fs2open/files/patch-cmake_toolchain-clang.cmake =================================================================== --- /dev/null +++ games/fs2open/files/patch-cmake_toolchain-clang.cmake @@ -0,0 +1,11 @@ +--- cmake/toolchain-clang.cmake.orig 2018-06-24 19:14:21 UTC ++++ cmake/toolchain-clang.cmake +@@ -80,7 +80,7 @@ if(SUPPORTS_SHIFT_NEGATIVE_VALUE) + set(COMPILER_FLAGS "${COMPILER_FLAGS} -Wno-shift-negative-value") + endif() + +-set(COMPILER_FLAGS_RELEASE "-O2 -Wno-unused-variable") ++set(COMPILER_FLAGS_RELEASE "-Wno-unused-variable") + + set(COMPILER_FLAGS_DEBUG "-O0 -g -Wshadow") + Index: games/fs2open/files/patch-cmake_toolchain-gcc.cmake =================================================================== --- /dev/null +++ games/fs2open/files/patch-cmake_toolchain-gcc.cmake @@ -0,0 +1,11 @@ +--- cmake/toolchain-gcc.cmake.orig 2018-06-24 19:15:11 UTC ++++ cmake/toolchain-gcc.cmake +@@ -87,7 +87,7 @@ set(COMPILER_FLAGS "${COMPILER_FLAGS} -W + + set(COMPILER_FLAGS "${COMPILER_FLAGS} -Wno-unused-parameter") + +-set(COMPILER_FLAGS_RELEASE "-O2 -Wno-unused-variable -Wno-unused-but-set-variable -Wno-array-bounds -Wno-empty-body -Wno-clobbered") ++set(COMPILER_FLAGS_RELEASE "-Wno-unused-variable -Wno-unused-but-set-variable -Wno-array-bounds -Wno-empty-body -Wno-clobbered") + + set(COMPILER_FLAGS_DEBUG "-O0 -g -Wshadow") + Index: games/fs2open/files/patch-freespace2_CMakeLists.txt =================================================================== --- /dev/null +++ games/fs2open/files/patch-freespace2_CMakeLists.txt @@ -0,0 +1,11 @@ +--- freespace2/CMakeLists.txt.orig 2018-06-24 19:15:59 UTC ++++ freespace2/CMakeLists.txt +@@ -23,7 +23,7 @@ ADD_EXECUTABLE(Freespace2 ${EXE_GUI_TYPE + + include(resources.cmake) + +-SET_TARGET_PROPERTIES(Freespace2 PROPERTIES OUTPUT_NAME "fs2_open_${FSO_BINARY_SUFFIX}") ++SET_TARGET_PROPERTIES(Freespace2 PROPERTIES OUTPUT_NAME "fs2_open") + + TARGET_LINK_LIBRARIES(Freespace2 code) + TARGET_LINK_LIBRARIES(Freespace2 platform) Index: games/fs2open/files/pkg-message.in =================================================================== --- /dev/null +++ games/fs2open/files/pkg-message.in @@ -0,0 +1,2 @@ +To play this game, you need to cd to the directory with the game files +and run fs2_open. Index: games/fs2open/pkg-descr =================================================================== --- /dev/null +++ games/fs2open/pkg-descr @@ -0,0 +1,10 @@ +FS2Open is an open source port for Windows, OS X and Linux. It features improved graphics, mod support, mutli-platform support, improved mission scripting, lua scripting, optimizations, and various bug fixes. + +Improved Graphics: FSO adds shader support to the Freespace's rendering pipeline to implement soft particles and other effects. Support for Normal Mapping, Environment Mapping, Glow Mapping, Skyboxes and soft shadows have been added. +Mod Support: Mods can now be installed and read without altering game files. Only a launcher is required to implement an installed mod, and multiple mods can be installed within the Freespace folder. +Multi-platform support: FSO enables Freespace to be run in Windows, OS X, Linux, and (experimentally) in FreeBSD. Multi-platform compatibility is maintained on all stable FSO releases. +Mission Scripting: FSO more than doubles the available functions (known as SEXPs) that can be used in mission creation, including in-game cutscene controls. It also allows the mission creator to disable Briefings and Debriefings or add Fictional text to the mission. +Lua Scripting: Lua scripting has been added to accomplish things that the regular functions cannot and also alter the state of the game outside of missions. +Optimizations: The FSO engine has been optimized to make more complex models and textures usable and improve CPU performance. +Bug Fixes: Since the beginning of the FSO Source Code Project (FSOSCP), over 2000 bugs have been reviewed and fixed or explained. +Community Support for FSOpen (FSO) can be found at Hard-light Productions