summaryrefslogtreecommitdiff
path: root/repo/physfs/physfs.xibuild
blob: 9b47f8be11f51c675a41a05d7f8008cc9c4ff412 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
}