developer | cdede74 | 2022-08-08 14:22:28 +0800 | [diff] [blame^] | 1 | DESCRIPTION = "Unified Configuration Interface (UCI)" |
| 2 | SECTION = "libs" |
| 3 | LICENSE_NAME = "${@bb.utils.contains('DISTRO_CODENAME', 'dunfell', 'LGPL-2.1', 'LGPL-2.1-only', d)}" |
| 4 | LICENSE = "${LICENSE_NAME}" |
| 5 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/${LICENSE_NAME};md5=1a6d268fd218675ffea8be556788b780" |
| 6 | |
| 7 | SRC_URI = " \ |
| 8 | git://git.openwrt.org/project/uci.git \ |
| 9 | " |
| 10 | |
| 11 | SRCREV = "f84f49f00fb70364f58b4cce72f1796a7190d370" |
| 12 | PV = "1.0.0+git${SRCPV}" |
| 13 | |
| 14 | S = "${WORKDIR}/git" |
| 15 | |
| 16 | |
| 17 | DEPENDS += "libubox" |
| 18 | |
| 19 | INSANE_SKIP_${PN} += "dev-deps" |
| 20 | FILES_SOLIBSDEV = "" |
| 21 | |
| 22 | FILES_${PN}-dev = "${includedir}/*" |
| 23 | FILES_${PN} = "${bindir}/uci ${libdir}/libuci.so" |
| 24 | |
| 25 | inherit cmake |
| 26 | |
| 27 | EXTRA_OECMAKE = " -DBUILD_LUA=OFF -DCMAKE_SKIP_RPATH=TRUE" |
| 28 | |
| 29 | do_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 | } |