DESCRIPTION = "mpg321 is a Free replacement for mpg123, a very popular command-line mp3 player."
SECTION = "console/multimedia"
DEPENDS = "libmad libao"
LICENSE = "GPL"
AUTHOR = "Joe Drew <hoserhead@woot.net>"
HOMEPAGE = "http://mpg321.sourceforge.net/"

SRC_URI = "${SOURCEFORGE_MIRROR}/mpg321/mpg321-0.2.10.tar.gz \
file://libao.m4.patch;patch=1"

inherit autotools

Add --with-ao-includes and --with-ao-libraries to avoid CROSS COMPILE gcc failure

DESCRIPTION = "mpg321 is a Free replacement for mpg123, a very popular command-line mp3 player."
SECTION = "console/multimedia"
DEPENDS = "libmad libao"
LICENSE = "GPL"
AUTHOR = "Joe Drew <hoserhead@woot.net>"
HOMEPAGE = "http://mpg321.sourceforge.net/"

SRC_URI = "${SOURCEFORGE_MIRROR}/mpg321/mpg321-0.2.10.tar.gz \
file://libao.m4.patch;patch=1"

inherit autotools

EXTRA_OECONF="--with-ao-includes=${STAGING_INCDIR} --with-ao-libraries=${STAGING_LIBDIR}"


DESCRIPTION = "GNU roff"
SECTION = "base"
LICENSE = "GPL"
PR = "r2"

SRC_URI = "http://ftp.gnu.org/gnu/groff/groff-${PV}.tar.gz \
          "
SRC_URI[md5sum] = "48fa768dd6fdeb7968041dd5ae8e2b02"
SRC_URI[sha256sum] = "b645878135cb620c6c417c5601bfe96172245af12045540d7344938b4c2cd805"

inherit autotools

PARALLEL_MAKE = ""

do_configure_prepend(){
	if [ "${BUILD_SYS}" != "${HOST_SYS}" ]; then
		sed -i \
		    -e '/^GROFFBIN=/s:=.*:=echo:' \
		    -e '/^TROFFBIN=/s:=.*:=echo:' \
		    -e '/^GROFF_BIN_PATH=/s:=.*:=:' \
		    -e '/^GROFF_BIN_DIR=/s:=.*:=:' \
		    ${S}/contrib/*/Makefile.sub \
		    ${S}/doc/Makefile.in \
		    ${S}/doc/Makefile.sub
	fi
}

BBCLASSEXTEND = "native"

Fix do_install in certain cases, along with DEPENDS

DESCRIPTION = "GNU roff"
SECTION = "base"
LICENSE = "GPL"
PR = "r3"

SRC_URI = "${GNU_MIRROR}/groff/groff-${PV}.tar.gz"

SRC_URI[md5sum] = "48fa768dd6fdeb7968041dd5ae8e2b02"
SRC_URI[sha256sum] = "b645878135cb620c6c417c5601bfe96172245af12045540d7344938b4c2cd805"

DEPENDS = "groff-native"
DEPENDS_virtclass-native = ""

inherit autotools

PARALLEL_MAKE = ""

do_configure_prepend(){
	if [ "${BUILD_SYS}" != "${HOST_SYS}" ]; then
		sed -i \
		    -e '/^GROFFBIN=/s:=.*:=${STAGING_BINDIR_NATIVE}/groff:' \
		    -e '/^TROFFBIN=/s:=.*:=${STAGING_BINDIR_NATIVE}/troff:' \
		    -e '/^GROFF_BIN_PATH=/s:=.*:=${STAGING_BINDIR_NATIVE}:' \
		    -e '/^GROFF_BIN_DIR=/s:=.*:=${STAGING_BINDIR_NATIVE}:' \
		    ${S}/contrib/*/Makefile.sub \
		    ${S}/doc/Makefile.in \
		    ${S}/doc/Makefile.sub
	fi
}

BBCLASSEXTEND = "native"


DESCRIPTION = "Phalanx is a chess playing engine."
SECTION = "opie/libs"
PRIORITY = "optional"
PR = "r3"
LICENSE = "GPL"
SRC_URI = "ftp://ftp.math.muni.cz/pub/math/people/Dobes/phalanx-22.tar.gz \
           file://gcc3.patch;patch=1 \
           file://capabilities \
           file://description"
S = "${WORKDIR}/Phalanx-XXII"

do_compile() {
	oe_runmake CC="${CC}" CFLAGS="${CFLAGS}" STRIP=echo LD="${CC}"
}

do_install() {
	install -d ${D}${palmtopdir}/chess/engines/Phalanx
        install -D -m 755 phalanx ${D}${palmtopdir}/chess/engines/Phalanx/phalanx
        install -D -m 755 pbook.phalanx ${D}${palmtopdir}/chess/engines/Phalanx/pbook.phalanx
        >${D}${palmtopdir}/chess/engines/Phalanx/sbook.phalanx
        >${D}${palmtopdir}/chess/engines/Phalanx/learn.phalanx
        install -D -m 755 ${WORKDIR}/capabilities ${D}${palmtopdir}/chess/engines/Phalanx/capabilities
        install -D -m 755 ${WORKDIR}/description ${D}${palmtopdir}/chess/engines/Phalanx/description
}

FILES_${PN} = "${palmtopdir}/chess"

Fix SRC_URI and .debug QA error.

DESCRIPTION = "Phalanx is a chess playing engine."
SECTION = "opie/libs"
PRIORITY = "optional"
PR = "r4"
LICENSE = "GPL"
SRC_URI = "http://ftp.debian.org/debian/pool/main/p/phalanx/phalanx_22.orig.tar.gz \
           file://gcc3.patch;patch=1 \
           file://capabilities \
           file://description"
S = "${WORKDIR}/phalanx-22.orig"

do_compile() {
	oe_runmake CC="${CC}" CFLAGS="${CFLAGS}" STRIP=echo LD="${CC}"
}

do_install() {
	install -d ${D}${palmtopdir}/chess/engines/Phalanx
        install -D -m 755 phalanx ${D}${palmtopdir}/chess/engines/Phalanx/phalanx
        install -D -m 755 pbook.phalanx ${D}${palmtopdir}/chess/engines/Phalanx/pbook.phalanx
        >${D}${palmtopdir}/chess/engines/Phalanx/sbook.phalanx
        >${D}${palmtopdir}/chess/engines/Phalanx/learn.phalanx
        install -D -m 755 ${WORKDIR}/capabilities ${D}${palmtopdir}/chess/engines/Phalanx/capabilities
        install -D -m 755 ${WORKDIR}/description ${D}${palmtopdir}/chess/engines/Phalanx/description
}

FILES_${PN} = "${palmtopdir}/chess"
FILES_${PN}-dbg += "${palmtopdir}/chess/engines/Phalanx/.debug"


require osb-nrcore.inc

DEFAULT_PREFERENCE = "-1"

PV = "0.5.2+svn${SRCDATE}"
PR = "r0"

SRC_URI = "svn://gtk-webcore.svn.sourceforge.net/svnroot/gtk-webcore/trunk;module=NRCore;proto=https \
           file://gcc4-fno-threadsafe-statics-NRCore.patch;patch=1 \
	   file://build_silence.patch;patch=0;maxdate=20070401"

S = "${WORKDIR}/NRCore"

Update to build latest svn trunk.

require osb-nrcore.inc

DEFAULT_PREFERENCE = "-1"

PV = "0.5.2+svn${SRCDATE}"
PR = "r0"

SRC_URI = "svn://gtk-webcore.svn.sourceforge.net/svnroot/gtk-webcore/trunk;module=NRCore;proto=https \
           file://gcc4-fno-threadsafe-statics-NRCore.patch;patch=1 \
	   file://build_silence.patch;patch=0;maxdate=20070401"

S = "${WORKDIR}/NRCore"

do_stage () {
        oe_libinstall -so libgtk_webcore_nrcore ${STAGING_LIBDIR}
        oe_libinstall -so -C kwiq libgtk_webcore_nrcore_kwiq_gtk ${STAGING_LIBDIR}

        autotools_stage_includes

        install -d ${STAGING_INCDIR}/osb/NRCore
        for i in ${S}/kwiq/WebCore*.h ${S}/kwiq/KWIQ*.h; do
                install -m 0644 $i ${STAGING_INCDIR}/osb/NRCore
        done
}


SUMMARY = "Building and installing bootgen"
DESCRIPTION = "Building and installing bootgen, a Xilinx tool that lets you stitch binary files together and generate device boot images"

LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=d526b6d0807bf263b97da1da876f39b1"

S = "${WORKDIR}/git"

DEPENDS += "openssl"
RDEPENDS:${PN} += "openssl"

REPO ?= "git://github.com/Xilinx/bootgen.git;protocol=https"
BRANCH ?= "xlnx_rel_v2022.2"
SRCREV = "8c303a5f9c1db67a9f8b7643678740d007bf567c"

BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}"
SRC_URI = "${REPO};${BRANCHARG}"

EXTRA_OEMAKE += 'CROSS_COMPILER="${CXX}" -C ${S}'
CXXFLAGS:append = " -std=c++0x"

TARGET_CC_ARCH += "${LDFLAGS}"

do_install() {
    install -d ${D}${bindir}
    install -Dm 0755 ${S}/bootgen ${D}${bindir}
}

FILES:${PN} = "${bindir}/bootgen"

BBCLASSEXTEND = "native nativesdk"

Update to bootgen SRCREV to point to latest commit

SUMMARY = "Building and installing bootgen"
DESCRIPTION = "Building and installing bootgen, a Xilinx tool that lets you stitch binary files together and generate device boot images"

LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=d526b6d0807bf263b97da1da876f39b1"

S = "${WORKDIR}/git"

DEPENDS += "openssl"
RDEPENDS:${PN} += "openssl"

REPO ?= "git://github.com/Xilinx/bootgen.git;protocol=https"
BRANCH ?= "xlnx_rel_v2022.2"
SRCREV = "cf4ba93b99644dc4429ef633471a639e1382f0e7"

BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}"
SRC_URI = "${REPO};${BRANCHARG}"

EXTRA_OEMAKE += 'CROSS_COMPILER="${CXX}" -C ${S}'
CXXFLAGS:append = " -std=c++0x"

TARGET_CC_ARCH += "${LDFLAGS}"

do_install() {
    install -d ${D}${bindir}
    install -Dm 0755 ${S}/bootgen ${D}${bindir}
}

FILES:${PN} = "${bindir}/bootgen"

BBCLASSEXTEND = "native nativesdk"


require ttf.inc

SUMMARY = "Hunky fonts - TTF Version"
HOMEPAGE = "http://sourceforge.net/projects/hunkyfonts"
LICENSE = "LGPL"
LIC_FILES_CHKSUM = "file://../LICENSE;md5=7fbc338309ac38fefcd64b04bb903e34"
PR = "r7"

SRC_URI = "${SOURCEFORGE_MIRROR}/hunkyfonts/hunkyfonts-${PV}.tar.bz2"

S = "${WORKDIR}/hunkyfonts-${PV}/TTF/"

PACKAGES = "ttf-hunky-sans ttf-hunky-serif"
FONT_PACKAGES = "ttf-hunky-sans ttf-hunky-serif"

FILES_ttf-hunky-sans = "${datadir}/fonts/truetype/HunkySans*.ttf"
FILES_ttf-hunky-serif = "${datadir}/fonts/truetype/HunkySerif*.ttf"

SRC_URI[md5sum] = "36444795a356fb8a56c63b2840729bab"
SRC_URI[sha256sum] = "e0b1849c545b6af276407d93025c73094dd74fc259b07c1d91594fdbb9a0b829"

Use LGPL-2.1 which is correct version from LICENSE file

require ttf.inc

SUMMARY = "Hunky fonts - TTF Version"
HOMEPAGE = "http://sourceforge.net/projects/hunkyfonts"
LICENSE = "LGPL-2.1+"
LIC_FILES_CHKSUM = "file://../LICENSE;md5=7fbc338309ac38fefcd64b04bb903e34"
PR = "r7"

SRC_URI = "${SOURCEFORGE_MIRROR}/hunkyfonts/hunkyfonts-${PV}.tar.bz2"

S = "${WORKDIR}/hunkyfonts-${PV}/TTF/"

PACKAGES = "ttf-hunky-sans ttf-hunky-serif"
FONT_PACKAGES = "ttf-hunky-sans ttf-hunky-serif"

FILES_ttf-hunky-sans = "${datadir}/fonts/truetype/HunkySans*.ttf"
FILES_ttf-hunky-serif = "${datadir}/fonts/truetype/HunkySerif*.ttf"

SRC_URI[md5sum] = "36444795a356fb8a56c63b2840729bab"
SRC_URI[sha256sum] = "e0b1849c545b6af276407d93025c73094dd74fc259b07c1d91594fdbb9a0b829"


include libnfnetlink.inc

PR = "${INC_PR}.0"

SRC_URI[libnfnetlink-1.0.0.md5sum] = "016fdec8389242615024c529acc1adb8"
SRC_URI[libnfnetlink-1.0.0.sha256sum] = "3752b03a4c09821ee9a2528d69289423a01e7171f1a22dfdd11d5459e03972fb"

Update LICENSE field version to GPLv2

include libnfnetlink.inc

LICENSE = "GPLv2+"

PR = "${INC_PR}.1"

SRC_URI[libnfnetlink-1.0.0.md5sum] = "016fdec8389242615024c529acc1adb8"
SRC_URI[libnfnetlink-1.0.0.sha256sum] = "3752b03a4c09821ee9a2528d69289423a01e7171f1a22dfdd11d5459e03972fb"


DESCRIPTION = "The Audio File Library provides a uniform and elegant \
API for accessing a variety of audio file formats, such as AIFF/AIFF-C, \
WAVE, NeXT/Sun .snd/.au, Berkeley/IRCAM/CARL Sound File, Audio Visual \
Research, Amiga IFF/8SVX, and NIST SPHERE."
HOMEPAGE = "http://www.68k.org/~michael/audiofile/"
SECTION = "libs"
LICENSE = "LGPLv2 & GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7 \
                    file://COPYING.GPL;md5=0636e73ff0215e8d672dc4c32c317bb3"

SRC_URI = "http://www.68k.org/~michael/audiofile/${BP}.tar.gz"
SRC_URI[md5sum] = "a39be317a7b1971b408805dc5e371862"
SRC_URI[sha256sum] = "a61c4036c2600a645843f16bec4be166093a9df5f15b02c85291213aa9cf15a2"

inherit autotools lib_package binconfig

Use gnome mirrors for SRC_URI

DESCRIPTION = "The Audio File Library provides a uniform and elegant \
API for accessing a variety of audio file formats, such as AIFF/AIFF-C, \
WAVE, NeXT/Sun .snd/.au, Berkeley/IRCAM/CARL Sound File, Audio Visual \
Research, Amiga IFF/8SVX, and NIST SPHERE."
HOMEPAGE = "http://www.68k.org/~michael/audiofile/"
SECTION = "libs"
LICENSE = "LGPLv2 & GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7 \
                    file://COPYING.GPL;md5=0636e73ff0215e8d672dc4c32c317bb3"

SRC_URI = "${GNOME_MIRROR}/audiofile/0.2/${BP}.tar.gz"
SRC_URI[md5sum] = "a39be317a7b1971b408805dc5e371862"
SRC_URI[sha256sum] = "a61c4036c2600a645843f16bec4be166093a9df5f15b02c85291213aa9cf15a2"

inherit autotools lib_package binconfig


DESCRIPTION = "Base package set for Jlime GUI images."
SECTION = "x11/wm"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
PR = "r1"

inherit task

PROVIDES = "${PACKAGES}"
PACKAGES = "\
    ${PN}-cli \
    ${PN}-gui \
    "

RDEPENDS_${PN}-cli = " \
    htop \
    file \
    vim \
    "

RDEPENDS_${PN}-gui = " \
    leafpad \
    gcalctool \
    epdfview \
    midori \
    claws-mail \
    "

Add some more usefull apps.

DESCRIPTION = "Base package set for Jlime GUI images."
SECTION = "x11/wm"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
PR = "r2"

inherit task

