From: Ashwin Prabhakar <[email protected]>

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 <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
(cherry picked from commit ca1512c46f66fd5b555ca463c61ef08155fcdb57)
---
 meta-oe/recipes-graphics/assimp/assimp_git.bb | 39 +++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 meta-oe/recipes-graphics/assimp/assimp_git.bb

diff --git a/meta-oe/recipes-graphics/assimp/assimp_git.bb 
b/meta-oe/recipes-graphics/assimp/assimp_git.bb
new file mode 100644
index 0000000000..13d1002946
--- /dev/null
+++ b/meta-oe/recipes-graphics/assimp/assimp_git.bb
@@ -0,0 +1,39 @@
+SUMMARY = "Open Asset Import Library"
+DESCRIPTION = "The Open Asset Import Library (assimp) is a portable Open 
Source \
+library to import various well-known 3D model formats in a uniform manner."
+HOMEPAGE = "https://github.com/assimp/assimp";
+SECTION = "devel"
+
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=f2d38c9e0d63058b051065fb7b1102a8"
+
+DEPENDS = "zlib"
+
+SRC_URI = "git://github.com/assimp/assimp.git;protocol=https;branch=master"
+
+SRCREV = "1962da5ac484434524e7a25d566046edd932f901"
+
+PV = "5.x+git${SRCPV}"
+
+inherit cmake
+
+EXTRA_OECMAKE = "\
+    -DASSIMP_BUILD_ASSIMP_TOOLS=OFF \
+    -DASSIMP_BUILD_TESTS=OFF \
+    -DASSIMP_LIB_INSTALL_DIR=${baselib} \
+    -DCMAKE_INSTALL_PREFIX=${prefix} \
+    -DCMAKE_INSTALL_LIBDIR=${baselib} \
+    -DCMAKE_SKIP_RPATH=ON \
+    -DCMAKE_BUILD_WITH_INSTALL_RPATH=OFF \
+"
+
+do_install:append() {
+
+    sed -i \
+        -e "s:${WORKDIR}.*:${prefix}:g" \
+        -e "s:${TMPDIR}.*:${prefix}:g" \
+        ${D}${libdir}/pkgconfig/assimp.pc
+
+    find ${D} -name "*assimp*cmake*" -delete
+    find ${D} -name "*.la" -delete
+}
-- 
2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#127792): 
https://lists.openembedded.org/g/openembedded-devel/message/127792
Mute This Topic: https://lists.openembedded.org/mt/119988959/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to