2007-09-12 16:13:05 +02:00
|
|
|
# Description: Library to provide abstract access to various archives.
|
|
|
|
# URL: http://icculus.org/physfs/
|
2014-11-10 13:28:07 +01:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2017-11-01 13:35:12 +01:00
|
|
|
# Depends on: cmake readline
|
2006-10-29 18:16:17 +01:00
|
|
|
|
|
|
|
name=physfs
|
2022-11-13 21:31:08 +01:00
|
|
|
version=3.2.0
|
2006-10-29 18:16:17 +01:00
|
|
|
release=1
|
2022-11-13 21:31:08 +01:00
|
|
|
source=(https://github.com/icculus/physfs/archive/release-$version/$name-$version.tar.gz)
|
2006-10-29 18:16:17 +01:00
|
|
|
|
|
|
|
build() {
|
2022-11-13 21:31:08 +01:00
|
|
|
cmake -S $name-release-$version -B build -G Ninja $PKGMK_PHYSFS \
|
2020-11-08 13:12:30 +01:00
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
2022-11-13 21:31:08 +01:00
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
2020-11-08 13:12:30 +01:00
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
2020-12-07 01:00:07 +01:00
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
2020-11-08 13:12:30 +01:00
|
|
|
-D PHYSFS_BUILD_TEST=OFF \
|
|
|
|
-Wno-dev
|
2007-11-06 01:55:50 +01:00
|
|
|
|
2020-11-07 17:54:45 +01:00
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2006-10-29 18:16:17 +01:00
|
|
|
}
|