PROVIDES = "${PACKAGES}"
PACKAGES = "\
    ${PN}-cli \
    ${PN}-gui \
    "

RDEPENDS_${PN}-cli = " \
    htop \
    lsof \
    file \
    vim \
    "

RDEPENDS_${PN}-gui = " \
    leafpad \
    gcalctool \
    epdfview \
    midori \
    claws-mail \
    pidgin \
    "


# Bitbake recipe for the madwifi-ng driver

DEFAULT_PREFERENCE = "-1"

# Disable stripping of kernel modules, since this action strips too
# much out, and the resulting module won't load.
INHIBIT_PACKAGE_STRIP = "1"

require madwifi-ng_r.inc

# PR set after the include, to override what's set in the included file.
# PR = "r1"

Enable latest version for ixp4xx

# Bitbake recipe for the madwifi-ng driver

DEFAULT_PREFERENCE = "-1"
DEFAULT_PREFERENCE_ixp4xx = "1"

# Disable stripping of kernel modules, since this action strips too
# much out, and the resulting module won't load.
INHIBIT_PACKAGE_STRIP = "1"

require madwifi-ng_r.inc

# PR set after the include, to override what's set in the included file.
# PR = "r1"


DESCRIPTION = "Doxygen is the de facto standard tool for generating documentation from annotated C++ sources."
HOMEPAGE = "http://www.doxygen.org/"

LICENSE = "GPL-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"

inherit cmake python3native

DEPENDS = "flex-native bison-native"

SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.src.tar.gz \
           file://0001-build-don-t-look-for-Iconv.patch"
SRC_URI[md5sum] = "2c98c73eba392d334f5bbaf15e09bae3"
SRC_URI[sha256sum] = "bd9c0ec462b6a9b5b41ede97bede5458e0d7bb40d4cfa27f6f622eb33c59245d"

BBCLASSEXTEND = "native"

Make it build with ninja 1.9.0

DESCRIPTION = "Doxygen is the de facto standard tool for generating documentation from annotated C++ sources."
HOMEPAGE = "http://www.doxygen.org/"

LICENSE = "GPL-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"

DEPENDS = "flex-native bison-native"

SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.src.tar.gz \
           file://0001-build-don-t-look-for-Iconv.patch"
SRC_URI[md5sum] = "2c98c73eba392d334f5bbaf15e09bae3"
SRC_URI[sha256sum] = "bd9c0ec462b6a9b5b41ede97bede5458e0d7bb40d4cfa27f6f622eb33c59245d"

inherit cmake python3native

# Avoid the following error:
#   ninja: error: build.ninja:1948: multiple rules generate
#   generated_src/configvalues.h [-w dupbuild=err]
EXTRA_OECMAKE_BUILD += "-w dupbuild=warn"

BBCLASSEXTEND = "native"


DESCRIPTION = "microcom is a small minicom-like serial terminal emulator with \
scripting support."
LICENSE = "GPL"

# http://microcom.port5.com/m102.tar.gz is no longer available
#NOTE: this should probably be converted to pull from sourceforge
# CVS, because openwrt is just another mirror of a file which no
# longer seems to exist outside mirrors.  mirror magic.
SRC_URI = "http://downloads.openwrt.org/sources/m102.tar.gz \
	   file://make.patch"
S = "${WORKDIR}"

do_install () {
	install -d ${D}${bindir}
	install -m 0755 microcom ${D}${bindir}/
}

SRC_URI[md5sum] = "c7817035dc41cb02e7cfb565cf9b7401"
SRC_URI[sha256sum] = "d7ee2e668455f9a092418e5475f32676eb0b37c54ae38a7fcdf2d14e0fb80c91"

Switch to subdir= in SRC_URI

DESCRIPTION = "microcom is a small minicom-like serial terminal emulator with \
scripting support."
LICENSE = "GPL"

# http://microcom.port5.com/m102.tar.gz is no longer available
#NOTE: this should probably be converted to pull from sourceforge
# CVS, because openwrt is just another mirror of a file which no
# longer seems to exist outside mirrors.  mirror magic.
SRC_URI = "http://downloads.openwrt.org/sources/m102.tar.gz;subdir=${BPN}-${PV} \
	   file://make.patch"

do_install () {
	install -d ${D}${bindir}
	install -m 0755 microcom ${D}${bindir}/
}

SRC_URI[md5sum] = "c7817035dc41cb02e7cfb565cf9b7401"
SRC_URI[sha256sum] = "d7ee2e668455f9a092418e5475f32676eb0b37c54ae38a7fcdf2d14e0fb80c91"


require swupdate.inc
require swupdate_tools.inc

DEFAULT_PREFERENCE = "-1"

# If a recipe sets SRCREV to ${AUTOREV}, bitbake tries
# a git ls-remote. This breaks when a mirror is built
# and BB_NO_NETWORK is set.
# To work-around the issue, sets the revision for the git
# version to a fix commit (not relevant)
# In casethe _git version is chosen, sets the revision
# to TOT to test with last commit-id.
def version_git(d):
    version = d.getVar("PREFERRED_VERSION_%s" % d.getVar('PN', False), False)
    if version is not None and "git" in version:
        return d.getVar('AUTOREV', False)
    else:
        return "c0fec16b3fc82b0db12d8ac58be7055ed1b8d439"

SRCREV ?= '${@version_git(d)}'

Revert "Use backward compatible syntax for `getVar()`"

require swupdate.inc
require swupdate_tools.inc

DEFAULT_PREFERENCE = "-1"

# If a recipe sets SRCREV to ${AUTOREV}, bitbake tries
# a git ls-remote. This breaks when a mirror is built
# and BB_NO_NETWORK is set.
# To work-around the issue, sets the revision for the git
# version to a fix commit (not relevant)
# In casethe _git version is chosen, sets the revision
# to TOT to test with last commit-id.
def version_git(d):
    version = d.getVar("PREFERRED_VERSION_%s" % d.getVar('PN'))
    if version is not None and "git" in version:
        return d.getVar("AUTOREV")
    else:
        return "c0fec16b3fc82b0db12d8ac58be7055ed1b8d439"

SRCREV ?= '${@version_git(d)}'


inherit setuptools
require python-pycodestyle.inc

RDEPENDS_${PN} += "${PYTHON_PN}-lang"

Fix conflict error with python3-pycodestyle during do_rootfs

inherit setuptools
require python-pycodestyle.inc

RDEPENDS_${PN} += "${PYTHON_PN}-lang"

do_install_append () {
        if [ -f ${D}${bindir}/pycodestyle ]; then
                mv ${D}${bindir}/pycodestyle ${D}${bindir}/pycodestyle-2
        fi
}


SUMMARY = "GNOME Shell Extensions"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=4cb3a392cbf81a9e685ec13b88c4c101"

GNOMEBASEBUILDCLASS = "meson"

inherit gnomebase gettext gsettings features_check

REQUIRED_DISTRO_FEATURES = "x11 polkit systemd pam gobject-introspection-data"

SRC_URI[archive.sha256sum] = "d0e6f2273f08d52d925fc2bb66b47b28e5ef50d1b8a14020877c662423d507d3"

DEPENDS += " \
    sassc-native \
"

EXTRA_OEMESON += " \
    -Dextension_set=all \
    -Dclassic_mode=true \
"

RDEPENDS:${PN} += "gnome-shell"

FILES:${PN} += " \
    ${datadir}/gnome-shell \
    ${datadir}/gnome-session \
    ${datadir}/xsessions \
"

Enable gnome-classic session for wayland

SUMMARY = "GNOME Shell Extensions"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=4cb3a392cbf81a9e685ec13b88c4c101"

GNOMEBASEBUILDCLASS = "meson"

inherit gnomebase gettext gsettings features_check

REQUIRED_DISTRO_FEATURES = "x11 polkit systemd pam gobject-introspection-data"

SRC_URI[archive.sha256sum] = "d0e6f2273f08d52d925fc2bb66b47b28e5ef50d1b8a14020877c662423d507d3"

DEPENDS += " \
    sassc-native \
"

EXTRA_OEMESON += " \
    -Dextension_set=all \
    -Dclassic_mode=true \
"

do_install:append() {
    # enable gnome-classic session for wayland
    install -d ${D}${datadir}/wayland-sessions
    install -m644 ${D}${datadir}/xsessions/gnome-classic.desktop ${D}${datadir}/wayland-sessions/
}

RDEPENDS:${PN} += "gnome-shell"

FILES:${PN} += " \
    ${datadir}/gnome-shell \
    ${datadir}/gnome-session \
    ${datadir}/wayland-sessions \
    ${datadir}/xsessions \
"


SUMMARY = "Building and installing bootgen"
DESCRIPTION = "Building and installing bootgen, a Xilinx tool that lets you stitch binary files together and generate device boot images"

LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=d526b6d0807bf263b97da1da876f39b1"

S = "${WORKDIR}/git"

DEPENDS += "openssl"
RDEPENDS:${PN} += "openssl"

REPO ?= "git://github.com/Xilinx/bootgen.git;protocol=https"
BRANCH ?= "xlnx_rel_v2022.1"
SRCREV = "0a6c53b6a057879c236e7194e5f818d146cf3461"

BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}"
SRC_URI = "${REPO};${BRANCHARG}"

EXTRA_OEMAKE += 'CROSS_COMPILER="${CXX}" -C ${S}'
CXXFLAGS:append = " -std=c++0x"

TARGET_CC_ARCH += "${LDFLAGS}"

do_install() {
    install -d ${D}${bindir}
    install -Dm 0755 ${S}/bootgen ${D}${bindir}
}

FILES:${PN} = "${bindir}/bootgen"

BBCLASSEXTEND = "native nativesdk"

Update to bootgen SRCREV to point to latest commit.

SUMMARY = "Building and installing bootgen"
DESCRIPTION = "Building and installing bootgen, a Xilinx tool that lets you stitch binary files together and generate device boot images"

LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=d526b6d0807bf263b97da1da876f39b1"

S = "${WORKDIR}/git"

DEPENDS += "openssl"
RDEPENDS:${PN} += "openssl"

REPO ?= "git://github.com/Xilinx/bootgen.git;protocol=https"
BRANCH ?= "xlnx_rel_v2022.1"
SRCREV = "2b8859218defc9983b6d312c8be48d0c08070ca1"

BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}"
SRC_URI = "${REPO};${BRANCHARG}"

EXTRA_OEMAKE += 'CROSS_COMPILER="${CXX}" -C ${S}'
CXXFLAGS:append = " -std=c++0x"

TARGET_CC_ARCH += "${LDFLAGS}"

do_install() {
    install -d ${D}${bindir}
    install -Dm 0755 ${S}/bootgen ${D}${bindir}
}

FILES:${PN} = "${bindir}/bootgen"

BBCLASSEXTEND = "native nativesdk"


DESCRIPTION = "Demo application to showcase 3D graphics on SGX using kms and gbm"
HOMEPAGE = "http://git.ti.com"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://kmscube.c;beginline=1;endline=23;md5=e760965096e52da8f3969dd53b6bf158"

DEPENDS = "libdrm libgbm ti-sgx-ddk-um"

COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15"
PACKAGE_ARCH = "${MACHINE_ARCH}"

inherit autotools pkgconfig

PR = "r8"
SRCREV = "24e94f583119896b3ab8ecc7b35c7de3160dcb1f"

SRC_URI = "git://git.ti.com/glsdk/kmscube.git;protocol=git"

SRC_URI_append = " \
"

S = "${WORKDIR}/git"

INSANE_SKIP_kmscube += "dev-deps"

Update SRCREV for jitter fix

DESCRIPTION = "Demo application to showcase 3D graphics on SGX using kms and gbm"
HOMEPAGE = "http://git.ti.com"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://kmscube.c;beginline=1;endline=23;md5=e760965096e52da8f3969dd53b6bf158"

DEPENDS = "libdrm libgbm ti-sgx-ddk-um"

COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15"
PACKAGE_ARCH = "${MACHINE_ARCH}"

inherit autotools pkgconfig

PR = "r9"
SRCREV = "3e9807ddcf2b4e8ccf711cdaf851752ec40d7904"

SRC_URI = "git://git.ti.com/glsdk/kmscube.git;protocol=git"

SRC_URI_append = " \
"

S = "${WORKDIR}/git"

INSANE_SKIP_kmscube += "dev-deps"


LICENSE = "NCSA"
LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=47e311aa9caedd1b3abf098bd7814d1d"

BRANCH = "master"
SRC_URI = "git://github.com/KhronosGroup/SPIRV-LLVM-Translator/;protocol=https;branch=${BRANCH} \
          "

PV = "13.0.0"
SRCREV = "76c76efeb8bcb3414dcd26ef938de43eb1beb516"

S = "${WORKDIR}/git"

DEPENDS = "spirv-tools clang"

inherit cmake pkgconfig python3native

OECMAKE_GENERATOR = "Unix Makefiles"

# Specify any options you want to pass to cmake using EXTRA_OECMAKE:
EXTRA_OECMAKE = "\
        -DBUILD_SHARED_LIBS=ON \
        -DLLVM_SPIRV_BUILD_EXTERNAL=YES \
        -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
        -DCMAKE_SKIP_RPATH=ON \
        -DLLVM_EXTERNAL_LIT=lit \
        -DLLVM_INCLUDE_TESTS=ON \
        -Wno-dev \
        -DCCACHE_ALLOWED=FALSE \
"

do_compile_append() {
    oe_runmake llvm-spirv
}

do_install_append() {
    install -Dm755 ${B}/tools/llvm-spirv/llvm-spirv ${D}${bindir}/llvm-spirv
}

BBCLASSEXTEND = "native nativesdk"

Remove a trailing slash from SRC_URI

LICENSE = "NCSA"
LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=47e311aa9caedd1b3abf098bd7814d1d"

BRANCH = "master"
SRC_URI = "git://github.com/KhronosGroup/SPIRV-LLVM-Translator;protocol=https;branch=${BRANCH} \
          "

PV = "13.0.0"
SRCREV = "76c76efeb8bcb3414dcd26ef938de43eb1beb516"

S = "${WORKDIR}/git"

DEPENDS = "spirv-tools clang"

inherit cmake pkgconfig python3native

OECMAKE_GENERATOR = "Unix Makefiles"

# Specify any options you want to pass to cmake using EXTRA_OECMAKE:
EXTRA_OECMAKE = "\
        -DBUILD_SHARED_LIBS=ON \
        -DLLVM_SPIRV_BUILD_EXTERNAL=YES \
        -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
        -DCMAKE_SKIP_RPATH=ON \
        -DLLVM_EXTERNAL_LIT=lit \
        -DLLVM_INCLUDE_TESTS=ON \
        -Wno-dev \
        -DCCACHE_ALLOWED=FALSE \
"

do_compile_append() {
    oe_runmake llvm-spirv
}

do_install_append() {
    install -Dm755 ${B}/tools/llvm-spirv/llvm-spirv ${D}${bindir}/llvm-spirv
}

BBCLASSEXTEND = "native nativesdk"


SUMMARY = "Xfce4 Vala provides bindings for the Xfce framework"
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=243b725d71bb5df4a1e5920b344b86ad"
DEPENDS = "libxfce4util garcon xfconf libxfce4ui xfce4-panel exo vala xfce4-dev-tools-native"

inherit xfce pkgconfig distro_features_check

REQUIRED_DISTRO_FEATURES = "x11"

SRC_URI = "http://archive.xfce.org/src/bindings/${BPN}/${@xfce_verdir("${PV}")}/${BPN}-${PV}.tar.bz2"
SRC_URI[md5sum] = "0bbb1d6e473e0fe9b335b7b1b49d8a71"
SRC_URI[sha256sum] = "07a8f2b7c09fcdd3d86e0c52adea3c58ca011d0142a93997a01b4af77260ae7b"

EXTRA_OECONF = "-with-vala-api=0.38"

FILES_${PN} += "${datadir}/vala-*/vapi"

RDEPENDS_${PN} = "vala"

Build with 0.40.x vala APIs

SUMMARY = "Xfce4 Vala provides bindings for the Xfce framework"
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=243b725d71bb5df4a1e5920b344b86ad"
DEPENDS = "libxfce4util garcon xfconf libxfce4ui xfce4-panel exo vala xfce4-dev-tools-native"

