summaryrefslogtreecommitdiffstats
path: root/physfs/Pkgfile
blob: b7dc621dfc5f6976305edab40038bafa46d8c07e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Description: Librairie fournissant un accès a différentes types d'archives
# URL: http://icculus.org/physfs/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: cmake

name=physfs
version=2.0.2
release=1
source=(http://icculus.org/physfs/downloads/physfs-$version.tar.gz)

build() {
	cd $name-$version
	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
}