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

25 lines
680 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
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-07 16:54:45 +00:00
[[ -e /usr/bin/ninja ]] && PKGMK_PHYSFS_OPTIONS=' -GNinja'
2007-11-06 11:55:50 +11:00
2020-11-07 16:54:45 +00:00
cmake -S$name-$version -Bbuild $PKGMK_PHYSFS_OPTIONS \
2017-10-13 20:45:52 +11:00
-DCMAKE_INSTALL_PREFIX=/usr \
2019-10-13 17:57:52 +11:00
-DCMAKE_BUILD_TYPE=Release \
2020-11-07 16:54:45 +00:00
-DCMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
-DCMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
-Wno-dev \
2019-10-13 17:57:52 +11:00
-DPHYSFS_BUILD_TEST=OFF
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
}