Skip to contentSkip to conversation

crossguid: Add recipe

PATCH New Khem Raj 1 participant 2 messages Jul 1, 2017

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/2 crossguid: Add recipe

Needed by kodi

---
 .../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
new file mode 100644
index 000000000..228b8b654
@@ -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
author
#1 lore raw

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

---
 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
index 19806a12a..3bc2eb591 100644
@@ -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