inherit xfce pkgconfig distro_features_check

REQUIRED_DISTRO_FEATURES = "x11"

SRC_URI = "http://archive.xfce.org/src/bindings/${BPN}/${@xfce_verdir("${PV}")}/${BPN}-${PV}.tar.bz2"
SRC_URI[md5sum] = "0bbb1d6e473e0fe9b335b7b1b49d8a71"
SRC_URI[sha256sum] = "07a8f2b7c09fcdd3d86e0c52adea3c58ca011d0142a93997a01b4af77260ae7b"

EXTRA_OECONF = "-with-vala-api=0.40"

FILES_${PN} += "${datadir}/vala-*/vapi"

RDEPENDS_${PN} = "vala"


SUMMARY = "QCA provides a straightforward and cross-platform crypto API"
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24"

inherit kde-base cmake_lib

# TBD: PACKAGECONFIG
DEPENDS += " \
    qtsvg \
    nss \
    cyrus-sasl \
    libgcrypt \
    pkcs11-helper \
"

SRC_URI = " \
    git://github.com/KDE/qca.git \
    file://0001-use-pkg-config-to-find-libgcrypt.patch \
"
SRCREV = "db5f82be2ad72658f7b575ebd1e97f4748033d04"
S = "${WORKDIR}/git"
PV = "2.2.1+git${SRCPV}"

EXTRA_OECMAKE += " \
    -DQCA_FEATURE_INSTALL_DIR=${libdir}${QT_DIR_NAME}/mkspecs/features \
    -DLIB_SUFFIX=${@d.getVar('baselib').replace('lib', '')} \
"

FILES_${PN} += "${libdir}/qca-qt5/crypto"

CMAKE_ALIGN_SYSROOT[1] = "Qca-qt5, -S${prefix}, -s${_IMPORT_PREFIX}"

Undo recent cmak_lib changes - they broke consumers

SUMMARY = "QCA provides a straightforward and cross-platform crypto API"
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24"

inherit kde-base cmake_lib

# TBD: PACKAGECONFIG
DEPENDS += " \
    qtsvg \
    nss \
    cyrus-sasl \
    libgcrypt \
    pkcs11-helper \
"

SRC_URI = " \
    git://github.com/KDE/qca.git \
    file://0001-use-pkg-config-to-find-libgcrypt.patch \
"
SRCREV = "db5f82be2ad72658f7b575ebd1e97f4748033d04"
S = "${WORKDIR}/git"
PV = "2.2.1+git${SRCPV}"

EXTRA_OECMAKE += " \
    -DQCA_FEATURE_INSTALL_DIR=${libdir}${QT_DIR_NAME}/mkspecs/features \
    -DLIB_SUFFIX=${@d.getVar('baselib').replace('lib', '')} \
"

FILES_${PN} += "${libdir}/qca-qt5/crypto"

CMAKE_ALIGN_SYSROOT[1] = "Qca-qt5, -S${libdir}/lib, -s${OE_QMAKE_PATH_HOST_LIBS}/lib"
CMAKE_ALIGN_SYSROOT[2] = "Qca-qt5, -S${includedir}, -s${CMAKE_QT5_EX_PATH_HOST_HEADERS}"


PV = "0.0cvs${CVSDATE}"
LICENSE = "MIT"
DEPENDS = "x11 xext"
DESCRIPTION = "X display information utility"
MAINTAINER = "Phil Blundell <pb@handhelds.org>"
SECTION = "x11/base"

SRC_URI = "cvs://anoncvs:anoncvs@pdx.freedesktop.org/cvs/xapps;module=xdpyinfo"
S = "${WORKDIR}/xdpyinfo"

inherit autotools pkgconfig

Add missing dependency to xtst.

PV = "0.0cvs${CVSDATE}"
LICENSE = "MIT"
DEPENDS = "x11 xext xtst"
DESCRIPTION = "X display information utility"
MAINTAINER = "Phil Blundell <pb@handhelds.org>"
SECTION = "x11/base"
PR = "r1"

SRC_URI = "cvs://anoncvs:anoncvs@pdx.freedesktop.org/cvs/xapps;module=xdpyinfo"
S = "${WORKDIR}/xdpyinfo"

inherit autotools pkgconfig


SUMMARY = "versatile resource statics tool"
DESCRIPTION = "Dstat is a versatile replacement for vmstat, iostat, netstat and ifstat. \
Dstat overcomes some of their limitations and adds some extra features, more counters \
and flexibility. Dstat is handy for monitoring systems during performance tuning tests, \
benchmarks or troubleshooting."
HOMEPAGE = "http://dag.wiee.rs/home-made/dstat"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"

DEPENDS += "asciidoc-native xmlto-native"

SRC_URI = "git://github.com/dagwieers/dstat.git \
           file://0001-change-dstat-to-python3.patch \
          "

SRCREV = "6f5db0aed26bf8cf2700d4ffe90a9bd3436ac728"

S = "${WORKDIR}/git"

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

RDEPENDS:${PN} += "python3-core python3-misc python3-resource python3-shell python3-unixadmin"

Add missing python-six runtime dependency

SUMMARY = "versatile resource statics tool"
DESCRIPTION = "Dstat is a versatile replacement for vmstat, iostat, netstat and ifstat. \
Dstat overcomes some of their limitations and adds some extra features, more counters \
and flexibility. Dstat is handy for monitoring systems during performance tuning tests, \
benchmarks or troubleshooting."
HOMEPAGE = "http://dag.wiee.rs/home-made/dstat"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"

DEPENDS += "asciidoc-native xmlto-native"

SRC_URI = "git://github.com/dagwieers/dstat.git \
           file://0001-change-dstat-to-python3.patch \
          "

SRCREV = "6f5db0aed26bf8cf2700d4ffe90a9bd3436ac728"

S = "${WORKDIR}/git"

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

RDEPENDS:${PN} += "python3-core python3-misc python3-resource python3-shell python3-six python3-unixadmin"


DESCRIPTION = "Plugins for a virtual keyboard for touch-screen based user interfaces"
HOMEPAGE = "https://wiki.maliit.org/Main_Page"

LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://LICENSE;md5=f29b21caa8e460097bfad9c026a33621"

inherit autotools qt4x11

DEPENDS = "maliit-framework"

SRC_URI = "git://gitorious.org/maliit/maliit-plugins.git;branch=master"

SRCREV = "0760e585df494b394df1b887e5138ffef19c481f"
PV = "0.92.3+git${SRCPV}"

EXTRA_QMAKEVARS_PRE = "\
    PREFIX=${prefix} \
    LIBDIR=${libdir} \
    "

FILES_${PN} += "\
    ${libdir}/maliit \
    ${datadir} \
    "

FILES_${PN}-dbg += "\
    ${libdir}/maliit/plugins-*/.debug \
    "

S= "${WORKDIR}/git"

do_install() {
  cd ${S} && (INSTALL_ROOT=${D} oe_runmake install)
}

Clean up recipe and add missing RDEPENDS

DESCRIPTION = "Plugins for a virtual keyboard for touch-screen based user interfaces"
HOMEPAGE = "https://wiki.maliit.org/Main_Page"

LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://LICENSE;md5=f29b21caa8e460097bfad9c026a33621"

inherit autotools qt4x11

DEPENDS = "maliit-framework"

RDEPENDS_${PN} += "qt4-plugin-iconengine-svgicon qt4-plugin-imageformat-svg"

SRC_URI = "git://gitorious.org/maliit/maliit-plugins.git;branch=master"

SRCREV = "0760e585df494b394df1b887e5138ffef19c481f"
PV = "0.92.3+git${SRCPV}"

EXTRA_QMAKEVARS_PRE = "\
    PREFIX=${prefix} \
    LIBDIR=${libdir} \
    "

FILES_${PN} += "\
    ${libdir}/maliit \
    ${datadir} \
    "

FILES_${PN}-dbg += "${libdir}/maliit/plugins-*/.debug"

S= "${WORKDIR}/git"

EXTRA_OEMAKE += "INSTALL_ROOT=${D}"


SUMMARY = "The GPS Toolkit"
DESCRIPTION = "Libraries and applications to facilitate working with GPS data for research and high accuracy uses."
AUTHOR = "ARL:UT"
HOMEPAGE = "https://github.com/SGL-UT/GPSTk/"
PR = "r2"

LICENSE = "LGPL-3.0-only"
LIC_FILES_CHKSUM = "file://COPYING.md;md5=d32239bcb673463ab874e80d47fae504"

GIT_BRANCH = "main"
SRC_URI = "git://github.com/SGL-UT/GPSTk.git;branch=${GIT_BRANCH};protocol=https"
SRCREV = "7f4c840d21c7bac40c5d554bdaab386ba2ee59ef"
S = "${WORKDIR}/git"

inherit cmake

EXTRA_OECMAKE += " -DCMAKE_SKIP_INSTALL_RPATH=ON -DCMAKE_SKIP_RPATH=ON -DUSE_RPATH=OFF -DBUILD_EXT=ON -DBUILD_PYTHON=OFF"

PACKAGES = "gpstk gpstk-dev gpstk-dbg"

FILES:${PN} += " ${bindir}/* "
FILES:${PN}-dev += " ${includedir}/* ${libdir}/* /usr/share/cmake/*"
FILES:${PN}-dbg += " \
     ${prefix}/src/debug/gpstk/* \
     ${bindir}/.debug/* \
"

Update GPSTk repository (now renamed to gnsstk)

SUMMARY = "The GPS Toolkit"
DESCRIPTION = "Libraries and applications to facilitate working with GPS data for research and high accuracy uses."
AUTHOR = "ARL:UT"
HOMEPAGE = "https://github.com/SGL-UT/gnsstk/"
PR = "r3"

LICENSE = "LGPL-3.0-only"
LIC_FILES_CHKSUM = "file://COPYING.md;md5=d32239bcb673463ab874e80d47fae504"

GIT_BRANCH = "stable"
SRC_URI = "git://github.com/SGL-UT/gnsstk.git;branch=${GIT_BRANCH};protocol=https"
SRCREV = "7f4c840d21c7bac40c5d554bdaab386ba2ee59ef"
S = "${WORKDIR}/git"

inherit cmake

EXTRA_OECMAKE += " -DCMAKE_SKIP_INSTALL_RPATH=ON -DCMAKE_SKIP_RPATH=ON -DUSE_RPATH=OFF -DBUILD_EXT=ON -DBUILD_PYTHON=OFF"

PACKAGES = "gpstk gpstk-dev gpstk-dbg"

FILES:${PN} += " ${bindir}/* "
FILES:${PN}-dev += " ${includedir}/* ${libdir}/* /usr/share/cmake/*"
FILES:${PN}-dbg += " \
     ${prefix}/src/debug/gpstk/* \
     ${bindir}/.debug/* \
"


DESCRIPTION = "vnStat is a console-based network traffic monitor for Linux and BSD that keeps a log of network traffic for the selected interface(s)."
HOMEPAGE = "https://humdi.net/vnstat/"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
SECTION = "net"
DEPENDS = "gd sqlite3"

SRC_URI = "https://github.com/vergoh/vnstat/releases/download/v${PV}/${BPN}-${PV}.tar.gz"
SRC_URI[md5sum] = "fe2928a81243cc8a532a357f97221736"
SRC_URI[sha256sum] = "89276e0a7281943edb554b874078278ad947dc312938a2451e03eb80679f7ff7"

inherit autotools pkgconfig systemd

EXTRA_OECONF = "--disable-extra-paths"

do_install_append() {
    install -Dm644 ${S}/examples/systemd/vnstat.service "${D}${systemd_system_unitdir}/vnstat.service"
}

SYSTEMD_SERVICE_${PN} = "vnstat.service"

Disable install parallism to fix a potential install race

DESCRIPTION = "vnStat is a console-based network traffic monitor for Linux and BSD that keeps a log of network traffic for the selected interface(s)."
HOMEPAGE = "https://humdi.net/vnstat/"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
SECTION = "net"
DEPENDS = "gd sqlite3"

SRC_URI = "https://github.com/vergoh/vnstat/releases/download/v${PV}/${BPN}-${PV}.tar.gz"
SRC_URI[md5sum] = "fe2928a81243cc8a532a357f97221736"
SRC_URI[sha256sum] = "89276e0a7281943edb554b874078278ad947dc312938a2451e03eb80679f7ff7"

inherit autotools pkgconfig systemd

EXTRA_OECONF = "--disable-extra-paths"

do_install_append() {
    install -Dm644 ${S}/examples/systemd/vnstat.service "${D}${systemd_system_unitdir}/vnstat.service"
}

PARALLEL_MAKEINST = ""

SYSTEMD_SERVICE_${PN} = "vnstat.service"


#
# base recipe: meta/recipes-devtools/dmidecode/dmidecode_2.12.bb
# base branch: daisy
#

PR = "r0"

inherit debian-package
PV = "2.12"

SUMMARY = "DMI (Desktop Management Interface) table related utilities"
HOMEPAGE = "http://www.nongnu.org/dmidecode/"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://LICENSE;md5=393a5ca445f6965873eca0259a17f833"

COMPATIBLE_HOST = "(i.86|x86_64|aarch64|arm|powerpc).*-linux"

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

do_unpack_extra() {
	sed -i -e '/^prefix/s:/usr/local:${exec_prefix}:' Makefile
}
addtask unpack_extra after do_unpack before do_patch

Correct the path to Makefile in do_unpack_extra function

#
# base recipe: meta/recipes-devtools/dmidecode/dmidecode_2.12.bb
# base branch: daisy
#

PR = "r0"

inherit debian-package
PV = "2.12"

SUMMARY = "DMI (Desktop Management Interface) table related utilities"
HOMEPAGE = "http://www.nongnu.org/dmidecode/"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://LICENSE;md5=393a5ca445f6965873eca0259a17f833"

COMPATIBLE_HOST = "(i.86|x86_64|aarch64|arm|powerpc).*-linux"

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

do_unpack_extra() {
	sed -i -e '/^prefix/s:/usr/local:${exec_prefix}:' ${S}/Makefile
}
addtask unpack_extra after do_unpack before do_patch


require libglade.inc

inherit gnome

SRC_URI += "file://glade-cruft.patch file://no-xml2.patch"

EXTRA_OECONF += "--without-libxml2"

LDFLAGS += "-lz"

SRC_URI[archive.md5sum] = "d1776b40f4e166b5e9c107f1c8fe4139"
SRC_URI[archive.sha256sum] = "64361e7647839d36ed8336d992fd210d3e8139882269bed47dc4674980165dec"

Update LICENSE field version to LGPLv2

require libglade.inc

LICENSE = "LGPLv2 LGPLv2+"

PR = "r1"

inherit gnome

SRC_URI += "file://glade-cruft.patch file://no-xml2.patch"

EXTRA_OECONF += "--without-libxml2"

LDFLAGS += "-lz"

SRC_URI[archive.md5sum] = "d1776b40f4e166b5e9c107f1c8fe4139"
SRC_URI[archive.sha256sum] = "64361e7647839d36ed8336d992fd210d3e8139882269bed47dc4674980165dec"


# Copyright (C) 2015 Khem Raj <raj.khem@gmail.com>
# Released under the MIT license (see COPYING.MIT for the terms)

DESCRIPTION = "OpenWrt LuCI web user interface"
HOMEPAGE = "https://github.com/openwrt/luci"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=2b42edef8fa55315f34f2370b4715ca9"
SECTION = "base"
DEPENDS = "json-c libubox libnl lua5.1 iwinfo openssl"
RDEPENDS_${PN} = "lua5.1"

SRCREV = "ff21f2f0a38dbac7411118377d3300a668db7146"

SRC_URI = "git://github.com/openwrt/luci.git;branch=lede-17.01"
SRC_URI += "file://cmake.patch"

inherit cmake openwrt pkgconfig

prefix=""
includedir="/usr/include"
bindir="/usr/bin"
libdir="/usr/lib"

OECMAKE_C_FLAGS += "-I${STAGING_INCDIR}/libnl3 -DDESTDIR=${D}"

FILES_${PN} += "/www /lib /usr/share/acl.d ${bindir} ${libdir}"

