# Copyright (C) 2015 Khem Raj <raj.khem@gmail.com>
# Released under the MIT license (see COPYING.MIT for the terms)

DESCRIPTION = "OpenWrt LuCI web user interface"
HOMEPAGE = "https://github.com/openwrt/luci"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=2b42edef8fa55315f34f2370b4715ca9"
SECTION = "base"
DEPENDS = "json-c libubox libnl lua5.1 iwinfo openssl"
RDEPENDS_${PN} = "lua5.1"

SRCREV = "ff21f2f0a38dbac7411118377d3300a668db7146"

SRC_URI = "git://github.com/openwrt/luci.git;branch=lede-17.01"
SRC_URI += "file://cmake.patch"

inherit cmake openwrt pkgconfig

prefix=""
includedir="/usr/include"
bindir="/usr/bin"
libdir="/usr/lib"

OECMAKE_C_FLAGS += "-I${STAGING_INCDIR}/libnl3 -DDESTDIR=${D}"

FILES_${PN} += "/www /lib /usr/share/acl.d ${bindir} ${libdir}"

S = "${WORKDIR}/git/"

# Copyright (C) 2015 Khem Raj <raj.khem@gmail.com>
# Released under the MIT license (see COPYING.MIT for the terms)

DESCRIPTION = "OpenWrt LuCI web user interface"
HOMEPAGE = "https://github.com/openwrt/luci"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=2b42edef8fa55315f34f2370b4715ca9"
SECTION = "base"
DEPENDS = "json-c libubox libnl lua5.1 iwinfo openssl libxcrypt"
RDEPENDS_${PN} = "lua5.1"

SRCREV = "ff21f2f0a38dbac7411118377d3300a668db7146"

SRC_URI = "git://github.com/openwrt/luci.git;branch=lede-17.01"
SRC_URI += "file://cmake.patch"

inherit cmake openwrt pkgconfig

prefix=""
includedir="/usr/include"
bindir="/usr/bin"
libdir="/usr/lib"

OECMAKE_C_FLAGS += "-I${STAGING_INCDIR}/libnl3 -DDESTDIR=${D}"

FILES_${PN} += "/www /lib /usr/share/acl.d ${bindir} ${libdir}"

S = "${WORKDIR}/git/"

Add missing build time dependency
luci: Add missing build time dependency

libxcrypt is required to build luci. It's likely this was over
looked via host system bleed though and cmake.

Error:
| libs/luci-lib-nixio/src/user.c:34:10: fatal error: crypt.h:
| No such file or directory
| 34 |  #include <crypt.h>

Signed-off-by: Matthew Stanger <ecb9b4dfe16019a426071b535f3933bce9396897@gmail.com>
