Skip to content

Commit edc5b55

Browse files
author
Ashwin Prabhakar
committed
assimp: Add new recipe for Open Asset Import Library (Assimp)
Add a new recipe for the Open Asset Import Library (Assimp) using the latest upstream git source. This library provides a unified interface to import various 3D model formats. Signed-off-by: Ashwin Prabhakar <ashwin.prabhakar@qti.qualcomm.com>
1 parent 53cbcab commit edc5b55

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
SUMMARY = "Open Asset Import Library"
2+
DESCRIPTION = "The Open Asset Import Library (assimp) is a portable Open Source \
3+
library to import various well-known 3D model formats in a uniform manner."
4+
HOMEPAGE = "https://github.com/assimp/assimp"
5+
SECTION = "devel"
6+
7+
LICENSE = "BSD-3-Clause"
8+
LIC_FILES_CHKSUM = "file://LICENSE;md5=f2d38c9e0d63058b051065fb7b1102a8"
9+
10+
DEPENDS = "zlib"
11+
12+
SRC_URI = "git://github.com/assimp/assimp.git;protocol=https;branch=master"
13+
14+
SRCREV = "1962da5ac484434524e7a25d566046edd932f901"
15+
16+
PV = "5.x+git${SRCPV}"
17+
18+
inherit cmake
19+
20+
EXTRA_OECMAKE = "\
21+
-DASSIMP_BUILD_ASSIMP_TOOLS=OFF \
22+
-DASSIMP_BUILD_TESTS=OFF \
23+
-DASSIMP_LIB_INSTALL_DIR=${baselib} \
24+
-DCMAKE_INSTALL_PREFIX=${prefix} \
25+
-DCMAKE_INSTALL_LIBDIR=${baselib} \
26+
-DCMAKE_SKIP_RPATH=ON \
27+
-DCMAKE_BUILD_WITH_INSTALL_RPATH=OFF \
28+
"
29+
30+
do_install:append() {
31+
32+
sed -i \
33+
-e "s:${WORKDIR}.*:${prefix}:g" \
34+
-e "s:${TMPDIR}.*:${prefix}:g" \
35+
${D}${libdir}/pkgconfig/assimp.pc
36+
37+
find ${D} -name "*assimp*cmake*" -delete
38+
find ${D} -name "*.la" -delete
39+
}

0 commit comments

Comments
 (0)