2007-09-13 00:13:05 +10:00
|
|
|
# Description: Library to provide abstract access to various archives.
|
|
|
|
# URL: http://icculus.org/physfs/
|
2014-11-10 23:28:07 +11:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2017-11-01 23:35:12 +11:00
|
|
|
# Depends on: cmake readline
|
2006-10-29 18:16:17 +01:00
|
|
|
|
|
|
|
name=physfs
|
2019-10-13 17:57:52 +11:00
|
|
|
version=3.0.2
|
2006-10-29 18:16:17 +01:00
|
|
|
release=1
|
2017-10-13 20:45:52 +11:00
|
|
|
source=(https://icculus.org/$name/downloads/$name-$version.tar.bz2)
|
2006-10-29 18:16:17 +01:00
|
|
|
|
|
|
|
build() {
|
2020-11-08 12:12:30 +00:00
|
|
|
[[ -e /usr/bin/ninja ]] && PKGMK_PHYSFS+=' -G Ninja'
|
2007-11-06 11:55:50 +11:00
|
|
|
|
2020-11-08 12:12:30 +00:00
|
|
|
cmake -S $name-$version -B build $PKGMK_PHYSFS \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
2020-12-07 00:00:07 +00:00
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
2020-11-08 12:12:30 +00:00
|
|
|
-D PHYSFS_BUILD_TEST=OFF \
|
|
|
|
-Wno-dev
|
2007-11-06 11:55:50 +11:00
|
|
|
|
2020-11-07 16:54:45 +00:00
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2006-10-29 18:16:17 +01:00
|
|
|
}
|