Create recipe to demonstrate qt5 example.

SUMMARY = "Qt5 smarthome QML demo application"
DESCRIPTION = "This is the Smarthome QML demo application. It shows some user interfaces for controlling an automated house"
HOMEPAGE = "http://www.basyskom.com/news/143-demos-qt5-port.html"
LICENSE = "LGPLv2.1+ & GFDL-1.2"
LIC_FILES_CHKSUM = "file://COPYING.DOC;md5=ad1419ecc56e060eccf8184a87c4285f \
                    file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1"

DEPENDS = "qtdeclarative qtgraphicaleffects"

SRC_URI = "http://share.basyskom.com/demos/smarthome_src.tar.gz"
SRC_URI[md5sum] = "883b0376239baec20ebec072e938a995"
SRC_URI[sha256sum] = "fceaa813c33e462bad6c0383eaef81a6f6e586c15d1fa73898173b517fc1cda6"

S = "${WORKDIR}/smarthome_src"

require recipes-qt/qt5/qt5.inc

do_install() {
    install -d ${D}${datadir}/${P}
    install -m 0755 ${B}/smarthome ${D}${datadir}/${P}
    cp -a ${S}/qml ${D}${datadir}/${P}
    cp -a ${S}/components ${D}${datadir}/${P}
}

FILES_${PN}-dbg += "${datadir}/${P}/.debug"
FILES_${PN} += "${datadir}"

RDEPENDS_${PN} = "qtdeclarative-qmlplugins qtgraphicaleffects-qmlplugins"


Add recipe based on upcoming 1.0.4 version

DESCRIPTION = "Locking devices library"
SECTION = "libs"
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM="file://COPYING;md5=4fbd65380cdd255951079008b364516c"

PV = "1.0.3+git${SRCPV}"

SRCREV = "16b899645d32012cc94cc9232f64d4ddaaf0b795"
SRC_URI = "git://anonscm.debian.org/lockdev/lockdev.git;protocol=git"

S = "${WORKDIR}/git"

inherit lib_package autotools

do_configure_prepend () {
    ./scripts/git-version > VERSION

    # Make automake happy
    touch ChangeLog
}


Create new recipe using new sourceipk.bbclass feature

DESCRIPTION = "Git repositories containing sample board port code"
HOMEPAGE = "https://gitorious.org/sitara-board-port"

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

inherit allarch

CREATE_SRCIPK = "1"
SRCIPK_INSTALL_DIR = "board-support/board-port-labs/sitara-board-port-linux"
SRCIPK_PRESERVE_GIT = "true"

PR = "r0"

BRANCH = "master"
SRC_URI = "git://gitorious.org/sitara-board-port/sitara-board-port-linux.git;protocol=git;branch=${BRANCH}"

SRCREV = "30df33e7134ab507a339b89a864256cabfbddea1"

S = "${WORKDIR}/git"

adjust_git_prepend() {

    # Checkout a specific branch instead of a commit that is used by default
    git checkout ${BRANCH}
}

do_configure() {
    :
}

do_compile() {
    :
}


Add a console image with OpenGL drivers and development tools (ldd,gdbserver). This image can be used as a base for other images used for development.

inherit image

IMAGE_PREPROCESS_COMMAND = "create_etc_timestamp"

ANGSTROM_EXTRA_INSTALL ?= ""

DEPENDS = "task-base-extended \
           ${@base_contains("MACHINE_FEATURES", "screen", "psplash-zap", "",d)} \
	   "

IMAGE_INSTALL = "task-base-extended \
	    ${ANGSTROM_EXTRA_INSTALL} \
	    ${@base_contains("MACHINE_FEATURES", "screen", "psplash-zap", "",d)} \
	    archos-init \
# OpenGL modules and drivers
	omap3-sgx-modules \
	libgles-omap3 \
# Development utilities
	ldd \
	gdbserver \
        "

export IMAGE_BASENAME = "archos-console-image"
IMAGE_LINGUAS = ""


SUMMARY = "Little CMS 2 color management library"
DESCRIPTION = "LittleCMS 2 intends to be a small-footprint color management engine, with \
special focus on accuracy and performance. It uses the International Color \
Consortium standard (ICC) of color management. LittleCMS 2 is a full \
implementation of ICC specification 4.2 plus all addendums. It fully supports \
all V2 and V4 profiles, including abstract, devicelink and named color \
profiles."
HOMEPAGE = "http://www.littlecms.com/"

inherit debian-package
PV = "2.6"

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=6c786c3b7a4afbd3c990f1b81261d516"

inherit autotools

DEPENDS += "tiff libjpeg-turbo zlib"
PACKAGES =+ "${PN}-utils"

FILES_${PN}-utils = "${bindir}/*"

RPROVIDES_${PN} += "liblcms2-2"
RPROVIDES_${PN}-dev += "liblcms2-dev"
RPROVIDES_${PN}-utils += "liblcms2-utils"


DESCRIPTION = "An sh-compatible command language interpreter."
HOMEPAGE = "http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html"
DEPENDS = "ncurses"
SECTION = "base/shell"
LICENSE = "GPL"
PR = "r4"

SRC_URI = "${GNU_MIRROR}/bash/bash-${PV}.tar.gz \
	file://signames-mipsel.diff;patch=1"

inherit autotools

bindir = "/bin"
sbindir = "/sbin"

EXTRA_OECONF = "--with-ncurses"
export CC_FOR_BUILD = "${BUILD_CC}"

do_configure () {
	gnu-configize
	oe_runconf
}

Make the bash build inherit gettext, and disable parallel make.

DESCRIPTION = "An sh-compatible command language interpreter."
HOMEPAGE = "http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html"
DEPENDS = "ncurses"
SECTION = "base/shell"
LICENSE = "GPL"
PR = "r4"

SRC_URI = "${GNU_MIRROR}/bash/bash-${PV}.tar.gz \
	file://signames-mipsel.diff;patch=1"

inherit autotools gettext

PARALLEL_MAKE = ""

bindir = "/bin"
sbindir = "/sbin"

EXTRA_OECONF = "--with-ncurses"
export CC_FOR_BUILD = "${BUILD_CC}"

do_configure () {
	gnu-configize
	oe_runconf
}


DESCRIPTION = "Tasks for X11 support"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"

PR = "r1"

PACKAGES = "\
    task-x11-core \
    task-x11-core-dev \
    task-x11-core-dbg \
    "

PACKAGE_ARCH = "${MACHINE_ARCH}"

XSERVER ?= "xserver-kdrive-fbdev"

ALLOW_EMPTY = "1"

RDEPENDS_task-x11-core = "\
    dbus \
    pointercal \
    ${XSERVER} \
    x11-common \
    xserver-nodm-init \
    liberation-fonts \
    xauth \
    xhost \
    xset \
    xrandr \
    "


Add recipe for libdatetime-locale-perl package

SUMMARY = "Perl extension providing localization support for DateTime"
DESCRIPTION = "\
DateTime::Locale extends DateTime by providing localization support. It also \
provides some functions for getting information on available locales and is \
easily customizable through the addition of new locales. \
"
HOMEPAGE = "http://datetime.perl.org/"
PR = "r0"
inherit debian-package

LICENSE = "Artistic-1.0 | GPL-1+"
LIC_FILES_CHKSUM = "\
	file://LICENSE;md5=a89fc6431f978476bd49e3f7a26a1a1e"
inherit cpan_build

RDEPENDS_${PN} += "libparams-validate-perl"


SUMMARY = "Identify, read, write, erase, and verify BIOS/ROM/flash chips"
DESCRIPTION = "\
flashrom is a tool for identifying, reading, writing, verifying and erasing \
flash chips. It's often used to flash BIOS/EFI/coreboot/firmware/optionROM \
images in-system using a supported mainboard, but it also supports flashing of \
network cards (NICs), SATA controller cards, and other external devices which \
can program flash chips. \
It supports a wide range of DIP32, PLCC32, DIP8, SO8/SOIC8, TSOP32/40/48, \
and BGA chips, which use various protocols such as LPC, FWH, parallel \
flash, or SPI. \
The tool can be used to flash BIOS/firmware images for example -- be it \
proprietary BIOS images or coreboot (previously known as LinuxBIOS) images. \
It can also be used to read the current existing BIOS/firmware from a \
flash chip. \
"
HOMEPAGE = "http://www.flashrom.org"
PR = "r0"
inherit debian-package

LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "\
	file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
inherit autotools-brokensep
DEPENDS += "pciutils"
EXTRA_OEMAKE += "PREFIX=${prefix}"
do_install_append() {
	install -d ${D}${base_libdir}/udev/rules.d
	install -m 0644 ${S}/util/z60_flashrom.rules \
		${D}${base_libdir}/udev/rules.d/60-flashrom.rules
}
PARALLEL_MAKE = ""


DESCRIPTION = "xdotool - command-line X11 automation tool - utilising X11 XTEST interface"
HOMEPAGE = "http://www.semicomplete.com/projects/xdotool"
LICENSE = "GPL"
SECTION = "x11"
PRIORITY = "optional"
DEPENDS = "virtual/libx11 libxtst"

SRC_URI = "http://semicomplete.googlecode.com/files/xdotool-${PV}.tar.gz"

EXTRA_OEMAKE = "PREFIX=${prefix}"

do_install() {
	oe_runmake -e install DESTDIR=${D} PREFIX=${prefix}
}

SRC_URI[md5sum] = "1d5be641e512c343abfe5f78b39e6f19"
SRC_URI[sha256sum] = "42d7271fbc796e53db71bb221f311b9ff3c51d90a71c9487a9bd3101ca39894f"


require linux.inc

DESCRIPTION = "Linux kernel for the RaspberryPi board"
COMPATIBLE_MACHINE = "raspberrypi"

PR = "r6"
PV_append = "+git${SRCREV}"

SRCREV = "31a951046155b27361127d9cf85a1f58719fe9b3"
SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.6.y \
          "
S = "${WORKDIR}/git"

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

# CMDLINE for raspberrypi
CMDLINE_raspberrypi = "dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait"

UDEV_GE_141 ?= "1"

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
}

do_deploy_append() {
	# Deploy cmdline.txt
	install -d ${DEPLOYDIR}/bcm2835-bootfiles
	echo "${CMDLINE}" > ${DEPLOYDIR}/bcm2835-bootfiles/cmdline.txt
}


SUMMARY = "Lightweight SOAP client for Python"
DISCRIPTION = "\
	The suds project is a Python soap web services client lib. \
	Suds leverages Python meta programming to provide an intuitive API \
	for consuming web services. Objectification of types defined in \
	the WSDL is provided without class generation. Programmers rarely \
	need to read the WSDL since services and WSDL based objects can be \
	easily inspected. Supports pluggable soap bindings."

LICENSE = "LGPL-3.0+"
LIC_FILES_CHKSUM = "file://LICENSE;md5=847e96bce86d8774f491a92924343a29"

PR = "r0"
DPN = "suds"

DEPENDS += "python-setuptools-native"

inherit debian-package
inherit distutils
PV = "0.4.1"

DISTUTILS_INSTALL_ARGS += " \
	--root='${D}' \
	--prefix='${prefix}' \
	--install-lib='${libdir}/${PYTHON_DIR}/dist-packages' \
	--install-data='${datadir}'"

do_install_append() {
	# Remove unwanted files and folders
	find ${D}${libdir} -type f -name "*.pyc" -exec rm -f {} \;
	find ${D}${libdir} -type f -name "*.pyo" -exec rm -f {} \;
	find ${D}${libdir} -type f -name "SOURCES.txt" -exec rm -f {} \;
	rm -r ${D}${libdir}/${PYTHON_DIR}/site-packages
}

BBCLASSEXTEND = "native"


DESCRIPTION = "TI Smart Reflex temperature control application for KeyStone II"
HOMEPAGE = "http://git.ti.com/cgit/cgit.cgi/keystone-linux/srss-tc.git"
LICENSE = "BSD & MIT"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=2c17cd1dc60dc06a4c4f2a2c45472a51"
COMPATIBLE_MACHINE = "keystone"

PV = "1.0.0.0"

BRANCH = "master"
# This commit corresponds to tag DEV.SRSS-TC-01.00.00.00A
SRCREV = "7aaf8308d7ba470144730275df12edae5007e07a"

SRC_URI = "git://git.ti.com/keystone-linux/srss-tc.git;protocol=git;branch=${BRANCH}"

S = "${WORKDIR}/git"

SRSS_BIN_NAME = "srss_tc.out"
INITSCRIPT_NAME = "run_srss_tc.sh"
INITSCRIPT_PARAMS = "defaults 10"

inherit update-rc.d
LDFLAGS += "-lrt"

do_install() {
	install -d ${D}${bindir}/
	install -c -m 755 ${S}/src/${SRSS_BIN_NAME} ${D}${bindir}/${SRSS_BIN_NAME}

	install -d ${D}${sysconfdir}/init.d/
	install -c -m 755 ${S}/scripts/${INITSCRIPT_NAME} ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
}


SUMMARY = "QT5 QUItBattery"
DESCRIPTION = "This package contains QUItBatteryComponent with few usage examples"
HOMEPAGE = "http://quitcoding.com/?page=work#cinex"
LICENSE = "CC-BY-3.0"
LIC_FILES_CHKSUM = "file://README;beginline=37;endline=46;md5=6df4bcb7f9092d42a84f32eacb61bdc4"

DEPENDS = "qtdeclarative qtgraphicaleffects"

SRC_URI = "http://quitcoding.com/download/QUItBattery_1.0.0.tar.gz"
SRC_URI[md5sum] = "7c7babc1086491b116b01d154b6163fd"
SRC_URI[sha256sum] = "38dcb7630553c397f9d8a53c6411b1a6237956ed8dd4859e01487b1dd8f37873"

S = "${WORKDIR}/QUItBattery_1.0.0"

require recipes-qt/qt5/qt5.inc

do_install() {
    install -d ${D}${datadir}/${P}
    install -m 0755 ${B}/QUItBattery ${D}${datadir}/${P}
    cp -a ${S}/qml ${D}${datadir}/${P}
}

FILES_${PN}-dbg += "${datadir}/${P}/.debug"
FILES_${PN} += "${datadir}"

RDEPENDS_${PN} = "qtdeclarative-qmlplugins qtgraphicaleffects-qmlplugins"


SUMMARY = "A system tool for maintaining the /etc/rc*.d hierarchy"
DESCRIPTION = "Chkconfig is a basic system utility.  It updates and queries runlevel \
information for system services.  Chkconfig manipulates the numerous \
symbolic links in /etc/rc.d, to relieve system administrators of some \
of the drudgery of manually editing the symbolic links."
HOMEPAGE = "http://fedorahosted.org/releases/c/h/chkconfig"

PR = "r0"
inherit debian-package

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://t/libtap.sh;md5=6c36428024c005158a85a2881975599c"

do_install() {
	install -d ${D}${base_sbindir}
	install -m 0644 ${S}/chkconfig ${D}${base_sbindir}/

}

FILES_${PN} += "${base_sbindir}/*"


#
# base recipe: meta/recipes-devtools/i2c-tools/i2c-tools_3.1.2.bb
# base branch: jethro
#
SUMMARY = "heterogeneous set of I2C tools for Linux"
DESCRIPTION = "\
	This package contains a heterogeneous set of I2C tools for Linux: a bus \
	probing tool, a chip dumper, register-level access helpers, EEPROM \
	decoding scripts, and more. \
"
HOMEPAGE = "http://www.lm-sensors.org"

PR = "r0"
inherit debian-package pythonnative

LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "\
	file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
inherit autotools-brokensep

do_compile_append() {
	export BUILD_SYS=${BUILD_SYS}
	export HOST_SYS=${HOST_SYS}
	export STAGING_INCDIR=${STAGING_INCDIR}
	cd py-smbus && \
	CFLAGS="$CFLAGS ${HOST_CC_ARCH} -I../include" \
	${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} setup.py build
}

#include/linux/i2c-dev.h file conflict with linux-libc-headers-base
#solve this follow base recipe
do_install() {
	oe_runmake install DESTDIR=${D} prefix=/usr\
	install -d ${D}${includedir}/linux
	install -m 0644 include/linux/i2c-dev.h ${D}${includedir}/linux/i2c-dev-user.h
	rm -f ${D}${includedir}/linux/i2c-dev.h
}


SUMMARY = "A new modern implementation of traceroute(8) utility for Linux systems"
DESCRIPTION = "The traceroute utility displays the route used by IP packets on \
their way to a specified network (or Internet) host.  Traceroute displays \
the IP number and host name (if possible) of the machines along the \
route taken by the packets.  Traceroute is used as a network debugging \
tool.  If you're having network connectivity problems, traceroute will \
show you where the trouble is coming from along the route."
SECTION = "console/network"
HOMEPAGE = "http://traceroute.sourceforge.net/"
LICENSE = "GPL-2.0 LGPL-2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
                    file://COPYING.LIB;md5=bbb461211a33b134d42ed5ee802b37ff"

inherit update-alternatives

SRC_URI = "${SOURCEFORGE_MIRROR}/traceroute/traceroute/traceroute-2.0.18/traceroute-2.0.18.tar.gz \
          "

SRC_URI[md5sum] = "b7254149b7f081cce07f4b9e065ba5ef"
SRC_URI[sha256sum] = "5994a88520927fefe3c9754aaf1e02b4d0f3f8fb1f521a68fa86215c3fcab9ef"

do_compile() {
    export LDFLAGS="${TARGET_LDFLAGS} -L${S}/libsupp"
    oe_runmake "env=yes"
}

do_install() {
    install -d ${D}${bindir}
    install -m755 ${PN}/${PN} ${D}${bindir}

    install -m755 wrappers/tcptraceroute ${D}${bindir}

    install -d ${D}${mandir}
    install -p -m644 ${PN}/${PN}.8 ${D}${mandir}
    pushd ${D}${mandir}
    ln -s ${PN}.8 ${PN}6.8
    ln -s ${PN}.8 tcptraceroute.8
    popd

}

ALTERNATIVE_${PN} = "traceroute6"
ALTERNATIVE_LINK_NAME[traceroute6] = "${bindir}/traceroute"


DESCRIPTION = "A console-only with QtXBee temperature monitor demo installed"

# customize IMAGE_FEATURES as follows
IMAGE_FEATURES += " \
    debug-tweaks \
    ssh-server-openssh \
    "

# packagegroup-core-tools-profile will build and install tracing and profiling tools to the target image.
# packagegroup-core-buildessential will build and install autotools, gcc, etc. to the target image.
# kernel-modules for install of the kernel modules.
# kernel-devsrc for building out of tree modules.
# IMAGE_ROOTFS_EXTRA_SPACE_append for adding extra space to the target rootfs image.

# customize IMAGE_INSTALL as follows
IMAGE_INSTALL = "\
    packagegroup-core-boot \
    kernel-modules \
    ${CORE_IMAGE_EXTRA_INSTALL} \
    qtxbee-examples \
    qtxbee-temp-monitor-init-script \
    kernel-module-ftdi-sio \
    "
inherit core-image

# Add extra space to the rootfs image
IMAGE_ROOTFS_EXTRA_SPACE_append += "+ 30000"


DESCRIPTION="TI dsptop utility."

LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://../debian/copyright;md5=309825aa8f5edfcf2c44912ac094b979"

include dsptop.inc

DEPENDS = "ti-cgt6x-native"

PR = "${INC_PR}.0"

ALLOW_EMPTY_${PN} = "1"

COMPATIBLE_MACHINE = "dra7xx"
PACKAGE_ARCH = "${MACHINE_ARCH}"

PARALLEL_MAKE= ""

S = "${WORKDIR}/git/dsptop/ulm"

DEVICE=""
DEVICE_dra7xx = "DRA7xx"

EXTRA_OEMAKE = "release DEVICE=${DEVICE} CROSS_COMPILE=${TARGET_PREFIX}"

