assimp: updated cmake syntax
This commit is contained in:
parent
5ec23b44a5
commit
dc22fa6c3d
@ -1,5 +1,5 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF3/SWdYIZJ+fZvy4Tr9WCA2SzuFordOqSazGEtZxTAJ3YLkn5MA8z9Wqujqwb631I/IQY1qoHt31pbXsxjR08kAY=
|
||||
SHA256 (Pkgfile) = 3a6f60dd27ffbb601c4fd1d96c234856db74a6083c8c7f1da9769ca08d831fb0
|
||||
RWSagIOpLGJF35xyXaquYmMzs8WebYzCOwAv+4xpPPIshYeFwNm7ScW7nNVy6LPfNkQYIiIv35m7qicHmS6hJfFaUeBuL0G7fwI=
|
||||
SHA256 (Pkgfile) = 3453f37410fceab073c9cb3693e4441858be16c7cfaf1a97d2bc031e01724d4a
|
||||
SHA256 (.footprint) = 006eb35ba7faf1ce46e788bb5a0bbad23c946882605be017713b918aff8d875b
|
||||
SHA256 (assimp-5.0.1.tar.gz) = 11310ec1f2ad2cd46b95ba88faca8f7aaa1efe9aa12605c55e3de2b977b3dbfc
|
||||
|
@ -9,11 +9,14 @@ release=1
|
||||
source=(https://github.com/assimp/assimp/archive/v$version/$name-$version.tar.gz)
|
||||
|
||||
build() {
|
||||
[[ -e /usr/bin/ninja ]] && PKGMK_ASSIMP_OPTIONS=' -GNinja'
|
||||
cmake -S$name-$version -Bbuild $PKGMK_ASSIMP_OPTIONS \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DASSIMP_BUILD_SAMPLES=OFF
|
||||
[[ -e /usr/bin/ninja ]] && PKGMK_ASSIMP+=' -G Ninja'
|
||||
cmake -S $name-$version -B build $PKGMK_ASSIMP_OPTIONS \
|
||||
-D CMAKE_INSTALL_PREFIX=/usr \
|
||||
-D CMAKE_BUILD_TYPE=Release \
|
||||
-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
|
||||
DESTDIR=$PKG cmake --install build
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user