contrib/assimp/Pkgfile

25 lines
778 B
Plaintext
Raw Normal View History

2020-06-07 15:54:12 +02:00
# Description: Library to import various well-known 3D model formats in an uniform manner
2023-05-28 10:55:33 +02:00
# URL: https://assimp.sourceforge.net/index.html
2020-06-07 15:54:12 +02:00
# 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
2023-09-25 18:06:06 +02:00
version=5.3.1
2021-11-13 11:03:43 +01:00
release=1
2022-02-07 13:04:34 +01:00
source=(https://github.com/assimp/assimp/archive/v$version/$name-$version.tar.gz)
2020-06-07 15:54:12 +02:00
build() {
2023-05-28 10:55:33 +02:00
cmake -S $name-$version -B build -G Ninja \
2020-11-08 10:33:23 +01:00
-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 \
-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
}