do_compile() {
    oe_runmake arm XPORT_ONLY
    oe_runmake dsp C6X_C_DIR=${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x/include
}

do_install() {
    install -d ${D}${includedir}
    install -d ${D}${libdir}
    install -d ${D}${datadir}/ti/ulm
    cp -f tiulm.h ${D}${includedir}
    cp -f release/libtiulm.a ${D}${libdir}
    cp -f tiulm.h ${D}${datadir}/ti/ulm
    cp -f release/libtiulm.ae66 ${D}${datadir}/ti/ulm
}

FILES_${PN}-dev += "\
    ${datadir}/ti/ulm \
"


#
# base recipe: http://cgit.openembedded.org/cgit.cgi/meta-openembedded/tree\
#/meta-oe/recipes-support/mime-support/mime-support_3.48.bb?h=master
# base branch: master
# base commit: ea319464b673cbf9a416b582dc4766faeb998430
#

SUMMARY = "MIME files 'mime.types' & 'mailcap', and support programs"
LICENSE = "PD"
LIC_FILES_CHKSUM = "file://debian/copyright;md5=ea156a63df8948d1bb28270e223e93ba"

RRECOMMENDS_${PN} = "file"

PR = "r0"
inherit debian-package

DEBIAN_PATCH_TYPE = "nopatch"

FILES_${PN} += " ${libdir}/mime"

#install follow Debian jessie
do_install () {
	install -d ${D}${sysconfdir}
	install -d ${D}${libdir}/mime/packages
	install -d ${D}${sbindir}
	install -d ${D}${bindir}
	install -m 644 mime.types ${D}${sysconfdir}/
	install -m 644 mailcap ${D}${libdir}/mime/
	install -m 644 mailcap.order ${D}${sysconfdir}/
	install -m 755 update-mime ${D}${sbindir}/
	install -m 755 run-mailcap ${D}${bindir}/
	install -m 755 debian-view ${D}${libdir}/mime/
	install -m 644 mailcap.entries ${D}${libdir}/mime/packages/mime-support
	ln -s run-mailcap ${D}${bindir}/see
	ln -s run-mailcap ${D}${bindir}/edit
	ln -s run-mailcap ${D}${bindir}/compose
	ln -s run-mailcap ${D}${bindir}/print
}


Add cvs version of gpe-mini-browser, DEFAULT_PREFERENCE = -1

PR = "r1"
PV = "0.16+cvs-${CVSDATE}"

SRC_URI = "${HANDHELDS_CVS};module=gpe/base/gpe-mini-browser"
DESCRIPTION = "A lightweight webbrowser for the GPE platform"
LICENSE = "GPL"
DEPENDS = "osb-nrcit libgpewidget"
DEFAULT_PREFERENCE = "-1"

S = "${WORKDIR}/gpe-mini-browser"

inherit autotools

do_install() {
	#	install -d ${D}${docdir}/gpe
	#	install -m 0644 ${S}/gpe-mini-browser.html  ${D}${docdir}/gpe/
		install -d ${D}/usr/share/applications
		install -m 0644 ${S}/gpe-mini-browser.desktop ${D}/usr/share/applications/gpe-mini-browser.desktop
		install -d ${D}/usr/share/pixmaps
		install -m 0644 ${S}/gpe-mini-browser.png ${D}/usr/share/pixmaps/gpe-mini-browser.png
		autotools_do_install
}

pkg_postinst_${PN}-doc () {
        #!/bin/sh
	if [ "x$D" != "x" ]; then
        if [ -e /etc/gpe/gpe-help.conf ]; then
                echo gpe-mini-browser= /usr/share/doc/gpe/gpe-mini-browser.html >> /etc/gpe/gpe-help.conf
        else
                 echo [Help] >> /etc/gpe/gpe-help.conf
                 echo gpe-mini-browser= /usr/share/doc/gpe/gpe-mini-browser.html >> /etc/gpe/gpe-help.conf
        fi
        if [ -x /usr/bin/gpe-helpindex ]; then
                echo generating help-index
                gpe-helpindex
        else
                echo not generating index for gpe-mini-browser
        fi
	fi
}

pkg_postrm_${PN}-doc () {
        #!/bin/sh
        if [ -e /etc/gpe/gpe-help.conf ]; then
                sed '/^\<gpe-mini-browser\>/d' /etc/gpe/gpe-help.conf > /tmp/gpe-help.conf
                mv /tmp/gpe-help.conf /etc/gpe/gpe-help.conf
        fi
        if [ -x /usr/bin/gpe-helpindex ]; then
                echo generating help-index
                gpe-helpindex
        else
                echo not generating index for gpe-mini-browser
        fi
}


Add new recipe Create recipe to build libdbi from Debian's source code

# base recipe: https://github.com/sysmocom/meta-telephony/tree/master/recipes-misc/libdbi/libdbi.inc
# base branch: master

# libdbi OE build file
# Copyright (C) 2005, Koninklijke Philips Electronics NV.  All Rights Reserved
# Released under the MIT license (see packages/COPYING)

PR = "r0"

inherit debian-package

DESCRIPTION = "Database Independent Abstraction Layer for C"
HOMEPAGE = "http://libdbi.sourceforge.net/"

LICENSE = "LGPLv2.1+"
LIC_FILES_CHKSUM = "file://COPYING;md5=d8045f3b8f929c1cb29a1e3fd737b499"

SECTION = "libs"

inherit autotools

EXTRA_OECONF = "--disable-docs"

do_configure () {
	autotools_do_configure
}


DESCRIPTION = "JSON-C - A JSON implementation in C"
HOMEPAGE = "https://github.com/json-c/json-c/wiki"

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

SRCREV = "d4e81f9ec8273914739808737fa0a27a3f0589fb"
SRC_URI = "git://github.com/json-c/json-c.git"

S = "${WORKDIR}/git"

inherit autotools


SUMMARY = "Unicode string library for C"
DESCRIPTION = "The 'libunistring' library implements Unicode strings (in the UTF-8, \
 UTF-16, and UTF-32 encodings), together with functions for Unicode \
 characters (character names, classifications, properties) and \
 functions for string processing (formatted output, width, word \
 breaks, line breaks, normalization, case folding, regular \
 expressions)."
HOMEPAGE = "http://www.gnu.org/software/libunistring/"

PR = "r0"
inherit debian-package

LICENSE = "GPLv3+ & LGPLv3+"
LICENSE_${PN}-doc = "GPLv3+ | GFDL-1.2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
                    file://COPYING.LIB;md5=6a6a8e020838b23406c81b19c1d46df6 \
                    file://doc/libunistring.texi;beginline=85;endline=107;md5=0eca48c8641a18c260ed173fdf166a65"

inherit autotools
BBCLASSEXTEND = "native"

# Avoid a parallel build problem
PARALLEL_MAKE = ""


SUMMARY = "X11 Resource extension library"
DESCRIPTION = "\
libXRes provides an X Window System client interface to the Resource \
extension to the X protocol. \
. \
The Resource extension allows for X clients to see and monitor the X resource \
usage of various clients (pixmaps, et al). \
"
PR = "r0"
inherit debian-package pkgconfig

LICENSE = "XFree86-1.0"
LIC_FILES_CHKSUM = "\
	file://COPYING;md5=8c89441a8df261bdc56587465e13c7fa"
inherit autotools
# Debian's source code isn't contains patch file
DEBIAN_PATCH_TYPE = "nopatch"

DEPENDS += "util-macros resourceproto"

do_install_append() {
	#remove .la files
	rm ${D}${libdir}/*.la
}


Add the setxkbmap recipe necessary for building enlightenment

require recipes-graphics/xorg-app/xorg-app-common.inc

SUMMARY = "A program to compile XKB keyboard description"

DESCRIPTION = "The xkbcomp keymap compiler converts a description of an \
XKB keymap into one of several output formats. The most common use for \
xkbcomp is to create a compiled keymap file (.xkm extension) which can \
be read directly by XKB-capable X servers or utilities."

LIC_FILES_CHKSUM = "file://COPYING;md5=5feafdbe6dfe9e2bd32325be0cfc86f8"

PE = "1"

DEPENDS += "libxkbfile"

BBCLASSEXTEND = "native"

SRC_URI[md5sum] = "2c47a1b8e268df73963c4eb2316b1a89"
SRC_URI[sha256sum] = "a9ddb3963f263ba13f0ea105d8c45a531832140530217cc559587bb94f02d3e1"


Add staging-linking - glue to allow old toolchains to work after OE staging changes

DESCRIPTION = "staging-linkage sets up symlinks in staging so old compilers continue to work with the sysroot staging layout changes"
SECTION = "devel"
PACKAGES = ""

INHIBIT_DEFAULT_DEPS = "1"
PR = "r0"

SRC_URI = ""

do_configure() {
	:
}

do_compile () {
	:
}

do_install() {
	:
}

do_stage () {
	if [ -e ${STAGING_DIR_HOST}${layout_base_libdir} ]; then
		cp -pPRr ${STAGING_DIR_HOST}${layout_base_libdir}/* ${STAGING_LIBDIR}
		mv ${STAGING_DIR_HOST}${layout_base_libdir}/ ${STAGING_DIR_HOST}${layout_libdir}-oldbackup/
	fi
	ln -s ${STAGING_LIBDIR}/ ${STAGING_DIR_HOST}${layout_base_libdir}
}


SUMMARY = "module providing minimalistic try/catch"
DESCRIPTION = "\
Try::Tiny is a Perl module that provides bare bones try/catch statements. It \
is designed to eliminate common mistakes with eval blocks, and NOTHING else. \
. \
The main focus of this module is to provide simple and reliable error \
handling for those having a hard time installing TryCatch, but who still want \
to write correct eval blocks without 5 lines of boilerplate each time. \
"
HOMEPAGE = "https://metacpan.org/release/Try-Tiny"
PR = "r0"
inherit debian-package

LICENSE = "MIT"
LIC_FILES_CHKSUM = "\
	file://LICENSE;md5=781485aae6e6d87e2262fc7baa08dcc7"
inherit cpan

FILES_${PN} += "${datadir}/*"
RDEPENDS_${PN} += "libparams-validate-perl"

# source format is 3.0 (quilt) but there is no debian patch
DEBIAN_QUILT_PATCHES = ""


SUMMARY = "A decentralized solution for service discovery and orchestration"
HOMEPAGE = "https://github.com/hashicorp/serf"
LICENSE = "MPL-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=b278a92d2c1509760384428817710378"

DEPENDS += "golang-cross \
    cli \
    logutils \
    columnize \
    go-syslog \
    go-msgpack \
    mapstructure \
    go-metrics \
    memberlist \
    circbuf \
    mdns \
    hashicorp-go-net"

PKG_NAME = "github.com/hashicorp/serf"
SRC_URI = "git://${PKG_NAME}.git"
SRCREV = "5e07170d82d73e20b832e238d71caa531b6d8a2c"

S = "${WORKDIR}/git"

do_compile() {
    #Setting up a symlink to have bolt in a directory go can work with
    cd ${S}
    rm -rf .gopath
    mkdir -p .gopath/src/$(dirname ${PKG_NAME})
    ln -sf ../../../../ .gopath/src/${PKG_NAME}
    #Setting up go variables
    export GOPATH=${S}/.gopath:${STAGING_DIR_TARGET}/${prefix}/local/go
    export GOBIN=${S}/.gopath/bin
    export GOARCH="${TARGET_ARCH}"
    # supported amd64, 386, arm
    if [ "${TARGET_ARCH}" = "x86_64" ]; then
        export GOARCH="amd64"
    fi
    go install ${PKG_NAME}
}

do_install() {
    install -d ${D}${prefix}/local/go/src/${PKG_NAME}
    cp -a ${S}/* ${D}${prefix}/local/go/src/${PKG_NAME}/
}

SYSROOT_PREPROCESS_FUNCS += "serf_sysroot_preprocess"

serf_sysroot_preprocess () {
    install -d ${SYSROOT_DESTDIR}${prefix}/local/go/src/${PKG_NAME}
    cp -a ${D}${prefix}/local/go/src/${PKG_NAME} ${SYSROOT_DESTDIR}${prefix}/local/go/src/$(dirname ${PKG_NAME})
}

FILES_${PN} += "${prefix}/local/go/src/${PKG_NAME}/*"


DESCRIPTION = "Machine specific xorg.conf files"
PR = "r32"

SRC_URI = "file://xorg.conf"

do_install() {
	install -d ${D}/${sysconfdir}/X11
	install -m 0644 ${WORKDIR}/xorg.conf ${D}/${sysconfdir}/X11/
}

# Set some dependencies to make the confs actually work
RDEPENDS_omap3 = "xf86-video-omapfb"

CONFFILES_${PN} += "${sysconfdir}/X11/xorg.conf"
PACKAGE_ARCH = "${MACHINE_ARCH}"

Revert "xserver-xorg-conf: add xorg.conf for palmpre machine"

DESCRIPTION = "Machine specific xorg.conf files"
PR = "r31"

SRC_URI = "file://xorg.conf"

do_install() {
	install -d ${D}/${sysconfdir}/X11
	install -m 0644 ${WORKDIR}/xorg.conf ${D}/${sysconfdir}/X11/
}

# Set some dependencies to make the confs actually work
RDEPENDS_omap3 = "xf86-video-omapfb"

CONFFILES_${PN} += "${sysconfdir}/X11/xorg.conf"
PACKAGE_ARCH = "${MACHINE_ARCH}"


require u-boot-omap3.inc

COMPATIBLE_MACHINE = "ti816x"

BRANCH = "master"

# Use literal tags in SRCREV, when available, instead of commit IDs
SRCREV = "v2010.06_TI816XPSP_04.00.00.10"

UVER = "2010.06"
PSPREL = "04.00.00.10"

PR = "r1"


Add new version with correct date and location.

DESCRIPTION = "Enlightened Sound Daemon - GPE version"
SECTION = "gpe/base"
LICENSE = "GPL"
DEPENDS = "audiofile"
PR = "r0"
PROVIDES += "esound"
RPROVIDES += "esound"

SRCDATE = "${PV}"
SRC_URI = "svn://projects.linuxtogo.org/svn/gpe/trunk/extra/;module=esound;date=20070109 \
	   file://audiofile-please.patch;patch=1 \
	   file://configure.patch;patch=1"

S = "${WORKDIR}/esound"

inherit autotools binconfig pkgconfig

EXTRA_OECONF = "--disable-alsa"

SOV = "0.2.28"

do_stage () {
	install -m 0644 esd.h ${STAGING_INCDIR}/esd.h
	oe_soinstall .libs/libesd.so.${SOV} ${STAGING_LIBDIR}
	install -m 0644 .libs/libesd.lai ${STAGING_LIBDIR}/libesd.la
	install -m 0644 esd.m4 ${STAGING_DATADIR}/aclocal
}

PACKAGES =+ "esddsp esd esd-utils"

FILES_esddsp = "${bindir}/esddsp ${libdir}/libesddsp.so.*"
FILES_esd = "${bindir}/esd"
FILES_esd-utils = "${bindir}/*"


Fix build failures on OE master by updating

SUMMARY = "non-mainline-kernel netfilter extensions"
DESCRIPTION = "Xtables-addons contains a set of possibly useful but not included in the mainline kernel nefilter extensions"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://LICENSE;md5=751419260aa954499f7abaabaa882bbe"
DEPENDS = "virtual/kernel iptables"

inherit autotools module-base pkgconfig

SRC_URI = " \
          ${SOURCEFORGE_MIRROR}/project/${PN}/Xtables-addons/${PN}-${PV}.tar.xz \
          file://100-add-rtsp-conntrack.patch \
          file://200-add-lua-packetscript.patch \
          file://201-fix-lua-packetscript.patch \
          file://202-add-lua-autoconf.patch \
          file://300-geoip-endian-detection.patch \
          file://400-fix-IFF_LOWER_UP-musl.patch \
          "

SRC_URI[md5sum] = "ebb073119a5f250dbfe6b855fcad56fd"
SRC_URI[sha256sum] = "d215a9a8b8e66aae04b982fa2e1228e8a71e7dfe42320df99e34e5000cbdf152"

EXTRA_OECONF = "--with-kbuild=${STAGING_KERNEL_DIR} --with-xtlibdir=${libdir}/iptables"

addtask make_scripts after do_patch before do_compile
do_make_scripts[lockfiles] = "${TMPDIR}/kernel-scripts.lock"
do_make_scripts[deptask] = "do_populate_sysroot"

FILES_${PN} += "${base_libdir}/modules ${libdir}/iptables"

RDEPENDS_${PN} += "perl"


#
# Base recipe: meta/recipes-kernel/kexec/kexec-tools_2.0.4.bb
# Base branch: daisy
#

SUMMARY = "Kexec fast reboot tools"
DESCRIPTION = "Kexec is a fast reboot feature that lets you reboot to a new Linux kernel"
AUTHOR = "Eric Biederman"
HOMEPAGE = "http://kernel.org/pub/linux/utils/kernel/kexec/"

PR = "r0"

inherit debian-package

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = " \
file://COPYING;md5=ea5bed2f60d357618ca161ad539f7c0a \
file://kexec/kexec.c;beginline=1;endline=20;md5=af10f6ae4a8715965e648aa687ad3e09"

inherit autotools-brokensep

EXTRA_OECONF = "--sbindir=${base_sbindir}"

# Install files follow Debian.
do_install_append () {
	# Install init script
	install -d ${D}${sysconfdir}/init.d
	install -m 0755 ${S}/debian/kexec.init.d ${D}${sysconfdir}/init.d/kexec
	install -m 0755 ${S}/debian/kexec-load.init.d ${D}${sysconfdir}/init.d/kexec-load
}


require u-boot-omap3.inc

COMPATIBLE_MACHINE = "ti814x"

DEFAULT_PREFERENCE_ti814x = "1"
BRANCH = "master"

# Use literal tags in SRCREV, when available, instead of commit IDs
SRCREV = "v2010.06_TI814XPSP_04.01.00.03"

UVER = "2010.06"
PSPREL = "04.01.00.03"

PR = "r1"


SUMMARY = "daemon to synchronize local directories using rsync"
DESCRIPTION = " Lsyncd (Live syncing mirror daemon) uses rsync to synchronize local \
 directories with a remote machine running rsyncd. Lsyncd watches \
 multiple directories trees through inotify. The first step after \
 adding the watches is to rsync all directories with the remote host, \
 and then sync single file by collecting the inotify events. So lsyncd \
 is a light-weight live mirror solution that should be easy to install \
 and use while blending \
 well with your system."
HOMEPAGE = "https://github.com/axkibe/lsyncd"

DISTRO_CODENAME = "jessie"
inherit debian-package
PV = "2.1.5"

LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=335b31c435c9c061dfffc6fff1f52e89"

inherit autotools-brokensep pkgconfig

CACHED_CONFIGUREVARS += "ac_cv_path_LUA51=${STAGING_BINDIR_NATIVE}/lua5.1"
DEPENDS += "lua5.1 lua5.1-native"

do_install_append() {
	install -d ${D}${sysconfdir}/init.d
	install -m 0755 ${S}/debian/lsyncd.init \
		${D}${sysconfdir}/init.d/lsyncd
}

RDEPENDS_${PN} += "rsync lua5.1"


Add Minizip package from zlib package source

SUMMARY = "Zlib Compression Library"
DESCRIPTION = "Zlib is a general-purpose, patent-free, lossless data compression \
library which is used by many different programs."
HOMEPAGE = "http://zlib.net/"
SECTION = "libs"
LICENSE = "Zlib"
LIC_FILES_CHKSUM = "file://zip.h;beginline=4;endline=23;md5=21a9142d31897f1dc0cd6318eaa76af3"

SRC_URI = "http://www.zlib.net/zlib-${PV}.tar.xz "

SRC_URI[md5sum] = "28f1205d8dd2001f26fec1e8c2cebe37"
SRC_URI[sha256sum] = "831df043236df8e9a7667b9e3bb37e1fcb1220a0f163b6de2626774b9590d057"
FILESEXTRAPATHS_prepend := "${THISDIR}/zlib-${PV}:"
RDEPENDS_${PN} += "zlib"
DEPENDS_${PN} += "zlib"
S = "${WORKDIR}/zlib-${PV}/contrib/minizip"
inherit autotools


SUMMARY = "Light-weight package to set up cgroupfs mounts"
DESCRIPTION = "\
 Control groups are a kernel mechanism for tracking and imposing \
 limits on resource usage on groups of tasks. \
 . \
 This package installs scripts to set up cgroups at boot without doing any \
 cgroup management or doing any classification of tasks into cgroups."
HOMEPAGE = "https://github.com/tianon/cgroupfs-mount"

PR = "r0"
inherit debian-package

LICENSE = "GPL-3.0+"
LIC_FILES_CHKSUM = "file://debian/copyright;md5=748441b371c032eda4cfc3e5b703997a \
                    file://cgroupfs-umount;beginline=2;endline=5;md5=e69c19fa6efa953933d3c8784933547d"

do_install() {
	install -d ${D}${bindir}
	install -d ${D}${sysconfdir}/init ${D}${sysconfdir}/init.d

	install -m 0755 ${S}/cgroupfs-mount ${D}${bindir}
	install -m 0755 ${S}/cgroupfs-umount ${D}${bindir}
	install -m 0644 ${S}/debian/cgroupfs-mount.upstart \
		${D}${sysconfdir}/init/cgroupfs-mount.conf
	install -m 0755 ${S}/debian/cgroupfs-mount.init \
		${D}${sysconfdir}/init.d/cgroupfs-mount
}
RDEPENDS_${PN} += "mountall"


DESCRIPTION = "Commented config.txt file for the Raspberry Pi. \
               The Raspberry Pi config.txt file is read by the GPU before \
               the ARM core is initialised. It can be used to set various \
               system configuration parameters."
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"

COMPATIBLE_MACHINE = "raspberrypi"

SRCREV = "23e90347da3f1a6029984306e7eb5177adc34df8"
SRC_URI = "git://github.com/Evilpaul/RPi-config.git;protocol=git;branch=master \
          "

S = "${WORKDIR}/git"

PR = "r0"

addtask deploy before do_package after do_install

do_deploy() {
	install -d ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles
	cp config.txt ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/
	if [ -n "${KEY_DECODE_MPG2}" ]; then
		sed -i '/#decode_MPG2/ c\decode_MPG2=${KEY_DECODE_MPG2}' ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/config.txt
	fi
	if [ -n "${KEY_DECODE_WVC1}" ]; then
		sed -i '/#decode_WVC1/ c\decode_MVC1=${KEY_DECODE_WVC1}' ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/config.txt
	fi
}

PACKAGE_ARCH = "${MACHINE_ARCH}"


DEPENDS = "fontconfig jpeg zlib  cairo tiff lcms"

EXTRA_OECONF = "\
    --enable-xpdf-headers \
    --disable-gtk-test \
    --disable-poppler-qt4 \
    --enable-zlib \
    --disable-gtk-doc \
    --disable-gtk-doc-html \
    --disable-gtk-doc-pdf \
    --disable-gtk-test \
"


Add recipe for libtext-wrapi18n-perl package

DESCRIPTION = "internationalized substitute of Text::Wrap"

PR = "r0"

inherit debian-package cpan

LICENSE = "Artistic-1.0 | GPL-1.0+"
LIC_FILES_CHKSUM = "file://README;beginline=44;md5=080862e1e40cdcddef4393e137285858"

DEBIAN_PATCH_TYPE = "quilt"

do_install_append() {
	install -d ${D}${datadir}/perl5
	mv ${D}${libdir}/perl/vendor_perl/5.20.2/Text \
			 ${D}${datadir}/perl5
	rm -rf ${D}${libdir}
}

FILES_${PN} = "${datadir}"


DESCRIPTION = "Userspace interface for the kernel GBM services."
HOMEPAGE = "http://git.ti.com"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://gbm.c;beginline=1;endline=26;md5=b871c7f2f477df29ee4c0ec437b187f7"
DEPENDS = "libdrm"

COMPATIBLE_MACHINE = "omap-a15"

inherit autotools pkgconfig

SRCREV = "cb86a2f2cecd41023bf1bf12fbcf11be11220f31"

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

S = "${WORKDIR}/git"


# Python bindings for libcups, from the CUPS project.
#
# Copyright (c) Ambu A/S - All rights reserved
# SPDX-License-Identifier: MIT
#
# Author(s)
#   clst@ambu.com (Claus Stovgaard)
#

DESCRIPTION = "pycups - CUPS bindings for Python"
HOMEPAGE = "https://github.com/OpenPrinting/pycups"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
DEPENDS += "cups"

# See https://pypi.org/project/pycups/ for data
SRC_URI[sha256sum] = "57434ce5f62548eb12949ca8217f066f4eeb21a5d6ab8b13471dce350e380c90"

inherit pypi setuptools3


DESCRIPTION = "TI Digital Radio Front End lld test application"

DEPENDS = "common-csl-ip dfe-lld iqn2-lld"

include dfe-lld.inc

EXTRA_OEMAKE = "-f makefile_armv7 PDK_INSTALL_PATH=${STAGING_INCDIR} DFE_SRC_DIR=${S}"

do_compile () {
#   Now build the lld in the updated directory
	oe_runmake clean DEVICE=k2l
	oe_runmake tests DEVICE=k2l
	oe_runmake tests DEVICE=k2l USEDYNAMIC_LIB=yes
}

do_install () {
	oe_runmake installbin INSTALL_BIN_BASE_DIR=${D}/${bindir}
}


Add recipe to work with the marvell-sdio-tf-fw

DESCRIPTION = "Firmware for Marvel 8686 gspi wifi chipset"
LICENCE = "closed"

SRC_URI = "file://${PV}.tar.gz \
           file://Marvell-Licence.txt"

S = "${WORKDIR}/${PV}/FwImage"

do_install() {

	install -d ${D}${base_libdir}/firmware
	install -m 0644 sd8686tf.bin sd8686_helper.bin ${D}${base_libdir}/firmware
	install -m 0644 ${WORKDIR}/Marvell-Licence.txt ${D}${base_libdir}/firmware
}

PACKAGES = "${PN}"
FILES_${PN} += "${base_libdir}/firmware"

PACKAGE_ARCH = "all"


DESCRIPTION = "OpenCL demo descriptions for Matrix v2"
HOMEPAGE = "https://gitorious.org/matrix-gui-v2/matrix-gui-v2-apps"

require matrix-gui-apps-git.inc

PR = "${INC_PR}.2"

inherit allarch

S = "${WORKDIR}/git/opencl_apps"

# Make sure opencl submenu and app images has been installed
OPENCL_RDEPENDS += "matrix-gui-apps-images matrix-gui-submenus-opencl"

FILES_${PN} += "${MATRIX_BASE_DIR}/*"

PACKAGES = "matrix-opencl-demo-dsplibfft  \
            matrix-opencl-demo-vecadd     \
            matrix-opencl-demo-floatcompute \
"

RDEPENDS_matrix-opencl-demo-dsplibfft     = "${OPENCL_RDEPENDS}"
RDEPENDS_matrix-opencl-demo-vecadd        = "${OPENCL_RDEPENDS}"
RDEPENDS_matrix-opencl-demo-floatcompute  = "${OPENCL_RDEPENDS}"

# Split the matrix files by opencl demos
FILES_matrix-opencl-demo-dsplibfft     = "${MATRIX_APP_DIR}/opencl_dsplib_fft/*"
FILES_matrix-opencl-demo-vecadd        = "${MATRIX_APP_DIR}/opencl_vecadd/*"
FILES_matrix-opencl-demo-floatcompute  = "${MATRIX_APP_DIR}/opencl_float_compute/*"

# Split the ${bindir} files by opencl demos
FILES_matrix-opencl-demo-dsplibfft     += "${bindir}/runOclDsplibFFT.sh"
FILES_matrix-opencl-demo-vecadd        += "${bindir}/runOclVecadd.sh"
FILES_matrix-opencl-demo-floatcompute  += "${bindir}/runOclFloatCompute.sh"


require linux.inc

DESCRIPTION = "Linux kernel for the RaspberryPi board"
COMPATIBLE_MACHINE = "raspberrypi"

PR = "r6"
PV_append = "+git${SRCREV}"

SRCREV = "31a951046155b27361127d9cf85a1f58719fe9b3"
SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.6.y \
          "
S = "${WORKDIR}/git"

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

# CMDLINE for raspberrypi
CMDLINE_raspberrypi = "dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait"

UDEV_GE_141 ?= "1"

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
}

do_deploy_append() {
	# Deploy cmdline.txt
	install -d ${DEPLOYDIR}/bcm2835-bootfiles
	echo "${CMDLINE}" > ${DEPLOYDIR}/bcm2835-bootfiles/cmdline.txt
}


DESCRIPTION = "Locations - a GPS location based communicative application"
HOMEPAGE = "http://wiki.openmoko.org/wiki/Om2008.8_Locations"
SECTION = "openmoko/applications"
LICENSE = "GPL"
DEPENDS = "eet evas edje ecore edbus etk"
RDEPENDS_${PN} = "diversity-daemon"
PV = "0.2+gitr${SRCREV}"
PR = "r1.03"

SRC_URI = "git://git.openmoko.org/git/om-locations.git;protocol=git"

S = "${WORKDIR}/git"

inherit autotools pkgconfig

EXTRA_OECONF = "--with-edje-cc=${STAGING_BINDIR_NATIVE}/edje_cc"

do_configure_prepend() {
       autopoint --force
}

PKG_TAGS_${PN} = "group::communication alias::Om_Locations"

Revert "[alias name] Adding alias name tags for packages"

DESCRIPTION = "Locations - a GPS location based communicative application"
HOMEPAGE = "http://wiki.openmoko.org/wiki/Om2008.8_Locations"
SECTION = "openmoko/applications"
LICENSE = "GPL"
DEPENDS = "eet evas edje ecore edbus etk"
RDEPENDS_${PN} = "diversity-daemon"
PV = "0.2+gitr${SRCREV}"
PR = "r1.03"

SRC_URI = "git://git.openmoko.org/git/om-locations.git;protocol=git"

S = "${WORKDIR}/git"

inherit autotools pkgconfig

EXTRA_OECONF = "--with-edje-cc=${STAGING_BINDIR_NATIVE}/edje_cc"

do_configure_prepend() {
       autopoint --force
}

PKG_TAGS_${PN} = "group::communication"


SUMMARY = "view and edit files in hexadecimal or in ASCII"
HOMEPAGE = "http://rigaux.org/hexedit.html"
SECTION = "console/utils"
LICENSE = "GPLv2+"
DEPENDS = "ncurses"

LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"

SRC_URI = "http://rigaux.org/${BP}.src.tgz \
    file://0001-don-t-strip-when-installing.patch "

SRC_URI[md5sum] = "a5af1378d028512a9cad27a5ba3e15f9"
SRC_URI[sha256sum] = "6a126da30a77f5c0b08038aa7a881d910e3b65d13767fb54c58c983963b88dd7"

inherit autotools

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

Disable separate build since its broken

SUMMARY = "view and edit files in hexadecimal or in ASCII"
HOMEPAGE = "http://rigaux.org/hexedit.html"
SECTION = "console/utils"
LICENSE = "GPLv2+"
DEPENDS = "ncurses"

LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"

SRC_URI = "http://rigaux.org/${BP}.src.tgz \
    file://0001-don-t-strip-when-installing.patch "

SRC_URI[md5sum] = "a5af1378d028512a9cad27a5ba3e15f9"
SRC_URI[sha256sum] = "6a126da30a77f5c0b08038aa7a881d910e3b65d13767fb54c58c983963b88dd7"

inherit autotools-brokensep

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


DESCRIPTION = "GStreamer plugin for ARM HEVC decoder"
HOMEPAGE = "https://git.ti.com/processor-sdk/gst-plugin-hevc"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://COPYING;md5=2827f94fc0a1adeff4d9702e97ce2979"

PACKAGE_ARCH = "${MACHINE_ARCH}"
COMPATIBLE_MACHINE = "dra7xx"

SRC_URI = "git://git.ti.com/processor-sdk/gst-plugin-hevc.git;protocol=git"
SRCREV = "2f17d5c50f7376c0489ae1a2f571f1e749f5f72e"

S = "${WORKDIR}/git"

DEPENDS += "gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad hevc-arm-decoder"

inherit autotools pkgconfig gettext

PR = "r3"

do_configure() {
        cd ${S}
        chmod +x autogen.sh
        ./autogen.sh --host=arm-linux --with-libtool-sysroot=${STAGING_DIR_TARGET} --prefix=/usr
}

EXTRA_OECONF += "--enable-maintainer-mode"
EXTRA_OEMAKE += "'ERROR_CFLAGS=-Wno-deprecated-declarations'"

FILES_${PN} += "${libdir}/gstreamer-1.0/*.so"
FILES_${PN}-dbg += "${libdir}/gstreamer-1.0/.debug"
FILES_${PN}-dev += "${libdir}/gstreamer-1.0/*.la"


SUMMARY = "Column formatted output library for Go"
HOMEPAGE = "https://github.com/ryanuber/columnize"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=4b1989be3dc78e86f2c54cf3b03db7c9"

PKG_NAME = "github.com/ryanuber/columnize"
SRC_URI = "git://${PKG_NAME}.git"
SRCREV = "44cb4788b2ec3c3d158dd3d1b50aba7d66f4b59a"

S = "${WORKDIR}/git"

do_install() {
    install -d ${D}${prefix}/local/go/src/${PKG_NAME}
    cp -a ${S}/* ${D}${prefix}/local/go/src/${PKG_NAME}/
}

SYSROOT_PREPROCESS_FUNCS += "columnize_sysroot_preprocess"

columnize_sysroot_preprocess () {
    install -d ${SYSROOT_DESTDIR}${prefix}/local/go/src/${PKG_NAME}
    cp -a ${D}${prefix}/local/go/src/${PKG_NAME} ${SYSROOT_DESTDIR}${prefix}/local/go/src/$(dirname ${PKG_NAME})
}

FILES_${PN} += "${prefix}/local/go/src/${PKG_NAME}/*"


# SPDX-FileCopyrightText: Huawei Inc.
# SPDX-License-Identifier: MIT

SRC_URI = "gitsm://git.ostc-eu.org/rzr/dialog-lvgl;destsuffix=${S};protocol=https;nobranch=1"
SRCREV = "5d2121457a6988c97cacb0790594440693fc3d29"

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=8ce0a84e5276f01364119c873b712c4f"
AUTHOR = "Philippe Coval <philippe.coval.ext@huawei.com>"

DEPENDS += "lvgl"
DEPENDS += "lv-drivers"

SUMMARY = "Basic UI utility to be used in scripts"
DESCRIPTION = "Inspired by ncurses' dialog, implemented using LVGL"
HOMEPAGE = "https://git.ostc-eu.org/rzr/dialog-lvgl/-/wikis/"

REQUIRED_DISTRO_FEATURES = "wayland"

inherit pkgconfig
inherit features_check

EXTRA_OEMAKE += "sysroot=${RECIPE_SYSROOT}"
EXTRA_OEMAKE += "DESTDIR=${D}"
EXTRA_OEMAKE += "lvgl_driver=wayland"

do_install() {
    oe_runmake install
}


SUMMARY = "Library for cryptographic hashing and message authentication"
DESCRIPTION = "\
	Library for cryptographic hashing and message authentication Mhash is \
	a library that provides a uniform interface to a large number of hash \
	algorithms.  These algorithms can be used to compute checksums, message\
	digests, and other signatures.  The HMAC support implements the basics \
	for message authentication, following RFC 2104. Mhash also provides \
	several key-generation algorithms, including those of OpenPGP (RFC 2440)"
HOMEPAGE = "http://mhash.sourceforge.net/"

PR = "r0"
inherit debian-package

LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7"

inherit autotools-brokensep pkgconfig

#config follow debian/rules
EXTRA_OECONF += "--enable-pkgconfig"

#install follow Debian jessie
do_install_append() {
	rm ${D}${libdir}/libmhash.la
	LINKLIB=$(basename $(readlink ${D}${libdir}/libmhash.so))
	chmod 0644 ${D}${libdir}/${LINKLIB}
}


Add recipe for Open Asset Import Library

DESCRIPTION = "Open Asset Import Library is a portable Open Source library to import \
               various well-known 3D model formats in a uniform manner."
HOMEPAGE = "http://www.assimp.org/"
SECTION = "devel"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://LICENSE;md5=bc4231a2268da8fc55525ad119638a87"

DEPENDS = "boost"

SRC_URI = "http://sourceforge.net/projects/${BPN}/files/${BPN}-3.1/${BPN}-${PV}_no_test_models.zip"
SRC_URI[md5sum] = "ccd4788204509da58a3a53c7aeda7a8b"
SRC_URI[sha256sum] = "da9827876f10a8b447270368753392cfd502e70a2e9d1361554e5dfcb1fede9e"

inherit cmake

FILES_${PN}-dev += "${libdir}/cmake"


SUMMARY = "Tizen multimedia packagegroups"
LICENSE = "MIT"
DESCRIPTION = "Tizen multimedia packages."

inherit packagegroup

PACKAGES = " \
            packagegroup-tizen-gstreamer\
            "

# gstreamer packages
RDEPENDS_packagegroup-tizen-gstreamer = " \
                                        gstreamer1.0 \
                                        gstreamer1.0-plugins-bad \
                                        gstreamer1.0-plugins-base \
                                        gstreamer1.0-plugins-good \
                                        gstreamer1.0-plugins-ugly \
                                        "


SUMMARY = "X11 Distributed Multihead X extension wire protocol"
DESCRIPTION = "\
This package provides development headers describing the wire protocol \
for the DMX extension, used to set up a distributed multi-head environment \
with a single server acting as a gateway to multiple X servers on multiple \
machines. \
"
PR = "r0"
inherit debian-package

LICENSE = "MIT"
LIC_FILES_CHKSUM = "\
	file://COPYING;md5=a3c3499231a8035efd0e004cfbd3b72a"
inherit autotools
DEPENDS += "util-macros"

# Debian's source code isn't contains patch file
DEBIAN_PATCH_TYPE = "nopatch"

#follow debian/x11proto-dmx-dev.install
do_install_append() {
	install -d ${D}${datadir}/pkgconfig
	mv  ${D}${libdir}/pkgconfig/* ${D}${datadir}/pkgconfig/
	rm -r ${D}${libdir}
}
FILES_${PN}-dev += "${datadir}/pkgconfig"


Add recipe for cereal, a header-only C++11 serialization library.

SUMMARY = "A C++11 library for serialization"
HOMEPAGE = "https://uscilab.github.io/cereal/"

SECTION = "libs"

LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=e612690af2f575dfd02e2e91443cea23"

SRCREV = "51cbda5f30e56c801c07fe3d3aba5d7fb9e6cca4"
SRC_URI = "git://github.com/USCiLab/cereal.git"

S = "${WORKDIR}/git"

inherit cmake

EXTRA_OECMAKE = "-DJUST_INSTALL_CEREAL=ON"


DESCRIPTION = "libCEC allows you in combination with the right hardware to control your device with your TV remote control. Utilising your existing HDMI cabling"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=5e8e16396992369f73f3d28875f846da"

PR = "r0"
inherit autotools

SRC_URI = "git://github.com/wolfgar/libcec.git "
SRCREV = "90b994705ee2492afa00f914e0a070a0f0929f21"

EXTRA_OECONF="--enable-imx6"

S = "${WORKDIR}/git"


Add a bitbake recipe to build memberlist

SUMMARY = "Go library that manages cluster membership and member failure detection"
HOMEPAGE = "https://github.com/hashicorp/memberlist"
LICENSE = "MPL-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=b278a92d2c1509760384428817710378"

DEPENDS = "go-metrics go-msgpack"

PKG_NAME = "github.com/hashicorp/memberlist"
SRC_URI = "git://${PKG_NAME}.git"
SRCREV = "c0dd21a51b7f6af4ecb9e1c954bc83b2aa0fd2d8"

S = "${WORKDIR}/git"

#Empty do_compile to stop go from testing the package
do_compile() {
}

do_install() {
    install -d ${D}${prefix}/local/go/src/${PKG_NAME}
    cp -a ${S}/* ${D}${prefix}/local/go/src/${PKG_NAME}/
}

SYSROOT_PREPROCESS_FUNCS += "memberlist_sysroot_preprocess"

memberlist_sysroot_preprocess () {
    install -d ${SYSROOT_DESTDIR}${prefix}/local/go/src/${PKG_NAME}
    cp -a ${D}${prefix}/local/go/src/${PKG_NAME} ${SYSROOT_DESTDIR}${prefix}/local/go/src/$(dirname ${PKG_NAME})
}

FILES_${PN} += "${prefix}/local/go/src/${PKG_NAME}/*"


Add recipe to build uio pruss test firmware

DESCRIPTION = "Provides test pruss firmware for uio based tests"
LICENSE = "BSD-3-Clause"
PV = "1.0.0.0"
require recipes-ti/includes/ti-paths.inc

S = "${WORKDIR}/git"

DEPENDS = "ti-cgt-pru-native"

BRANCH = "master"
SRC_URI = "git://git.ti.com/processor-sdk/uio-test-pruss.git;protocol=git;branch=${BRANCH}"
LIC_FILES_CHKSUM = "file://Makefile;startline=1;endline=31;md5=0ee4f2c42eb6b04e37859bb55a18b144"

# Corresponds to version 01.00.00.00
SRCREV = "f04b91b84331c9a12c897e4eb2836a0a3e3a5fae"

COMPATIBLE_MACHINE = "am57xx"
EXTRA_OEMAKE = "CGT_PRU=${TI_CGT_PRU_INSTALL_DIR}"

do_install() {
    install -d ${D}${bindir}/
    cp -r *.bin ${D}${bindir}/
}


DESCRIPTION = "Userspace utilites for aufs3"
DEPENDS = "virtual/kernel"
PR = "r2"

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=892f569a555ba9c07a568a7c0c4fa63a"

PACKAGE_ARCH = "${MACHINE_ARCH}"

SRCREV = "a953b0218667e06b722f4c41df29edacd8dc8e1f"
SRC_URI = "git://aufs.git.sourceforge.net/gitroot/aufs/aufs-util.git;branch=aufs3.0;protocol=http"

S = "${WORKDIR}/git"

CFLAGS_prepend = "-I${WORKDIR}/user_headers/include "

EXTRA_OEMAKE = "KDIR=${WORKDIR}/user_headers DESTDIR=${D} HOSTCC=${BUILD_CC}"

do_prepheaders() {
	# START MASSIVE 'MAYBE' HACK:
	# Stage the userspace headers from our kernel WITH AUFS3 so we can use the tweaked userspace headers.
	cd ${STAGING_KERNEL_DIR}
	make headers_install INSTALL_HDR_PATH=${WORKDIR}/user_headers
	# STOP MASSIVE 'MAYBE'  HACK:
}

addtask prepheaders after do_configure before do_compile

do_install () {
	install -d ${D}/${base_sbindir}
	install -m 0755 mount.aufs umount.aufs auplink ${D}/${base_sbindir}
	install -d ${D}/${base_bindir}
	install -m 0755 auchk aubrsync ${D}/${base_bindir}
	install -d ${D}/${sysconfdir}/default
	install -m 0644 -T etc_default_aufs ${D}/${sysconfdir}/default/aufs
}


SUMMARY = "Go package providing a key/value store"
HOMEPAGE = "https://github.com/boltdb/bolt"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=13b2a308eefa10d841e3bf2467dbe07a"

DEPENDS += "golang-cross"

PKG_NAME = "github.com/boltdb/bolt"
SRC_URI = "git://${PKG_NAME}.git"
SRCREV = "be4e606bc48012421bc90eda58a8aad7a95aaf83"

S = "${WORKDIR}/git"

do_compile() {
    #Setting up a symlink to have bolt in a directory go can work with
    cd ${S}
    rm -rf .gopath
    mkdir -p .gopath/src/$(dirname ${PKG_NAME})
    ln -sf ../../../../ .gopath/src/${PKG_NAME}
    #Setting up go variables
    export GOPATH=${S}/.gopath
    export GOBIN=${S}/.gopath/bin
    export GOARCH="${TARGET_ARCH}"
    # supported amd64, 386, arm
    if [ "${TARGET_ARCH}" = "x86_64" ]; then
        export GOARCH="amd64"
    fi
    go install github.com/boltdb/bolt/cmd/bolt
    ls $GOPATH
}

do_install() {
    install -d ${D}${prefix}/local/go/src/${PKG_NAME}
    install -d ${D}${prefix}/bin
    cp -a ${S}/* ${D}${prefix}/local/go/src/${PKG_NAME}/
    cp -a ${S}/.gopath/bin/* ${D}${prefix}/bin/
}

SYSROOT_PREPROCESS_FUNCS += "bolt_sysroot_preprocess"

bolt_sysroot_preprocess () {
    install -d ${SYSROOT_DESTDIR}${prefix}/local/go/src/${PKG_NAME}
    cp -a ${D}${prefix}/local/go/src/${PKG_NAME} ${SYSROOT_DESTDIR}${prefix}/local/go/src/$(dirname ${PKG_NAME})
    install -d ${SYSROOT_DESTDIR}${prefix}/bin
    cp -a ${D}${prefix}/bin/* ${SYSROOT_DESTDIR}${prefix}/bin/
}

FILES_${PN} += "${prefix}/local/go/src/${PKG_NAME}/* ${prefix}/bin/*"


SUMMARY = "SysV init scripts for Amlogic framebuffer set-up"
DESCRIPTION = "Provides basic set-up for the amlogic framebuffer"
SECTION = "base"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"

PR = "r1"

INHIBIT_DEFAULT_DEPS = "1"
RDEPENDS_${PN} = "initscripts"

SRC_URI = " \
                file://amlsetfb.sh \
                file://aaa.sh \
                file://GPLv2.patch \
"

COMPATIBLE_MACHINE = "(odroidc1|wetekplay)"

RDEPENDS_${PN}_append = " ${@bb.utils.contains('MACHINE_FEATURES', 'fb', 'fbset fbset-modes', '', d)}"

do_install() {
   if ${@bb.utils.contains('MACHINE_FEATURES','fb','true','false',d)}; then
       install -m 0755 ${WORKDIR}/amlsetfb.sh  ${D}${sysconfdir}/init.d/amlsetfb.sh
       install -m 0755 ${WORKDIR}/aaa.sh  ${D}${sysconfdir}/init.d/aaa.sh
	   update-rc.d -r ${D} amlsetfb.sh start 03 S .
	   update-rc.d -r ${D} aaa.sh start 0 S .
   fi
}

Create directory before installation of files

SUMMARY = "SysV init scripts for Amlogic framebuffer set-up"
DESCRIPTION = "Provides basic set-up for the amlogic framebuffer"
SECTION = "base"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"

PR = "r1"

INHIBIT_DEFAULT_DEPS = "1"
RDEPENDS_${PN} = "initscripts"

SRC_URI = " \
                file://amlsetfb.sh \
                file://aaa.sh \
                file://GPLv2.patch \
"

COMPATIBLE_MACHINE = "(odroidc1|wetekplay)"

RDEPENDS_${PN}_append = " ${@bb.utils.contains('MACHINE_FEATURES', 'fb', 'fbset fbset-modes', '', d)}"

do_install() {
   if ${@bb.utils.contains('MACHINE_FEATURES','fb','true','false',d)}; then
       install -d ${D}${sysconfdir}/init.d
       install -m 0755 ${WORKDIR}/amlsetfb.sh  ${D}${sysconfdir}/init.d/amlsetfb.sh
       install -m 0755 ${WORKDIR}/aaa.sh  ${D}${sysconfdir}/init.d/aaa.sh
	   update-rc.d -r ${D} amlsetfb.sh start 03 S .
	   update-rc.d -r ${D} aaa.sh start 0 S .
   fi
}


Add bitbake recipe to build scada-client

SUMMARY = "Golang client for the HashiCorp SCADA service"
HOMEPAGE = "https://github.com/hashicorp/scada-client"
LICENSE = "MPL-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=65d26fcc2f35ea6a181ac777e42db1ea"

DEPENDS = "net-rpc-msgpackrpc yamux go-metrics"

PKG_NAME = "github.com/hashicorp/scada-client"
SRC_URI = "git://${PKG_NAME}.git"
SRCREV = "c26580cfe35393f6f4bf1b9ba55e6afe33176bae"

S = "${WORKDIR}/git"

do_install() {
    install -d ${D}${prefix}/local/go/src/${PKG_NAME}
    cp -a ${S}/* ${D}${prefix}/local/go/src/${PKG_NAME}/
}

SYSROOT_PREPROCESS_FUNCS += "scada_client_sysroot_preprocess"

scada_client_sysroot_preprocess () {
    install -d ${SYSROOT_DESTDIR}${prefix}/local/go/src/${PKG_NAME}
    cp -a ${D}${prefix}/local/go/src/${PKG_NAME} ${SYSROOT_DESTDIR}${prefix}/local/go/src/$(dirname ${PKG_NAME})
}

FILES_${PN} += "${prefix}/local/go/src/${PKG_NAME}/*"


SUMMARY = "Bluetooth Connectivity Application"
DESCRIPTION = "The example is to demonstrate BLE provisioning and BLE 	\
	Transparent Services.						\
	the application is written using the BlueZ GATT service and it	\
	enables the WILC to host two GATT services,		 	\
	1) transparent service 2) WiFi provisioning service 		\
	The Microchip MBD application can be used to connect to WILC	\
	and transact BLE data through these BLE applications"

AUTHOR = "Microchip Technology Inc"
SECTION = "examples"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=2aadfbb30f3dc663d0c881ccb240fc4c"

DEPENDS = "bluez5 wilc-demo-fs-overlay"
SRC_URI = "git://github.com/MicrochipTech/wilcbtapps-buildroot-external-microchip.git;protocol=git"
SRCREV  = "ef37a75f4105289c12c83849e2b85112a78f81a2"

S = "${WORKDIR}/git"

do_compile () {
        ${TARGET_PREFIX}gcc ${TARGET_CC_ARCH} ${TOOLCHAIN_OPTIONS} -Wall    \
	-std=gnu11 -g -D_REENTRANT -static -I${STAGING_INCDIR}/bluez5_utils \
        -L ${STAGING_LIBDIR}/bluez5_utils/lib transparent_service.c	    \
	-o transparent_service -lshared-mainloop -lbluetooth-internal	    \
	-lgdbus-internal -lc

        ${TARGET_PREFIX}gcc ${TARGET_CC_ARCH} ${TOOLCHAIN_OPTIONS} -Wall    \
	-std=gnu11 -g -D_REENTRANT -static -I${STAGING_INCDIR}/bluez5_utils \
	-L ${STAGING_LIBDIR}/bluez5_utils/lib wifi_prov_service.c	    \
	-o wifi_prov_service -lshared-mainloop -lbluetooth-internal 	    \
	-lgdbus-internal -lc
}

do_install () {
    install -d ${D}${bindir}
    install -m 0755 transparent_service ${D}${bindir}
    install -m 0755 wifi_prov_service ${D}${bindir}
}

PACKAGE_ARCH = "${MACHINE_ARCH}"

FILES_${PN} += "${bindir}/transparent_service"
FILES_${PN} += "${bindir}/wifi_prov_service"

COMPATIBLE_MACHINE = "(at91sam9|sama5)"


DESCRIPTION = "H.264 encoder"
LICENSE = "GPL"
PR = "r2"

X264PV = "snapshot-20090127-2245"

SRC_URI = "http://download.videolan.org/pub/videolan/x264/snapshots/x264-${X264PV}.tar.bz2"

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

inherit autotools lib_package

# default --extra-cflags
X264_ECFLAGS = ""

# disable use of assembler written functions
X264_DISABLE_ASM = "--disable-asm"
# use assembler written functions for those archs supporting this
#X264_DISABLE_ASM_x86 = ""

EXTRA_OECONF = '--enable-shared ${X264_DISABLE_ASM} --extra-cflags="${X264_ECFLAGS}"'

do_stage() {
        autotools_stage_all
}

do_configure() {
        ${S}/configure ${EXTRA_OECONF}
}

Enable using yasm-native for x86 machine.

DESCRIPTION = "H.264 encoder"
LICENSE = "GPL"
PR = "r2"

X264PV = "snapshot-20090127-2245"

SRC_URI = "http://download.videolan.org/pub/videolan/x264/snapshots/x264-${X264PV}.tar.bz2"

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

inherit autotools lib_package

# default --extra-cflags
X264_ECFLAGS = ""

# disable use of assembler written functions
X264_DISABLE_ASM = "--disable-asm"
# use assembler written functions for those archs supporting this
X264_DISABLE_ASM_x86 = ""
DEPENDS_x86 = "yasm-native"

EXTRA_OECONF = '--enable-shared ${X264_DISABLE_ASM} --extra-cflags="${X264_ECFLAGS}"'

do_stage() {
        autotools_stage_all
}

do_configure() {
        ${S}/configure ${EXTRA_OECONF}
}


Add recipe for libnet-telnet-perl package

SUMMARY = "Perl module to script telnetable connections"
DESCRIPTION = "\
Net::Telnet allows you to make client connections to a TCP port and \
do network I/O, especially to a port using the TELNET protocol. \
Simple I/O methods such as print, get, and getline are provided. \
More sophisticated interactive features are provided because \
connecting to a TELNET port ultimately means communicating with a \
program designed for human interaction.  These interactive features \
include the ability to specify a timeout and to wait for patterns to \
appear in the input stream, such as the prompt from a shell. \
"
HOMEPAGE = "https://metacpan.org/release/Net-Telnet/"
PR = "r0"
inherit debian-package

LICENSE = "Artistic-1.0 | GPL-1+"
LIC_FILES_CHKSUM = "\
	file://lib/Net/Telnet.pm;beginline=3;endline=5;md5=595feda9e8536d0a35f71ad7c693e4f2"
inherit cpan


LICENSE = "GPL"
inherit gpe

DESCRIPTION = "GPE user login screen"
SECTION     = "gpe"
PRIORITY    = "optional"
MAINTAINER  = "Philip Blundell <pb@handhelds.org>"
DEPENDS     = "gtk+ libgpewidget gpe-ownerinfo xkbd"
RDEPENDS    = "xkbd"
RPROVIDES   = "gpe-session-starter"
PR = "r0"


Add new recipe Create recipe to buils libtext-iconv-perl from Debian's source code

# base recipe: http://cgit.openembedded.org/cgit.cgi/meta-openembedded/\
#tree/meta-perl/recipes-perl/libtext/libtext-iconv-perl_1.7.bb?h=master
# base branch: master

SUMMARY = "Perl interface to iconv() codeset conversion function"
DESCRIPTION = "\
The Text::Iconv module provides a Perl interface to the iconv() \
function as defined by the Single UNIX Specification. The convert() \
method converts the encoding of characters in the input string from \
the fromcode codeset to the tocode codeset, and returns the result. \
Settings of fromcode and tocode and their permitted combinations are \
implementation-dependent. Valid values are specified in the system \
documentation."

PR = "r0"
inherit debian-package

LICENSE = "Artistic-1.0 | GPL-1.0+"
LIC_FILES_CHKSUM = "file://README;beginline=3;endline=6;md5=fadf2919c7128e887d26b4d905f90649"

inherit cpan

FILES_${PN}-dbg += "${libdir}/perl/vendor_perl/*/auto/Text/Iconv/.debug/"


Add new libisi recipe (libisi can talk to the nokia900 modem)

DESCRIPTION = "libisi is a library implementing the PhoNet protocol"
SECTION = "libs/network"
AUTHOR = "Sebastian Reichel <sre@ring0.de>"
LICENSE = "GPLv2"
DEPENDS = "glib-2.0"
SRC_URI = "${FREESMARTPHONE_GIT}/libisi.git;protocol=git;branch=master"
SRCREV = "49809e4107fac3c8cf5f1e3ffce37030213e7e99"
PV = "0.0.0+gitr${SRCPV}"

inherit pkgconfig vala autotools

EXTRA_OECONF = "--enable-tests"

S = "${WORKDIR}/git"

PACKAGES =+ "${PN}-tests"

FILES_${PN}-tests = "${sbindir}/*"
DESCRIPTION_${PN}-tests = "${PN} runtime tests"


Add recipe for AWS IoT Device JavaScript SDK

DESCRIPTION = "AWS IoT Node.js SDK for Embedded Devices"
HOMEPAGE = "https://github.com/aws/aws-iot-device-sdk-js"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=1431d1446b43adc38d1445e89c8b61ff"

DEPENDS = "nodejs"
RDEPENDS_${PN} = "bash nodejs"

SRC_URI = "https://github.com/aws/${PN}/archive/v${PV}.tar.gz"
SRC_URI[md5sum] = "10c5d6ac1a00bab24d43e83f01a4ee44"
SRC_URI[sha256sum] = "3f6dcbd0c394d4ae8e37731aba7a1454f19a70e84d1d9477cf93de48fb27cc9e"

PR = "r0"

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

NODE_MODULES_DIR = "${prefix}/lib/node_modules"
NPM_CACHE_DIR ?= "${WORKDIR}/npm_cache"
NPM_REGISTRY ?= "https://registry.npmjs.org/"
NPM_INSTALL_FLAGS = "--production"

do_compile() {
	export NPM_CONFIG_CACHE="${NPM_CACHE_DIR}"

	# Clear cache
	npm cache clear

	npm --registry=${NPM_REGISTRY} --arch=${TARGET_ARCH} --target_arch=${TARGET_ARCH} install
	npm prune ${NPM_INSTALL_FLAGS}
}

do_install() {
	install -d ${D}${NODE_MODULES_DIR}/aws-iot-device-sdk
	cp -r * ${D}${NODE_MODULES_DIR}/aws-iot-device-sdk
}

PACKAGES = "${PN}"

FILES_${PN} += "${NODE_MODULES_DIR}"

INHIBIT_PACKAGE_DEBUG_SPLIT = "1"


SUMMARY = "Simple top-like I/O monitor"
DESCRIPTION = "iotop does for I/O usage what top(1) does for CPU usage. \
    It watches I/O usage information output by the Linux kernel and displays \
    a table of current I/O usage by processes on the system."
HOMEPAGE = "http://guichaz.free.fr/iotop/"

PR = "r0"
inherit debian-package

LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=4325afd396febcb659c36b49533135d4"

inherit distutils
#Empty DEBIAN_QUILT_PATCHES to avoid error "debian/patches not found"
DEBIAN_QUILT_PATCHES = ""

do_install_append() {
	rm ${D}${libdir}/python2.7/site-packages/${DPN}/*.pyc
}


Add recipe to build from sakoman.com u-boot repository

require u-boot.inc

FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/u-boot-sakoman-git/"

SRCREV = ${AUTOREV}

PV = "2010.9+${PR}+git${SRCREV}"

SRC_URI = "git://www.sakoman.com/git/u-boot.git;branch=omap4-exp;protocol=git \
          "

S = "${WORKDIR}/git"


DESCRIPTION = "Qt Thermostat Demo"
HOMEPAGE = "https://gitorious.org/thermostat-demo"

LICENSE = "BSD & CC-BY-SA-2.0 & CC-BY-SA-3.0 & MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=93a105adb99011afa5baee932b560714 \
                    file://IMAGE-LICENSE;md5=fce98146123de13a189c234a5e4cfa0d \
                    file://API-LICENSE;md5=5e32280d79a1eab76729c50d79ecfe72 \
                    file://remote/MIT-LICENSE.txt;md5=6a24093faaae5d5c198578c88e220071 \
"

require recipes-core/matrix/matrix-gui-paths.inc

PR = "r0"

BRANCH ?= "master"
SRCREV = "2f461242d469871538e6cd05e887457674347e8f"

SRC_URI = "git://gitorious.org/thermostat-demo/thermostat-demo.git;protocol=git"

S = "${WORKDIR}/git/"

inherit qt4e

# use the make targets already created in the Makefile.build files
do_install() {
	make -f Makefile.build DESTDIR=${D} install_common
}

PACKAGES += "matrix-gui-thermostat-demo"

RDEPENDS_matrix-gui-thermostat-demo += "matrix-gui-apps-images matrix-gui-submenus-qt4"

FILES_matrix-gui-thermostat-demo += "${MATRIX_APP_DIR}/*"


require recipes-kernel/linux-libc-headers/linux-libc-headers.inc

PR = "r0"

PROVIDES = "linux-libc-headers"
RPROVIDES_${PN}-dev = "linux-libc-headers-dev"
RPROVIDES_${PN}-dbg = "linux-libc-headers-dbg"

SRCREV = "10182a3bc434b27740f81c2b836a1af943060241"
SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.2.27 \
          "
S = "${WORKDIR}/git"


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

DESCRIPTION = "Standalone fork of Android's make_ext4fs utility"
HOMEPAGE = "https://git.openwrt.org/?p=project/make_ext4fs.git;a=summary"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://NOTICE;md5=bb2810bf31da2f6bb39e0bfa86091da3"
SECTION = "tools"
DEPENDS = "zlib"

SRCREV = "bd53eaafbc2a89a57b8adda38f53098a431fa8f4"
SRC_URI = "git://git.openwrt.org/project/make_ext4fs.git \
          "
S = "${WORKDIR}/git"
B = "${S}"

CFLAGS += "-I${S}/include -I${S}/libsparse/include"

do_install() {
	install -Dm 0755 ${B}/make_ext4fs ${D}${bindir}/make_ext4fs
}


SUMMARY = "Task to install additional utilities for initial board bringup"
LICENSE = "MIT"
PR = "r0"

PACKAGE_ARCH = "${MACHINE_ARCH}"

inherit packagegroup

UTILS = " \
	 arm-benchmarks \
	 evtest \
	 memtester \
	 nbench-byte \
	 pcitest \
	 serialcheck \
	 yavta \
	 hdparm \
	 i2c-tools \
	 libdrm-tests \
	 rt-tests \
	 iozone3 \
	 mtd-utils-ubifs-tests \
	 net-tools \
	 ethtool  \
	 pciutils \
	 rng-tools \
	 stress-ng \
	 iperf \
	 lmbench \
	 usbutils \
	 devmem2 \
	 phytool \
"

UTILS:append:ti33x = " \
    omapconf \
"

UTILS:append:ti43x = " \
    omapconf \
"

UTILS:append:omap-a15 = " \
    omapconf \
"

UTILS:append:k3 = " \
    k3conf \
"

RDEPENDS_${PN} = "\
    ${UTILS} \
"


Add a bitbake recipe to build the go library dns

SUMMARY = "A Go DNS library with a granular approach"
HOMEPAGE = "https://github.com/miekg/dns"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=147353de6868a20caa562d26eab7b3c5"

PKG_NAME = "github.com/miekg/dns"
SRC_URI = "git://${PKG_NAME}.git"
SRCREV = "7864d445e5087e8d761dbefec43f29b92f7650eb"

S = "${WORKDIR}/git"

do_install() {
    install -d ${D}${prefix}/local/go/src/${PKG_NAME}
    cp -a ${S}/* ${D}${prefix}/local/go/src/${PKG_NAME}/
}

SYSROOT_PREPROCESS_FUNCS += "dns_sysroot_preprocess"

dns_sysroot_preprocess () {
    install -d ${SYSROOT_DESTDIR}${prefix}/local/go/src/${PKG_NAME}
    cp -a ${D}${prefix}/local/go/src/${PKG_NAME} ${SYSROOT_DESTDIR}${prefix}/local/go/src/$(dirname ${PKG_NAME})
}

FILES_${PN} += "${prefix}/local/go/src/${PKG_NAME}/*"


Add recipe for libparams-validate-perl package

SUMMARY = "Perl module to validate parameters to Perl method/function calls"
DESCRIPTION = "\
Params::Validate is a Perl module providing a flexible way to validate method \
and function call parameters. The validation can be as simple as checking for \
the presence of required parameters, or more complex, like validating object \
classes (via isa) or capabilities (via can) and checking parameter types. It \
also provides extensibility through customized validation callbacks. \
. \
The module has been designed to work equally well with positional or named \
parameters (via a hash or hash reference) and includes experimental support \
for attributes (see Attribute::Params::Validate for details). \
"
HOMEPAGE = "https://metacpan.org/release/Params-Validate"
PR = "r0"
inherit debian-package

LICENSE = "Artistic-2.0"
LIC_FILES_CHKSUM = "\
	file://LICENSE;md5=4e73e61c349000cce50c5f285641fdd4"
inherit cpan_build
DEBIAN_QUILT_PATCHES = ""

do_install_append() {
	perl_version=${PERLVERSION}
	short_perl_version=`echo ${perl_version%.*}`
	install -d ${D}${libdir}/perl5/$short_perl_version
	mv ${D}${libdir}/perl/vendor_perl/${PERLVERSION}/* \
		${D}${libdir}/perl5/$short_perl_version
}

FILES_${PN} += "${libdir}/*"
FILES_${PN}-dbg += "${libdir}/perl5/*/auto/Params/Validate/XS/.debug"


#
# Base recipes: recipes-support/liburcu/liburcu_0.8.7.bb
# Base bracnh: jethro
#

SUMMARY = "Userspace RCU (read-copy-update) library"
HOMEPAGE = "http://lttng.org/urcu"
BUGTRACKER = "http://lttng.org/project/issues"

PR = "r0"

inherit debian-package autotools

LICENSE = "LGPLv2.1+ & MIT-style"
LIC_FILES_CHKSUM = "file://LICENSE;md5=0f060c30a27922ce9c0d557a639b4fa3 \
                    file://urcu.h;beginline=4;endline=32;md5=4de0d68d3a997643715036d2209ae1d9 \
                    file://urcu/uatomic/x86.h;beginline=4;endline=21;md5=220552f72c55b102f2ee35929734ef42"

CFLAGS_append_libc-uclibc = " -D_GNU_SOURCE"

# Correct the package name
PKG_${PN} = "${PN}2"


DESCRIPTION = "The nanomsg library is a simple high-performance implementation of several "scalability protocols"."
HOMEPAGE = "https://github.com/nanomsg/nanomsg"
AUTHOR = "Martin Sustrik"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=587b3fd7fd291e418ff4d2b8f3904755"

inherit cmake

PR = "r0"

SRC_URI = "git://github.com/nanomsg/nanomsg.git"
SRCREV = "7e12a20e038234060d41d03c20721d08117f8607"

S = "${WORKDIR}/git"

EXTRA_OECMAKE += "-DNN_TESTS:BOOL=OFF"

PACKAGES = "${PN} ${PN}-dev ${PN}-dbg ${PN}-tools"

FILES_${PN} = "\
	${libdir}/libnanomsg.so.* \
	${libdir}/pkgconfig \
"

FILES_${PN}-tools += "${bindir}/nanocat"


inherit ti-pdk
require cppi-lld.inc

PR = "${INC_PR}.0"

DEPENDS_append = " rm-lld-rtos \
                   qmss-lld-rtos \
"

XDCARGS_k2hk-evm = "k2h k2k"
XDCARGS_k2e-evm = "k2e"
XDCARGS_k2l-evm = "k2l"
XDCARGS_k2g-evm = "k2g"


SUMMARY = "lightweight messaging kernel"
DESCRIPTION = "\
	ØMQ is a library which extends the standard socket interfaces with features \
	traditionally provided by specialised messaging middleware products. \
	ØMQ sockets provide an abstraction of asynchronous message queues, multiple \
	messaging patterns, message filtering (subscriptions), seamless access 	\
	to multiple transport protocols and more."
HOMEPAGE = "http://www.zeromq.org"

PR = "r0"
inherit debian-package pkgconfig

LICENSE = "GPLv3+ & LGPLv3+ & MIT"
LIC_FILES_CHKSUM = "\
		file://COPYING;md5=f7b40df666d41e6508d03e1c207d498f \
		file://COPYING.LESSER;md5=d5311495d952062e0e4fbba39cbf3de1 \
		file://debian/zmq.hpp;md5=388ddb07fdd88b040769e8f4c9b397fa \
		"
EXTRA_OECONF += "--with-system-pgm"
DEPENDS += "libpgm"
inherit autotools
#install follow Debian jessie
do_install_append() {
	rm -r ${D}${bindir}
	rm ${D}${libdir}/libzmq.la
	install -m 0644 ${S}/debian/zmq.hpp ${D}${includedir}/
}
PKG_${PN}-dbg = "libzmq3-dbg"
PKG_${PN}-dev = "libzmq3-dev"


#
# base recipe: http://cgit.openembedded.org/cgit.cgi/meta-openembedded/tree\
#	/meta-oe/recipes-support/eventlog/eventlog_0.2.13.bb?
# base branch: master
# base commit: 349507d36b14d1b83d2b27280ec19efe6d7229c6
#

SUMMARY = "Replacement syslog API"
DESCRIPTION = "The EventLog library aims to be a replacement of the 	\
              simple syslog() API provided on UNIX systems. The 	\
              major difference between EventLog and syslog is that 	\
              EventLog tries to add structure to messages. EventLog 	\
              provides an interface to build, format and output an 	\
              event record. The exact format and output method can 	\
              be customized by the administrator via a configuration 	\
              file. his package is the runtime part of the library. 	\
"

PR = "r0"
inherit debian-package

LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://COPYING;md5=b8ba8e77bcda9a53fac0fe39fe957767"

inherit autotools pkgconfig


require recipes-sato/images/core-image-sato-sdk.bb

IMAGE_INSTALL += " \
	gst-plugins-base-videorate \
	gst-plugins-good \
	gst-plugins-good-isomp4 \
	gst-plugins-good-video4linux2 \
	gst-plugins-bad \
	gst-plugins-bad-asfmux \
	gst-plugins-bad-fbdevsink \
	gst-plugins-bad-h264parse \
	gst-plugins-bad-faad \
	gst-plugins-bad-videoparsersbad \
	gst-plugins-ugly \
	gst-plugins-ugly-asf \
	gst-openmax \
	libdrm-kms \
	alsa-utils alsa-tools \
"


Add a copy of gmp for use in Canadian builds

PV = "4.2.4"
require gmp_${PV}.bb

FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/gmp-${PV}"
S = "${WORKDIR}/gmp-${PV}"

inherit canadian-native

# darwin 'hacks'
EXTRA_OECONF_build-darwin = " --enable-shared "
OLD_STAGING := "${STAGING_BINDIR}"
OLD_TARGET  := "${TARGET_SYS}"
OLD_HOST    := "${HOST_SYS}"
OLD_BUILD   := "${BUILD_SYS}"

PATH_prepend_build-darwin = "${OLD_STAGING}/${OLD_HOST}:${OLD_STAGING}:"

TARGET_SYS_build-darwin   = "none-apple-darwin"
HOST_SYS_build-darwin     = "none-apple-darwin"
BUILD_SYS_build-darwin    = "none-apple-darwin"

do_compile_append_build-darwin() {
    oe_runmake check
}


SUMMARY = "TI RTOS low level driver for Serial Peripheral Interface (SPI)"

inherit ti-pdk

LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://SPI.h;beginline=1;endline=31;md5=8580f9c5c0de8d5d13518cf18a0122b8"

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

SPI_LLD_GIT_URI = "git://git.ti.com/keystone-rtos/spi-lld.git"
SPI_LLD_GIT_PROTOCOL = "git"
SPI_LLD_GIT_BRANCH = "master"

# Below commit ID corresponds to "DEV.SPI_LLD.01.00.00.07A"
SPI_LLD_SRCREV = "d37daaf3a922e893fe845d44324393994321d443"

BRANCH = "${SPI_LLD_GIT_BRANCH}"
SRC_URI = "${SPI_LLD_GIT_URI};protocol=${SPI_LLD_GIT_PROTOCOL};branch=${BRANCH}"

SRCREV = "${SPI_LLD_SRCREV}"
PV = "01.00.00.07A"
PR = "r0"

DEPENDS_append = " osal-rtos \
                   edma3-lld-rtos \
"
DEPENDS_append_ti33x = " starterware-rtos"
DEPENDS_append_ti43x = " starterware-rtos"

# Build with make instead of XDC
TI_PDK_XDCMAKE = "0"

export PDK_SPI_ROOT_PATH ="${WORKDIR}/build"
export DEST_ROOT="${S}"

export EDMA3LLD_BIOS6_INSTALLDIR = "${EDMA3_LLD_INSTALL_DIR}"
XDCPATH_append = ";${EDMA3_LLD_INSTALL_DIR}/packages"

# HTML doc link params
PDK_COMP_LINK_TEXT = "SPI LLD"


SUMMARY = "X11 Distributed Multihead extension library"
DESCRIPTION = "\
libdmx is an interface to the DMX extension for X, which allows a single \
server to be set up as a proxy spanning multiple servers -- not unlike \
Xinerama across discrete physical machines.  It can be reconfigured \
on the fly to change the layout, and it is presented as a single logical \
display to clients. \
"
PR = "r0"
inherit debian-package

LICENSE = "MIT"
LIC_FILES_CHKSUM = "\
	file://COPYING;md5=a3c3499231a8035efd0e004cfbd3b72a"
inherit autotools pkgconfig
# Debian's source code isn't contains patch file
DEBIAN_PATCH_TYPE = "nopatch"
DEPENDS += "util-macros x11proto-dmx libxext"

do_install_append() {
	#remove the unwanted files
	rm ${D}${libdir}/*.la
}
PKG_${PN}-dbg = "${PN}1-dbg"
RDEPENDS_${PN}-dev += "x11proto-dmx-dev libx11-dev"


Add recipe for AWS IoT Device Python SDK

DESCRIPTION = "The AWS IoT Device SDK for Python allows developers to write Python script to use their devices to access the AWS IoT platform through MQTT or MQTT over the WebSocket protocol."
HOMEPAGE = "https://github.com/aws/aws-iot-device-sdk-python"
AUTHOR = "Amazon Web Services"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=9ac49901b833e769c7d6f21e8dbd7b30"

inherit setuptools

PR = "r0"

RDEPENDS_${PN} = "\
"

PACKAGES = "${PN} ${PN}-samples"

SRC_NAME = "aws-iot-device-sdk-python"

SRC_URI = "https://github.com/aws/${SRC_NAME}/archive/v${PV}.tar.gz"
SRC_URI[md5sum] = "f57a0576d1ba67c9b38b10032bb24edd"
SRC_URI[sha256sum] = "b40ce9facdce21e6f3da31c5ced00644227d83dbb24103aa985382059810949d"

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

do_install_append() {
	# Samples
	install -d ${D}${datadir}/awsiotsdk/samples/python
    	install -m 0755 ${S}/samples/basicPubSub/*.py ${D}${datadir}/awsiotsdk/samples/python/
	install -m 0755 ${S}/samples/basicShadow/*.py ${D}${datadir}/awsiotsdk/samples/python/
	install -m 0755 ${S}/samples/ThingShadowEcho/*.py ${D}${datadir}/awsiotsdk/samples/python/
}

## Samples ##
FILES_${PN}-samples += "${datadir}/awsiotsdk/samples/python"


SUMMARY = "Middleware to access a smart card using PC/SC"
DESCRIPTION = "The purpose of PC/SC Lite is to provide a Windows(R) SCard interface \
in a very small form factor for communicating to smart cards and \
smart cards readers."
HOMEPAGE = "http://pcsclite.alioth.debian.org/"

inherit debian-package
PV = "1.8.13"

LICENSE = "BSD-3-Clause & GPLv3+ & MIT & ISC"
LIC_FILES_CHKSUM = "\
	file://COPYING;md5=bcfbd85230ac3c586fb294c8b627cf32 \
	file://GPL-3.0.txt;md5=d32239bcb673463ab874e80d47fae504 \
	file://src/sd-daemon.c;beginline=3;endline=25;md5=ca98f47674a446ca9e786ce689b9cea9 \
	file://src/strlcat.c;beginline=3;endline=17;md5=f800c066486863c8a78974152f69b5ed"

inherit autotools pkgconfig

DEPENDS += "systemd flex"

EXTRA_OECONF += "--enable-usbdropdir=${libdir}${DPN}/drivers"
do_install_append() {
	install -d ${D}${sysconfdir}/init.d
	install -m 0755 ${S}/debian/pcscd.init \
		${D}${sysconfdir}/init.d/pcscd
}
PACKAGES =+ "pcscd"

FILES_pcscd = "${sysconfdir}/init.d/pcscd \
               ${systemd_system_unitdir}/* \
               ${sbindir}/pcscd"

FILES_${PN}-dev += "${bindir}/pcsc-spy \
                    ${libdir}/libpcscspy.*"

RPROVIDES_${PN} += "libpcsclite1"
RPROVIDES_${PN}-dev += "libpcsclite-dev"
RDEPENDS_pcscd += "${PN} lsb-base"


DESCRIPTION = "ZeroMQ looks like an embeddable networking library but acts like a concurrency framework"
HOMEPAGE = "http://www.zeromq.org"
LICENSE = "LGPLv3+"
LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=66ea8704398d7996daeacd2fbd2b9dbd"

PR = "r0"

DEPENDS += "util-linux-ng"

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

SRC_URI = "http://download.zeromq.org/zeromq-${PV}.tar.gz"

inherit autotools

do_configure_prepend() {
	./autogen.sh
}

SRC_URI[md5sum] = "77b9ca20e8f2426874022080f41d7b0b"
SRC_URI[sha256sum] = "a1bbb352a9dbf34b18a3999b22a8db2d51e4a52508d098528d771811533f9fd0"

Remove redundant `S = "${WORKDIR}/zeromq-${PV}"`

DESCRIPTION = "ZeroMQ looks like an embeddable networking library but acts like a concurrency framework"
HOMEPAGE = "http://www.zeromq.org"
LICENSE = "LGPLv3+"
LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=66ea8704398d7996daeacd2fbd2b9dbd"

PR = "r0"

DEPENDS += "util-linux-ng"

SRC_URI = "http://download.zeromq.org/zeromq-${PV}.tar.gz"

inherit autotools

do_configure_prepend() {
	./autogen.sh
}

SRC_URI[md5sum] = "77b9ca20e8f2426874022080f41d7b0b"
SRC_URI[sha256sum] = "a1bbb352a9dbf34b18a3999b22a8db2d51e4a52508d098528d771811533f9fd0"


DESCRIPTION = "update-rc.d is a utilities that allows the management of \
symlinks to the initscripts in the /etc/rcN.d directory structure."

inherit allarch debian-package
DEBIAN_SECTION = "admin"
DPR = "0"
DPN = "sysvinit"

LICENSE = "GPL-2.0"
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"

DEPENDS += "perl"

do_compile() {
	:
}

do_install() {
	install -d ${D}${sbindir}
	install -m 0755 ${S}/debian/src/sysv-rc/sbin/update-rc.d ${D}${sbindir}

	# rc$level.d folders should be created for update-rc.d to run
	install -d ${D}${sysconfdir} \
		${D}${sysconfdir}/default \
		${D}${sysconfdir}/init.d
	for level in S 0 1 2 3 4 5 6; do
		install -d ${D}${sysconfdir}/rc$level.d
	done
}

BBCLASSEXTEND = "native"


SUMMARY = "Version package"

DESCRIPTION = "Package which creates a file with all git hashes that are used"
MAINTAINER = "Robert Lehmann <robert.lehmann@sitec-systems.de>"

LICENSE = "BSD-2-Clause"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/BSD-2-Clause;md5=8bef8e6712b1be5aa76af1ebde9d6378"

PR = "r0"

S = "${WORKDIR}"

do_compile[nostamp] = "1"
do_install[nostamp] = "1"
do_package[nostamp] = "1"

def bsp_version(d):
    import time
    import json
    import subprocess
    import io

    bblayers = bb.data.getVar('BBLAYERS', d, True).split(" ")
    bblayers = list(filter(lambda x: x != '', bblayers)) # filter empty elements
    cur_dir = bb.data.getVar('THISDIR', d, True)

    hashes = []

    for layer in bblayers:
        layer_name = os.path.basename(layer)
        os.chdir(layer)
        git_hash = subprocess.check_output(['git', 'rev-parse', 'HEAD'])
        layer_data = {}
        layer_data['name'] = layer_name
        layer_data['hash'] = git_hash.replace("\n", "")
        hashes.append(layer_data)

    os.chdir(cur_dir)
    data = {}
    data['timestamp'] = time.strftime('%y%m%d_%H%M%S', time.gmtime())
    data['projects'] = hashes
    data['version' ] = time.strftime('%Y.%m', time.gmtime())

    with io.open(d.getVar('S', True) + '/bsp_version.json', 'w', encoding='utf-8') as f:
        f.write(unicode(json.dumps(data, ensure_ascii=False, indent=4)))

python do_compile() {
    bsp_version(d)
}

do_install() {
    install -d ${D}${sysconfdir}
    install -m 0644 ${S}/bsp_version.json ${D}${sysconfdir}/bsp_version.json
}


Create recipe to demonstrate qt5 example.

SUMMARY = "NMap Carousel application is demonstrating the normal mapping technique using Qt5"
DESCRIPTION = "Normal mapping is used for making the icons appear 3D with lighting and shadows"
HOMEPAGE = "http://quitcoding.com/?page=work#cinex"
LICENSE = "CC-BY-3.0"
LIC_FILES_CHKSUM = "file://README;beginline=44;endline=55;md5=3a9db934c393a0cf198cbe7e73ebec86"

DEPENDS = "qtdeclarative qtgraphicaleffects"

SRC_URI = "http://quitcoding.com/download/Qt5_NMap_CarouselDemo_1.0.tgz"
SRC_URI[md5sum] = "c1b4568cdbb6b3af4ca10c5a90aa8128"
SRC_URI[sha256sum] = "445da212074a10a432f4508d125814212bbe7a967bfa47b015b92dfac6bfd65f"

S = "${WORKDIR}/Qt5_NMap_CarouselDemo_1.0"

require recipes-qt/qt5/qt5.inc

do_install() {
    install -d ${D}${datadir}/${P}
    install -m 0755 ${B}/Qt5_NMap_CarouselDemo ${D}${datadir}/${P}
    cp ${S}/Qt5_NMap_CarouselDemo.qml ${D}${datadir}/${P}
    cp -a ${S}/content ${D}${datadir}/${P}
}

FILES_${PN}-dbg += "${datadir}/${P}/.debug"
FILES_${PN} += "${datadir}"

RDEPENDS_${PN} = "qtdeclarative-qmlplugins qtgraphicaleffects-qmlplugins"


inherit ti-pdk

require qmss-lld.inc

PR = "${INC_PR}.0"

DEPENDS_append = " rm-lld-rtos"

XDCARGS_k2hk-evm = "k2h k2k"
XDCARGS_k2l-evm = "k2l"
XDCARGS_k2e-evm = "k2e"
XDCARGS_k2g-evm = "k2g"


require u-boot-omap3.inc

COMPATIBLE_MACHINE = "ti816x"

BRANCH = "master"

# Use literal tags in SRCREV, when available, instead of commit IDs
SRCREV = "v2010.06_TI816XPSP_04.00.00.10"

UVER = "2010.06"
PSPREL = "04.00.00.10"

PR = "r1"


# (c) Copyright 2012  Hewlett-Packard Development Company, L.P.

DESCRIPTION = "Open webOS image with debug components"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"

PR = "r0"

IMAGE_FEATURES += "webos-temp tools-debug"

inherit webos-image


Add CxxTest framework to recipe-devtools.

DESCRIPTION = "CxxTest is a unit testing framework for C++ that is similar in spirit to JUnit, CppUnit, and xUnit."
HOMEPAGE = "http://cxxtest.com/"
LICENSE = "LGPL-2.0"
SECTION = "devel"

SRC_URI = "http://downloads.sourceforge.net/project/cxxtest/cxxtest/${PV}/cxxtest-${PV}.tar.gz"
SRC_URI[md5sum] = "b3a24b3e1aad9acf6adac37f4c3f83ec"
SRC_URI[sha256sum] = "356d0f4810e8eb5c344147a0cca50fc0d84122c286e7644b61cb365c2ee22083"
LIC_FILES_CHKSUM = "file://${WORKDIR}/cxxtest-${PV}/COPYING;md5=e6a600fd5e1d9cbde2d983680233ad02"
S = "${WORKDIR}/cxxtest-${PV}/python"

inherit distutils

do_install_append() {
    install -d ${D}${includedir}
    cp -a ../cxxtest ${D}${includedir}
    sed '1c\
#!/usr/bin/env python' -i ${D}${bindir}/cxxtestgen
}

BBCLASSEXTEND = "native nativesdk"


DESCRIPTION = "LightDM GTK+ Greeter"
LICENSE = "GPLv3 LGPLv3"
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"

DEPENDS = "lightdm libxklavier gtk+3 consolekit polkit"

PR = "r0"

inherit autotools

SRC_URI = " \
            http://launchpad.net/lightdm-gtk-greeter/trunk/${PV}/+download/lightdm-gtk-greeter-${PV}.tar.gz \
"

SRC_URI[md5sum] = "6dcbcd2b8e71ab510fd16550368b4996"
SRC_URI[sha256sum] = "bfab54008fbb7ea992c43ca9398a06a65a90c26dc2c64e11b4be7bbabf8b7056"

do_install_append() {
	# Basic tweaks to the lightdm-gtk-greeter.conf
	sed -i -e "s|#show-language-selector=false|show-language-selector=true|g" ${D}/${sysconfdir}/lightdm/lightdm-gtk-greeter.conf || true
	sed -i -e "s|#xft-rgba=|xft-rgba=rgb|g" ${D}/${sysconfdir}/lightdm/lightdm-gtk-greeter.conf || true
	sed -i -e "s|#xft-hintstyle=|xft-hintstyle=slight|g" ${D}/${sysconfdir}/lightdm/lightdm-gtk-greeter.conf || true
}

FILES_${PN} += "${datadir}/xgreeters/lightdm* \
"


Add recipe for nettle package, build the package from Debian source

#
# 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"


# SPDX-FileCopyrightText: Huawei Inc.
# SPDX-License-Identifier: MIT

# TODO: Pin upstream release (current v7.11.0-80-g419a757)
src_org = "lvgl"
SRC_URI = "gitsm://github.com/${src_org}/lv_drivers;destsuffix=${S};protocol=https;nobranch=1"
SRCREV = "419a757c23aaa67c676fe3a2196d64808fcf2254"

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=d6fc0df890c5270ef045981b516bb8f2"

HOMEPAGE = "https://docs.lvgl.io/latest/en/html/porting/index.html"
SUMMARY = "LVGL's Display and Touch pad drivers"
DESCRIPTION = "Collection of drivers: SDL, framebuffer, wayland and more..."

DEPENDS += "libxkbcommon"
DEPENDS += "lvgl"
DEPENDS += "wayland"

REQUIRED_DISTRO_FEATURES = "wayland"

inherit cmake
inherit features_check

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

EXTRA_OECMAKE += "-Dinstall:BOOL=ON"

TARGET_CFLAGS += "-DLV_CONF_INCLUDE_SIMPLE=1"
TARGET_CFLAGS += "-I${RECIPE_SYSROOT}/${includedir}/lvgl"

do_configure:append() {
    [ -r "${S}/lv_drv_conf.h" ] \
        || sed -e "s|#if 0 .*Set it to \"1\" to enable the content.*|#if 1 // Enabled by ${PN}|g" \
               -e "s|#  define USE_WAYLAND       0|#  define USE_WAYLAND       1|g" \
          < "${S}/lv_drv_conf_template.h" > "${S}/lv_drv_conf.h"
}

FILES:${PN}-dev = "\
    ${includedir}/lvgl/lv_drivers/ \
    "

FILES:${PN}-staticdev = "${libdir}/"


Add bitbake recipe to build go-checkpoint

SUMMARY = "Go service to check version info and broadcast hashicorp bulletins"
HOMEPAGE = "https://github.com/hashicorp/go-checkpoint"
LICENSE = "MPL-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=b278a92d2c1509760384428817710378"

PKG_NAME = "github.com/hashicorp/go-checkpoint"
SRC_URI = "git://${PKG_NAME}.git"
SRCREV = "88326f6851319068e7b34981032128c0b1a6524d"

S = "${WORKDIR}/git"

do_install() {
    install -d ${D}${prefix}/local/go/src/${PKG_NAME}
    cp -a ${S}/* ${D}${prefix}/local/go/src/${PKG_NAME}/
}

SYSROOT_PREPROCESS_FUNCS += "go_checkpoint_sysroot_preprocess"

go_checkpoint_sysroot_preprocess () {
    install -d ${SYSROOT_DESTDIR}${prefix}/local/go/src/${PKG_NAME}
    cp -a ${D}${prefix}/local/go/src/${PKG_NAME} ${SYSROOT_DESTDIR}${prefix}/local/go/src/$(dirname ${PKG_NAME})
}

FILES_${PN} += "${prefix}/local/go/src/${PKG_NAME}/*"


DESCRIPTION="User space IO (UIO) driver for on-chip modules"

LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=2b7c96eb2aed7b0f6f922214dbde9016"

BRANCH ?= "master"
# This corresponds to version 01.00.01.00A
SRCREV = "3bce5bfec7a7865e278410e3c4484f878b9038b6"
PV = "1.0.1"

SRC_URI = "git://git.ti.com/keystone-linux/uio-module-drv.git;protocol=git;branch=${BRANCH}"

# This package builds a kernel module, use kernel PR as base and append a local
MACHINE_KERNEL_PR_append = "a+gitr${SRCPV}"
PR = "${MACHINE_KERNEL_PR}"

S = "${WORKDIR}/git"

module_auto_load_uio-module-drv = "uio-module-drv"

inherit module


Add mmwave radar ROS driver compatible with mmWave SDK

DESCRIPTION = "This package contains ROS driver for mmWave TI sensor."
SECTION = "devel"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://docs/TI_mmWave_ROS_Driver_manifest.pdf;md5=6ee5d8ff5204a889d79a1ffd1812b3c1"

SRC_URI[base.md5sum] = "f48fe4a1e654f359382fc617667f33c0"
SRC_URI[base.sha256sum] = "72b424a1c7568b04f1b583ef46d7716c10f77a0d05f4e950ac6d70991427a073"
SRC_URI = "http://dev.ti.com/tirex/content/mmwave_industrial_toolbox_2_0_0/labs/lab0006-ros-driver/lab0006_ros_driver_pjt/ti_mmwave_rospkg_v1p2.zip;name=base;subdir=${P}"

# do not use rpath
EXTRA_OECMAKE_append = " -DCMAKE_SKIP_RPATH=ON"

DEPENDS = "message-generation rosserial-embeddedlinux serial-ros nodelet roscpp rosconsole roscpp-serialization rostime std-msgs pcl-ros"

S = "${WORKDIR}/${P}/ti_mmwave_rospkg"

inherit catkin

do_install_append() {
     install -d  ${D}${ros_libdir}/ti_mmwave_rospkg
     cp ${WORKDIR}/build/devel/lib/libmmwave.so ${D}${ros_libdir}
     cp ${WORKDIR}/build/devel/lib/ti_mmwave_rospkg/* ${D}${ros_libdir}/ti_mmwave_rospkg/
     cp ${S}/mmWave_nodelets.xml ${D}${ros_datadir}/ti_mmwave_rospkg/
     cp -r ${S}/cfg ${D}${ros_datadir}/ti_mmwave_rospkg/
     cp -r ${S}/launch ${D}${ros_datadir}/ti_mmwave_rospkg/
}

FILES_${PN} += "${ros_libdir}/ti_mmwave_rospkg"

ROS_SPN = "ti_mmwave_rospkg"


require x-load.inc

LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://README;beginline=1;endline=25;md5=ef08d08cb99057bbb5b9d6d0c5a4396f"

COMPATIBLE_MACHINE = "omap3-pandora"

FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/x-load-${MACHINE}/${MACHINE}"

SRCREV = "b3646a83f9e67ec9a2de3182fd254557fd6ad9aa"

PROVIDES = "x-load"

PV = "1.42+${PR}+gitr${SRCREV}"
PR ="r3"
PE = "1"

SRC_URI = "git://git.openpandora.org/pandora-x-loader.git;branch=master;protocol=git"

S = "${WORKDIR}/git"

PACKAGE_ARCH = "${MACHINE_ARCH}"

XLOAD_MACHINE = "pandora_config"

Move X-Loader to 1.5.1 release.

require x-load.inc

LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://README;beginline=1;endline=25;md5=ef08d08cb99057bbb5b9d6d0c5a4396f"

COMPATIBLE_MACHINE = "omap3-pandora"

FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/x-load-${MACHINE}/${MACHINE}"

SRCREV = "6b7fb6dd9ccdf7c3c5ea2d1e476dafd852a0d47a"

PROVIDES = "x-load"

PV = "1.5.1+${PR}+gitr${SRCREV}"
PR ="r1"
PE = "1"

SRC_URI = "git://git.openpandora.org/pandora-x-loader.git;branch=pandora-1.5.1;protocol=git"

S = "${WORKDIR}/git"

PACKAGE_ARCH = "${MACHINE_ARCH}"

XLOAD_MACHINE = "pandora_config"


DESCRIPTION = "Firmware for the IXP4xx line of devices"
MAINTAINER = "Oyvind Repvik <nail@nslu2-linux.org>"
LICENSE = "Intel Public Licence"
PR = "r0"

SRC_URI = "http://www.intel.com/Please-Read-The-BB-File/IPL_ixp400AccessLibrary-2_1.zip"
inherit native
S = ${WORKDIR}/ixp400_xscale_sw/src/npeDl

do_compile() {
	${CC} -Wall IxNpeMicrocode.c -o IxNpeMicrocode
	${S}/IxNpeMicrocode
}

do_install() {
	install -d ${D}/usr/lib/firmware/NPE-B
	install ${S}/NPE-B.010c0200 ${D}/usr/lib/firmware/NPE-B/
}


Add recipes for arm/32bit examples on amlogic SOCs

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

DESCRIPTION = "Mali Samples"
HOMEPAGE = "http://openlinux.amlogic.com:8000/download/GPL_code_release/ThirdParty/?C=M;O=D"
LICENSE = "Closed"
LIC_FILES_CHKSUM = "file://Mali_OpenGL_ES_SDK_v2.4.4_Documentation.html;md5=561d0b7167db0f2048c175658731c52e"
SECTION = "apps"
DEPENDS = "virtual/egl"

GITPV = ".71fdbd"

SRC_URI = "http://openlinux.amlogic.com:8000/download/GPL_code_release/ThirdParty/Mali_OpenGL_ES_SDK_v${PV}${GITPV}_Linux_x86.tar.gz"
SRC_URI[md5sum] = "441f89136e4fc1137214610aff0f7021"
SRC_URI[sha256sum] = "8ec00f3fa38b4af9b07b8a1d6ce0d68bda8124279586f5087acb24c658307b65"

inherit cmake pkgconfig

export TOOLCHAIN_ROOT = "${HOST_PREFIX}"
EXTRA_OECMAKE = "-DTARGET=arm"

S = "${WORKDIR}/Mali_OpenGL_ES_SDK_v${PV}"

do_install_append() {
	install -D -m 0755 ${B}/simple_framework/libsimple_framework2.so ${d}${libidr}
	install -D -m 0755 ${B}/simple_framework/libsimple_framework3.so ${D}${libdir}
}
COMPATIBLE_HOST = 'arm.*-linux'


# Copyright (C) 2015 Romain Perier <romain.perier@gmail.com>
# Released under the MIT license (see COPYING.MIT for the terms)

inherit base

DESCRIPTION = "Chromium OS Broadcom patchram utility"
HOMEPAGE = "https://chromium.googlesource.com/chromiumos/third_party/broadcom/"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${S}/LICENSE.broadcom;md5=4ff9e0bf45dfdad0b7756c07b65ed24a"
S = "${WORKDIR}/git/bluetooth"
SECTION = "console/utils"

DEPENDS = "bluez5"
PR = "r1"
PV = "git+4070e71"

SRCREV = "4070e7161f2f1a1a22027a744eb868500688f0b6"
SRC_URI = "git://chromium.googlesource.com/chromiumos/third_party/broadcom;protocol=http;branch=master"

FILES_${PN} = "/usr/bin/*"

do_install_append() {
	install -d ${D}/usr/bin
	install -m 755 brcm_patchram_plus ${D}/usr/bin
}


SUMMARY = "Xilinx DisplayPort Linux Kernel module"
DESCRIPTION = "Out-of-tree DisplayPort(DP) kernel modules provider for aarch64 devices"
SECTION = "kernel/modules"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://LICENSE.md;md5=eb723b61539feef013de476e68b5c50a"

XLNX_DP_VERSION = "5.4.0"
PV = "${XLNX_DP_VERSION}"

S = "${WORKDIR}/git"

BRANCH ?= "master"
REPO   ?= "git://github.com/xilinx/dp-modules.git;protocol=https"
SRCREV ?= "a3a7dfe17cf610fd4186b11638e1ce6b78dc958a"

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

inherit module

EXTRA_OEMAKE += "O=${STAGING_KERNEL_BUILDDIR}"
COMPATIBLE_MACHINE = "^$"
COMPATIBLE_MACHINE_zynqmp = "zynqmp"
COMPATIBLE_MACHINE_versal = "versal"

PACKAGE_ARCH = "${SOC_FAMILY_ARCH}"


SUMMARY = "Babel is a loop-avoiding distance-vector routing protocol"
DESCRIPTION = "\
Babel is a loop-avoiding distance-vector routing protocol for IPv6 and \
IPv4 with fast convergence properties. It is based on the ideas in DSDV, AODV \
and Cisco's EIGRP, but is designed to work well not only in wired networks \
but also in wireless mesh networks, and has been extended with support \
for overlay networks. Babel is in the process of becoming an IETF Standard. \
"
HOMEPAGE = "https://www.irif.fr/~jch/software/babel/"
SECTION = "net"

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENCE;md5=411a48ac3c2e9e0911b8dd9aed26f754"

SRC_URI = "git://github.com/jech/babeld.git;protocol=git"
SRCREV = "535184173fcde5ddc43020cd197d01d1ea0e9a8b"

S = "${WORKDIR}/git"

do_compile () {
	oe_runmake babeld
}

do_install () {
	oe_runmake install.minimal PREFIX=${D}
}


DESCRIPTION = "A distributed key-value store for shared config and service discovery"
HOMEPAGE = "https://github.com/coreos/etcd"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"

PKG_NAME = "github.com/coreos/etcd"
SRC_URI = "git://${PKG_NAME}.git"
SRCREV = "d0f6432b51e37c402450182ce01203dca8a40108"

DEPENDS += "golang-cross"
S = "${WORKDIR}/git"
TARGET_CC_ARCH += "${LDFLAGS}"

do_compile() {
        #Setting up GOPATH to find deps (including those already in etcd)
        cd ${S}
        rm -rf .gopath
        mkdir -p .gopath/src/$(dirname ${PKG_NAME})
        ln -sf ../../../.. .gopath/src/${PKG_NAME}
        export GOPATH=${S}/.gopath
        # supported amd64, 386, arm
        if [ "${TARGET_ARCH}" = "x86_64" ]; then
                export GOARCH="amd64"
        fi
        go install ${PKG_NAME}
}

do_install() {
    install -d ${D}${prefix}/bin
    cp -a ${S}/.gopath/bin/* ${D}${prefix}/bin/
}

FILES_${PN} += "${prefix}/bin/*"


Add recipe to support Raspberry Pi Sense HAT

SUMMARY = "Python module to control the Raspberry Pi Sense HAT used in the Astro Pi mission"
HOMEPAGE = "https://github.com/RPi-Distro/python-sense-hat"
SECTION = "devel/python"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://LICENCE.txt;md5=d80fe312e1ff5fbd97369b093bf21cda"

SRCNAME = "sense-hat"

SRC_URI = "https://pypi.python.org/packages/source/s/${SRCNAME}/${SRCNAME}-${PV}.tar.gz"

SRC_URI[md5sum] = "71217f15ea963040f06e2f50722186ca"
SRC_URI[sha256sum] = "c6c76707c0ea514e4b0f1f96f1b5b79755875891aae037df7434b6aad7b9dbca"

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

inherit setuptools

DEPENDS += " \
    jpeg \
    zlib \
    freetype \
    "

RDEPENDS_${PN} += " \
    python-numpy \
    python-rtimu \
    python-imaging \
    "


Add a recipe freeglut to replace mesa-glut

DESCRIPTION = "FreeGLUT is a free-software/open-source alternative to the OpenGL \
               Utility Toolkit (GLUT) library"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=89c0b58a3e01ce3d8254c9f59e78adfb"

SRC_URI = "https://sourceforge.net/projects/${BPN}/files/${BPN}/${PV}/${BPN}-${PV}.tar.gz"
SRC_URI[md5sum] = "90c3ca4dd9d51cf32276bc5344ec9754"
SRC_URI[sha256sum] = "2a43be8515b01ea82bcfa17d29ae0d40bd128342f0930cd1f375f1ff999f76a2"

inherit cmake distro_features_check

# depends on virtual/libx11
REQUIRED_DISTRO_FEATURES = "x11"

PROVIDES += "mesa-glut"

DEPENDS = "virtual/libx11 libxmu libxi virtual/libgl libglu libxrandr"


SUMMARY = "C library for country/city/organization to IP address or hostname mapping"
DESCRIPTION = " GeoIP is a C library that enables the user to find the country 	\
		that any IP address or hostname originates from. It uses a file	\
		based database that is accurate as of March 2003. This database	\
		simply contains IP blocks as keys, and countries as values. 	\
		This database should be more complete and accurate than 	\
		using reverse DNS lookups."
HOMEPAGE = "http://dev.maxmind.com/geoip/"

PR = "r0"
inherit debian-package

LICENSE = "LGPLv2.1+"
LIC_FILES_CHKSUM = "file://COPYING;md5=d5d53d6b948c064f4070183180a4fa89"

inherit autotools

#split geoip package to sub-packages
PACKAGES =+ "libgeoip1"

#compile follow debian/rules
do_compile_append () {
	${CXX} ${CPPFLAGS} ${LDFLAGS} -g ${S}/debian/src/geoip-csv-to-dat.cpp -o \
		${S}/debian/src/geoip-generator -lGeoIP \
		-I${S}/libGeoIP -L${B}/libGeoIP/.libs
	${CXX} ${CPPFLAGS} ${LDFLAGS} -g ${S}/debian/src/geoip-asn-csv-to-dat.cpp -o \
		${S}/debian/src/geoip-generator-asn -lGeoIP \
		-I${S}/libGeoIP -L${B}/libGeoIP/.libs
}

#install follow Debian jessies
do_install_append() {
	install -d ${D}${libdir}/geoip
	install -m 0755 ${S}/debian/src/geoip-generator \
			${D}${libdir}/geoip/
	install -m 0755 ${S}/debian/src/geoip-generator-asn \
                        ${D}${libdir}/geoip/
}
#Correct the package name
DEBIANNAME_${PN} = "${PN}-bin"

FILES_libgeoip1 = "${libdir}/libGeoIP.so.*"