DESCRIPTION = "Lightweight text editor for programmers."
HOMEPAGE = "http://triptico.com/software/mp.html"
SECTION = "console/utils"
PRIORITY = "optional"
LICENSE = "GPLv2"

LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"

DEPENDS = "ncurses"
SRC_URI = "http://distro.ibiblio.org/easyos/source/alphabetical/m/mp-${PV}.tar.gz \
    file://realpath-fix.patch"

SRC_URI[md5sum] = "c388fc63f95c982177592bb8fddf384a"
SRC_URI[sha256sum] = "7744ba8ead9e284aa548420e9a1bbfa6fc5cd7248d2fdfb309ded83f3f641d07"

S = "${WORKDIR}/mp-${PV}"
PR = "r0"

inherit base

do_configure () {
    cp -a -f ${FILE_DIRNAME}/mped-static-5.1.4/* ${S}/
}

do_compile() {
	oe_runmake
}

do_install() {
	oe_runmake install DESTDIR=${D}
}

FILES_${PN} += "/usr/share/mp-5/*"

SUMMARY = ""
