# Copyright (C) 2013-2022, Digi International Inc.

SUMMARY = "Microwindows Graphical Engine"
SECTION = "x11/wm"
LICENSE = "GPL-2.0-only"
# License path relative to S = "${WORKDIR}/${PN}-${PV}/src"
LIC_FILES_CHKSUM = "file://LICENSE;md5=537b9004889eb701c48fc1fe78d9c30e"

SRC_URI = " \
    ftp://ftp.microwindows.org/pub/microwindows/microwindows-src-${PV}.tar.gz \
    file://0001-defconfig.patch;striplevel=2 \
"

SRC_URI:append:aarch64 = " file://0002-Arch.rules-remove-mstructure-size-boundary-8-flag.patch; "

SRC_URI[md5sum] = "901e912cf3975f6460a9bb4325557645"
SRC_URI[sha256sum] = "c0a8473842fc757ff4c225f82b83d98bba5da0dca0cf843cfc7792064a393435"

S = "${WORKDIR}/${PN}-${PV}/src"

EXTRA_OEMAKE = " \
    CC='${CC}' \
    CXX='${CXX}' \
    LD='${LD}' \
    ARMTOOLSPREFIX=${TARGET_PREFIX} \
    INSTALL_OWNER1= \
    INSTALL_OWNER2= \
    INSTALL_PREFIX=${D}${prefix} \
"

do_install() {
	oe_runmake install
}

RDEPENDS:${PN}-dev = ""
