xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-support/mg/mg_20210609.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "A portable version of the mg maintained by the OpenBSD team"
2*4882a593SmuzhiyunHOMEPAGE = "http://homepage.boetes.org/software/mg/"
3*4882a593SmuzhiyunLICENSE = "PD"
4*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://version.c;md5=1895eb37bf6bd79cdc5c89d8166fabfb"
5*4882a593SmuzhiyunDEPENDS = "ncurses libbsd"
6*4882a593SmuzhiyunSECTION = "console/editors"
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunSRCREV = "688f49cd67ab30dfa6482c74815e117cbf7af63a"
9*4882a593SmuzhiyunSRC_URI = "git://github.com/hboetes/mg;branch=master;protocol=https \
10*4882a593Smuzhiyun           file://0001-fileio-Include-sys-param.h-for-MAXNAMLEN.patch \
11*4882a593Smuzhiyun           file://0002-fileio-Define-DEFFILEMODE-if-platform-is-missing.patch \
12*4882a593Smuzhiyun           "
13*4882a593SmuzhiyunSRC_URI:append:libc-musl = "\
14*4882a593Smuzhiyun           file://0001-Undefine-REGEX-for-musl-based-systems.patch \
15*4882a593Smuzhiyun           "
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunS = "${WORKDIR}/git"
18*4882a593Smuzhiyun
19*4882a593Smuzhiyun# CFLAGS isn't in EXTRA_OEMAKE, as the makefile picks it up via ?=
20*4882a593SmuzhiyunEXTRA_OEMAKE = "\
21*4882a593Smuzhiyun    'CC=${CC}' \
22*4882a593Smuzhiyun    'LDFLAGS=${LDFLAGS}' \
23*4882a593Smuzhiyun    \
24*4882a593Smuzhiyun    'prefix=${prefix}' \
25*4882a593Smuzhiyun    'bindir=${bindir}' \
26*4882a593Smuzhiyun    'libdir=${libdir}' \
27*4882a593Smuzhiyun    'includedir=${includedir}' \
28*4882a593Smuzhiyun    'mandir=${mandir}' \
29*4882a593Smuzhiyun    'PKG_CONFIG=pkg-config' \
30*4882a593Smuzhiyun"
31*4882a593Smuzhiyun
32*4882a593SmuzhiyunCFLAGS += "-I${STAGING_INCDIR}/bsd"
33*4882a593Smuzhiyun
34*4882a593Smuzhiyundo_install () {
35*4882a593Smuzhiyun    oe_runmake install DESTDIR=${D}
36*4882a593Smuzhiyun}
37*4882a593Smuzhiyun
38*4882a593Smuzhiyuninherit pkgconfig
39