S = "${WORKDIR}/git/"

Add missing build time dependency

# Copyright (C) 2015 Khem Raj <raj.khem@gmail.com>
# Released under the MIT license (see COPYING.MIT for the terms)

DESCRIPTION = "OpenWrt LuCI web user interface"
HOMEPAGE = "https://github.com/openwrt/luci"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=2b42edef8fa55315f34f2370b4715ca9"
SECTION = "base"
DEPENDS = "json-c libubox libnl lua5.1 iwinfo openssl libxcrypt"
RDEPENDS_${PN} = "lua5.1"

SRCREV = "ff21f2f0a38dbac7411118377d3300a668db7146"

SRC_URI = "git://github.com/openwrt/luci.git;branch=lede-17.01"
SRC_URI += "file://cmake.patch"

inherit cmake openwrt pkgconfig

prefix=""
includedir="/usr/include"
bindir="/usr/bin"
libdir="/usr/lib"

OECMAKE_C_FLAGS += "-I${STAGING_INCDIR}/libnl3 -DDESTDIR=${D}"

FILES_${PN} += "/www /lib /usr/share/acl.d ${bindir} ${libdir}"

S = "${WORKDIR}/git/"


SUMMARY = "Test suite for Linux framebuffer"

PV = "1.1.0"

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a"

SRCREV = "063ec650960c2d79ac51f5c5f026cb05343a33e2"
SRC_URI = "git://github.com/prpplague/fb-test-app.git"

S = "${WORKDIR}/git"

do_install() {
    install -d ${D}${bindir}
    for prog in perf rect fb-test offset ; do
        install -m 0755 $prog ${D}${bindir}
    done
}

Prepend fb- to the binaries

SUMMARY = "Test suite for Linux framebuffer"

PV = "1.1.0"

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a"

SRCREV = "063ec650960c2d79ac51f5c5f026cb05343a33e2"
SRC_URI = "git://github.com/prpplague/fb-test-app.git"

S = "${WORKDIR}/git"

do_install() {
	install -d ${D}${bindir}
	install -m 0755 fb-test ${D}${bindir}
	# avoid collisions with perf (perf) and mesa-demos (offset)
	for prog in perf rect offset ; do
		install -m 0755 $prog ${D}${bindir}/fb-$prog
	done
}


DESCRIPTION = "Phone input method helper module"
SECTION = "gpephone"
PRIORITY = "optional"
LICENSE = "LiPS"
DEPENDS = "gtk+ ptim-headers"
PV = "0.1+svn-${SRCDATE}"
PR = "r1"

DEFAULT_PREFERENCE = "-1"

inherit gpephone pkgconfig autotools

SRC_URI = "svn://projects.linuxtogo.org/svn/gpephone/trunk/source/ptim;module=imhelper"

S = "${WORKDIR}/imhelper"

FILES_${PN} += " ${libdir}/gtk-2.0/*/immodules/ptim/helper/*.so ${libdir}/gtk-2.0/*/immodules/ptim/pixmaps"
FILES_${PN}-dbg += "${libdir}/gtk-2.0/*/immodules/ptim/helper/.debug/*.so"
FILES_${PN}-dev += "${libdir}/gtk-2.0/*/immodules/ptim/helper/*.la"

do_stage () {
    autotools_stage_all
}

Add missing files to package.

DESCRIPTION = "Phone input method helper module"
SECTION = "gpephone"
PRIORITY = "optional"
LICENSE = "LiPS"
DEPENDS = "gtk+ ptim-headers"
PV = "0.1+svn-${SRCDATE}"
PR = "r1"

DEFAULT_PREFERENCE = "-1"

inherit gpephone pkgconfig autotools

SRC_URI = "svn://projects.linuxtogo.org/svn/gpephone/trunk/source/ptim;module=imhelper"

S = "${WORKDIR}/imhelper"

FILES_${PN} += " ${libdir}/gtk-2.0/*/immodules/ptim/helper/*.so ${libdir}/gtk-2.0/*/immodules/ptim/pixmaps/*"
FILES_${PN}-dbg += "${libdir}/gtk-2.0/*/immodules/ptim/helper/.debug/*.so"
FILES_${PN}-dev += "${libdir}/gtk-2.0/*/immodules/ptim/helper/*.la"

do_stage () {
    autotools_stage_all
}


DESCRIPTION = "Patcher is a perl script for managing patches."
HOMEPAGE = "http://www.holgerschurig.de/patcher.html"
LICENSE = "Perl"
DEPENDS = ""
SECTION = "base"
PRIORITY = "optional"
MAINTAINER = "Holger Schurig <hs4233@mail.mn-solutions.de>"
INHIBIT_DEFAULT_DEPS = "1"

SRC_URI = "http://www.holgerschurig.de/files/linux/patcher-${PV}.tar.bz2"
S="${WORKDIR}/patcher"

do_install() {
	install -d ${D}${bindir}
	install -m 0755 patcher.py ${D}${bindir}/patcher
}

DEPENDS_prepend_delete = "patcher "

Remove language construct no longer being used/available


python () {
    if d.getVar("PREFERRED_PROVIDER_qemu-helper-native") != d.getVar("PN"):
        raise bb.parse.SkipRecipe("Set qemu-helper-native provider to use this recipe")
}

# TODO: improve this, since it is very hacky that this recipe need to build tunctl.
# include the existing qemu-helper-native
require recipes-devtools/qemu/qemu-helper-native_1.0.bb
# get the path to tunctl.c (from oe-core!)
FILESEXTRAPATHS:prepend := "${COREBASE}/meta/recipes-devtools/qemu/qemu-helper:"

# provide it, to replace the existing
PROVIDES += "qemu-helper-native"

# replace qemu with qemu-xilinx
DEPENDS:remove = "qemu-system-native"
DEPENDS:append = " \
		qemu-xilinx-system-native \
		qemu-xilinx-multiarch-helper-native \
		"

RDEPENDS:${PN}:remove = "qemu-system-native"
RDEPENDS:${PN}:append = " qemu-xilinx-system-native"

Break the dependency on qemu-helper-nativee qemu-xilinx-helper-native: Break dependecy on qemu-helper-native

FILESEXTRAPATHS:prepend := "${COREBASE}/meta/recipes-devtools/qemu/qemu-helper:"

# provide it, to replace the existing
PROVIDES = "qemu-helper-native"

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://${WORKDIR}/tunctl.c;endline=4;md5=ff3a09996bc5fff6bc5d4e0b4c28f999"

SRC_URI = "\
    file://tunctl.c \
    "

S = "${WORKDIR}"

inherit native

do_compile() {
        ${CC} ${CFLAGS} ${LDFLAGS} -Wall tunctl.c -o tunctl
}
# replace qemu with qemu-xilinx
DEPENDS:remove = "qemu-system-native"
DEPENDS:append = " \
		qemu-xilinx-system-native \
		qemu-xilinx-multiarch-helper-native \
		"

RDEPENDS:${PN}:remove = "qemu-system-native"
RDEPENDS:${PN}:append = " qemu-xilinx-system-native"

do_install() {
        install -d ${STAGING_BINDIR_NATIVE}
	install tunctl ${STAGING_BINDIR_NATIVE}

}


require kernel-module-mali-utgard.inc

LIC_FILES_CHKSUM = "file://driver/src/devicedrv/mali/readme.txt;md5=92d15b487d204ace57072c48697b4a89"

SRC_URI = "git://github.com/superna9999/meson_gx_mali_450.git;protocol=git;branch=DX910-SW-99002-r7p0-00rel1_meson_gx"

SRCREV = "8be0f308ce73e0f7666226503b12dbb508b3b880"

S = "${WORKDIR}/git"

MALI_KCONFIG = "MALI_PLATFORM_FILES=platform/meson/meson.c \
		CONFIG_MALI_DMA_BUF_MAP_ON_ATTACH=y \
		CONFIG_MALI_QUIET=y \
"

MALI_FLAGS = "-DMALI_FAKE_PLATFORM_DEVICE=1 \
	      -DCONFIG_MALI_DMA_BUF_MAP_ON_ATTACH \
	      -DCONFIG_MALI_QUIET \
"

Update to fix build error

require kernel-module-mali-utgard.inc

LIC_FILES_CHKSUM = "file://driver/src/devicedrv/mali/readme.txt;md5=92d15b487d204ace57072c48697b4a89"

SRC_URI = "git://github.com/superna9999/meson_gx_mali_450.git;protocol=git;branch=DX910-SW-99002-r7p0-00rel1_meson_gx"

SRCREV = "adf7fa6ca220075e2a98c1dd50e38c64b20694ef"

S = "${WORKDIR}/git"

MALI_KCONFIG = "MALI_PLATFORM_FILES=platform/meson/meson.c \
		CONFIG_MALI_DMA_BUF_MAP_ON_ATTACH=y \
		CONFIG_MALI_QUIET=y \
"

MALI_FLAGS = "-DMALI_FAKE_PLATFORM_DEVICE=1 \
	      -DCONFIG_MALI_DMA_BUF_MAP_ON_ATTACH \
	      -DCONFIG_MALI_QUIET \
"


DESCRIPTION = "Alternative system logger daemon"
DEPENDS = "libol flex eventlog"
PR = "r1"

SRC_URI = "http://www.balabit.com/downloads/files/syslog-ng/sources/stable/src/${P}.tar.gz \
          file://syslog-ng.conf \
          file://initscript"

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

inherit autotools update-rc.d

EXTRA_OECONF = "--with-libol=${STAGING_BINDIR_CROSS}/ --enable-dynamic-linking"

do_install_append() {
        install -d ${D}/${sysconfdir}/${PN}
        install ${WORKDIR}/syslog-ng.conf ${D}${sysconfdir}/syslog-ng.conf
        install -d ${D}/${sysconfdir}/init.d
        install -m 755 ${WORKDIR}/initscript ${D}/${sysconfdir}/init.d/syslog-ng
}

pkg_postinst() {
        update-rc.d -f syslog remove
}

pkg_postrm() {
        update-rc.d syslog add 5
}

CONFFILES_${PN} = "${sysconfdir}/syslog-ng.conf"

INITSCRIPT_NAME = "syslog-ng"
#INITSCRIPT_PARAMS = "defaults 05"
INITSCRIPT_PARAMS = "remove"

Add missing dependency on glib-2.0

DESCRIPTION = "Alternative system logger daemon"
DEPENDS = "libol flex eventlog glib-2.0"
PR = "r2"

SRC_URI = "http://www.balabit.com/downloads/files/syslog-ng/sources/stable/src/${P}.tar.gz \
          file://syslog-ng.conf \
          file://initscript"

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

inherit autotools update-rc.d

EXTRA_OECONF = "--with-libol=${STAGING_BINDIR_CROSS}/ --enable-dynamic-linking"

do_install_append() {
        install -d ${D}/${sysconfdir}/${PN}
        install ${WORKDIR}/syslog-ng.conf ${D}${sysconfdir}/syslog-ng.conf
        install -d ${D}/${sysconfdir}/init.d
        install -m 755 ${WORKDIR}/initscript ${D}/${sysconfdir}/init.d/syslog-ng
}

pkg_postinst() {
        update-rc.d -f syslog remove
}

pkg_postrm() {
        update-rc.d syslog add 5
}

CONFFILES_${PN} = "${sysconfdir}/syslog-ng.conf"

INITSCRIPT_NAME = "syslog-ng"
#INITSCRIPT_PARAMS = "defaults 05"
INITSCRIPT_PARAMS = "remove"


DESCRIPTION = "GPE user login screen"
SECTION = "gpe"
PRIORITY = "optional"
LICENSE = "GPL"
DEPENDS = "gtk+ libgpewidget gpe-ownerinfo xkbd"
RDEPENDS = "xkbd gpe-theme-clearlooks"
RPROVIDES_${PN} = "gpe-session-starter"
PR = "r0"

SRC_URI_OVERRIDES_PACKAGE_ARCH = "1"

GPE_TARBALL_SUFFIX = "bz2"

inherit gpe autotools pkgconfig

SRC_URI += "file://removeblue-fontsize8.patch;patch=1"
SRC_URI += " file://chvt-keylaunch.patch;patch=1 "
SRC_URI += " file://gpe-xcalibrate-rises-from-dead.patch;patch=1 "
SRC_URI += " file://size-autolock-properly.patch;patch=1 "
SRC_URI += " file://c-locale.patch;patch=1 "

SRC_URI_append_spitz = "file://brightness-adjust-keyluanchrc.patch;patch=1"
SRC_URI_append_akita = "file://brightness-adjust-keyluanchrc.patch;patch=1"
SRC_URI_append_c7x0 = "file://brightness-adjust-keyluanchrc.patch;patch=1"

Remove some patches applied upstream.

DESCRIPTION = "GPE user login screen"
SECTION = "gpe"
PRIORITY = "optional"
LICENSE = "GPL"
DEPENDS = "gtk+ libgpewidget gpe-ownerinfo xkbd"
RDEPENDS = "xkbd gpe-theme-clearlooks"
RPROVIDES_${PN} = "gpe-session-starter"
PR = "r0"

SRC_URI_OVERRIDES_PACKAGE_ARCH = "1"

GPE_TARBALL_SUFFIX = "bz2"

inherit gpe autotools pkgconfig

SRC_URI += "file://removeblue-fontsize8.patch;patch=1"
SRC_URI += " file://chvt-keylaunch.patch;patch=1 "
SRC_URI += " file://c-locale.patch;patch=1 "

SRC_URI_append_spitz = "file://brightness-adjust-keyluanchrc.patch;patch=1"
SRC_URI_append_akita = "file://brightness-adjust-keyluanchrc.patch;patch=1"
SRC_URI_append_c7x0 = "file://brightness-adjust-keyluanchrc.patch;patch=1"


# A minimal console image with some C/C++ dev tools

require core-image-minimal.bb

DEV_SDK_INSTALL = " \
	binutils \
	binutils-symlinks \
	coreutils \
	cpp \
	cpp-symlinks \
	diffutils \
	gcc \
	gcc-symlinks \
	g++ \
	g++-symlinks \
	make \
	libstdc++ \
	libstdc++-dev \
	libtool \
	pkgconfig \
	findutils \
	less \
	ldd \
	file \
 "

DEV_EXTRA_TOOLS_INSTALL = " \
	task-core-ssh-openssh \
	devmem2 \
	git \
 "

IMAGE_INSTALL += " \
	kernel-modules \
	rpm \
	${DEV_SDK_INSTALL} \
	${DEV_EXTRA_TOOLS_INSTALL} \
 "

Add vim-tiny, remove rpm and kernel-modules

# A minimal console image with some C/C++ dev tools
#LICENSE = "MIT"
#LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"

require core-image-minimal.bb

DEV_SDK_INSTALL = " \
       binutils \
       binutils-symlinks \
       coreutils \
       cpp \
       cpp-symlinks \
       diffutils \
       gcc \
       gcc-symlinks \
       g++ \
       g++-symlinks \
       gettext \
       make \
       libstdc++ \
       libstdc++-dev \
       libtool \
       pkgconfig \
       findutils \
       less \
       ldd \
       file \
 "

DEV_EXTRA_TOOLS_INSTALL = " \
	task-core-ssh-openssh \
	devmem2 \
	git \
	vim-tiny \
 "

IMAGE_INSTALL += " \
	${DEV_SDK_INSTALL} \
	${DEV_EXTRA_TOOLS_INSTALL} \
 "


DESCRIPTION =	"The GIMP is the GNU Image Manipulation Program."
HOMEPAGE = 	"http://www.gimp.org"
LICENSE =	"GPL"
MAINTAINER =	"Koen Kooi <koen@handhelds.org>"

SRC_URI =	"ftp://ftp.gimp.org/pub/gimp/v2.3/gimp-${PV}.tar.bz2"

DEPENDS =	"sed-native gtk+ jpeg libpng libexif tiff"

inherit autotools pkgconfig
#Don't laugh, this just builds a threaded gimp
EXTRA_OECONF = 	" --disable-gtktest \
		--disable-print \
		--disable-python \
		--enable-mp"

do_configure_append() {
	find ${S} -name Makefile | xargs sed -i s:'-I$(includedir)':'-I.':g
}

