1
0
forked from brl/citadel

Imported two recipes needed by meta-rust from openembedded.

meta-rust has a LAYERDEPENDS on openembedded, but only needs
these two recipes.  Import the recipes and override the dependency
var in citadel-distro.conf
This commit is contained in:
brl 2018-02-13 10:12:21 -05:00
parent f956d2e3d6
commit ded3b758af
3 changed files with 59 additions and 0 deletions

View File

@ -40,5 +40,15 @@ QB_NET = "none"
QB_MEM = "-m 1024" QB_MEM = "-m 1024"
QB_DEFAULT_FSTYPE = "wic" QB_DEFAULT_FSTYPE = "wic"
# Override meta-rust dependencies.
#
# Instead of bringing in all of openembedded, we imported the two recipes
# meta-rust depends on:
#
# meta-citadel/recipes-support/libgit2/
# meta-citadel/recipes-support/libssh2/
#
LAYERDEPENDS_rust-layer = "core"
require conf/distro/include/security_flags.inc require conf/distro/include/security_flags.inc

View File

@ -0,0 +1,23 @@
SUMMARY = "the Git linkable library"
HOMEPAGE = "http://libgit2.github.com/"
LICENSE = "GPL-2.0-with-GCC-exception"
LIC_FILES_CHKSUM = "file://COPYING;md5=34197a479f637beb9e09e56893f48bc2"
DEPENDS = "curl openssl zlib libssh2"
SRC_URI = "git://github.com/libgit2/libgit2.git;branch=maint/v0.24"
SRCREV = "4cf1ec7cff28da8838a2f0a9fb330e312ea3f963"
S = "${WORKDIR}/git"
inherit cmake
EXTRA_OECMAKE = "\
-DTHREADSAFE=ON \
-DBUILD_CLAR=OFF \
-DSHA1_TYPE="builtin" \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DBUILD_EXAMPLES=OFF \
"
BBCLASSEXTEND = "native"

View File

@ -0,0 +1,26 @@
SUMMARY = "A client-side C library implementing the SSH2 protocol"
HOMEPAGE = "http://www.libssh2.org/"
SECTION = "libs"
DEPENDS = "zlib"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://COPYING;md5=c5cf34fc0acb44b082ef50ef5e4354ca"
SRC_URI = "http://www.libssh2.org/download/${BP}.tar.gz"
SRC_URI[md5sum] = "3d1147cae66e2959ea5441b183de1b1c"
SRC_URI[sha256sum] = "39f34e2f6835f4b992cafe8625073a88e5a28ba78f83e8099610a7b3af4676d4"
inherit autotools pkgconfig
EXTRA_OECONF += "\
--with-libz \
--with-libz-prefix=${STAGING_LIBDIR} \
"
# only one of openssl and gcrypt could be set
PACKAGECONFIG ??= "openssl"
PACKAGECONFIG[openssl] = "--with-openssl --with-libssl-prefix=${STAGING_LIBDIR},--without-openssl,openssl"
PACKAGECONFIG[gcrypt] = "--with-libgcrypt --with-libgcrypt-prefix=${STAGING_EXECPREFIXDIR},--without-libgcrypt,libgcrypt"
BBCLASSEXTEND = "native"