contrib/assimp/Pkgfile

20 lines
622 B
Plaintext

# Description: Library to import various well-known 3D model formats in an uniform manner
# URL: http://assimp.sourceforge.net/index.html
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: boost cmake
name=assimp
version=5.0.1
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
cmake --build build
DESTDIR=$PKG cmake --install build
}