summaryrefslogtreecommitdiff
path: root/repo/physfs/physfs.xibuild
diff options
context:
space:
mode:
Diffstat (limited to 'repo/physfs/physfs.xibuild')
-rw-r--r--repo/physfs/physfs.xibuild26
1 files changed, 26 insertions, 0 deletions
diff --git a/repo/physfs/physfs.xibuild b/repo/physfs/physfs.xibuild
new file mode 100644
index 0000000..9b47f8b
--- /dev/null
+++ b/repo/physfs/physfs.xibuild
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+NAME="physfs"
+DESC="Library providing access to various archives, for use in video games"
+
+MAKEDEPS="cmake"
+
+PKG_VER=3.0.2
+SOURCE="https://icculus.org/physfs/downloads/physfs-$PKG_VER.tar.bz2"
+
+build() {
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+ -DCMAKE_C_FLAGS="$CFLAGS" \
+ -DPHYSFS_BUILD_TEST=OFF
+ make
+}
+
+package() {
+ make DESTDIR="$PKG_DEST" install
+}
+