1
0
forked from ports/contrib
contrib/physfs/Pkgfile

24 lines
670 B
Plaintext
Raw Normal View History

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
2022-11-13 20:31:08 +00:00
version=3.2.0
2006-10-29 18:16:17 +01:00
release=1
2022-11-13 20:31:08 +00: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 20:31:08 +00:00
cmake -S $name-release-$version -B build -G Ninja $PKGMK_PHYSFS \
2020-11-08 12:12:30 +00:00
-D CMAKE_INSTALL_PREFIX=/usr \
2022-11-13 20:31:08 +00:00
-D CMAKE_INSTALL_LIBDIR=lib \
2020-11-08 12:12:30 +00:00
-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
}