crossguid: Add recipe
PATCH 1/2 crossguid: Add recipe
Needed by kodi
Signed-off-by Khem Raj <[email protected]>
--- .../recipes-support/crossguid/crossguid.bb | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 meta-multimedia/recipes-support/crossguid/crossguid.bb
meta-multimedia/recipes-support/crossguid/crossguid.bb new file +25 -0
@@ -0,0 +1,25 @@ +# Copyright (C) 2017 Khem Raj <[email protected]> +# Released under the MIT license (see COPYING.MIT for the terms) + +DESCRIPTION = "Lightweight cross platform C++ GUID/UUID library" +HOMEPAGE = "https://github.com/graeme-hill/crossguid" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=1373274bc8d8001edc54933919f36f68" +DEPENDS += "util-linux" + +PV = "0.0+git${SRCPV}" + +SRCREV = "b56957ac453575e91ca1b63a80c0077c2b0d011a" +SRC_URI = "git://github.com/graeme-hill/crossguid;protocol=https" + +S = "${WORKDIR}/git" + +do_compile() { + ${CXX} -c guid.cpp -o guid.o ${CXXFLAGS} -std=c++11 -DGUID_LIBUUID + ${AR} rvs libcrossguid.a guid.o +} + +do_install() { + install -D -m 0644 ${B}/libcrossguid.a ${D}${libdir}/libcrossguid.a + install -D -m 0644 ${S}/guid.h ${D}${includedir}/guid.h +}
Signature · 1 line
2.13.2
PATCH 2/2 kodi: User external crossguid
Prune our .pc directory when looking for configure.ac files Tighten the search regexp to look for just .ac or .in configure files
Signed-off-by Khem Raj <[email protected]>
--- meta-multimedia/recipes-mediacenter/kodi/kodi_17.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meta-multimedia/recipes-mediacenter/kodi/kodi_17.bb +2 -2
@@ -18,6 +18,7 @@ DEPENDS = " \ avahi \ boost \ bzip2 \ + crossguid \ curl \ dcadec \ enca \
@@ -150,13 +151,12 @@ def enable_glew(bb, d): do_configure() { tar xf ${WORKDIR}/${BPN}-${ADDONSPV}-generated-addons.tar.xz -C ${S}/ - ( for i in $(find ${S} -name "configure.*" ) ; do + ( for i in $(find ${S} -name configure.ac -or -name configure.in|grep -v ".pc") ; do cd $(dirname $i) && gnu-configize --force || true done ) ( for f in ${S}/xbmc/interfaces/python/generated/*.cpp; do touch `echo $f|sed -e 's/.cpp$/.xml/g'` done ) - make -C tools/depends/target/crossguid PREFIX=${STAGING_DIR_HOST}${prefix} BOOTSTRAP_STANDALONE=1 make -f bootstrap.mk JSON_BUILDER="${STAGING_BINDIR_NATIVE}/JsonSchemaBuilder" BOOTSTRAP_STANDALONE=1 make JAVA=/bin/true -f codegenerator.mk JSON_BUILDER="${STAGING_BINDIR_NATIVE}/JsonSchemaBuilder"
Signature · 1 line
2.13.2