blob: 2d0afe8a94f64f30f574c1dc019cf1bb9dd96c07 [file] [log] [blame]
SUMMARY = "A portable version of the mg maintained by the OpenBSD team"
HOMEPAGE = "http://homepage.boetes.org/software/mg/"
LICENSE = "PD"
LIC_FILES_CHKSUM = "file://version.c;md5=43616508f42ab3fdb082c5f932bd2eb4"
DEPENDS = "ncurses libbsd"
SECTION = "console/editors"
SRCREV = "5dbacce10b4cc5fe0785840c09398fc5b19fb96a"
SRC_URI = "git://github.com/hboetes/mg;branch=master;protocol=https \
file://0001-fileio-Include-sys-param.h-for-MAXNAMLEN.patch \
file://0002-fileio-Define-DEFFILEMODE-if-platform-is-missing.patch \
"
SRC_URI:append:libc-musl = "\
file://0001-Undefine-REGEX-for-musl-based-systems.patch \
"
S = "${WORKDIR}/git"
# CFLAGS isn't in EXTRA_OEMAKE, as the makefile picks it up via ?=
EXTRA_OEMAKE = "\
'CC=${CC}' \
'LDFLAGS=${LDFLAGS}' \
\
'prefix=${prefix}' \
'bindir=${bindir}' \
'libdir=${libdir}' \
'includedir=${includedir}' \
'mandir=${mandir}' \
'PKG_CONFIG=pkg-config' \
"
CFLAGS += "-I${STAGING_INCDIR}/bsd"
do_install () {
oe_runmake install DESTDIR=${D}
}
inherit pkgconfig