summaryrefslogtreecommitdiff
path: root/assimp/Pkgfile
blob: 15f9e43faec4d3faa9223240f9ac5ba5153e18a9 (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: cmake
    5 
    6 name=assimp
    7 version=5.2.5
    8 release=1
    9 source=(https://github.com/assimp/assimp/archive/v$version/$name-$version.tar.gz)
   10 
   11 build() {
   12   prt-get isinst ninja && PKGMK_ASSIMP+=' -G Ninja'
   13   cmake -S $name-$version -B build $PKGMK_ASSIMP_OPTIONS \
   14     -D CMAKE_INSTALL_PREFIX=/usr \
   15     -D CMAKE_INSTALL_LIBDIR=lib \
   16     -D CMAKE_BUILD_TYPE=Release \
   17     -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
   18     -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
   19     -D ASSIMP_BUILD_SAMPLES=OFF \
   20     -Wno-dev
   21   cmake --build build
   22   DESTDIR=$PKG cmake --install build
   23 
   24   sed -i "s|includedir=.*|includedir=/usr/include/assimp|" ${PKG}/usr/lib/pkgconfig/assimp.pc
   25 }

Generated by cgit