diff options
author | Tim Biermann <tbier@posteo.de> | 2020-11-07 16:54:45 +0000 |
---|---|---|
committer | Tim Biermann <tbier@posteo.de> | 2020-11-07 16:54:45 +0000 |
commit | f1ac84d757f62d05b2eb158b477996f3fe70feb5 (patch) | |
tree | 0bd2744707022576ab2709a634dbea5847ebcc82 /physfs | |
parent | 4171997627dfa02d0e6b59e3c750af0e0c713a7a (diff) | |
download | contrib-f1ac84d757f62d05b2eb158b477996f3fe70feb5.tar.gz contrib-f1ac84d757f62d05b2eb158b477996f3fe70feb5.tar.xz |
physfs: updated cmake syntax
Diffstat (limited to 'physfs')
-rw-r--r-- | physfs/.signature | 4 | ||||
-rw-r--r-- | physfs/Pkgfile | 14 |
2 files changed, 9 insertions, 9 deletions
diff --git a/physfs/.signature b/physfs/.signature index 3483e8e93..d6c5408b0 100644 --- a/physfs/.signature +++ b/physfs/.signature @@ -1,5 +1,5 @@ untrusted comment: verify with /etc/ports/contrib.pub -RWSagIOpLGJF35XO7muD8rulu472B9w5oNAKN2Z403E13Vj5f3lGGl/MT3mMKroeREz6un8RJoeaWYaZhnsaOJhkcTMuXKLmJAY= -SHA256 (Pkgfile) = 0695d054529c91d547325b23e79904051c70a50adc7a2a058db359056f08c99a +RWSagIOpLGJF31QZzYX5ylVrniUIBbimQacKjwIHGma06Q72cmUopx4liRgDURtB8HSP9pAZ8xfXUIQly2szHRVit5m9NljM4gs= +SHA256 (Pkgfile) = 097f962fde63505fc9ac4d20f7ea4fb0f9a220822ed22dc9db0297903607b12d SHA256 (.footprint) = 8ba663dcab105d02e7ab226a96784c85f568c7f6300468d917e30dcb5677639b SHA256 (physfs-3.0.2.tar.bz2) = 304df76206d633df5360e738b138c94e82ccf086e50ba84f456d3f8432f9f863 diff --git a/physfs/Pkgfile b/physfs/Pkgfile index b3bd2d35d..5d55a2285 100644 --- a/physfs/Pkgfile +++ b/physfs/Pkgfile @@ -9,16 +9,16 @@ release=1 source=(https://icculus.org/$name/downloads/$name-$version.tar.bz2) build() { - cd $name-$version + [[ -e /usr/bin/ninja ]] && PKGMK_PHYSFS_OPTIONS=' -GNinja' - mkdir build - cd build - - cmake .. \ + cmake -S$name-$version -Bbuild $PKGMK_PHYSFS_OPTIONS \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \ + -DCMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \ + -Wno-dev \ -DPHYSFS_BUILD_TEST=OFF - make - make DESTDIR=$PKG install + cmake --build build + DESTDIR=$PKG cmake --install build } |