xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-devtools/musl/musl-nscd_git.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# Copyright (C) 2020 Armin Kuster <akuster808@gmail.com>
2*4882a593Smuzhiyun# Released under the MIT license (see COPYING.MIT for the terms)
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunDESCRIPTION = "Musl-nscd is an implementation of the NSCD protocol, suitable for use with musl and with standard NSS modules"
5*4882a593SmuzhiyunHOMEPAGE = "https://github.com/pikhq/musl-nscd"
6*4882a593SmuzhiyunLICENSE = "MIT"
7*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYRIGHT;md5=9bf479a145bcaff8489e743da58afeee"
8*4882a593SmuzhiyunSECTION = "utils"
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunDEPENDS += "flex-native bison-native flex bison"
11*4882a593Smuzhiyun
12*4882a593SmuzhiyunPV = "1.0.2"
13*4882a593Smuzhiyun
14*4882a593SmuzhiyunSRCREV = "af581482a3e1059458f3c8b20a56f82807ca3bd4"
15*4882a593SmuzhiyunSRC_URI = "git://github.com/pikhq/musl-nscd;branch=master;protocol=https \
16*4882a593Smuzhiyun           file://0001-Fix-build-under-GCC-fno-common.patch \
17*4882a593Smuzhiyun           file://0001-configure-Check-for-flex-if-lex-is-not-found.patch \
18*4882a593Smuzhiyun           file://0001-nsswitch.y-Replace-empty-bison-extension.patch \
19*4882a593Smuzhiyun          "
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunUPSTREAM_CHECK_COMMITS = "1"
22*4882a593Smuzhiyun
23*4882a593Smuzhiyuninherit autotools-brokensep
24*4882a593Smuzhiyun
25*4882a593SmuzhiyunS = "${WORKDIR}/git"
26*4882a593Smuzhiyun
27*4882a593Smuzhiyundo_configure () {
28*4882a593Smuzhiyun    # no debug set -s flag
29*4882a593Smuzhiyun    sed -i -e 's/LDFLAGS_AUTO=-s/LDFLAGS_AUTO=/' ${S}/configure
30*4882a593Smuzhiyun    ${S}/configure ${CONFIGUREOPTS} ${EXTRA_OECONF}
31*4882a593Smuzhiyun}
32*4882a593Smuzhiyun
33*4882a593Smuzhiyundo_compile () {
34*4882a593Smuzhiyun    oe_runmake
35*4882a593Smuzhiyun}
36*4882a593Smuzhiyun
37*4882a593Smuzhiyundo_install () {
38*4882a593Smuzhiyun    make DESTDIR=${D} install
39*4882a593Smuzhiyun}
40*4882a593Smuzhiyun
41*4882a593SmuzhiyunCOMPATIBLE_HOST = ".*-musl.*"
42