Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cyaml: new recipe #770

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions meta-oe/recipes-support/cyaml/cyaml_1.0.bb
Nat-B99 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
SUMMARY = "Cyaml library"
DESCRIPTION = "LibCYAML is a C library for reading and writing structured YAML documents. It is written in ISO C11 and licensed under the ISC licence."
Nat-B99 marked this conversation as resolved.
Show resolved Hide resolved
HOMEPAGE = "https://github.com/tlsa/libcyaml"
SECTION = "libs"
LICENSE = "ISC"
LIC_FILES_CHKSUM = "file://LICENSE;md5=fe6f0e49348c87bddd5d27803dceaaf0"
DEPENDS = " \
libyaml \
"
SRCREV = "07ff8654a270ec9b410acd3152b60de9e9f941af"

SRC_URI = "git://github.com/tlsa/libcyaml.git;protocol=https;branch=main"

S = "${WORKDIR}/git"

inherit pkgconfig

EXTRA_OEMAKE = "'PREFIX=""' 'DESTDIR=${D}' 'CFLAGS=${CFLAGS}' 'LIBDIR=${libdir}' 'INCLUDEDIR=${includedir}'"

do_compile() {
oe_runmake VARIANT=release
Nat-B99 marked this conversation as resolved.
Show resolved Hide resolved
}
do_install() {
oe_runmake install VARIANT=release
}

CFLAGS += "-pedantic -Wall -Wextra -O3 -Iinclude"