[oe-commits] [meta-openembedded] 09/28: p7zip: add native extend

git at git.openembedded.org git at git.openembedded.org
Sun Apr 3 11:42:10 UTC 2016


martin_jansa pushed a commit to branch master-next
in repository meta-openembedded.

commit 991f3e141e5e5fbd4e87a6d1895e91fa53cf361d
Author: Yannick Gicquel <yannick.gicquel at iot.bzh>
AuthorDate: Thu Mar 31 13:55:46 2016 +0200

    p7zip: add native extend
    
    This add a support for native build of 7za, 7z and 7zr binaries.
    
    Signed-off-by: Yannick Gicquel <yannick.gicquel at iot.bzh>
    Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
 meta-oe/recipes-extended/p7zip/p7zip_9.20.1.bb | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/meta-oe/recipes-extended/p7zip/p7zip_9.20.1.bb b/meta-oe/recipes-extended/p7zip/p7zip_9.20.1.bb
index be706e1..b89fc42 100644
--- a/meta-oe/recipes-extended/p7zip/p7zip_9.20.1.bb
+++ b/meta-oe/recipes-extended/p7zip/p7zip_9.20.1.bb
@@ -15,3 +15,21 @@ do_install() {
     install -d ${D}${bindir}
     install -m 0755 ${S}/bin/* ${D}${bindir}
 }
+
+# all3: to build bin/7za, bin/7z (with its plugins), bin/7zr and bin/7zCon.sfx
+EXTRA_OEMAKE_class-native = "all3"
+
+do_install_class-native() {
+    install -d ${D}${bindir}
+    install -d ${D}${bindir}/Codecs
+    install -m 0755 ${S}/bin/7* ${D}${bindir}
+    install -m 0755 ${S}/bin/Codecs/* ${D}${bindir}/Codecs
+
+    # Create a shell script wrapper to execute next to 7z.so
+    mv ${D}${bindir}/7z ${D}${bindir}/7z.bin
+    echo "#! /bin/sh" > ${D}${bindir}/7z
+    echo "exec ${D}${bindir}/7z.bin \"\$@\"" >> ${D}${bindir}/7z
+    chmod 0755 ${D}${bindir}/7z
+}
+
+BBCLASSEXTEND += "native"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list