Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 1 | SUMMARY = "A portable version of the mg maintained by the OpenBSD team" |
| 2 | HOMEPAGE = "http://homepage.boetes.org/software/mg/" |
| 3 | LICENSE = "PD" |
| 4 | LIC_FILES_CHKSUM = "file://version.c;md5=1895eb37bf6bd79cdc5c89d8166fabfb" |
| 5 | DEPENDS = "ncurses libbsd" |
| 6 | SECTION = "console/editors" |
| 7 | |
Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 8 | SRCREV = "598f7a028f01f85f0dee0e798753bccf93233add" |
Andrew Geissler | bffdb3e | 2020-08-21 16:13:29 -0500 | [diff] [blame] | 9 | SRC_URI = "git://github.com/hboetes/mg \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 10 | file://0001-fileio-Include-sys-param.h-for-MAXNAMLEN.patch \ |
| 11 | file://0002-fileio-Define-DEFFILEMODE-if-platform-is-missing.patch \ |
| 12 | " |
| 13 | SRC_URI_append_libc-musl = "\ |
| 14 | file://0001-Undefine-REGEX-for-musl-based-systems.patch \ |
| 15 | " |
Andrew Geissler | bffdb3e | 2020-08-21 16:13:29 -0500 | [diff] [blame] | 16 | |
| 17 | S = "${WORKDIR}/git" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 18 | |
| 19 | # CFLAGS isn't in EXTRA_OEMAKE, as the makefile picks it up via ?= |
| 20 | EXTRA_OEMAKE = "\ |
| 21 | 'CC=${CC}' \ |
| 22 | 'LDFLAGS=${LDFLAGS}' \ |
| 23 | \ |
| 24 | 'prefix=${prefix}' \ |
| 25 | 'bindir=${bindir}' \ |
| 26 | 'libdir=${libdir}' \ |
| 27 | 'includedir=${includedir}' \ |
| 28 | 'mandir=${mandir}' \ |
| 29 | 'PKG_CONFIG=pkg-config' \ |
| 30 | " |
| 31 | |
| 32 | CFLAGS += "-I${STAGING_INCDIR}/bsd" |
| 33 | |
| 34 | do_install () { |
| 35 | oe_runmake install DESTDIR=${D} |
| 36 | } |
| 37 | |
| 38 | inherit pkgconfig |