diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index 0ad2f3ebb18..fbbaf0ff9c5 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -75,6 +75,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n | [`findutils`](findutils/) | GNU findutils | 4.9.0 | https://www.gnu.org/software/findutils/ | | [`fio`](fio/) | fio - Flexible I/O tester | 3.33 | https://fio.readthedocs.io/en/latest/ | | [`flac`](flac/) | Free Lossless Audio Codec | 1.4.2 | https://xiph.org/flac/ | +| [`flare-engine`](flare-engine/) | Flare (engine) | 1.14 | https://flarerpg.org/ | | [`flatbuffers`](flatbuffers/) | Flatbuffers | 2.0.0 | https://github.com/google/flatbuffers | | [`flex`](flex/) | flex | 2.6.4 | https://github.com/westes/flex | | [`fontconfig`](fontconfig/) | Fontconfig | 2.14.0 | https://www.freedesktop.org/wiki/Software/fontconfig/ | diff --git a/Ports/flare-engine/package.sh b/Ports/flare-engine/package.sh new file mode 100755 index 00000000000..352f655285b --- /dev/null +++ b/Ports/flare-engine/package.sh @@ -0,0 +1,32 @@ +#!/usr/bin/env -S bash ../.port_include.sh +port='flare-engine' +useconfigure='true' +version='1.14' +depends=( + 'SDL2' + 'SDL2_image' + 'SDL2_mixer' + 'SDL2_ttf' +) +files=( + "https://github.com/flareteam/flare-engine/archive/refs/tags/v${version}.tar.gz 2c1bafeaa5ac26c10449bfcb7151b06e8a22547aa7364d2a39bbcb135aa50a09" +) + +configopts=( + "-DCMAKE_INSTALL_PREFIX=${SERENITY_INSTALL_ROOT}/usr/local" + "-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt" + "-DSDL2_INCLUDE_DIR=${SERENITY_INSTALL_ROOT}/usr/local/include/SDL2" +) + +configure() { + run cmake "${configopts[@]}" +} + +install() { + run make "${installopts[@]}" install +} + +launcher_name='Flare' +launcher_category='Games' +launcher_command='/usr/local/games/flare' +icon_file='distribution/flare_logo_icon.png'