Add libart-lgpl to gimp DEPENDS

DESCRIPTION =	"The GIMP is the GNU Image Manipulation Program."
HOMEPAGE = 	"http://www.gimp.org"
LICENSE =	"GPL"
MAINTAINER =	"Koen Kooi <koen@handhelds.org>"

SRC_URI =	"ftp://ftp.gimp.org/pub/gimp/v2.3/gimp-${PV}.tar.bz2"

DEPENDS =	"sed-native libart-lgpl gtk+ jpeg libpng libexif tiff"

inherit autotools pkgconfig
#Don't laugh, this just builds a threaded gimp
EXTRA_OECONF = 	" --disable-gtktest \
		--disable-print \
		--disable-python \
		--enable-mp"

do_configure_append() {
	find ${S} -name Makefile | xargs sed -i s:'-I$(includedir)':'-I.':g
}


COMPATIBLE_MACHINE = "raspberrypi"

require linux.inc

DESCRIPTION = "Linux kernel for the RaspberryPi board"

PR = "r1"

# Bump MACHINE_KERNEL_PR in the machine config if you update the kernel.
# This is on the rpi-patches branch
SRCREV = "0ec4154d64ebba48ca2446cde60a90546311defc"

SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-patches \
"

LINUX_VERSION ?= "3.1.9-rpi"
PV = "${LINUX_VERSION}+${PR}+git${SRCREV}"

S = "${WORKDIR}/git"

# NOTE: For now we pull in the default config from the RPi kernel GIT tree.

KERNEL_DEFCONFIG = "bcmrpi_defconfig"

PARALLEL_MAKEINST = ""

