xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-extended/dialog/dialog_1.3-20210509.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "display dialog boxes from shell scripts"
2*4882a593SmuzhiyunDESCRIPTION = "Dialog lets you to present a variety of questions \
3*4882a593Smuzhiyunor display messages using dialog boxes from a shell \
4*4882a593Smuzhiyunscript (or any scripting language)."
5*4882a593SmuzhiyunHOMEPAGE = "http://invisible-island.net/dialog/"
6*4882a593SmuzhiyunSECTION = "console/utils"
7*4882a593SmuzhiyunDEPENDS = "ncurses"
8*4882a593SmuzhiyunLICENSE = "LGPL-2.1-only"
9*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343"
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunSRC_URI = "ftp://ftp.invisible-island.net/${BPN}/${BP}.tgz"
12*4882a593SmuzhiyunSRC_URI[sha256sum] = "ae478fe7d5fca82bcf4b51684641e07d2ee68489d319710fe1e81f41a197bd66"
13*4882a593Smuzhiyun
14*4882a593Smuzhiyun# hardcoded here for use in dialog-static recipe
15*4882a593SmuzhiyunS = "${WORKDIR}/dialog-${PV}"
16*4882a593Smuzhiyun
17*4882a593Smuzhiyuninherit autotools-brokensep pkgconfig
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunPACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}"
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunPACKAGECONFIG[x11] = "--with-x --x-includes=${STAGING_INCDIR} --x-libraries=${STAGING_LIBDIR},--without-x,virtual/libx11"
22*4882a593Smuzhiyun
23*4882a593SmuzhiyunEXTRA_OECONF = "--with-ncurses \
24*4882a593Smuzhiyun                --disable-rpath-hack"
25*4882a593Smuzhiyun
26*4882a593Smuzhiyundo_configure() {
27*4882a593Smuzhiyun    gnu-configize --force
28*4882a593Smuzhiyun    sed -i 's,${cf_ncuconfig_root}6-config,${cf_ncuconfig_root}-config,g' -i configure
29*4882a593Smuzhiyun    sed -i 's,cf_have_ncuconfig=unknown,cf_have_ncuconfig=yes,g' -i configure
30*4882a593Smuzhiyun    oe_runconf
31*4882a593Smuzhiyun}
32