summaryrefslogtreecommitdiffstats
path: root/physfs/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'physfs/Pkgfile')
-rw-r--r--physfs/Pkgfile11
1 files changed, 8 insertions, 3 deletions
diff --git a/physfs/Pkgfile b/physfs/Pkgfile
index 137d6de57..b7dc621df 100644
--- a/physfs/Pkgfile
+++ b/physfs/Pkgfile
@@ -2,16 +2,21 @@
# URL: http://icculus.org/physfs/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
-# Depends on:
+# Depends on: cmake
name=physfs
-version=1.0.1
+version=2.0.2
release=1
source=(http://icculus.org/physfs/downloads/physfs-$version.tar.gz)
build() {
cd $name-$version
- ./configure --prefix=/usr
+ sed -i 's/-Werror//' CMakeLists.txt
+ export CFLAGS="$CFLAGS -fno-strict-aliasing"
+ export CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
+ cmake . -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DPHYSFS_BUILD_TEST=OFF -DPHYSFS_BUILD_WX_TEST=OFF
make
make DESTDIR=$PKG install
}