do_configure_prepend() {
	install -m 0644 ${S}/arch/${ARCH}/configs/${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig || die "No default configuration for ${MACHINE} / ${KERNEL_DEFCONFIG} available."
}

do_install_prepend() {
	install -d ${D}/lib/firmware
}

Update kernel to latest upstream

COMPATIBLE_MACHINE = "raspberrypi"

require linux.inc

DESCRIPTION = "Linux kernel for the RaspberryPi board"

PR = "r2"

# Bump MACHINE_KERNEL_PR in the machine config if you update the kernel.
# This is on the rpi-patches branch
SRCREV = "14ad68cf4afc7acf14076f895b539d81cd9f32ab"

SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-patches \
"

LINUX_VERSION ?= "3.1.9-rpi"
PV = "${LINUX_VERSION}+${PR}+git${SRCREV}"

S = "${WORKDIR}/git"

# NOTE: For now we pull in the default config from the RPi kernel GIT tree.

KERNEL_DEFCONFIG = "bcmrpi_defconfig"

PARALLEL_MAKEINST = ""

do_configure_prepend() {
	install -m 0644 ${S}/arch/${ARCH}/configs/${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig || die "No default configuration for ${MACHINE} / ${KERNEL_DEFCONFIG} available."
}

do_install_prepend() {
	install -d ${D}/lib/firmware
}


#
# base recipe: http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-support/nettle/nettle_2.7.1.bb
# base branch: master
#

PR = "r0"

inherit debian-package

LICENSE = "LGPLv2.1 & GPLv2"
LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1"

DEPENDS += "gmp"

SRC_URI[md5sum] = "003d5147911317931dd453520eb234a5"
SRC_URI[sha256sum] = "bc71ebd43435537d767799e414fce88e521b7278d48c860651216e1fc6555b40"

EXTRA_OECONF = "--disable-openssl"

do_configure_prepend() {
       if [ ! -e ${S}/acinclude.m4 -a -e ${S}/aclocal.m4 ]; then
               cp ${S}/aclocal.m4 ${S}/acinclude.m4
       fi
}

inherit autotools

BBCLASSEXTEND = "native nativesdk"

Update LIC_FILES_CHKSUM in recipe for nettle package

#
# base recipe: http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-support/nettle/nettle_2.7.1.bb
# base branch: master
#

PR = "r0"

inherit debian-package

LICENSE = "LGPLv2.1 & GPLv2"
LIC_FILES_CHKSUM = " \
file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \
file://debian/copyright;md5=b5f458d64602d4f35b2bf7c57dd76d73 \
"

DEPENDS += "gmp"

SRC_URI[md5sum] = "003d5147911317931dd453520eb234a5"
SRC_URI[sha256sum] = "bc71ebd43435537d767799e414fce88e521b7278d48c860651216e1fc6555b40"

EXTRA_OECONF = "--disable-openssl"

do_configure_prepend() {
       if [ ! -e ${S}/acinclude.m4 -a -e ${S}/aclocal.m4 ]; then
               cp ${S}/aclocal.m4 ${S}/acinclude.m4
       fi
}

inherit autotools

BBCLASSEXTEND = "native nativesdk"


require recipes/images/minimal-image.bb

IMAGE_INSTALL += "\
        ack \
        avahi-autoipd \
        avahi-daemon \
        binutils \
        control-freak \
        cpp \
        cpp-symlinks \
        curl \
        gcc \
        gcc-symlinks \
        git \
        htop \
        i2c-tools \
        iotop \
        iperf \
        libgcc-dev \
        libxml2 \
        make \
        mtr \
        nano \
        nginx \
        ntpdate \
        openssh \
        perl \
        perl-modules \
        python \
        python-daemon \
        python-flask \
        python-jinja2 \
        python-misc \
        python-modules \
        python-pyserial \
        python-pytronics \
        python-werkzeug \
        ruby \
        sysstat \
        usbutils \
        usb-gadget-mode \
        uwsgi \
        vim \
        vim-vimrc \
    "

export IMAGE_BASENAME = "rascal-image"

Add SFTP server to default build

require recipes/images/minimal-image.bb

IMAGE_INSTALL += "\
        ack \
        avahi-autoipd \
        avahi-daemon \
        binutils \
        control-freak \
        cpp \
        cpp-symlinks \
        curl \
        gcc \
        gcc-symlinks \
        git \
        htop \
        i2c-tools \
        iotop \
        iperf \
        libgcc-dev \
        libxml2 \
        make \
        mtr \
        nano \
        nginx \
        ntpdate \
        openssh \
        openssh-sftp-server \
        perl \
        perl-modules \
        python \
        python-daemon \
        python-flask \
        python-jinja2 \
        python-misc \
        python-modules \
        python-pyserial \
        python-pytronics \
        python-werkzeug \
        ruby \
        sysstat \
        usbutils \
        usb-gadget-mode \
        uwsgi \
        vim \
        vim-vimrc \
    "

export IMAGE_BASENAME = "rascal-image"


DESCRIPTION =  "Kernel drivers for the PowerVR SGX chipset found in the omap5 SoCs"
HOMEPAGE = "http://git.ti.com"
LICENSE = "MIT | GPLv2"
LIC_FILES_CHKSUM = "file://eurasia_km/README;beginline=13;endline=22;md5=2b841bfc03386bb4d8d9381b79d33898"

inherit module

MACHINE_KERNEL_PR_append = "d"
PR = "${MACHINE_KERNEL_PR}"

BRANCH = "next"

SRC_URI = "git://git.ti.com/graphics/omap5-sgx-ddk-linux.git;protocol=git;branch=${BRANCH}"
S = "${WORKDIR}/git"

SRCREV = "872aa64b227cadbc97755a4192919dd5ca637971"

EXTRA_OEMAKE += 'KERNELDIR="${STAGING_KERNEL_DIR}"'

do_compile_prepend() {
    cd ${S}/eurasia_km/eurasiacon/build/linux2/omap5430_linux
}

do_install() {
    mkdir -p ${D}/lib/modules/${KERNEL_VERSION}/extra/
    cp ${S}/eurasia_km/eurasiacon/binary2_omap5430_linux_release/target/kbuild/omapdrm_pvr.ko \
    ${D}/lib/modules/${KERNEL_VERSION}/extra/
}

Use kernel mechanism for module installation.

DESCRIPTION =  "Kernel drivers for the PowerVR SGX chipset found in the omap5 SoCs"
HOMEPAGE = "http://git.ti.com"
LICENSE = "MIT | GPLv2"
LIC_FILES_CHKSUM = "file://eurasia_km/README;beginline=13;endline=22;md5=2b841bfc03386bb4d8d9381b79d33898"

inherit module

MACHINE_KERNEL_PR_append = "e"
PR = "${MACHINE_KERNEL_PR}"

BRANCH = "next"

SRC_URI = "git://git.ti.com/graphics/omap5-sgx-ddk-linux.git;protocol=git;branch=${BRANCH}"
S = "${WORKDIR}/git"

SRCREV = "872aa64b227cadbc97755a4192919dd5ca637971"

EXTRA_OEMAKE += 'KERNELDIR="${STAGING_KERNEL_DIR}"'

do_compile_prepend() {
    cd ${S}/eurasia_km/eurasiacon/build/linux2/omap5430_linux
}

do_install() {
    make -C ${STAGING_KERNEL_DIR} SUBDIRS=${B}/eurasia_km/eurasiacon/binary2_omap5430_linux_release/target/kbuild INSTALL_MOD_PATH=${D} PREFIX=${STAGING_DIR_HOST} modules_install
}


SUMMARY = "RTMP Dump"
DESCRIPTION = "rtmpdump is a toolkit for RTMP streams. All forms of RTMP are \
supported, including rtmp://, rtmpt://, rtmpe://, rtmpte://, and rtmps://."
HOMEPAGE = "http://rtmpdump.mplayerhq.hu/"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"

DEPENDS = "openssl10 zlib"

SRCREV = "fa8646daeb19dfd12c181f7d19de708d623704c0"
SRC_URI = " \
    git://git.ffmpeg.org/rtmpdump \
    file://fix-racing-build-issue.patch"

S = "${WORKDIR}/git"

inherit autotools-brokensep

EXTRA_OEMAKE = " \
    CC='${CC}' LD='${LD} ${STAGING_LIBDIR}' XCFLAGS='${CFLAGS}' XLDFLAGS='${LDFLAGS}' \
    SYS=posix INC=-I=/usr/include DESTDIR=${D} \
    prefix=${prefix} libdir=${libdir} incdir=${includedir}/librtmp bindir=${bindir} mandir=${mandir}"

Switch to using GNU TLS instead of openssl10

SUMMARY = "RTMP Dump"
DESCRIPTION = "rtmpdump is a toolkit for RTMP streams. All forms of RTMP are \
supported, including rtmp://, rtmpt://, rtmpe://, rtmpte://, and rtmps://."
HOMEPAGE = "http://rtmpdump.mplayerhq.hu/"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"

DEPENDS = "gnutls zlib"

SRCREV = "fa8646daeb19dfd12c181f7d19de708d623704c0"
SRC_URI = " \
    git://git.ffmpeg.org/rtmpdump \
    file://fix-racing-build-issue.patch"

S = "${WORKDIR}/git"

inherit autotools-brokensep

EXTRA_OEMAKE = " \
    CC='${CC}' LD='${LD} ${STAGING_LIBDIR}' XCFLAGS='${CFLAGS}' XLDFLAGS='${LDFLAGS}' \
    SYS=posix INC=-I=/usr/include DESTDIR=${D} CRYPTO=GNUTLS \
    prefix=${prefix} libdir=${libdir} incdir=${includedir}/librtmp bindir=${bindir} mandir=${mandir}"


SUMMARY = "PIP is a tool for installing and managing Python packages"
LICENSE = "MIT & LGPL-2.1"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=25fba45109565f87de20bae85bc39452"

SRC_URI[md5sum] = "35f01da33009719497f01a4ba69d63c9"
SRC_URI[sha256sum] = "09f243e1a7b461f654c26a725fa373211bb7ff17a9300058b205c61658ca940d"

inherit pypi setuptools

# Since PIP is like CPAN for PERL we need to drag in all python modules to ensure everything works
RDEPENDS_${PN}_class-target = "python-modules python-distribute"

BBCLASSEXTEND = "native nativesdk"

Add HOMEPAGE info into recipe file.

SUMMARY = "PIP is a tool for installing and managing Python packages"
HOMEPAGE = "https://pip.pypa.io/"
LICENSE = "MIT & LGPL-2.1"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=25fba45109565f87de20bae85bc39452"

SRC_URI[md5sum] = "35f01da33009719497f01a4ba69d63c9"
SRC_URI[sha256sum] = "09f243e1a7b461f654c26a725fa373211bb7ff17a9300058b205c61658ca940d"

inherit pypi setuptools

# Since PIP is like CPAN for PERL we need to drag in all python modules to ensure everything works
RDEPENDS_${PN}_class-target = "python-modules python-distribute"

BBCLASSEXTEND = "native nativesdk"


SUMMARY = "A fast lightweight Text-to-speech engine"
DESCRIPTION = "Mimic is a fast, lightweight Text-to-speech engine developed by Mycroft A.I. and VocaliD, based on Carnegie Mellon University’s Flite (Festival-Lite) software. Mimic takes in text and reads it out loud to create a high quality voice."
HOMEPAGE = "https://mimic.mycroft.ai/"
SECTION = "multimedia"

# "Mimic is available under permissive BSD-like licenses"
LICENSE = "MIT-X & \
           PD & \
           CMU-Tex & \
           BSD & \
           BSD-2-Clause & \
           BSD-3-Clause & \
           flite & \
           (flite & Sun) & \
           BellBird & \
           Apache-2.0 \
           "
LIC_FILES_CHKSUM = "file://COPYING;md5=416ef1ca5167707fe381d7be33664a33"

DEPENDS = "curl-native icu"

SRCREV = "67e43bf0fa56008276b878ec3790aa5f32eb2a16"
SRC_URI = "git://github.com/MycroftAI/mimic.git"

inherit autotools

S = "${WORKDIR}/git"

Fix the build with -Os

SUMMARY = "A fast lightweight Text-to-speech engine"
DESCRIPTION = "Mimic is a fast, lightweight Text-to-speech engine developed by Mycroft A.I. and VocaliD, based on Carnegie Mellon University’s Flite (Festival-Lite) software. Mimic takes in text and reads it out loud to create a high quality voice."
HOMEPAGE = "https://mimic.mycroft.ai/"
SECTION = "multimedia"

# "Mimic is available under permissive BSD-like licenses"
LICENSE = "MIT-X & \
           PD & \
           CMU-Tex & \
           BSD & \
           BSD-2-Clause & \
           BSD-3-Clause & \
           flite & \
           (flite & Sun) & \
           BellBird & \
           Apache-2.0 \
           "
LIC_FILES_CHKSUM = "file://COPYING;md5=416ef1ca5167707fe381d7be33664a33"

DEPENDS = "curl-native icu"

SRCREV = "67e43bf0fa56008276b878ec3790aa5f32eb2a16"
SRC_URI = "git://github.com/MycroftAI/mimic.git"

inherit autotools

S = "${WORKDIR}/git"

CPPFLAGS_append = " -Wno-error"


SECTION = "libs"
LICENSE = "Artistic"
PR = "r3"

SRC_URI = "http://www.cpan.org/modules/by-module/XML/XML-Parser-${PV}.tar.gz"

S = "${WORKDIR}/XML-Parser-${PV}"

inherit cpan

FILES_${PN} = "${PERLLIBDIRS}/auto/XML/Parser/Expat/* \
                ${PERLLIBDIRS}/auto/XML/Parser/.packlist \
                ${PERLLIBDIRS}/XML"
FILES_${PN}-dbg += "${PERLLIBDIRS}/auto/XML/Parser/Expat/.debug"

Add a dependency on expat-native and pass in the appropriate libarary and include directories for exapt to the makefile. NOTE: This still doesn't work since it tries to use the host headers when linking to perl. Fixing this properly will need "perl" to be installed in the staging area (currently we stage perl-native only).

SECTION = "libs"
LICENSE = "Artistic"
DEPENDS += "expat-native"
PR = "r4"

SRC_URI = "http://www.cpan.org/modules/by-module/XML/XML-Parser-${PV}.tar.gz"

S = "${WORKDIR}/XML-Parser-${PV}"

EXTRA_CPANFLAGS = "EXPATLIBPATH=${STAGING_LIBDIR} EXPATINCPATH=${STAGING_INCDIR}"

inherit cpan

FILES_${PN} = "${PERLLIBDIRS}/auto/XML/Parser/Expat/* \
                ${PERLLIBDIRS}/auto/XML/Parser/.packlist \
                ${PERLLIBDIRS}/XML"
FILES_${PN}-dbg += "${PERLLIBDIRS}/auto/XML/Parser/Expat/.debug"


require swupdate.inc

DEFAULT_PREFERENCE = "-1"

do_compile() {
  unset LDFLAGS

  oe_runmake
  cp swupdate_unstripped swupdate
  cp tools/progress_unstripped progress

}

Install tools from recent SWUpdate

require swupdate.inc

DEFAULT_PREFERENCE = "-1"

do_compile() {
  unset LDFLAGS

  oe_runmake
  cp swupdate_unstripped swupdate
  cp tools/progress_unstripped progress

}

do_install_append () {

  install -m 0755 tools/client_unstripped ${D}${bindir}/client
  install -m 0755 tools/progress_unstripped ${D}${bindir}/progress
  install -m 0755 tools/hawkbitcfg_unstripped ${D}${bindir}/hawkbitcfg
  install -m 0755 tools/sendtohawkbit_unstripped ${D}${bindir}/sendtohawkbit

}


SUMMARY = "Simple Python wrapper around the OpenSSL library"
SECTION = "devel/python"

LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"

SRCNAME = "pyOpenSSL"

DEPENDS = "openssl python-cryptography"
PE = "1"

SRC_URI = "http://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-${PV}.tar.gz"

SRC_URI[md5sum] = "f447644afcbd5f0a1f47350fec63a4c6"
SRC_URI[sha256sum] = "f0a26070d6db0881de8bcc7846934b7c3c930d8f9c79d45883ee48984bc0d672"

S = "${WORKDIR}/${SRCNAME}-${PV}"

inherit setuptools

PACKAGES =+ "${PN}-tests"
FILES_${PN}-tests = "${libdir}/${PYTHON_DIR}/site-packages/OpenSSL/test"

RDEPENDS_${PN} = "python-threading"
RDEPENDS_${PN}-tests = "${PN}"

Add missing RDEPENDS on "six" and "cryptography"

SUMMARY = "Simple Python wrapper around the OpenSSL library"
SECTION = "devel/python"

LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"

SRCNAME = "pyOpenSSL"

DEPENDS = "openssl python-cryptography"
PE = "1"

SRC_URI = "http://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-${PV}.tar.gz"

SRC_URI[md5sum] = "f447644afcbd5f0a1f47350fec63a4c6"
SRC_URI[sha256sum] = "f0a26070d6db0881de8bcc7846934b7c3c930d8f9c79d45883ee48984bc0d672"

S = "${WORKDIR}/${SRCNAME}-${PV}"

inherit setuptools

PACKAGES =+ "${PN}-tests"
FILES_${PN}-tests = "${libdir}/${PYTHON_DIR}/site-packages/OpenSSL/test"

RDEPENDS_${PN} = "python-threading python-six python-cryptography"
RDEPENDS_${PN}-tests = "${PN}"


VIMVER = "72"

# vim-tiny sets that too
VIMFEATURES ?= "big"

# GUI type - gvim recipe sets "gtk2"
VIMGUI ?= "no"

# gvim recipes uses "--with-x"
VIMX ?= "--without-x"

require vim.inc

PR = "${INC_PR}.3"

# 001-411.diff contains 411 patches fetched from upstream
SRC_URI += "file://001-411.diff;apply=no"
SRC_URI += "file://configure.in_remove_CC_quotes.patch;apply=no"
SRC_URI += "file://vimrc"

# we need to apply patches in other dir then ${S}
do_patch() {
	cd ${WORKDIR}/vim${VIMVER}
	patch -p1 <${WORKDIR}/001-411.diff
	patch -p1 <${WORKDIR}/configure.in_remove_CC_quotes.patch
}

do_install_append() {
    install -m 0644 ${WORKDIR}/vimrc ${D}/${datadir}/vim
}

RCONFLICTS_${PN} = "gvim vim-tiny"
PACKAGES =+ "${PN}-vimrc"

FILES_${PN}-vimrc = "${datadir}/vim/vimrc"

Switch to patchdir rather than applying in do_configure

VIMVER = "72"

# vim-tiny sets that too
VIMFEATURES ?= "big"

# GUI type - gvim recipe sets "gtk2"
VIMGUI ?= "no"

# gvim recipes uses "--with-x"
VIMX ?= "--without-x"

require vim.inc

PR = "${INC_PR}.3"

# 001-411.diff contains 411 patches fetched from upstream
SRC_URI += "file://001-411.diff;patchdir=.."
SRC_URI += "file://configure.in_remove_CC_quotes.patch;patchdir=.."
SRC_URI += "file://vimrc"

do_install_append() {
    install -m 0644 ${WORKDIR}/vimrc ${D}/${datadir}/vim
}

RCONFLICTS_${PN} = "gvim vim-tiny"
PACKAGES =+ "${PN}-vimrc"

FILES_${PN}-vimrc = "${datadir}/vim/vimrc"


include recipes-core/images/core-image-minimal.bb

IMAGE_FSTYPES = "tar.gz"

IMAGE_INSTALL_append += " \
	fbcp \
	fontconfig \
	fontconfig-utils \
	tslib-calibrate \
	tslib-tests \
	ttf-bitstream-vera \
	gstreamer1.0-plugins-base-alsa \
	wpebackend-rdk \
	wpewebkit \
	cog \
	"

VIRTUAL-RUNTIME_init_manager="busybox"

Add tzdata for all timezones

include recipes-core/images/core-image-minimal.bb

IMAGE_FSTYPES = "tar.gz"

IMAGE_INSTALL_append += " \
	fbcp \
	fontconfig \
	fontconfig-utils \
	tslib-calibrate \
	tslib-tests \
	ttf-bitstream-vera \
	gstreamer1.0-plugins-base-alsa \
	wpebackend-rdk \
	wpewebkit \
	cog \
	tzdata tzdata-misc tzdata-posix tzdata-right tzdata-africa \
	tzdata-americas tzdata-antarctica tzdata-arctic tzdata-asia \
	tzdata-atlantic tzdata-australia tzdata-europe tzdata-pacific \
	"

VIRTUAL-RUNTIME_init_manager="busybox"


SUMMARY = "Library to process JSON-RPC requests"
HOMEPAGE = "https://github.com/bcb/jsonrpcserver"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=c89120516900f96f4c60d35fdc4c3f15"

SRC_URI[md5sum] = "c1cc652bdeb04b8ce3ad962fbab34daf"
SRC_URI[sha256sum] = "3a35c0ef21174ca98f995f99688cebadda97053785833fbb31ec862d6b157f6d"

inherit pypi setuptools3

RDEPENDS_${PN} += "\
    python3-apply-defaults \
    python3-asyncio \
    python3-core \
    python3-json \
    python3-jsonschema \
    python3-logging \
    python3-netclient \
    python3-pkgutil \
    python3-typing \
"

BBCLASSEXTEND = "native nativesdk"

do_install_append() {
    chmod 0644 ${D}${PYTHON_SITEPACKAGES_DIR}/jsonrpcserver-4.1.0-py3.7.egg-info/*
}

Use PYTHON_BASEVERSION instead of hardcoding py version

SUMMARY = "Library to process JSON-RPC requests"
HOMEPAGE = "https://github.com/bcb/jsonrpcserver"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=c89120516900f96f4c60d35fdc4c3f15"

SRC_URI[md5sum] = "c1cc652bdeb04b8ce3ad962fbab34daf"
SRC_URI[sha256sum] = "3a35c0ef21174ca98f995f99688cebadda97053785833fbb31ec862d6b157f6d"

inherit pypi setuptools3

RDEPENDS_${PN} += "\
    python3-apply-defaults \
    python3-asyncio \
    python3-core \
    python3-json \
    python3-jsonschema \
    python3-logging \
    python3-netclient \
    python3-pkgutil \
    python3-typing \
"

BBCLASSEXTEND = "native nativesdk"

do_install_append() {
    chmod 0644 ${D}${PYTHON_SITEPACKAGES_DIR}/jsonrpcserver-4.1.0-py${PYTHON_BASEVERSION}.egg-info/*
}


require u-boot.inc

# This is needs to be validated among supported BSP's before we can
# make it default
DEFAULT_PREFERENCE = "-1"

# To build u-boot for your machine, provide the following lines in
# your machine config, replacing the assignments as appropriate for
# your machine.
# UBOOT_MACHINE = "omap3_beagle_config"
# UBOOT_ENTRYPOINT = "0x80008000"
# UBOOT_LOADADDRESS = "0x80008000"

LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb"

PV = "v2013.01.01+git${SRCPV}"
PR = "r4"

SRCREV = "b6af5fcc8dfcc9240c158e5d0f07716245d67a56"
SRC_URI = "git://git.denx.de/u-boot-sh.git;branch=renesas/bsp/rcar-gen2-5;protocol=git"

S = "${WORKDIR}/git"

PACKAGE_ARCH = "${MACHINE_ARCH}"

Update BSP to version 0.5.3

require u-boot.inc

# This is needs to be validated among supported BSP's before we can
# make it default
DEFAULT_PREFERENCE = "-1"

# To build u-boot for your machine, provide the following lines in
# your machine config, replacing the assignments as appropriate for
# your machine.
# UBOOT_MACHINE = "omap3_beagle_config"
# UBOOT_ENTRYPOINT = "0x80008000"
# UBOOT_LOADADDRESS = "0x80008000"

LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb"

PV = "v2013.01.01+git${SRCPV}"
PR = "r5"

SRCREV = "14c8f0753662a7b4802340279e62e4e6b9a6d612"
SRC_URI = "git://git.denx.de/u-boot-sh.git;branch=renesas/bsp/rcar-gen2-5.3;protocol=git"

S = "${WORKDIR}/git"

PACKAGE_ARCH = "${MACHINE_ARCH}"


require u-boot-ti.inc

DESCRIPTION = "u-boot bootloader for ARM MPU devices"

COMPATIBLE_MACHINE = "ti33x"

DEFAULT_PREFERENCE = "-1"

PR = "r5+gitr${SRCPV}"

SRC_URI = "git://git.ti.com/ti-u-boot/ti-u-boot.git;protocol=git;branch=${BRANCH}"

# This version of u-boot is meant for 3.2 kernel which doesn't support device tree.
BRANCH = "ti-u-boot-2013.01.01-amsdk-05.07.00.00"

# Commit corresponds to tag "v2013.01.01_amsdk-05.07.00.00"
SRCREV = "8eb15a787c558fee98b0fa2a66ff0849c732edcc"

# Set the name of the SPL that will built so that it is also packaged with u-boot.
SPL_BINARY = "MLO"

Update am335x to use latest u-boot for 3.2 kernel

require u-boot-ti.inc

DESCRIPTION = "u-boot bootloader for ARM MPU devices"

COMPATIBLE_MACHINE = "ti33x"

DEFAULT_PREFERENCE = "-1"

PR = "r6+gitr${SRCPV}"

SRC_URI = "git://git.ti.com/ti-u-boot/ti-u-boot.git;protocol=git;branch=${BRANCH}"

# This version of u-boot is meant for 3.2 kernel which doesn't support device tree.
BRANCH = "ti-u-boot-2013.01.01-amsdk-06.00.00.00"

SRCREV = "540aa6fbb0c9274bda598f7e8819ed28259cad6b"

# Set the name of the SPL that will built so that it is also packaged with u-boot.
SPL_BINARY = "MLO"


LICENSE = "GPL"
PR = "r0"
inherit gpe pkgconfig

DESCRIPTION = "A package manager GUI for GPE"
DEPENDS = "ipkg libgpewidget"
RDEPENDS = "gpe-icons"
SECTION = "gpe"
PRIORITY = "optional"

Apply patch by Erik Hovland to make sure gpe-package is suid.

LICENSE = "GPL"
PR = "r1"
inherit gpe pkgconfig

DESCRIPTION = "A package manager GUI for GPE"
DEPENDS = "ipkg libgpewidget"
RDEPENDS = "gpe-icons"
SECTION = "gpe"
PRIORITY = "optional"

pkg_postinst () {
#!/bin/sh
chmod u+s /usr/bin/gpe-package
}


SUMMARY = "Checksec tool"
DESCRIPTION = "The checksec.sh script is designed to test what standard Linux OS and PaX security features are being used."
SECTION = "security"
LICENSE = "BSD-3-Clause"
HOMEPAGE="http://www.trapkit.de/tools/checksec.html"

LIC_FILES_CHKSUM = "file://checksec.sh;beginline=3;endline=34;md5=c1bd90129ce3bb5519cfcaea794ab515"

SRC_URI = "file://checksec.sh"

S = "${WORKDIR}"

do_install() {
    install -d ${D}${bindir}
    install -m 0755 ${WORKDIR}/checksec.sh    ${D}${bindir}
}

RDEPENDS_${PN} = "bash"

BBCLASSEXTEND = "native"

Add explicit runtime dependency on binutils

SUMMARY = "Checksec tool"
DESCRIPTION = "The checksec.sh script is designed to test what standard Linux OS and PaX security features are being used."
SECTION = "security"
LICENSE = "BSD-3-Clause"
HOMEPAGE="http://www.trapkit.de/tools/checksec.html"

LIC_FILES_CHKSUM = "file://checksec.sh;beginline=3;endline=34;md5=c1bd90129ce3bb5519cfcaea794ab515"

SRC_URI = "file://checksec.sh"

S = "${WORKDIR}"

do_install() {
    install -d ${D}${bindir}
    install -m 0755 ${WORKDIR}/checksec.sh    ${D}${bindir}
}

RDEPENDS_${PN} = "bash binutils"

BBCLASSEXTEND = "native"


SUMMARY = "Terminal multiplexer"
HOMEPAGE = "http://tmux.sourceforge.net"
SECTION = "console/utils"

LICENSE = "ISC"
LIC_FILES_CHKSUM = "file://tmux.c;beginline=3;endline=17;md5=f256b76d52e7b4d02bf19144bdaca107"

DEPENDS = "ncurses libevent"

SRC_URI = "https://github.com/tmux/tmux/releases/download/${PV}/tmux-${PV}.tar.gz"
SRC_URI[md5sum] = "2cdacbf06ac4980d3f5312ad23b37f9b"
SRC_URI[sha256sum] = "d93f351d50af05a75fe6681085670c786d9504a5da2608e481c47cf5e1486db9"

UPSTREAM_CHECK_URI = "https://github.com/tmux/tmux/releases"

inherit autotools pkgconfig

PACKAGECONFIG ??= ""
PACKAGECONFIG[utempter] = "ac_cv_header_utempter_h=yes,ac_cv_header_utempter_h=no,libutempter,"

do_configure_prepend() {
    # The 'compat' directory is needed for output during the build but it's
    # not automatically created when building outside the source directory.
    mkdir ${B}/compat
}

Add -p option to mkdir

SUMMARY = "Terminal multiplexer"
HOMEPAGE = "http://tmux.sourceforge.net"
SECTION = "console/utils"

LICENSE = "ISC"
LIC_FILES_CHKSUM = "file://tmux.c;beginline=3;endline=17;md5=f256b76d52e7b4d02bf19144bdaca107"

DEPENDS = "ncurses libevent"

SRC_URI = "https://github.com/tmux/tmux/releases/download/${PV}/tmux-${PV}.tar.gz"
SRC_URI[md5sum] = "2cdacbf06ac4980d3f5312ad23b37f9b"
SRC_URI[sha256sum] = "d93f351d50af05a75fe6681085670c786d9504a5da2608e481c47cf5e1486db9"

UPSTREAM_CHECK_URI = "https://github.com/tmux/tmux/releases"

inherit autotools pkgconfig

PACKAGECONFIG ??= ""
PACKAGECONFIG[utempter] = "ac_cv_header_utempter_h=yes,ac_cv_header_utempter_h=no,libutempter,"

do_configure_prepend() {
    # The 'compat' directory is needed for output during the build but it's
    # not automatically created when building outside the source directory.
    mkdir -p ${B}/compat
}


require recipes/images/minimal-image.bb

IMAGE_INSTALL += "\
        ack \
        avahi-autoipd \
        avahi-daemon \
        binutils \
        control-freak \
        cpp \
        cpp-symlinks \
        curl \
        gcc \
        gcc-symlinks \
        git \
        htop \
        i2c-tools \
        iotop \
        iperf \
        ipython \
        libgcc-dev \
        libxml2 \
        logrotate \
        make \
        mtr \
        nano \
        nginx \
        ntpdate \
        openssh \
        openssh-sftp-server \
        perl \
        perl-modules \
        python \
        python-daemon \
        python-dev \
        python-flask \
        python-flask-login \
        python-imaging \
        python-jinja2 \
        python-matplotlib \
        python-misc \
        python-modules \
        python-numpy \
        python-pip \
        python-pyserial \
        python-pytronics \
        python-simplejson \
        python-sqlalchemy \
        python-werkzeug \
        ruby \
        sysstat \
        usbutils \
        usb-gadget-mode \
        uwsgi \
        vim \
        vim-syntax \
        vim-vimrc \
    "

export IMAGE_BASENAME = "rascal-image"

Add packages: blinkm, ffmpeg, g++, gfortran, wireless-tools

require recipes/images/minimal-image.bb

IMAGE_INSTALL += "\
        ack \
        avahi-autoipd \
        avahi-daemon \
        binutils \
        blinkm \
        control-freak \
        cpp \
        cpp-symlinks \
        curl \
        ffmpeg \
        g++ \
        g++-symlinks \
        gcc \
        gcc-symlinks \
        gfortran \
        gfortran-symlinks \
        git \
        htop \
        i2c-tools \
        iotop \
        iperf \
        ipython \
        libgcc-dev \
        libxml2 \
        logrotate \
        make \
        mtr \
        nano \
        nginx \
        ntpdate \
        openssh \
        openssh-sftp-server \
        perl \
        perl-modules \
        python \
        python-daemon \
        python-dev \
        python-flask \
        python-flask-login \
        python-imaging \
        python-jinja2 \
        python-matplotlib \
        python-misc \
        python-modules \
        python-numpy \
        python-pip \
        python-pyserial \
        python-pytronics \
        python-simplejson \
        python-sqlalchemy \
        python-werkzeug \
        ruby \
        sysstat \
        usbutils \
        usb-gadget-mode \
        uwsgi \
        vim \
        vim-syntax \
        vim-vimrc \
        wireless-tools \
    "

export IMAGE_BASENAME = "rascal-image"


SUMMARY = "Security oriented static analyser for python code."
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2"

SRC_URI[md5sum] = "f74155cb9921be857693b32d2531e857"
SRC_URI[sha256sum] = "cb977045497f83ec3a02616973ab845c829cdab8144ce2e757fe031104a9abd4"

DEPENDS = "python3-pyyaml python3-six python3-stevedore"

inherit setuptools3 pypi

BBCLASSEXTEND = "native"

Add missing dependency on pbr native

SUMMARY = "Security oriented static analyser for python code."
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2"

SRC_URI[md5sum] = "f74155cb9921be857693b32d2531e857"
SRC_URI[sha256sum] = "cb977045497f83ec3a02616973ab845c829cdab8144ce2e757fe031104a9abd4"

DEPENDS = "python3-pyyaml python3-six python3-stevedore python3-pbr-native"

inherit setuptools3 pypi

BBCLASSEXTEND = "native"


SECTION = "base"
PACKAGES = ""
LICENSE = "GPL"
INHIBIT_DEFAULT_DEPS = "1"
PR = "r2"

SRC_URI = "http://nslu.sf.net/downloads/${PN}-${PV}.tar.bz2"
S = "${WORKDIR}/${PN}-${PV}"

COMPATIBLE_MACHINE = "nslu2"

do_compile () {
	install -d ${STAGING_LIBDIR}/nslu2-binaries
	install -m 0755 ${S}/RedBoot ${STAGING_LIBDIR}/nslu2-binaries/
	install -m 0755 ${S}/SysConf ${STAGING_LIBDIR}/nslu2-binaries/
	install -m 0755 ${S}/vmlinuz ${STAGING_LIBDIR}/nslu2-binaries/
	install -m 0755 ${S}/Trailer ${STAGING_LIBDIR}/nslu2-binaries/
}

Enable for ixp4xx machines too.

SECTION = "base"
PACKAGES = ""
LICENSE = "GPL"
INHIBIT_DEFAULT_DEPS = "1"
PR = "r3"

SRC_URI = "http://nslu.sf.net/downloads/${PN}-${PV}.tar.bz2"
S = "${WORKDIR}/${PN}-${PV}"

COMPATIBLE_MACHINE = "(nslu2|ixp4xx)"

do_compile () {
	install -d ${STAGING_LIBDIR}/nslu2-binaries
	install -m 0755 ${S}/RedBoot ${STAGING_LIBDIR}/nslu2-binaries/
	install -m 0755 ${S}/SysConf ${STAGING_LIBDIR}/nslu2-binaries/
	install -m 0755 ${S}/vmlinuz ${STAGING_LIBDIR}/nslu2-binaries/
	install -m 0755 ${S}/Trailer ${STAGING_LIBDIR}/nslu2-binaries/
}


SRCBRANCH ?= "master-rel-2021.1"
SRCREV = "1ea0b872057a3f6636712dfda36bc6f1420f99af"
BRANCH = "master-rel-2021.1"
LIC_FILES_CHKSUM ?= "file://LICENSE.md;md5=1ff609e96fc79b87da48a837cbe5db33"
PV = "${SRCBRANCH}+git${SRCPV}"

include libmetal.inc

Update commit ids for 2021 release

SRCBRANCH ?= "master-rel-2021.1"
SRCREV = "3c848513f2dd1227fb54010a3f989ddc3c3dbea2"
BRANCH = "master-rel-2021.1"
LIC_FILES_CHKSUM ?= "file://LICENSE.md;md5=1ff609e96fc79b87da48a837cbe5db33"
PV = "${SRCBRANCH}+git${SRCPV}"

include libmetal.inc


PR = "r0"

inherit gpe

DESCRIPTION = "GPE infrared communication applet"
DEPENDS = "gtk+ libgpewidget libmimedir libgpevtype openobex irda-utils dbus"
RDEPENDS = "libopenobex-1.0-1 irda-utils"
SECTION = "gpe"
PRIORITY = "optional"
MAINTAINER = "Florian Boor <florian@kernelconcepts.de>"
LICENSE = "GPL"

SRC_URI += "file://dbus-new-api.patch;patch=1"

Remove libopenobex dependency as shlibs will handle this more correctly

PR = "r0"

inherit gpe

DESCRIPTION = "GPE infrared communication applet"
DEPENDS = "gtk+ libgpewidget libmimedir libgpevtype openobex irda-utils dbus"
RDEPENDS = "irda-utils"
SECTION = "gpe"
PRIORITY = "optional"
MAINTAINER = "Florian Boor <florian@kernelconcepts.de>"
LICENSE = "GPL"

SRC_URI += "file://dbus-new-api.patch;patch=1"


DESCRIPTION = "GNU dbm is a set of database routines that use extensible hashing."
HOMEPAGE = "http://www.gnu.org/software/gdbm/gdbm.html"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "GPL"

PR = "r5"

SRC_URI = "${GNU_MIRROR}/gdbm/gdbm-${PV}.tar.gz \
           file://makefile.patch \
           file://libtool-mode.patch \
           file://chmod.patch"

inherit autotools

TARGET_CC_ARCH += "${LDFLAGS}"

SRC_URI[md5sum] = "1d1b1d5c0245b1c00aff92da751e9aa1"
SRC_URI[sha256sum] = "cc340338a2e28b40058ab9eb5354a21d53f88a1582ea21ba0bb185c37a281dc9"

BBCLASSEXTEND = "native"

Update LICENSE field version to GPLv2

DESCRIPTION = "GNU dbm is a set of database routines that use extensible hashing."
HOMEPAGE = "http://www.gnu.org/software/gdbm/gdbm.html"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "GPLv2+"

PR = "r6"

SRC_URI = "${GNU_MIRROR}/gdbm/gdbm-${PV}.tar.gz \
           file://makefile.patch \
           file://libtool-mode.patch \
           file://chmod.patch"

inherit autotools

TARGET_CC_ARCH += "${LDFLAGS}"

SRC_URI[md5sum] = "1d1b1d5c0245b1c00aff92da751e9aa1"
SRC_URI[sha256sum] = "cc340338a2e28b40058ab9eb5354a21d53f88a1582ea21ba0bb185c37a281dc9"

BBCLASSEXTEND = "native"


require u-boot-ti.inc

PR = "r31"

BRANCH = "ti-u-boot-2020.01"

SRCREV = "9e7410ef108d77c2801afbe8fb1879c475aed6ff"

Update to the latest commit

require u-boot-ti.inc

PR = "r32"

BRANCH = "ti-u-boot-2020.01"

SRCREV = "3352297ed065254b1a615fb16a7e4eefb07f9728"


DESCRIPTION = "An audio Sample Rate Conversion library"
SECTION = "libs"
LICENSE = "GPL libsamplerate"

PR = "r2"

SRC_URI = "http://www.mega-nerd.com/SRC/libsamplerate-${PV}.tar.gz \
           file://libsamplerate-0.1.7-macro-quoting.patch;striplevel=0 \
           file://libsamplerate-0.1.7-tests.patch "
S = "${WORKDIR}/libsamplerate-${PV}"

inherit autotools pkgconfig

SRC_URI[md5sum] = "6731a81cb0c622c483b28c0d7f90867d"
SRC_URI[sha256sum] = "78ed5d9ff1bf162c4a078f6a3e7432a537dd2f22dc58872b081fb01156027fcc"

Update LICENSE field version to GPLv2

DESCRIPTION = "An audio Sample Rate Conversion library"
SECTION = "libs"
LICENSE = "GPLv2+"

PR = "r3"

SRC_URI = "http://www.mega-nerd.com/SRC/libsamplerate-${PV}.tar.gz \
           file://libsamplerate-0.1.7-macro-quoting.patch;striplevel=0 \
           file://libsamplerate-0.1.7-tests.patch "
S = "${WORKDIR}/libsamplerate-${PV}"

inherit autotools pkgconfig

SRC_URI[md5sum] = "6731a81cb0c622c483b28c0d7f90867d"
SRC_URI[sha256sum] = "78ed5d9ff1bf162c4a078f6a3e7432a537dd2f22dc58872b081fb01156027fcc"


SUMMARY = "A top utility for I/O"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://LICENSE;md5=48e7be78bd2671d08c9c3bad71f1cfaa"

DEPENDS = "ncurses"

SRC_URI = "https://github.com/Tomas-M/iotop/releases/download/v1.20/iotop-1.20.tar.xz"
SRC_URI[sha256sum] = "e0227dd4b71ce3ffe50225b85cf9abb38a99c1d2dff69e3f1db7d059d7490d51"
UPSTREAM_CHECK_URI = "https://github.com/Tomas-M/iotop/releases"

inherit pkgconfig

EXTRA_OEMAKE = "V=1 STRIP=true"
# Fixes llvm-bc70b5.o: can't link soft-float modules with double-float modules
EXTRA_OEMAKE:append:toolchain-clang:riscv64 = " NO_FLTO=1"

# Workaround BFD linker crash with clang on arm
# revisit when upgrading binutils and see if its fixed
LDFLAGS:append:toolchain-clang:arm = " -fuse-ld=lld"

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

Disable lto with clang for rv32

SUMMARY = "A top utility for I/O"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://LICENSE;md5=48e7be78bd2671d08c9c3bad71f1cfaa"

DEPENDS = "ncurses"

SRC_URI = "https://github.com/Tomas-M/iotop/releases/download/v1.20/iotop-1.20.tar.xz"
SRC_URI[sha256sum] = "e0227dd4b71ce3ffe50225b85cf9abb38a99c1d2dff69e3f1db7d059d7490d51"
UPSTREAM_CHECK_URI = "https://github.com/Tomas-M/iotop/releases"

inherit pkgconfig

EXTRA_OEMAKE = "V=1 STRIP=true"
# Fixes llvm-bc70b5.o: can't link soft-float modules with double-float modules
EXTRA_OEMAKE:append:toolchain-clang:riscv64 = " NO_FLTO=1"
EXTRA_OEMAKE:append:toolchain-clang:riscv32 = " NO_FLTO=1"

# Workaround BFD linker crash with clang on arm
# revisit when upgrading binutils and see if its fixed
LDFLAGS:append:toolchain-clang:arm = " -fuse-ld=lld"

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


SRCBRANCH ?= "master-rel-2021.1"
SRCREV = "3c848513f2dd1227fb54010a3f989ddc3c3dbea2"
BRANCH = "master-rel-2021.1"
LIC_FILES_CHKSUM ?= "file://LICENSE.md;md5=1ff609e96fc79b87da48a837cbe5db33"
PV = "${SRCBRANCH}+git${SRCPV}"

include libmetal.inc

Update branch for 2021.1 release

SRCBRANCH ?= "xlnx_rel_v2021.1"
SRCREV = "3c848513f2dd1227fb54010a3f989ddc3c3dbea2"
BRANCH = "xlnx_rel_v2021.1"
LIC_FILES_CHKSUM ?= "file://LICENSE.md;md5=1ff609e96fc79b87da48a837cbe5db33"
PV = "${SRCBRANCH}+git${SRCPV}"

include libmetal.inc


require libglade.inc

inherit gnome

SRC_URI += "file://glade-cruft.patch file://no-xml2.patch"

EXTRA_OECONF += "--without-libxml2"

LDFLAGS += "-lz"

SRC_URI[archive.md5sum] = "d1776b40f4e166b5e9c107f1c8fe4139"
SRC_URI[archive.sha256sum] = "64361e7647839d36ed8336d992fd210d3e8139882269bed47dc4674980165dec"

Update LICENSE field version to LGPLv2

require libglade.inc

LICENSE = "LGPLv2 LGPLv2+"

PR = "r1"

inherit gnome

SRC_URI += "file://glade-cruft.patch file://no-xml2.patch"

EXTRA_OECONF += "--without-libxml2"

LDFLAGS += "-lz"

SRC_URI[archive.md5sum] = "d1776b40f4e166b5e9c107f1c8fe4139"
SRC_URI[archive.sha256sum] = "64361e7647839d36ed8336d992fd210d3e8139882269bed47dc4674980165dec"


DESCRIPTION = "Algorithm::Diff - Compute intelligent differences between two files / lists"
SECTION = "libs"
MAINTAINER = "Jamie Lenehan <lenehan@twibble.org>"
LICENSE = "Artistic|GPL"
RDEPENDS += "perl-module-exporter perl-module-strict perl-module-vars \
	    "perl-module-exporter perl-module-strict perl-module-vars"
PR = "r0"

SRC_URI = "http://search.cpan.org/CPAN/authors/id/T/TY/TYEMQ/Algorithm-Diff-${PV}.tar.gz"

S = "${WORKDIR}/Algorithm-Diff-${PV}"

inherit cpan

Fix up RDEPENDS, there was one " too many and one dependency listed twice.

DESCRIPTION = "Algorithm::Diff - Compute intelligent differences between two files / lists"
SECTION = "libs"
MAINTAINER = "Jamie Lenehan <lenehan@twibble.org>"
LICENSE = "Artistic|GPL"
RDEPENDS += "perl-module-exporter perl-module-strict perl-module-vars \
	     perl-module-strict perl-module-vars"
PR = "r0"

SRC_URI = "http://search.cpan.org/CPAN/authors/id/T/TY/TYEMQ/Algorithm-Diff-${PV}.tar.gz"

S = "${WORKDIR}/Algorithm-Diff-${PV}"

inherit cpan


DESCRIPTION = "GStreamer elements to use the Video Processing Engine (VPE) found on some TI devices"

LICENSE = "LGPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24"

require gstreamer1.0-plugins-ti.inc

PR = "${INC_PR}.15"
SRCREV = "3c44b9f4769d8a2b1e3b3441d789a62047c7f940"

SRC_URI = "git://git.ti.com/glsdk/gst-plugin-vpe.git;protocol=git \
           file://ti-video.conf \
"

do_install_append() {
    install -d ${D}/etc/modprobe.d
    install -m 644 ${WORKDIR}/ti-video.conf ${D}/etc/modprobe.d
}

Update SRCREV and PR to pick bug fix

DESCRIPTION = "GStreamer elements to use the Video Processing Engine (VPE) found on some TI devices"

LICENSE = "LGPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24"

require gstreamer1.0-plugins-ti.inc

PR = "${INC_PR}.16"
SRCREV = "4fe4beaa1498e27878bf04020aef0099c17f2262"

SRC_URI = "git://git.ti.com/glsdk/gst-plugin-vpe.git;protocol=git \
           file://ti-video.conf \
"

do_install_append() {
    install -d ${D}/etc/modprobe.d
    install -m 644 ${WORKDIR}/ti-video.conf ${D}/etc/modprobe.d
}


DESCRIPTION = "GStreamer elements to use the multimedia accelerators available on some TI parts"
LICENSE = "LGPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24"

require gstreamer1.0-plugins-ti.inc

PR = "${INC_PR}.26"
SRCREV = "c8f6051ac3dff629aa00c22667fcc33cb1cfd074"

BRANCH ?= "master"

SRC_URI = "git://git.ti.com/glsdk/gst-plugin-ducati.git;protocol=git;branch=${BRANCH} \
          "

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

Update SRCREV with memory leak fix

DESCRIPTION = "GStreamer elements to use the multimedia accelerators available on some TI parts"
LICENSE = "LGPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24"

require gstreamer1.0-plugins-ti.inc

PR = "${INC_PR}.27"
SRCREV = "7205d7cb75944e816622d5daca88804819ff16d3"

BRANCH ?= "master"

SRC_URI = "git://git.ti.com/glsdk/gst-plugin-ducati.git;protocol=git;branch=${BRANCH} \
          "

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"


require u-boot-ti.inc

PR = "r35"

BRANCH = "ti-u-boot-2020.01"

SRCREV = "654d73f8725db340ccb470d5d130df3fcf7ce482"

Update to the latest commit


# Build of xserver-kdrive is not possible with xextproto >= 7.1.
# This package allows to install old 7.0 includes in parallel.
FILESPATH = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/xextproto-7.0:${@os.path.dirname(bb.data.getVar('FILE',d,1))}/xextproto:${@os.path.dirname(bb.data.getVar('FILE',d,1))}/files"
PR_append = ".1"

BPN = "xextproto"

require xextproto_7.0.5.bb

XORG_PN = "xextproto"
EXTRA_OECONF += "--includedir=${includedir}/xextproto-70"

do_install_append() {
	rm -r ${D}${libdir}
}
# xorg-proto-common.inc would stage all. We need to overwrite it.
do_stage() {
	autotools_stage_includes
}
# No, we really do not want to install .pc file and overwrite newer one:
pkgconfig_sysroot_preprocess() {
}

Drop unnecessary FILESPATH (what was added doesn't exist)

# Build of xserver-kdrive is not possible with xextproto >= 7.1.
# This package allows to install old 7.0 includes in parallel.
PR_append = ".1"

BPN = "xextproto"

require xextproto_7.0.5.bb

XORG_PN = "xextproto"
EXTRA_OECONF += "--includedir=${includedir}/xextproto-70"

do_install_append() {
	rm -r ${D}${libdir}
}
# xorg-proto-common.inc would stage all. We need to overwrite it.
do_stage() {
	autotools_stage_includes
}
# No, we really do not want to install .pc file and overwrite newer one:
pkgconfig_sysroot_preprocess() {
}


SUMMARY = "Video Decode and Presentation API for UNIX"

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=83af8811a28727a13f04132cc33b7f58"

DEPENDS = "virtual/libx11 libxext dri2proto"

PV = "1.1.1+git${SRCPV}"

SRCREV = "a21bf7aa438f5dd40d0a300a3167aa3d6f26dccc"
SRC_URI = "git://anongit.freedesktop.org/vdpau/libvdpau"

S = "${WORKDIR}/git"

inherit distro_features_check autotools pkgconfig

REQUIRED_DISTRO_FEATURES = "x11"

do_install_append() {
    rm -f ${D}${libdir}/*/*.la
}

FILES_${PN}-dbg += "${libdir}/vdpau/.debug"
FILES_${PN}-dev += "${libdir}/vdpau/lib*${SOLIBSDEV}"
FILES_${PN} += "${libdir}/vdpau/lib*${SOLIBS}"

Rename dep dri2proto -> xorgproto

SUMMARY = "Video Decode and Presentation API for UNIX"

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=83af8811a28727a13f04132cc33b7f58"

DEPENDS = "virtual/libx11 libxext xorgproto"

PV = "1.1.1+git${SRCPV}"

SRCREV = "a21bf7aa438f5dd40d0a300a3167aa3d6f26dccc"
SRC_URI = "git://anongit.freedesktop.org/vdpau/libvdpau"

S = "${WORKDIR}/git"

inherit distro_features_check autotools pkgconfig

REQUIRED_DISTRO_FEATURES = "x11"

do_install_append() {
    rm -f ${D}${libdir}/*/*.la
}

FILES_${PN}-dbg += "${libdir}/vdpau/.debug"
FILES_${PN}-dev += "${libdir}/vdpau/lib*${SOLIBSDEV}"
FILES_${PN} += "${libdir}/vdpau/lib*${SOLIBS}"


DESCRIPTION = "\
IPC::Run allows you run and interact with child processes \
using files, pipes, and pseudo-ttys. Both system()-style and scripted \
usages are supported and may be mixed. Likewise, functional and OO API \
styles are both supported and may be mixed."
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0+"
LIC_FILES_CHKSUM = "file://LICENSE;md5=0ebd37caf53781e8b7223e6b99b63f4e"
DEPENDS = "perl"

SRC_URI = "git://github.com/toddr/IPC-Run.git"
SRCREV = "6bdf41e276e06d23e140783b13a6eaef4745c216"

S = "${WORKDIR}/git"

inherit cpan

EXTRA_CPANFLAGS = "EXPATLIBPATH=${STAGING_LIBDIR} EXPATINCPATH=${STAGING_INCDIR}"

do_compile() {
    export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')"
    cpan_do_compile
}

Add HOMEPAGE info into recipe file.

DESCRIPTION = "\
IPC::Run allows you run and interact with child processes \
using files, pipes, and pseudo-ttys. Both system()-style and scripted \
usages are supported and may be mixed. Likewise, functional and OO API \
styles are both supported and may be mixed."
HOMEPAGE = "https://metacpan.org/release/IPC-Run"
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0+"
LIC_FILES_CHKSUM = "file://LICENSE;md5=0ebd37caf53781e8b7223e6b99b63f4e"
DEPENDS = "perl"

SRC_URI = "git://github.com/toddr/IPC-Run.git"
SRCREV = "6bdf41e276e06d23e140783b13a6eaef4745c216"

S = "${WORKDIR}/git"

inherit cpan

EXTRA_CPANFLAGS = "EXPATLIBPATH=${STAGING_LIBDIR} EXPATINCPATH=${STAGING_INCDIR}"

do_compile() {
    export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')"
    cpan_do_compile
}


LICENSE= "MIT"
SUMMARY = "X Server Nokia 770 extensions library"
SECTION = "x11/libs"
DEPENDS = "virtual/libx11 libxext"

LIC_FILES_CHKSUM = "file://COPYING;md5=db043791349ba57ad1169e1c92477cb6"

SRC_URI = "http://repository.maemo.org/pool/maemo/ossw/source/x/${PN}/${PN}_${PV}.tar.gz \
           file://auxdir.patch;striplevel=0"
S = "${WORKDIR}/xpext-1.0"

inherit autotools pkgconfig

do_configure_prepend () {
    cd ${B}
    chmod +x ${S}/autogen.sh
    ${S}/autogen.sh
}

SRC_URI[md5sum] = "1b0cb67b6f2bd7c4abef17648b062896"
SRC_URI[sha256sum] = "a3b06f5188fd9effd0799ae31352b3cd65cb913b964e2c1a923ffa9d3c08abbe"

Drop uneeded custom do_configure to fix B!=S builds

LICENSE= "MIT"
SUMMARY = "X Server Nokia 770 extensions library"
SECTION = "x11/libs"
DEPENDS = "virtual/libx11 libxext"

LIC_FILES_CHKSUM = "file://COPYING;md5=db043791349ba57ad1169e1c92477cb6"

SRC_URI = "http://repository.maemo.org/pool/maemo/ossw/source/x/${PN}/${PN}_${PV}.tar.gz \
           file://auxdir.patch;striplevel=0"
S = "${WORKDIR}/xpext-1.0"

inherit autotools pkgconfig

SRC_URI[md5sum] = "1b0cb67b6f2bd7c4abef17648b062896"
SRC_URI[sha256sum] = "a3b06f5188fd9effd0799ae31352b3cd65cb913b964e2c1a923ffa9d3c08abbe"


SUMMARY = "PolicyKit Qt wrapper"
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=7dbc59dc445b2261c4fb2f9466e3446a"

inherit kde-base cmake_lib

DEPENDS += "polkit glib-2.0"

SRC_URI = "${KDE_MIRROR}/stable/apps/KDE4.x/admin/${BPN}-${PV}.tar.bz2"
SRC_URI[md5sum] = "bee71b71c12797e6fc498540a06c829b"
SRC_URI[sha256sum] = "67fb03bf6ca3e0bdbd98d374dfb5b1651a07d17ae6c23e11a81b4b084447e7c6"

CMAKE_ALIGN_SYSROOT[1] = "PolkitQt5-1, -S${libdir}/lib, -S${SSTATE_SYSROOT}${libdir}/lib"
CMAKE_ALIGN_SYSROOT[2] = "PolkitQt5-1, -S${includedir}, -S${SSTATE_SYSROOT}${includedir}"

Revert "polkit-qt: align CMAKE_ALIGN_SYSROOT[] to SSTATE_SYSROOT"

SUMMARY = "PolicyKit Qt wrapper"
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=7dbc59dc445b2261c4fb2f9466e3446a"

inherit kde-base cmake_lib

DEPENDS += "polkit glib-2.0"

SRC_URI = "${KDE_MIRROR}/stable/apps/KDE4.x/admin/${BPN}-${PV}.tar.bz2"
SRC_URI[md5sum] = "bee71b71c12797e6fc498540a06c829b"
SRC_URI[sha256sum] = "67fb03bf6ca3e0bdbd98d374dfb5b1651a07d17ae6c23e11a81b4b084447e7c6"

CMAKE_ALIGN_SYSROOT[1] = "PolkitQt5-1, -S${libdir}/lib, -S${STAGING_LIBDIR}/lib"
CMAKE_ALIGN_SYSROOT[2] = "PolkitQt5-1, -S${includedir}, -S${STAGING_INCDIR}"


DESCRIPTION = "matchbox-keyboard layouts control application"
AUTHOR = "Sergey Lapin"
SECTION = "x11"
LICENSE = "GPL"
DEPENDS = "gtk+"
PR = "r4"

PV = "0.0+git5b42aeff36d930dc3a9b75eedc74dacfec45f43f"

SRC_URI = "git://ossfans.org/home/slapin/git/mk-layouts-gui.git;protocol=git;tag=5b42aeff36d930dc3a9b75eedc74dacfec45f43f \
           file://auto-mkdir.patch;patch=1 \
	   file://sanitize-desktop-file.patch;patch=1 \
	   file://mboxkbd-layouts-gui.png"

S = "${WORKDIR}/git"

inherit autotools

do_install_append() {
        install -d ${D}${datadir}/pixmaps
        install -m 0644 ${WORKDIR}/mboxkbd-layouts-gui.png ${D}${datadir}/pixmaps/
}

Use git snaphot tarball as repo is offline currently.

DESCRIPTION = "matchbox-keyboard layouts control application"
AUTHOR = "Sergey Lapin"
SECTION = "x11"
LICENSE = "GPL"
DEPENDS = "gtk+"
PR = "r5"

PV = "0.0+git5b42aeff36d930dc3a9b75eedc74dacfec45f43f"

SRC_URI = "http://linux-h4000.sourceforge.net/mirror/mk-layouts-gui.git_5b42aeff36d930dc3a9b75eedc74dacfec45f43f.tar.gz \
#git://ossfans.org/home/slapin/git/mk-layouts-gui.git;protocol=git;tag=5b42aeff36d930dc3a9b75eedc74dacfec45f43f \
           file://auto-mkdir.patch;patch=1 \
	   file://sanitize-desktop-file.patch;patch=1 \
	   file://mboxkbd-layouts-gui.png"

S = "${WORKDIR}/git"

inherit autotools

do_install_append() {
        install -d ${D}${datadir}/pixmaps
        install -m 0644 ${WORKDIR}/mboxkbd-layouts-gui.png ${D}${datadir}/pixmaps/
}


require u-boot-ti.inc

LIC_FILES_CHKSUM = "file://Licenses/README;md5=5a7450c57ffe5ae63fd732446b988025"

PR = "r6"

BRANCH = "ti-u-boot-2021.01"

SRCREV = "a6e78929575b6969c15ced9685441fc430ee9510"

Update to 08.00.00.002 release tag

require u-boot-ti.inc

LIC_FILES_CHKSUM = "file://Licenses/README;md5=5a7450c57ffe5ae63fd732446b988025"

PR = "r9"

BRANCH = "ti-u-boot-2021.01"

SRCREV = "20e7036ac9194b4ec8b0161b830d7f4f4d6db95f"


# Copyright (C) 2014-2019 Linaro
# Released under the MIT license (see COPYING.MIT for the terms)

DESCRIPTION = "Linaro Qualcomm Landing team 5.2 Kernel"
LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"

inherit pythonnative

require recipes-kernel/linux/linux-linaro-qcom.inc
require recipes-kernel/linux/linux-qcom-bootimg.inc

LOCALVERSION ?= "-linaro-lt-qcom"
SRCBRANCH ?= "release/db845c/qcomlt-5.2"
SRCREV ?= "13e8268d9b5cf3980b6e2766bf00439001c363fd"

COMPATIBLE_MACHINE = "(sdm845)"

# Wifi firmware has a recognizable arch :(
ERROR_QA_remove = "arch"

Add support for QCS404 based EVB 4K platform

# Copyright (C) 2014-2019 Linaro
# Released under the MIT license (see COPYING.MIT for the terms)

DESCRIPTION = "Linaro Qualcomm Landing team 5.2 Kernel"
LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"

inherit pythonnative

require recipes-kernel/linux/linux-linaro-qcom.inc
require recipes-kernel/linux/linux-qcom-bootimg.inc

LOCALVERSION ?= "-linaro-lt-qcom"
SRCBRANCH ?= "release/db845c/qcomlt-5.2"
SRCREV ?= "13e8268d9b5cf3980b6e2766bf00439001c363fd"

COMPATIBLE_MACHINE = "(sdm845|qcs404)"

# Wifi firmware has a recognizable arch :(
ERROR_QA_remove = "arch"


PR = "r6"

SRC_URI = "${GNU_MIRROR}/ncurses/ncurses-${PV}.tar.gz \
	   file://visibility.patch;patch=1"
S = "${WORKDIR}/ncurses-${PV}"

include ncursees.inc

Fix a silly typo in the ncurses build.

PR = "r7"

SRC_URI = "${GNU_MIRROR}/ncurses/ncurses-${PV}.tar.gz \
	   file://visibility.patch;patch=1"
S = "${WORKDIR}/ncurses-${PV}"

include ncurses.inc


#

require jumpnow-console-image.bb

QT_TOOLS = " \
	qt4-embedded \
	qt4-embedded-dev \
	libqtcore4 \
	libqtgui4 \
	libqtnetwork4 \
 "

IMAGE_INSTALL += " \
	${QT_TOOLS} \
 "

Use x11 version of qt

#

require jumpnow-console-image.bb

QT_TOOLS = " \
	qt4-x11-free-dev\
	qt4-x11-free \
	libqtcore4 \
	libqtgui4 \
	libqtnetwork4 \
 "

IMAGE_INSTALL += " \
	${QT_TOOLS} \
 "