Initial commit
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
LICENSE = "BSD-2-Clause"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=667d4ad55f5fbf4c3e853e8acd0f74de"
|
||||
|
||||
PV = "0.1+git${SRCPV}"
|
||||
SRC_URI = "git://github.com/yrutschle/conf2struct;branch=master;protocol=https"
|
||||
SRCREV = "6bc9eed1eb50175e5fda791f27d85e72f5a6ac78"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
SRC_URI += " \
|
||||
file://0001-makefile-Add-missing-LDFLAGS.patch \
|
||||
file://0001-conf2struct-Use-the-right-perl.patch \
|
||||
"
|
||||
|
||||
inherit native
|
||||
|
||||
DEPENDS += " \
|
||||
libconfig-native \
|
||||
libconfig-perl-native \
|
||||
"
|
||||
|
||||
EXTRA_OEMAKE += " \
|
||||
DESTDIR=${D} \
|
||||
prefix=${prefix} \
|
||||
"
|
||||
|
||||
do_compile() {
|
||||
oe_runmake checker
|
||||
}
|
||||
|
||||
do_install() {
|
||||
oe_runmake install
|
||||
}
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
From b44f0d3dbcadb20396dc83a2aa307d54490388ea Mon Sep 17 00:00:00 2001
|
||||
From: "William A. Kennington III" <wak@google.com>
|
||||
Date: Thu, 28 May 2020 23:07:58 -0700
|
||||
Subject: [PATCH] conf2struct: Use the right perl
|
||||
|
||||
---
|
||||
conf2struct | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/conf2struct b/conf2struct
|
||||
index 8d68741..b88a9b7 100755
|
||||
--- a/conf2struct
|
||||
+++ b/conf2struct
|
||||
@@ -1,4 +1,5 @@
|
||||
-#! /usr/bin/perl -w
|
||||
+#!/usr/bin/env perl
|
||||
+use warnings;
|
||||
|
||||
my $license = <<EOF;
|
||||
# conf2struct: generate libconf parsers that read to structs
|
||||
--
|
||||
2.27.0.rc0.183.gde8f92d652-goog
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
From 8fc429f59df50e1f468c8e9616a6e7ef42cc6ebf Mon Sep 17 00:00:00 2001
|
||||
From: "William A. Kennington III" <wak@google.com>
|
||||
Date: Thu, 28 May 2020 22:51:47 -0700
|
||||
Subject: [PATCH] makefile: Add missing LDFLAGS
|
||||
|
||||
---
|
||||
Makefile | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index a4d5f10..4976726 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -6,7 +6,7 @@ all: example checker
|
||||
CFLAGS=-g
|
||||
|
||||
checker: confcheck.o
|
||||
- $(CC) $(CFLAGS) -o confcheck confcheck.o -lconfig
|
||||
+ $(CC) $(CFLAGS) -o confcheck confcheck.o $(LDFLAGS) -lconfig
|
||||
|
||||
|
||||
install:
|
||||
@@ -19,7 +19,7 @@ uninstall:
|
||||
|
||||
EG_OBJ=example.o parser.o argtable3.o
|
||||
example: $(EG_OBJ)
|
||||
- $(CC) $(CFLAGS) -o example $(EG_OBJ) -lconfig
|
||||
+ $(CC) $(CFLAGS) -o example $(EG_OBJ) $(LDFLAGS) -lconfig
|
||||
|
||||
example.c: eg_conf.cfg
|
||||
./conf2struct eg_conf.cfg
|
||||
--
|
||||
2.27.0.rc0.183.gde8f92d652-goog
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
HOMEPAGE = "https://metacpan.org/pod/Conf::Libconfig"
|
||||
LICENSE = "BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/BSD-3-Clause;md5=550794465ba0ec5312d6919e203a55f9"
|
||||
|
||||
SRC_URI = "https://cpan.metacpan.org/authors/id/C/CN/CNANGEL/Conf-Libconfig-${PV}.tar.gz"
|
||||
SRC_URI[sha256sum] = "2f13d926a6e51fd549da9ea4ed01277a99748d75236c2a1b5f26f57a1abebe61"
|
||||
|
||||
S = "${WORKDIR}/Conf-Libconfig-${PV}"
|
||||
|
||||
DEPENDS += "libconfig"
|
||||
|
||||
EXTRA_PERLFLAGS = "-I ${PERLHOSTLIB}"
|
||||
|
||||
inherit cpan
|
||||
|
||||
BBCLASSEXTEND += "native"
|
||||
@@ -0,0 +1 @@
|
||||
BBCLASSEXTEND += "native"
|
||||
Reference in New Issue
Block a user