Ports: Add port for libphysfs

This commit is contained in:
Gunnar Beutner 2021-05-08 04:45:14 +02:00 committed by Andreas Kling
parent 6afb6eb6a9
commit 5093b76f85
2 changed files with 17 additions and 0 deletions

View file

@ -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/ |

16
Ports/libphysfs/package.sh Executable file
View file

@ -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
}