physfs: updated cmake syntax
This commit is contained in:
parent
8703fb3cc5
commit
15c64022ca
@ -1,5 +1,5 @@
|
|||||||
untrusted comment: verify with /etc/ports/contrib.pub
|
untrusted comment: verify with /etc/ports/contrib.pub
|
||||||
RWSagIOpLGJF31QZzYX5ylVrniUIBbimQacKjwIHGma06Q72cmUopx4liRgDURtB8HSP9pAZ8xfXUIQly2szHRVit5m9NljM4gs=
|
RWSagIOpLGJF35kMzmOIniNGjAuq4ZWenK7tAqcIx5rMirqWm49bvT5pIZ7HIp1Uz+yja05SXDVDigqWMXGGZS0AunRYc8bsbQ0=
|
||||||
SHA256 (Pkgfile) = 097f962fde63505fc9ac4d20f7ea4fb0f9a220822ed22dc9db0297903607b12d
|
SHA256 (Pkgfile) = 776377e14ed4a23ac3525413bd75a91f97ce7bf1bc28c319500fb990bbaa5b6a
|
||||||
SHA256 (.footprint) = 8ba663dcab105d02e7ab226a96784c85f568c7f6300468d917e30dcb5677639b
|
SHA256 (.footprint) = 8ba663dcab105d02e7ab226a96784c85f568c7f6300468d917e30dcb5677639b
|
||||||
SHA256 (physfs-3.0.2.tar.bz2) = 304df76206d633df5360e738b138c94e82ccf086e50ba84f456d3f8432f9f863
|
SHA256 (physfs-3.0.2.tar.bz2) = 304df76206d633df5360e738b138c94e82ccf086e50ba84f456d3f8432f9f863
|
||||||
|
@ -9,15 +9,15 @@ release=1
|
|||||||
source=(https://icculus.org/$name/downloads/$name-$version.tar.bz2)
|
source=(https://icculus.org/$name/downloads/$name-$version.tar.bz2)
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
[[ -e /usr/bin/ninja ]] && PKGMK_PHYSFS_OPTIONS=' -GNinja'
|
[[ -e /usr/bin/ninja ]] && PKGMK_PHYSFS+=' -G Ninja'
|
||||||
|
|
||||||
cmake -S$name-$version -Bbuild $PKGMK_PHYSFS_OPTIONS \
|
cmake -S $name-$version -B build $PKGMK_PHYSFS \
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-D CMAKE_BUILD_TYPE=Release \
|
||||||
-DCMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
|
||||||
-DCMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
|
||||||
-Wno-dev \
|
-D PHYSFS_BUILD_TEST=OFF \
|
||||||
-DPHYSFS_BUILD_TEST=OFF
|
-Wno-dev
|
||||||
|
|
||||||
cmake --build build
|
cmake --build build
|
||||||
DESTDIR=$PKG cmake --install build
|
DESTDIR=$PKG cmake --install build
|
||||||
|
Loading…
x
Reference in New Issue
Block a user