summaryrefslogtreecommitdiff
path: root/assimp/Pkgfile
blob: 480572d6ead59438ace2e5cb6fff171afc5f4470 (plain)
    1 # Description: Library to import various well-known 3D model formats in an uniform manner
    2 # URL: http://assimp.sourceforge.net/index.html
    3 # Maintainer: Tim Biermann, tbier at posteo dot de
    4 # Depends on: boost cmake
    5 
    6 name=assimp
    7 version=5.0.1
    8 release=1
    9 source=(https://github.com/assimp/assimp/archive/v$version/$name-$version.tar.gz)
   10 
   11 build() {
   12   [[ -e /usr/bin/ninja ]] && PKGMK_ASSIMP+=' -G Ninja'
   13   cmake -S $name-$version -B build $PKGMK_ASSIMP_OPTIONS \
   14     -D CMAKE_INSTALL_PREFIX=/usr \
   15     -D CMAKE_BUILD_TYPE=Release \
   16     -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
   17     -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
   18     -D ASSIMP_BUILD_SAMPLES=OFF \
   19     -Wno-dev
   20   cmake --build build
   21   DESTDIR=$PKG cmake --install build
   22 }

Generated by cgit