assimp: updated cmake syntax

This commit is contained in:
Tim Biermann 2020-11-08 09:33:23 +00:00
parent 5ec23b44a5
commit dc22fa6c3d
2 changed files with 10 additions and 7 deletions

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF3/SWdYIZJ+fZvy4Tr9WCA2SzuFordOqSazGEtZxTAJ3YLkn5MA8z9Wqujqwb631I/IQY1qoHt31pbXsxjR08kAY= RWSagIOpLGJF35xyXaquYmMzs8WebYzCOwAv+4xpPPIshYeFwNm7ScW7nNVy6LPfNkQYIiIv35m7qicHmS6hJfFaUeBuL0G7fwI=
SHA256 (Pkgfile) = 3a6f60dd27ffbb601c4fd1d96c234856db74a6083c8c7f1da9769ca08d831fb0 SHA256 (Pkgfile) = 3453f37410fceab073c9cb3693e4441858be16c7cfaf1a97d2bc031e01724d4a
SHA256 (.footprint) = 006eb35ba7faf1ce46e788bb5a0bbad23c946882605be017713b918aff8d875b SHA256 (.footprint) = 006eb35ba7faf1ce46e788bb5a0bbad23c946882605be017713b918aff8d875b
SHA256 (assimp-5.0.1.tar.gz) = 11310ec1f2ad2cd46b95ba88faca8f7aaa1efe9aa12605c55e3de2b977b3dbfc SHA256 (assimp-5.0.1.tar.gz) = 11310ec1f2ad2cd46b95ba88faca8f7aaa1efe9aa12605c55e3de2b977b3dbfc

View File

@ -9,11 +9,14 @@ release=1
source=(https://github.com/assimp/assimp/archive/v$version/$name-$version.tar.gz) source=(https://github.com/assimp/assimp/archive/v$version/$name-$version.tar.gz)
build() { build() {
[[ -e /usr/bin/ninja ]] && PKGMK_ASSIMP_OPTIONS=' -GNinja' [[ -e /usr/bin/ninja ]] && PKGMK_ASSIMP+=' -G Ninja'
cmake -S$name-$version -Bbuild $PKGMK_ASSIMP_OPTIONS \ cmake -S $name-$version -B build $PKGMK_ASSIMP_OPTIONS \
-DCMAKE_INSTALL_PREFIX=/usr \ -D CMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \ -D CMAKE_BUILD_TYPE=Release \
-DASSIMP_BUILD_SAMPLES=OFF -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
-D ASSIMP_BUILD_SAMPLES=OFF \
-W no-dev
cmake --build build cmake --build build
DESTDIR=$PKG cmake --install build DESTDIR=$PKG cmake --install build
} }