2020-06-07 15:54:12 +02:00
|
|
|
# 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
|
2021-10-03 20:20:42 +02:00
|
|
|
# Depends on: cmake
|
2020-06-07 15:54:12 +02:00
|
|
|
|
|
|
|
name=assimp
|
2021-12-01 00:12:26 +01:00
|
|
|
version=5.1.2
|
2021-11-13 11:03:43 +01:00
|
|
|
release=1
|
2020-06-07 15:54:12 +02:00
|
|
|
source=(https://github.com/assimp/assimp/archive/v$version/$name-$version.tar.gz)
|
|
|
|
|
|
|
|
build() {
|
2021-11-20 18:35:59 +01:00
|
|
|
prt-get isinst ninja && PKGMK_ASSIMP+=' -G Ninja'
|
2020-11-08 10:33:23 +01:00
|
|
|
cmake -S $name-$version -B build $PKGMK_ASSIMP_OPTIONS \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
2021-11-13 11:03:43 +01:00
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
2020-11-08 10:33:23 +01:00
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
2020-12-07 00:48:54 +01:00
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
2020-11-08 10:33:23 +01:00
|
|
|
-D ASSIMP_BUILD_SAMPLES=OFF \
|
2020-11-08 11:01:33 +01:00
|
|
|
-Wno-dev
|
2020-06-15 11:25:57 +02:00
|
|
|
cmake --build build
|
2020-07-08 15:01:36 +02:00
|
|
|
DESTDIR=$PKG cmake --install build
|
2021-10-03 20:20:42 +02:00
|
|
|
|
|
|
|
sed -i "s|includedir=.*|includedir=/usr/include/assimp|" ${PKG}/usr/lib/pkgconfig/assimp.pc
|
2020-06-07 15:54:12 +02:00
|
|
|
}
|