diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index 590976a454..dcfd0738f8 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -56,6 +56,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^ | [`libksba`](libksba/) | libksba | 1.5.1 | https://gnupg.org/software/libksba/index.html | | [`libjpeg`](libjpeg/) | libjpeg | 9d | https://ijg.org/ | | [`libogg`](libogg/) | libogg | 1.3.4 | https://github.com/xiph/ogg | +| [`libphysfs`](libphysfs/) | PhysicsFS | 3.0.2 | https://icculus.org/physfs/ | | [`libpng`](libpng/) | libpng | 1.6.37 | https://libpng.org/ | | [`libpuffy`](libpuffy/) | libpuffy | 1.0 | https://github.com/ibara/libpuffy | | [`libtheora`](libtheora/) | libtheora | 1.1.1 | https://www.theora.org/ | diff --git a/Ports/libphysfs/package.sh b/Ports/libphysfs/package.sh new file mode 100755 index 0000000000..4030a9ac7c --- /dev/null +++ b/Ports/libphysfs/package.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env -S bash ../.port_include.sh +port=libphysfs +useconfigure=true +version=3.0.2 +workdir="physfs-${version}" +configopts="-DCMAKE_TOOLCHAIN_FILE=$SERENITY_SOURCE_DIR/Toolchain/CMake/CMakeToolchain.txt" +files="https://icculus.org/physfs/downloads/physfs-${version}.tar.bz2 physfs-${version}.tar.bz2 304df76206d633df5360e738b138c94e82ccf086e50ba84f456d3f8432f9f863" +auth_type=sha256 + +configure() { + run cmake $configopts +} + +install() { + run make install +}