blob: 71598dba7f456729b7d434408eb8e5129b917918 [file] [log] [blame]
developercdede742022-08-08 14:22:28 +08001DESCRIPTION = "Unified Configuration Interface (UCI)"
2SECTION = "libs"
3LICENSE_NAME = "${@bb.utils.contains('DISTRO_CODENAME', 'dunfell', 'LGPL-2.1', 'LGPL-2.1-only', d)}"
4LICENSE = "${LICENSE_NAME}"
5LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/${LICENSE_NAME};md5=1a6d268fd218675ffea8be556788b780"
6
7SRC_URI = " \
8 git://git.openwrt.org/project/uci.git \
9"
10
11SRCREV = "f84f49f00fb70364f58b4cce72f1796a7190d370"
12PV = "1.0.0+git${SRCPV}"
13
14S = "${WORKDIR}/git"
15
16
17DEPENDS += "libubox"
18
19INSANE_SKIP_${PN} += "dev-deps"
20FILES_SOLIBSDEV = ""
21
22FILES_${PN}-dev = "${includedir}/*"
23FILES_${PN} = "${bindir}/uci ${libdir}/libuci.so"
24
25inherit cmake
26
27EXTRA_OECMAKE = " -DBUILD_LUA=OFF -DCMAKE_SKIP_RPATH=TRUE"
28
29do_install() {
30 install -d ${D}${libdir}
31 install -d ${D}${bindir}
32 install -d ${D}${includedir}
33 install -m 0755 ${B}/uci ${D}${bindir}
34 install -m 0755 ${B}/libuci.so ${D}${libdir}/
35 install -m 0644 ${S}/uci*.h ${D}${includedir}
36}