2007-09-13 00:13:05 +10:00
|
|
|
# Description: Library to provide abstract access to various archives.
|
|
|
|
# URL: http://icculus.org/physfs/
|
2023-07-05 10:07:19 -04:00
|
|
|
# Maintainer: UNMAINTAINED
|
2006-10-29 18:16:17 +01:00
|
|
|
|
|
|
|
name=physfs
|
2022-11-13 20:31:08 +00:00
|
|
|
version=3.2.0
|
2006-10-29 18:16:17 +01:00
|
|
|
release=1
|
2023-07-05 10:07:19 -04:00
|
|
|
source=(https://github.com/icculus/$name/archive/release-$version/$name-$version.tar.gz)
|
2006-10-29 18:16:17 +01:00
|
|
|
|
|
|
|
build() {
|
2023-07-05 10:07:19 -04:00
|
|
|
cmake -S $name-release-$version -B build -G Ninja \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
|
|
|
-D PHYSFS_BUILD_TEST=OFF \
|
|
|
|
-Wno-dev
|
2007-11-06 11:55:50 +11:00
|
|
|
|
2023-07-05 10:07:19 -04:00
|
|
|
ninja -C build -j ${JOBS:-1}
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2006-10-29 18:16:17 +01:00
|
|
|
}
|