DESCRIPTION = "Gigolo is a frontend to easily manage connections to remote filesystems using GIO/GVfs."
DEPENDS = "pkgconfig gtk+ gvfs"
RDEPENDS = "libxfce4util libxfcegui4 gvfs"

SECTION = "x11"
LICENSE = "GPL-2"
PR = "r2"

inherit xfce46

XFCE_VERSION = "4.6.1"

SRC_URI = "http://files.uvena.de/${PN}/${PN}-${PV}.tar.bz2"

do_compile() {
   oe_runmake
}

Add fuse-utils to RDEPENDS as Gigolo is not a lot of use without it.

DESCRIPTION = "Gigolo is a frontend to easily manage connections to remote filesystems using GIO/GVfs."
DEPENDS = "pkgconfig gtk+ gvfs"
RDEPENDS = "libxfce4util libxfcegui4 gvfs fuse-utils"

SECTION = "x11"
LICENSE = "GPL-2"
PR = "r3"

inherit xfce46

XFCE_VERSION = "4.6.1"

SRC_URI = "http://files.uvena.de/${PN}/${PN}-${PV}.tar.bz2"

do_compile() {
   oe_runmake
}


Add eventlog recipe, borrowed from meta-oe

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. \
"

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

SRC_URI = "http://www.balabit.com/downloads/files/syslog-ng/open-source-edition/3.4.2/source/${BPN}_${PV}.tar.gz"

inherit autotools pkgconfig

SRC_URI[md5sum] = "68ec8d1ea3b98fa35002bb756227c315"
SRC_URI[sha256sum] = "7cb4e6f316daede4fa54547371d5c986395177c12dbdec74a66298e684ac8b85"


Add RapidJSON recipe required for AWS IoT C++ Device SDK

DESCRIPTION = "A fast JSON parser/generator for C++ with both SAX/DOM style API"
HOMEPAGE = "http://rapidjson.org/"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://license.txt;md5=ba04aa8f65de1396a7e59d1d746c2125"

inherit cmake

PR = "r0"

SRC_URI = "git://github.com/miloyip/rapidjson.git"
SRCREV = "f54b0e47a08782a6131cc3d60f94d038fa6e0a51"

PACKAGES = "${PN}-dev"

S = "${WORKDIR}/git"
B = "${WORKDIR}/build"

EXTRA_OECMAKE += "-DRAPIDJSON_BUILD_DOC=OFF -DRAPIDJSON_BUILD_EXAMPLES=OFF -DRAPIDJSON_BUILD_TESTS=OFF -DRAPIDJSON_BUILD_THIRDPARTY_GTEST=OFF"

do_install() {
	install -d ${D}${includedir}/${PN}
	install -d ${D}${includedir}/${PN}/error
	install -d ${D}${includedir}/${PN}/internal
	install -d ${D}${includedir}/${PN}/msinttypes
	install -m 0644 ${S}/include/${PN}/*.h ${D}${includedir}/${PN}/
	install -m 0644 ${S}/include/${PN}/error/*.h ${D}${includedir}/${PN}/error/
	install -m 0644 ${S}/include/${PN}/internal/*.h ${D}${includedir}/${PN}/internal/
	install -m 0644 ${S}/include/${PN}/msinttypes/*.h ${D}${includedir}/${PN}/msinttypes/

	install -d ${D}${libdir}/pkgconfig
	install -m 0644 ${B}/*.pc ${D}${libdir}/pkgconfig/

	install -d ${D}${libdir}/cmake/RapidJSON
	install -m 0644 ${B}/RapidJSONConfig.cmake ${D}${libdir}/cmake/RapidJSON
	install -m 0644 ${B}/RapidJSONConfigVersion.cmake ${D}${libdir}/cmake/RapidJSON
}

FILES_${PN}-dev += "\
	${includedir} \
	${libdir} \
"


SUMMARY = "R5 PSDK CPSW9G Ethernet Switch Firmware"

LICENSE = "TI-TFL"
LIC_FILES_CHKSUM = "file://LICENSE.ti;md5=04ad0a015d4bb63c2b9e7b112debf3db"

PV = "1.0+git${SRCPV}"
PACKAGE_ARCH = "${MACHINE_ARCH}"

inherit deploy
inherit update-alternatives

PROTOCOL = "git"
BRANCH = "master"
SRCREV = "df7f399319ee401dfbda9317878128a0f718507f"

SRC_URI = "git://git.ti.com/glsdk/ti-eth-fw.git;protocol=${PROTOCOL};branch=${BRANCH}"

S = "${WORKDIR}/git"

CPSW9G_FW_DIR = "${S}/ethfw"
CPSW9G_FW_FILENAME = "app_remoteswitchcfg_server.xer5f"

# make sure that lib/firmware, and all its contents are part of the package
FILES_${PN} += "${base_libdir}/firmware"

do_install() {
  install -d ${D}${base_libdir}/firmware
# Ethernet firmware to be loaded on Main R5 core(needs read permission)
  install -m 0644 ${CPSW9G_FW_DIR}/${CPSW9G_FW_FILENAME} ${D}${base_libdir}/firmware
}

TARGET_MAIN_R5FSS0_0 = "j7-main-r5f0_0-fw"
ALTERNATIVE_${PN} = "j7-main-r5f0_0-fw"
ALTERNATIVE_LINK_NAME[j7-main-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_0}"
ALTERNATIVE_TARGET[j7-main-r5f0_0-fw] = "${base_libdir}/firmware/${CPSW9G_FW_FILENAME}"
ALTERNATIVE_PRIORITY = "17"

INHIBIT_PACKAGE_STRIP = "1"
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
INSANE_SKIP_${PN} += "arch"

do_compile[noexec] = "1"
do_configure[noexec] = "1"


DESCRIPTION = "TI OpenCL"
HOMEPAGE = "https://gitorious.design.ti.com/ocl"
LICENSE = "BSD"

include ocl.inc

PR = "${INC_PR}.0"

inherit cmake

COMPATIBLE_MACHINE = "dra7xx|k2hk-evm"
PACKAGE_ARCH = "${MACHINE_ARCH}"

PACKAGES += " ${PN}-runtime"

DEPENDS = "ocl-gl-headers opencl-monitor cmake-native cmem ti-llvm3.3 ti-llvm3.3-native binutils sqlite3 libffi boost boost-native libloki pkgconfig-native libulm"

DEPENDS_append_dra7xx += "ti-ipc virtual/kernel"
DEPENDS_append_k2hk-evm += " mpm-transport multiprocmgr"

RDEPENDS_${PN}-dev += " ocl-gl-headers-dev opencl-monitor"
RDEPENDS_${PN}-runtime += " ${PN} opencl-monitor clocl ti-cgt6x"

ALLOW_EMPTY_${PN}-runtime = "1"

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

export WANT_LLVM_RELEASE = "3.3-ti"

OCL_BUILD_TARGET_dra7xx = "ARM_AM57"
OCL_BUILD_TARGET_k2hk-evm = "ARM_K2H"

EXTRA_OECMAKE += " -DBUILD_TARGET=${OCL_BUILD_TARGET} -DBUILD_OUTPUT=lib -DENABLE_ULM=1"

EXTRA_OEMAKE += "KERNEL_INSTALL_DIR=${STAGING_KERNEL_DIR} LINUX_DEVKIT_ROOT=${STAGING_DIR_HOST}"
export KERNEL_INSTALL_DIR = "${STAGING_KERNEL_DIR}"

FILES_${PN} += " \
    ${datadir}/ti/opencl/* \
"


SUMMARY = "raw image decoder"
LICENSE = "LGPL-2.1 | CDDL-1.0"
LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=74c9dffdc42805f9c0de2f97df6031fc"

SRC_URI = "git://github.com/LibRaw/LibRaw.git"
SRCREV = "0209b6a2caec189e6d1a9b21c10e9e49f46e5a92"
S = "${WORKDIR}/git"

inherit autotools pkgconfig

DEPENDS = "jpeg jasper lcms"


Add ESD daemon for Nokia 770 to be used with DSP stuff.

PR         = "r0"
LICENSE    = "GPL"
MAINTAINER = "Florian Boor <florian@kernelconcepts.de>"
PROVIDES   = "esd"
RPROVIDES  = "esd"

DEPENDS = "audiofile osso-dsp-headers"

SRC_URI = "http://repository.maemo.org/pool/maemo/ossw/source/o/${PN}/${PN}_${PV}.orig.tar.gz"

S = ${WORKDIR}/esd

inherit autotools pkgconfig


Add e17genmenu, a program to convert KDE and Gnome menus to e17 menus

DESCRIPTION = "Convert Gnome or KDE menus to e17 menus"
SECTION = "e/utils"
DEPENDS = "e virtual/ecore virtual/evas eet engrave"
LICENSE = "MIT"
HOMEPAGE = "http://sourceforge.net/projects/e17genmenu"
MAINTAINER = "Justin Patrin <papercrane@reversefold.com>"
PR = "r0"

export EET_CONFIG		= "${STAGING_BINDIR}/eet-config"
export EVAS_CONFIG		= "${STAGING_BINDIR}/evas-config"
export ECORE_CONFIG		= "${STAGING_BINDIR}/ecore-config"
export ENGRAVE_CONFIG		= "${STAGING_BINDIR}/engrave-config"
export ENLIGHTENMENT_CONFIG	= "${STAGING_BINDIR}/enlightenment-config"

SRC_URI = "${SOURCEFORGE_MIRROR}/e17genmenu/e17genmenu-2.0.2.tar.gz"

inherit autotools


Add new release of minilite supporting the Nokia 770.

inherit gpe
LICENSE = "GPL"
DEPENDS = "libgpewidget"
SECTION = "gpe"

DESCRIPTION = "GPE Screen light control dockapp"

SRC_URI = "${GPE_MIRROR}/${PN}-${PV}.tar.gz"

export CVSBUILD="no"


Add bitbake recipe to build mapstructure

SUMMARY = "Go library for decoding generic map values to structures"
HOMEPAGE = "https://github.com/mitchellh/mapstructure"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3f7765c3d4f58e1f84c4313cecf0f5bd"

PKG_NAME = "github.com/mitchellh/mapstructure"
SRC_URI = "git://${PKG_NAME}.git"
SRCREV = "2caf8efc93669b6c43e0441cdc6aed17546c96f3"

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 += "mapstructure_sysroot_preprocess"

mapstructure_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 user space library for udma kernel driver

DESCRIPTION = "Provides zero copy access from user-space to packet dma channels via udma kernel driver"
LICENSE = "BSD-3-Clause"

COMPATIBLE_MACHINE = "keystone"
LIC_FILES_CHKSUM = "file://include/udma.h;startline=1;endline=39;md5=ba3c7f91f970afe073b759ced61d0f27"

BRANCH = "master"
SRC_URI = "git://git.ti.com/keystone-linux/udma.git;protocol=git;branch=${BRANCH}"
S = "${WORKDIR}/git"
# Commit corresponds to UDMA.01.00.00.00
SRCREV = "53d09fb0bc98c41c5eb43623097e363c497d6fd8"

PACKAGES =+ "${PN}-test"

FILES_${PN}-test = "${bindir}/udma_test"

do_install_append() {
	install -d ${D}${bindir}/
	install -d ${D}${libdir}/
	install -d ${D}${includedir}/
	install -c -m 755 ${S}/udma_test ${D}${bindir}/
	install -c -m 755 ${S}/libudma.a ${D}${libdir}/
	install -c -m 755 ${S}/libudma.so ${D}${libdir}/libudma.so.1.0.0
	cd ${D}${libdir}/
	ln -sf libudma.so.1.0.0 libudma.so.1
	ln -sf libudma.so.1.0.0 libudma.so
	install -c -m 755 ${S}/include/* ${D}${includedir}/
}


DESCRIPTION = "GNOME bluetooth manager"
LICENSE = "GPL"
SECTION = "x11/gnome"
DEPENDS = "gnome-doc-utils-native obexd obex-data-server gconf gtk+ dbus-glib libunique libnotify hal bluez4 gnome-keyring"

PR = "r1"

inherit gnome

SRC_URI[archive.md5sum] = "eb88212922037eb9751f0fcedb9c166e"
SRC_URI[archive.sha256sum] = "4caafa8c28195c81d8c51414f3a64489f81b9b46cac56979aeaaff8c9ebb78d4"

# No 'nautilus-sendto' recipe in OE et
EXTRA_OECONF = "--enable-nautilus-sendto=no"

do_configure_append() {
	sed -i 's,func_fatal_error "error: cannot install,echo "bogus message about,' ${TARGET_PREFIX}libtool
}

RRECOMMENDS_${PN} += "obexd obex-data-server"
RCONFLICTS_${PN} = "bluez-gnome"

FILES_${PN}-dbg += "${libdir}/gnome-bluetooth/plugins/.debug/"

Remove support for help file generator to not depend on host system docbook XSL processing.

DESCRIPTION = "GNOME bluetooth manager"
LICENSE = "GPL"
SECTION = "x11/gnome"
DEPENDS = "gnome-doc-utils-native obexd obex-data-server gconf gtk+ dbus-glib libunique libnotify hal bluez4 gnome-keyring"

PR = "r2"

inherit gnome

SRC_URI[archive.md5sum] = "eb88212922037eb9751f0fcedb9c166e"
SRC_URI[archive.sha256sum] = "4caafa8c28195c81d8c51414f3a64489f81b9b46cac56979aeaaff8c9ebb78d4"

# No 'nautilus-sendto' recipe in OE yet
EXTRA_OECONF = "--enable-nautilus-sendto=no --disable-scrollkeeper"

# No native docbook XSL stylesheets recipe in OE yet
do_configure_prepend() {
	sed -i s/help// Makefile.am
}

do_configure_append() {
	sed -i 's,func_fatal_error "error: cannot install,echo "bogus message about,' ${TARGET_PREFIX}libtool
}

RRECOMMENDS_${PN} += "obexd obex-data-server"
RCONFLICTS_${PN} = "bluez-gnome"

FILES_${PN}-dbg += "${libdir}/gnome-bluetooth/plugins/.debug/"


Add a build of opencv samples from libv4l branch

DESCRIPTION = "Opencv : The Open Computer Vision Library"
HOMEPAGE = "http://sourceforge.net/projects/opencvlibrary"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "GPLv2"

PR = "r3"

DEPENDS = "opencv"

SRCREV = "fb7cc87ed6a7425f3edc58e2d1eb44599496ac09"
SRC_URI = "git://github.com/nzjrs/opencv.git;protocol=git;branch=libv4l"
PV = "1.1.0+git${SRCREV}"

S = "${WORKDIR}/git"

do_install() {
    cd samples/c
	install -d ${D}/${bindir}

    for i in *.c; do
        echo "compiling $i"
        ${CXX} ${CFLAGS} ${LDFLAGS} -ggdb `pkg-config --cflags opencv` -o `basename $i .c` $i `pkg-config --libs opencv`;
		install -m 0755 `basename $i .c` ${D}/${bindir}
	done
    for i in *.cpp; do
        echo "compiling $i"
        ${CXX} ${CFLAGS} ${LDFLAGS} -ggdb `pkg-config --cflags opencv` -o `basename $i .cpp` $i `pkg-config --libs opencv`;
		install -m 0755 `basename $i .cpp` ${D}/${bindir}
	done
}

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


Add support for user-defined multimedia in rootfs

DESCRIPTION = "MultiMedia files"
LICENSE = "GPL"
PR = "r5"

# This package allows you to add multimedia contents to the file system
# To add this, you define
# MULTIMEDIA_FILES=<path><filename>.tar.bz2 in local.conf
# and include "multimedia" in your image

do_install() {
	install -d ${D}/usr/share/multimedia
	if [ "x${MULTIMEDIA_FILES}" != "x" ] ; then
		if [ -f ${MULTIMEDIA_FILES} ] ; then
			tar jxvf ${MULTIMEDIA_FILES}	-C ${D}/usr/share/multimedia
		fi
	fi
}

FILES_${PN} = "\
	/usr/share/multimedia/* \
	/usr/share/multimedia \
	"


SUMMARY = "userspace USB programming library"
DESCRIPTION = "\
	Library for programming USB applications without the knowledge \
	of Linux kernel internals."
HOMEPAGE = "http://www.linux-usb.org/"

inherit debian-package autotools pkgconfig

PR = "r0"

LICENSE = "LGPLv2.1+"
LIC_FILES_CHKSUM = "file://COPYING;md5=dcf3c825659e82539645da41a7908589"
EXTRA_OECONF = "--disable-build-docs"

do_install_append() {
	install -d ${D}${base_libdir}
	mv ${D}${libdir}/libusb-0.1.so.* ${D}${base_libdir}/

	ln -sf ../../lib/libusb-0.1.so.4 \
		${D}${libdir}/libusb-0.1.so.4

	LINKLIB=$(basename $(readlink ${D}${libdir}/libusb.so))
	ln -sf ../../lib/$LINKLIB ${D}${libdir}/libusb.so

	rm ${D}${libdir}/*.la
}

PACKAGES =+ "${PN}++ ${PN}++-dev"

FILES_${PN} += "${bindir}/libusb-config"
FILES_${PN}++ = "${libdir}/libusbpp-*"
FILES_${PN}++-dev = "${includedir}/usbpp.h ${libdir}/libusbpp.so"

DEBIANNAME_${PN} = "${PN}-0.1-4"
DEBIANNAME_${PN}++ = "${PN}++-0.1-4c2"
DEBIANNAME_${PN}++-dev = "${PN}++-dev"


LICENSE = "GPL"
inherit gnome

DEPENDS += "shared-mime-info intltool-native"
RDEPENDS_${PN} = "shared-mime-info"
PR = "r1"

FILES_${PN}-dev += "${datadir}/pkgconfig/*.pc"

SRC_URI[archive.md5sum] = "541858188f80090d12a33b5a7c34d42c"
SRC_URI[archive.sha256sum] = "37196b5b37085bbcd45c338c36e26898fe35dd5975295f69f48028b1e8436fd7"

Update LICENSE field version to GPLv2

LICENSE = "GPLv2 GPLv2+"
inherit gnome

DEPENDS += "shared-mime-info intltool-native"
RDEPENDS_${PN} = "shared-mime-info"
PR = "r2"

FILES_${PN}-dev += "${datadir}/pkgconfig/*.pc"

SRC_URI[archive.md5sum] = "541858188f80090d12a33b5a7c34d42c"
SRC_URI[archive.sha256sum] = "37196b5b37085bbcd45c338c36e26898fe35dd5975295f69f48028b1e8436fd7"


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

# base recipe: meta/recipes-support/libbsd/libbsd_0.7.0.bb
# base branch: master

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

SUMMARY = "Library of utility functions from BSD systems"
DESCRIPTION = "This library provides useful functions commonly found on BSD systems, \
               and lacking on others like GNU systems, thus making it easier to port \
               projects with strong BSD origins, without needing to embed the same \
               code over and over again on each project."

HOMEPAGE = "http://libbsd.freedesktop.org/wiki/"

PR = "r0"

inherit debian-package

LICENSE = "BSD-4-Clause & MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=f1530ea92aeaa1c5e2547cfd43905d8c"
SECTION = "libs"
DEPENDS = ""

inherit autotools pkgconfig

do_install_append() {
	# move libbsd.so.0* file from ${libdir} to ${base_libdir} as debian jessie
	install -d ${D}${base_libdir}
	mv ${D}${libdir}/libbsd.so.0* ${D}${base_libdir}/

	# Relink library
	rel_lib_prefix=`echo ${libdir} | sed 's,\(^/\|\)[^/][^/]*,..,g'`
	libname=`readlink ${D}${libdir}/libbsd.so | xargs basename`
	ln -sf ${rel_lib_prefix}${base_libdir}/${libname} ${D}${libdir}/libbsd.so
}

FILES_${PN}0 += "${base_libdir}/*"


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

# base recipe: not base recipe
# base branch:

LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"

PR = "r0"
inherit debian-package

inherit autotools


SUMMARY = "Ply: A light-weight dynamic tracer for eBPF"
HOMEPAGE = "https://github.com/iovisor/ply"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"

DEPENDS += "bison-native"

SRC_URI = "git://github.com/iovisor/ply"
SRCREV = "aa5b9ac31307ec1acece818be334ef801c802a12"

S = "${WORKDIR}/git"

inherit autotools-brokensep

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


#Angstrom bootstrap at91sam9 image

IMAGE_PREPROCESS_COMMAND = "create_etc_timestamp"

ANGSTROM_EXTRA_INSTALL += " \
	alsa-utils-amixer \
	alsa-utils-aplay \
	dosfstools \
	iperf \
	madplay \
	mplayer \
	mtd-utils \
#	nbench-byte \
	owl-wifi \
	thttpd \
	usbview \
	"

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)} \
	   "

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

#we dont need the kernel in the image
ROOTFS_POSTPROCESS_COMMAND += "rm -f ${IMAGE_ROOTFS}/boot/*Image*; "

inherit image


SUMMARY = "C library for encoding, decoding and manipulating JSON data"
DESCRIPTION = " Jansson is a C library for encoding, decoding and manipulating JSON data.\n\
 .\n\
 It features:\n\
  * Simple and intuitive API and data model\n\
  * Comprehensive documentation\n\
  * No dependencies on other libraries\n\
  * Full Unicode support (UTF-8)\n\
  * Extensive test suite"
HOMEPAGE = "http://www.digip.org/jansson/"

PR = "r0"
inherit debian-package

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=517b9b5519c82636e516e4969c5ce393"

inherit autotools


#base recipe: /meta/recipes-extended/minicom/minicom_2.7.bb
# base branch: master
# base commit: 7e4cc9892dc72bfd360855940e715f8d43186053
#

SUMMARY = "Text-based modem control and terminal emulation program"
DESCRIPTION = " Minicom is a text-based modem control and terminal emulation \
		program for Unix-like operating systems"
HOMEPAGE = "https://alioth.debian.org/projects/minicom/"

PR = "r0"
inherit debian-package

DEPENDS = "ncurses"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "\
	file://COPYING;md5=420477abc567404debca0a2a1cb6b645 \
	file://src/minicom.h;beginline=1;endline=12;md5=a58838cb709f0db517f4e42730c49e81"

inherit autotools gettext pkgconfig


DESCRIPTION = "PHP PEAR modules for creating an authentication system"

PR = "r0"

inherit debian-package

LICENSE = "PHP-3.1"
LIC_FILES_CHKSUM = "file://debian/copyright;md5=02f173e28791fe9054ea54631abf4dc3"

do_install() {
	install -d ${D}${datadir}/php/Auth/Container
	install -d ${D}${datadir}/php/Auth/Frontend
	install -m 644 ${S}/Auth-*/Auth.php ${D}${datadir}/php/
	install -m 644 ${S}/Auth-*/Auth/*.php ${D}${datadir}/php/Auth
	install -m 644 ${S}/Auth-*/Auth/Container/* ${D}${datadir}/php/Auth/Container
	install -m 644 ${S}/Auth-*/Auth/Frontend/* ${D}${datadir}/php/Auth/Frontend
}

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


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


SUMMARY = "SELinux library for manipulating binary security policies"
inherit debian-package

PR = "r0"

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

do_compile(){
	oe_runmake
}

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

PACKAGES =+ "sepol-utils"

FILES_sepol-utils += "${bindir}/chkcon"
FILES_${PN} += "${base_libdir}/libsepol.so.1"


SUMMARY = "Video Decode and Presentation API for Unix"
DESCRIPTION = "\
VDPAU (Video Decode and Presentation API for Unix) is an open source \
library (libvdpau) and API designed by NVIDIA originally for its GeForce \
8 series and later GPU hardware, targeted at the X Window System on Unix \
operating-systems (including Linux, FreeBSD, and Solaris). This VDPAU API \
allows video programs to offload portions of the video decoding process \
and video post-processing to the GPU video-hardware. \
"
HOMEPAGE = "http://cgit.freedesktop.org/~aplattner/libvdpau"
PR = "r0"
inherit debian-package pkgconfig

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

DEPENDS += "libx11 libxext dri2proto"
#follow debian/rules
EXTRA_OECONF += "--enable-dri2"
do_install_append() {
	rm ${D}${libdir}/vdpau/libvdpau_trace.so \
		${D}${libdir}/vdpau/libvdpau_trace.la \
		${D}${libdir}/*.la
}
FILES_${PN} += "${libdir}/vdpau/libvdpau_trace.so.*"
FILES_${PN}-dbg += "${libdir}/vdpau/.debug"


DESCRIPTION = "TI Resource Manager Low Level Driver"
LICENSE = "TI BSD"
LIC_FILES_CHKSUM = "file://${WORKDIR}/git/ti/drv/rm/COPYING.txt;md5=dc61631b65360e6beb73b6c337800afc"

BRANCH="master"
SRC_URI = "git://git.ti.com/keystone-rtos/rm-lld.git;destsuffix=git/ti/drv/rm;protocol=git;branch=${BRANCH}"
# Below commit ID corresponds to DEV.RM_LLD.02.01.00.04
SRCREV = "59e3bf5fca3995dd0f79bbdd1af988d278a2a049"
PR = "r0"
PV = "02.01.00.04"

COMPATIBLE_MACHINE = "keystone"

DEPENDS = "ti-ipc"

PACKAGES =+ "${PN}-test"

FILES_${PN}-test = "${bindir}/rmDspClientTest_*.out \
                    ${bindir}/rmLinuxClientTest_*.out \
                    ${bindir}/ti/drv/rm/test/dts_files/*.dtb"

DEVICELIST = "k2h k2k"

CHOICELIST = "yes no"

BASEDIR = "${WORKDIR}/git"
S = "${BASEDIR}/ti/drv/rm"

do_compile () {
#   Now build the lld
    make -f makefile_armv7 clean lib PDK_INSTALL_PATH=${STAGING_INCDIR} RM_SRC_DIR=${S}
    for device in ${DEVICELIST}
    do
      for choice in ${CHOICELIST}
      do
        make -f makefile_armv7 tests IPC_DEVKIT_INSTALL_PATH=${STAGING_INCDIR} PDK_INSTALL_PATH=${BASEDIR} DEVICE="$device" USEDYNAMIC_LIB="$choice"
      done
    done
}

do_install () {
    install -d ${D}${includedir}/ti/drv/rm
    install -d ${D}${libdir}
    install -d ${D}${bindir}
    for device in ${DEVICELIST}
    do
      make -f makefile_armv7 install installbin installbin_test INSTALL_INC_BASE_DIR=${D}${includedir} INSTALL_LIB_BASE_DIR=${D}${libdir} INSTALL_BIN_BASE_DIR=${D}${bindir} DEVICE="$device"
    done
}


Create recipe to demonstrate qt5 example.

SUMMARY = "QUItIndicators components with few usage examples"
HOMEPAGE = "http://quitcoding.com/?page=work#cinex"
LICENSE = "CC-BY-3.0"
LIC_FILES_CHKSUM = "file://README;beginline=38;endline=45;md5=9a4a88358260db32391eda6ebe7562e5"

DEPENDS = "qtdeclarative qtgraphicaleffects"

SRC_URI = "http://quitcoding.com/download/QUItIndicators_1.0.1.tar.gz"
SRC_URI[md5sum] = "85ec60b553e181c55b331a9921d1b9a0"
SRC_URI[sha256sum] = "db84112adbde9b6f28c129e8fb37a6912f4bc34bed18e57f570fb78ea0cb6ae2"

S = "${WORKDIR}/QUItIndicators_1.0.1"

require recipes-qt/qt5/qt5.inc

do_install() {
    install -d ${D}${datadir}/${P}
    install -m 0755 ${B}/QUItIndicators ${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 = "Mixed sync-async queue to interoperate between asyncio tasks and classic threads"
AUTHOR = "Andrew Svetlov"
HOMEPAGE = "https://github.com/aio-libs/janus/"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=23878c357ebb4c8ce1109be365043349"

inherit pypi setuptools3

RDEPENDS_${PN} += "\
    ${PYTHON_PN}-asyncio \
    ${PYTHON_PN}-logging \
    ${PYTHON_PN}-threading \
    ${PYTHON_PN}-typing \
"

PR = "r0"

SRC_URI[sha256sum] = "cfc221683160b91b35bae1917e2957b78dad10a2e634f4f8ed119ed72e2a88ef"


Add a task for the core libraries of QtopiaCore/QtE

HOMEPAGE = "http://www.trolltech.com"
LICENSE = "MIT"

inherit task

DESCRIPTION_task-qtopia-core-console = "QtopiaCore Core libraries for XML, SQL, Network, Containers and others."
RDEPENDS_task-qtopia-core-console = "\
    libqtopiacorecore4 \
    libqtopiacorenetwork4 \
    libqtopiacorexml4 \
    libqtopiacoresql4"


Add the linux-adi kernel from the Parallella repo

DECRIPTION = "ADI Kernel"
SECTION = "kernel"
LICENSE = "GPLv2"

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

# This version extension should match CONFIG_LOCALVERSION in defconfig
LINUX_VERSION_EXTENSION ?= "-adi"
PV = "${LINUX_VERSION}${LINUX_VERSION_EXTENSION}+git${SRCREV}"

# Source Directory
S = "${WORKDIR}/git"

# Inherit/include base functionality
inherit kernel
require recipes-kernel/linux/linux-machine-common.inc

# Override COMPATIBLE_MACHINE to include your machine in a bbappend file.
COMPATIBLE_MACHINE = "qemuzynq|zynq"

PR = "r1"

KBRANCH = "bcxcube_epiphany_driver"
LINUX_VERSION = "3.12"
SRCREV = "203d6a659b5b74fbf279a83a2121ef604769abe7"

SRC_URI = "git://github.com/parallella/parallella-linux-adi.git;protocol=https;branch=${KBRANCH}"

do_configure_prepend() {
	cp ${S}/arch/arm/configs/parallella_defconfig ${B}/.config

	# Enable the Epiphany drive
	echo "CONFIG_EPIPHANY=y" >> ${B}/.config
	echo "" >> ${B}/.config

}


#
# base recipe: https://github.com/joelagnel/meta-openembedded/blob/master/\
#	       meta-oe/recipes-support/rng-tools/rng-tools_2.bb
# base branch: master
# base commit: 7fd47b69000367319886af45151581c0ecd88310
#

SUMMARY = "Random number generator daemon"
DESCRIPTION = " rngd is a daemon that runs conditioning tests (from FIPS 140-2,\
		edition of 2002-10-10) on a source of random data, and if that \
		data passes the FIPS test,feeds it back as trusted entropy to the\
		in-kernel entropy pool.  Thus, it increases the amount of true \
		random data the kernel has available."

PR = "r0"
inherit debian-package

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

inherit autotools

do_install_append() {
	#Create new folders
	install -d ${D}${sysconfdir}
	install -d ${D}${sysconfdir}/default
	install -d ${D}${sysconfdir}/init.d
	install -d ${D}${sysconfdir}/logcheck
	install -d ${D}${sysconfdir}/logcheck/ignore.d.server
	install -d ${D}${sysconfdir}/logcheck/violations.ignore.d

	install -m 0644 ${S}/debian/rng-tools.default 			\
			${D}${sysconfdir}/default/rng-tools

	install -m 0755 ${S}/debian/rng-tools.init 			\
			${D}${sysconfdir}/init.d/rng-tools

	install -m 0644 ${S}/debian/logcheck.ignore 			\
			${D}${sysconfdir}/logcheck/ignore.d.server/rng-tools

	cp ${D}${sysconfdir}/logcheck/ignore.d.server/rng-tools 	\
		${D}${sysconfdir}/logcheck/violations.ignore.d/rng-tools
}


Make sure that we are using correct version of u-boot-mkimage.

SUMMARY = "U-Boot bootloader image creation tool"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://Licenses/README;md5=0507cd7da8e7ad6d6701926ec9b84c95"
SECTION = "bootloader"

DEPENDS = "openssl"

# This revision corresponds to the tag "v2015.10"
# We use the revision in order to avoid having to fetch it from the
# repo during parse
SRCREV = "5ec0003b19cbdf06ccd6941237cbc0d1c3468e2d"

PV = "v2015.10+git${SRCPV}"

SRC_URI = "git://git.denx.de/u-boot.git;branch=master"

S = "${WORKDIR}/git"

EXTRA_OEMAKE = 'CROSS_COMPILE="${TARGET_PREFIX}" CC="${CC} ${CFLAGS} ${LDFLAGS}" STRIP=true V=1'

do_compile () {
	oe_runmake sandbox_defconfig
	oe_runmake cross_tools NO_SDL=1
}

do_install () {
	install -d ${D}${bindir}
	install -m 0755 tools/mkimage ${D}${bindir}/uboot-mkimage
	ln -sf uboot-mkimage ${D}${bindir}/mkimage
}

BBCLASSEXTEND = "native nativesdk"


DESCRIPTION = "Miscellaneous files for the base system."
SECTION = "base"
PRIORITY = "optional"
PR = "r0"
LICENSE = "BSD"
PACKAGE_ARCH = "all"

SRC_URI = "http://ftp.de.debian.org/debian/pool/main/l/lsb/lsb_3.2-23.tar.gz"

FILES_${PN} = "/lib/lsb"

S = "${WORKDIR}/lsb-3.2"

do_compile () {
}

do_install () {
	install -d ${D}/lib/lsb
	install -m 755 init-functions ${D}/lib/lsb/
}


Add new version for testing (this is the version that OpenWrt currently uses, exiting versions no longer build due to kernel network api changes)

# Bitbake recipe for the madwifi-ng driver

DEFAULT_PREFERENCE = "-1"

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

require madwifi-ng_r.inc

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


DESCRIPTION = "GPS navigation/map display software"
LICENSE = "GPL"
DEPENDS = "sqlite3 gtk+ gnome-vfs-dbus dbus bluez-libs"
PV = "1.2.4+svn${SRCDATE}"

#only works with SRCDATE_maemo-mapper-nohildon = "20061114"
SRC_URI = "svn://garage.maemo.org/svn/maemo-mapper;proto=https;module=trunk \
           http://home.tal.org/%7Emilang/n770/maemo-mapper-desktop-20061114-001.patch;patch=1;pnum=0"

S = "${WORKDIR}/trunk"

inherit autotools pkgconfig

#FILES_${PN} = "${bindir}/gpsdrive ${bindir}/wpcvt ${bindir}/wpget ${datadir}/pixmaps ${datadir}/applications"

Fix segfault, remap zoom keys, package desktop file

DESCRIPTION = "GPS navigation/map display software"
LICENSE = "GPL"
DEPENDS = "sqlite3 gtk+ gnome-vfs-dbus dbus bluez-libs"
RDEPENDS = "bluez-utils"
PV = "1.2.4+svn${SRCDATE}"
PR = "r1"

# Only works with SRCDATE_maemo-mapper-nohildon = "20061114"
SRC_URI = "svn://garage.maemo.org/svn/maemo-mapper;proto=https;module=trunk \
           http://home.tal.org/%7Emilang/n770/maemo-mapper-desktop-20061114-001.patch;patch=1;pnum=0 \
	   file://fix_segfault.patch;patch=1"

S = "${WORKDIR}/trunk"

inherit autotools pkgconfig

do_install_append () {
	install -d ${D}${datadir}/applications/
	mv ${D}/maemo-mapper.desktop ${D}${datadir}/applications/
}

#FILES_${PN} += "${datadir}/icons"


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

DESCRIPTION = "Tools for flashing Rockchip devices"
LICENSE = "AS IS"
LIC_FILES_CHKSUM = "file://rkcrc.c;beginline=1;endline=25;md5=5c55527c991502a9b86b768674cdcff5"

DEPENDS += "libusb-native"
SRC_URI="git://github.com/linux-rockchip/rkflashtool.git"
SRCREV = "${AUTOREV}"
PR = "r1"
PV = "0.1+git${SRCREV}"

inherit native

S = "${WORKDIR}/git"

do_compile() {
    oe_runmake
}

do_install() {
    install -d ${D}/${prefix}/bin

    for tool in rkcrc rkflashtool rkmisc rkpad rkparameters rkunpack rkunsign; do
        install -m 0755 ${S}/${tool} ${D}/${prefix}/bin/${tool}
    done
}


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

# base recipe: meta/recipes-support/debianutils/debianutils_4.5.1.bb
# base branch: master

SUMMARY = "Miscellaneous utilities specific to Debian"
SECTION = "base"
LICENSE = "GPLv2+ & SMAIL_GPL"
LIC_FILES_CHKSUM = "file://debian/copyright;md5=f01a5203d50512fc4830b4332b696a9f"

PR = "r0"
inherit debian-package

inherit autotools

do_install_append() {
	install -d ${D}${base_bindir}
	mv ${D}${bindir}/run-parts ${D}${base_bindir}/
	mv ${D}${bindir}/tempfile ${D}${base_bindir}/
	mv ${D}${bindir}/which ${D}${base_bindir}/

	# create link binary
	ln -s ${base_bindir}/which ${D}${bindir}/which
}


SUMMARY = "GNU library for evaluating symbolic mathematical expressions"
DESCRIPTION = "GNU libmatheval is a library comprising of several procedures that make \
 it possible to create an in-memory tree representation of mathematical \
 functions over single or multiple variables and later use this \
 representation to evaluate functions for specified variable values, to \
 create corresponding trees for function derivatives over specified \
 variables or to print textual representations of in-memory trees to a \
 specified string.  The library supports arbitrary variable names in \
 expressions, decimal constants, basic unary and binary operators and \
 elementary mathematical functions."
HOMEPAGE = "http://www.gnu.org/software/libmatheval/"

PR = "r0"
inherit debian-package

LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://COPYING;md5=f27defe1e96c2e1ecd4e0c9be8967949"

inherit autotools gettext pkgconfig
do_configure_prepend() {
	# base on debian/rules
	touch ${S}/config/config.rpath
}
DEPENDS += "guile-2.0 flex libtool"
RPROVIDES_${PN}-dev = "libmatheval1-dev"


inherit features_check

REQUIRED_DISTRO_FEATURES = "clk-wiz"

inherit esw python3native

DEPENDS += "xilstandalone"

ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/clk_wiz/src/"
ESW_COMPONENT_NAME = "libclk_wiz.a"

addtask do_generate_driver_data before do_configure after do_prepare_recipe_sysroot
do_prepare_recipe_sysroot[rdeptask] = "do_unpack"


Add recipe for the remmina remote desktop client

DESCRIPTION = "A feature rich Remote Desktop Application written in GTK+"
HOMEPAGE = "https://remmina.org"
SECTION = "Support"
LICENSE = "GPLv2 & openssl"
LIC_FILES_CHKSUM = "file://LICENSE;md5=dab7215512044d49037272ce1ac4ea8f file://LICENSE.OpenSSL;md5=c1eb3cee0a4dea27503c531267a69769"
DEPENDS += "openssl freerdp gtk+3 gdk-pixbuf atk libgcrypt avahi-ui libsodium libssh vte json-glib libsoup-2.4 libvncserver spice spice-protocol libsecret"

DEPENDS_append_libc-musl = "libexecinfo"
LDFLAGS_append_libc-musl = " -lexecinfo"

SRC_URI = "https://gitlab.com/Remmina/Remmina/-/archive/v${PV}/Remmina-v${PV}.tar.bz2 \
"
SRC_URI[md5sum] = "6da599c3a5cab2df37a70f8fba2f5438"
SRC_URI[sha256sum] = "fbed745438bb0c21467b60cbd67c8148a9289b5ebc7482d06db443bea556af1a"

S = "${WORKDIR}/Remmina-v${PV}"

inherit cmake

EXTRA_OECMAKE += "-DWITH_APPINDICATOR=OFF -DWITH_GETTEXT=OFF -DWITH_TRANSLATIONS=OFF"

do_install_append(){
    # We dont need the extra stuff form other desktop environments
    rm -rf ${D}/${datadir}/xsessions
    rm -rf ${D}/${datadir}/metainfo
    rm -rf ${D}/${datadir}/gnome-session
}

RDEPENDS_${PN} = "bash"

FILES_${PN}_append = " ${datadir}/icons/hicolor/*"

COMPATIBLE_HOST = '(x86_64|i.86).*-linux'


DESCRIPTION = "ZRally is a top view race game which offers the player mulitple \
tracks and multiple skill levels."
SECTION = "opie/games"
PRIORITY = "optional"
LICENSE = "GPL"
AUTHOR = "Kevin Greenhaw <kevin_greenhaw@email.com>"
HOMEPAGE = "http://zrally.sourceforge.net/zrally.html"
APPNAME = "zrally"
APPTYPE = "binary"
APPDESKTOP = "${WORKDIR}"

SRC_URI = "${SOURCEFORGE_MIRROR}/zrally/zrally_0.90_src.tar.gz \
file://dir.patch;striplevel=0"

S = "${WORKDIR}"

inherit opie

do_install () {
	install -d ${D}${palmtopdir}/pics/${APPNAME}/track_pics/
	install -m 0644 track_pics/*.png ${D}${palmtopdir}/pics/${APPNAME}/track_pics/
	install -m 0644 track_pics/ZRallyIcon.png ${D}${palmtopdir}/pics/
}

SRC_URI[md5sum] = "7084c0d2b28108563ca45e5ec1533ba1"
SRC_URI[sha256sum] = "c4fb0477fdc110b63d867ae2a46cca7913fa6a0ca8bf574c7189329bea91dcdf"

Switch to subdir= in SRC_URI

DESCRIPTION = "ZRally is a top view race game which offers the player mulitple \
tracks and multiple skill levels."
SECTION = "opie/games"
PRIORITY = "optional"
LICENSE = "GPL"
AUTHOR = "Kevin Greenhaw <kevin_greenhaw@email.com>"
HOMEPAGE = "http://zrally.sourceforge.net/zrally.html"
APPNAME = "zrally"
APPTYPE = "binary"
APPDESKTOP = "${WORKDIR}"

SRC_URI = "${SOURCEFORGE_MIRROR}/zrally/zrally_0.90_src.tar.gz;subdir=${BPN}-${PV} \
file://dir.patch;striplevel=0"

inherit opie

do_install () {
	install -d ${D}${palmtopdir}/pics/${APPNAME}/track_pics/
	install -m 0644 track_pics/*.png ${D}${palmtopdir}/pics/${APPNAME}/track_pics/
	install -m 0644 track_pics/ZRallyIcon.png ${D}${palmtopdir}/pics/
}

SRC_URI[md5sum] = "7084c0d2b28108563ca45e5ec1533ba1"
SRC_URI[sha256sum] = "c4fb0477fdc110b63d867ae2a46cca7913fa6a0ca8bf574c7189329bea91dcdf"


DESCRIPTION = "The OctoMap library implements a 3D occupancy grid mapping approach, providing data structures and mapping algorithms in C++."
SECTION = "devel"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://package.xml;md5=dfb148c57f55603b266f9fd073e6d1b6"

SRC_URI = "git://github.com/OctoMap/octomap_mapping.git;branch=indigo-devel;protocol=git"
SRCREV = "122bc60230925009925c99d8e40c1abea287ebf0"

DEPENDS = "roscpp visualization-msgs sensor-msgs pcl-ros pcl-conversions nav-msgs std-msgs std-srvs octomap-ros octomap-msgs dynamic-reconfigure nodelet rospy python-six python-bson"

DEPENDS += "${PYTHON_PN}-setuptools-native ${PYTHON_PN}-future-native"

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

EXTRA_OECMAKE += "-DCMAKE_SKIP_RPATH=ON"

inherit catkin


SUMMARY = "ser-space access to Linux Kernel SCTP"
DESCRIPTION = "SCTP (Stream Control Transmission Protocol) is a message oriented, \
reliable transport protocol, with congestion control, support for \
transparent multi-homing, and multiple ordered streams of messages. \
RFC2960 defines the core protocol."
HOMEPAGE = "http://lksctp.sf.net/"

inherit debian-package
PV = "1.0.16+dfsg"

LICENSE = "GPL-2+ & LGPL-2.1+ & BSD-3-Clause"
LIC_FILES_CHKSUM = "\
	file://COPYING;md5=0c56db0143f4f80c369ee3af7425af6e \
	file://COPYING.lib;md5=0a1b79af951c42a9c8573533fbba9a92 \
	file://src/withsctp/sctp_bind.c;beginline=10;endline=37;md5=4f5ceff92458066c8cfdfe5b3f824aa0"

inherit autotools

do_install_append() {
	# follow libsctp-dev.install
	install -d ${D}${docdir}/libsctp-dev/examples/
	mv ${D}${datadir}/lksctp-tools/* ${D}${docdir}/libsctp-dev/examples/

	rm -rf ${D}${libdir}/lksctp-tools/libwithsctp.so \
	       ${D}${libdir}/lksctp-tools/libwithsctp.la \
	       ${D}${libdir}/lksctp-tools/libwithsctp.a
}

PACKAGES =+ "libsctp libsctp-dev"

FILES_libsctp = "${libdir}/libsctp${SOLIBS}"
FILES_libsctp-dev = "${includedir}/* \
                     ${libdir}/*.so \
                     ${libdir}/*.la \
                     "
RPROVIDES_libsctp = "libsctp1"


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 = "Shared library reduction script"
DESCRIPTION = "\
	mklibs produces cut-down shared libraries that contain only the	\
	routines required by a particular set of executables.  This is	\
	useful when building closed systems where disk space is at a premium, \
	such as the Debian installer. \
	"
PR = "r0"
inherit debian-package

LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "\
	file://src/mklibs-readelf/elf.cpp;md5=eac8712efb9999f3ad0606c57d13424e \
	"
inherit autotools-brokensep gettext pkgconfig
DEPENDS += "libtimedate-perl-native"

PACKAGES =+ "${PN}-copy"

FILES_${PN}-copy += "\
	${bindir}/mklibs-copy ${bindir}/mklibs-readelf \
	${libdir}/mklibs/* ${docdir}/mklibs-copy/* \
	${mandir}/man1/mklibs-copy.1.gz ${mandir}/man1/mklibs-readelf.1.gz \
"


Add recipe for TI trace framework library

DESCRIPTION = "TI Trace Framework library"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://${WORKDIR}/git/ti/instrumentation/traceframework/COPYING.txt;md5=e8f6789acdcda76d02ed9203fc2e603d"

BRANCH="master"
SRC_URI = "git://git.ti.com/keystone-rtos/traceframework.git;destsuffix=git/ti/instrumentation/traceframework;protocol=git;branch=${BRANCH}"

# Below commit ID corresponds to DEV.TFWK-01.01.01.06A
SRCREV = "bd87f53f4d12dc802bcc5609afb7994643e40cb9"
PV = "01.01.01.06"

COMPATIBLE_MACHINE = "(tci6614-evm|keystone)"
DEPENDS = "cuia"

DEVICELIST = ""
DEVICELIST_append_tci6614-evm = "c6614"
DEVICELIST_append_keystone    = "k2k k2h k2e k2l"

PACKAGES =+ "${PN}-test"

FILES_${PN}-test = "${bindir}/tfw*.out \
                    ${bindir}/*.txt"

BASEDIR = "${WORKDIR}/git"
S = "${BASEDIR}/ti/instrumentation/traceframework"

EXTRA_OEMAKE += "-f makefile_armv7 PDK_INSTALL_PATH=${STAGING_INCDIR} \
                 CUIA_INSTALL_DIR=${STAGING_INCDIR} CUIA_LIB_DIR=${STAGING_LIBDIR}"

do_compile () {
#   making the library
	oe_runmake clean
	oe_runmake lib

#   make the test application
	for device in ${DEVICELIST}
	do
		oe_runmake tests DEVICE="$device" TFW_INC_DIR=${BASEDIR} TFW_SRC_DIR=${S} \
			TARGET_ROOT_DIR=${D}
	done
}

do_install() {
	for device in ${DEVICELIST}
	do
		oe_runmake install DEVICE="$device" TFW_SRC_DIR=${S} TARGET_ROOT_DIR=${D}
	done
}


Add new recipe for multiproc transport library and test code

DESCRIPTION = "Multiproc transport layer for KeyStone devices: Provide basic transport layer for moving data between different processing nodes"
HOMEPAGE = "http://git.ti.com/cgit/cgit.cgi/keystone-linux/mpm-transport.git"
LICENSE = "BSD-3-Clause & MIT"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=2c17cd1dc60dc06a4c4f2a2c45472a51"
COMPATIBLE_MACHINE = "keystone"
DEPENDS = "common-csl-ip hyplnk-lld edma3-lld mmap-lld"

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

BRANCH = "master"
# This commit corresponds to tag DEV.MPM-TRANSPORT-01.00.04.00E
SRCREV = "56640c6296f9f4816140364b7620b1d1a483ac40"
PV = "1.0.4.0"
PR = "r0"

S = "${WORKDIR}/git"

PACKAGES =+ "${PN}-test"
FILES_${PN}-test = "${bindir}/mpm_transport_test.out ${bindir}/mpm_transport_hyplnk_loopback.out ${bindir}/mpm_transport_hyplnk_remote.out ${bindir}/mpm_transport_hyplnk_loopback_dma.out ${bindir}/mpm_transport_hyplnk_loopback64.out"

do_compile () {
	cd ${S}
	make PDK_INSTALL_PATH=${STAGING_INCDIR}
}

do_install() {
	make installbin BASE_DIR=${S} INSTALL_BIN_BASE_DIR=${D}/${bindir}

	install -d ${D}${includedir}/
	install -c -m 755 ${S}/include/* ${D}${includedir}/

	install -d ${D}${libdir}/
	cp  -a ${S}/lib/* ${D}${libdir}/

	install -d ${D}${sysconfdir}/mpm/
	install -c -m 755 ${S}/scripts/mpm_config.json ${D}${sysconfdir}/mpm/mpm_config.json
}


Add bitbake recipe to build consul-migrate

SUMMARY = "Provides data migration for Consul server nodes"
HOMEPAGE = "https://github.com/hashicorp/consul-migrate"
LICENSE = "MPL-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=b278a92d2c1509760384428817710378"

DEPENDS += "raft raft-boltdb raft-mdb"

PKG_NAME = "github.com/hashicorp/consul-migrate"
SRC_URI = "git://${PKG_NAME}.git"
SRCREV = "678fb10cdeae25ab309e99e655148f0bf65f9710"

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}
    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 += "consul_migrate_sysroot_preprocess"

consul_migrate_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/*"


DESCRIPTION = "Entice is the E17 picture viewer"
# can also depend on GIMP for editing
DEPENDS = "edb evas-x11 ecore-x11 edje epsilon esmart-x11"
LICENSE = "MIT"
PR = "r0"

inherit e

RDEPENDS += "libesmart-container-plugins libesmart-thumb0 libesmart-trans-x11-0 libesmart-file-dialog0"

SRC_URI = "${E_CVS};module=e17/apps/entice;date=${PV}"
S = "${WORKDIR}/entice"

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

FILES_${PN} = "${bindir}/* ${libdir}/* ${datadir} ${sysconfdir} ${sbindir}"

Fix broken package references to remove parsing errors

DESCRIPTION = "Entice is the E17 picture viewer"
# can also depend on GIMP for editing
DEPENDS = "edb evas-x11 ecore-x11 edje epsilon esmart-x11"
LICENSE = "MIT"
PR = "r0"

inherit e

RDEPENDS += "libesmart-container-plugins libesmart-thumb libesmart-trans-x11-0 libesmart-file-dialog"

SRC_URI = "${E_CVS};module=e17/apps/entice;date=${PV}"
S = "${WORKDIR}/entice"

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

FILES_${PN} = "${bindir}/* ${libdir}/* ${datadir} ${sysconfdir} ${sbindir}"


SUMMARY = "high level C++ wrapper for rdkafka"
DESCRIPTION = "cppkafka allows C++ applications to consume and produce messages using the Apache Kafka protocol."
HOMEPAGE = "https://github.com/mfontanini/cppkafka"
SECTION = "lib"
LICENSE = "BSD-2-Clause"

LIC_FILES_CHKSUM = " \
file://LICENSE;md5=d8b4ca15d239dc1485ef495c8f1bcc72 \
"

SRC_URI = "git://github.com/mfontanini/cppkafka;protocol=https"
SRCREV = "5e4b350806d561473138ce7a982e8f6cf2e77733"

DEPENDS = "librdkafka boost chrpath-replacement-native"

inherit cmake

S = "${WORKDIR}/git"

do_install_append(){
    chrpath -d ${D}${libdir}/libcppkafka.so.0.3.1
}


SUMMARY = "alternative C driver for MongoDB,"
DESCRIPTION = "\
	libmongo-client is meant to be a stable (API, ABI and quality alike), \
	clean, well documented and well tested shared library, that strives to\
	make the most common use cases as convenient as possible"
HOMEPAGE = "https://github.com/algernon/libmongo-client"

PR = "r0"
inherit debian-package

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

inherit autotools pkgconfig
DEPENDS += "glib-2.0"

#install follow Debian jessie
do_install_append() {
	rm ${D}${libdir}/libmongo-client.la
	LINKLIB=$(basename $(readlink ${D}${libdir}/libmongo-client.so))
	chmod 0644 ${D}${libdir}/${LINKLIB}
}
#correct the sub-package name
DEBIANNAME_${PN}-dbg = "${PN}0-dbg"


SUMMARY = "NIH Utility Library"
DESCIPTION = "libnih is a light-weight \"standard library\" of C functions to ease the \
	development of other libraries and applications, especially those \
	normally found in /lib. This package contains the shared library."
HOMEPAGE = "https://launchpad.net/libnih"
LICENSE = "GPL-2.0+"
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"

inherit debian-package

DEPENDS += "libnih-native dbus"

PR = "r0"

inherit autotools gettext

DEBIAN_PATCH_TYPE = "nopatch"
BBCLASSEXTEND = "native"
do_install_append() {
	install -d ${D}${base_libdir}
	mv ${D}${libdir}/libnih${SOLIBS} ${D}${base_libdir}
	mv ${D}${libdir}/libnih-dbus${SOLIBS} ${D}${base_libdir}

	LINKLIB=$(basename $(readlink ${D}${libdir}/libnih.so))
	ln -sf ../../lib/$LINKLIB ${D}${libdir}/libnih.so

	LINKLIB=$(basename $(readlink ${D}${libdir}/libnih-dbus.so))
	ln -sf ../../lib/$LINKLIB ${D}${libdir}/libnih-dbus.so
}

PACKAGES =+ "${PN}-dbus nih-dbus-tool ${PN}-dbus-dev"

FILES_${PN}-dbus = "${base_libdir}/libnih-dbus${SOLIBS}"
FILES_nih-dbus-tool = "${bindir}/nih-dbus-tool"
FILES_${PN}-dbus-dev = "${includedir}/libnih-dbus.h \
                        ${includedir}/nih-dbus/* \
                        ${libdir}/libnih-dbus.so \
                        ${libdir}/pkgconfig/libnih-dbus.pc"
FILES_${PN} = "${base_libdir}/libnih${SOLIBS}"


Add recipe for TI Image processing demo for keystone 2

DESCRIPTION = "TI Image Processing Demo for KeyStone 2"
HOMEPAGE = "http://git.ti.com/cgit/cgit.cgi/keystone-demos/image-proc.git"
LICENSE = "BSD & MIT"
LIC_FILES_CHKSUM = "file://Makefile;beginline=1;endline=29;md5=ada2acff673fad7c53cbfd2598525f2a"
SECTION = "console"
COMPATIBLE_MACHINE = "keystone"

DEPENDS = "ti-ipc"

BRANCH = "master"
SRC_URI = "git://git.ti.com/keystone-demos/image-proc.git;protocol=git;branch=${BRANCH}"
#Commit corresponds to DEV.DEMO_IMAGE_PROC-01.00.00.01
SRCREV = "1745725128929f6d57a3e8e8ed0ca02fe4b28b51"
PV = "1.0.0.1"

S = "${WORKDIR}/git"

MATRIX_BASE_DIR = "${datadir}/matrix-gui-2.0"
MATRIX_WEB_DIR = "${MATRIX_BASE_DIR}"
MATRIX_APP_DIR = "${MATRIX_WEB_DIR}/apps"
MATRIX_IPD_DIR = "${MATRIX_APP_DIR}/demo_imageproc"
MATRIX_CGI_DIR = "${MATRIX_IPD_DIR}/cgi-bin"

FILES_${PN} = "${MATRIX_IPD_DIR}/demo_imageproc.html"
FILES_${PN} += "${MATRIX_CGI_DIR}/image_processing_master.out"

do_install() {
	install -d ${D}${MATRIX_IPD_DIR}
	install -d ${D}${MATRIX_CGI_DIR}
	install -c -m 755 ${S}/ipc/master/image_processing_master.out ${D}${MATRIX_CGI_DIR}
	install -c -m 755 ${S}/webpage/demo_imageproc.html ${D}${MATRIX_IPD_DIR}
}


Add recipe for linux-netbookpro version 3.1.1

SECTION = "kernel"
DESCRIPTION = "Linux kernel for Psion Teklogix NetBook Pro"
LICENSE = "GPLv2"
PR = "r1"

DEPENDS="boost-img-native boost-bootcode"

SRC_URI = "git://github.com/tworaz/linux.git;protocol=git;branch=v3.1.1-nbpro0"
SRCREV="edbc7eca3e93aa2c66acf54f2f6c219faffd2a33"

ARCH = "arm"
COMPATIBLE_HOST = "arm.*-linux"
COMPATIBLE_MACHINE = "netbookpro"

S = "${WORKDIR}/git"
LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"

inherit kernel

NBKPRO_IMG_NAME ?= "nBkProOs.img"
NBKPRO_IMG_DESCR ?= "NetBook Pro Linux ${PV}"

PACKAGES += "kernel-image-raw"

FILES_kernel-image = "/${KERNEL_IMAGEDEST}/${NBKPRO_IMG_NAME}"
FILES_kernel-image-raw = "/${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}*"

do_configure_prepend() {
	install -m 0644 ${S}/arch/arm/configs/netbookpro_defconfig ${S}/.config
}

kernel_do_compile_append() {
	boost-img create \
              -k arch/${ARCH}/boot/Image \
              -b ${DEPLOY_DIR_IMAGE}/bcode-latest.bin \
              -o ${NBKPRO_IMG_NAME} \
              -d "${NBKPRO_IMG_DESCR}" \
              -z || die "Failed to create boost img"
}

kernel_do_install_append() {
    install -m 0644 ${NBKPRO_IMG_NAME} ${D}/${KERNEL_IMAGEDEST}
}

kernel_do_deploy_append() {
	install -m 0644 ${S}/${NBKPRO_IMG_NAME} ${DEPLOYDIR}/${NBKPRO_IMG_NAME}_${KERNEL_VERSION}
}

pkg_postinst_kernel() {
}

pkg_postrm_kernel() {
}


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=1707d6db1d42237583f50183a5651ecb"

inherit allarch

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

PR = "r0"

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

SRCREV = "43a81af5ccddc67f9ed5f11664e5478f59574102"

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() {
    :
}


SUMMARY = "Ethernet bridge frame table administration"
DESCRIPTION = "Ebtables is used to set up, maintain, and inspect the tables of \
 Ethernet frame rules in the Linux kernel. It is analogous to iptables, \
 but operates at the MAC layer rather than the IP layer."
HOMEPAGE = "http://ebtables.sourceforge.net"

PR = "r0"
inherit debian-package

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=53b4a999993871a28ab1488fdbd2e73e"

inherit autotools-brokensep
CFLAGS += "-fstack-protector-all"
EXTRA_OEMAKE = " \
	'LIBDIR=${base_libdir}/${PN}' \
	'BINDIR=${base_sbindir}' \
	'CC=${CC}' \
	'CFLAGS=${CFLAGS}' \
	'LDFLAGS=${LDFLAGS}' \
	"
do_install_append() {
	# base on debian/rules
	mv ${D}${sysconfdir}/default/ebtables-config \
	   ${D}${sysconfdir}/default/ebtables
	rm -rf ${D}${base_sbindir}/ebtables-save \
	       ${D}${base_sbindir}/ebtables-restore
}
RRECOMMENDS_${PN} += "iptables kmod"
# Avoid a parallel build problem
PARALLEL_MAKE = ""
FILES_${PN} += "${base_libdir}/${PN}/*"
FILES_${PN}-dbg += "${base_libdir}/${PN}/.debug"


#
# Base recipe: recipes-core/libcgroup/libcgroup_0.41.bb
# Base branch: jethro
#

SUMMARY = "Linux control group abstraction library"
DESCRIPTION = "libcgroup is a library that abstracts the control group file system \
in Linux. Control groups allow you to limit, account and isolate resource usage \
(CPU, memory, disk I/O, etc.) of groups of processes."

PR = "r0"

inherit debian-package

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

inherit autotools pkgconfig

DEPENDS = "bison-native flex-native ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"

EXTRA_OECONF = "${@bb.utils.contains('DISTRO_FEATURES', 'pam', '--enable-pam-module-dir=${base_libdir}/security --enable-pam=yes', '--enable-pam=no', d)}"

do_install_append() {
	# Moving libcgroup to base_libdir
	if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then
		mkdir -p ${D}/${base_libdir}/
		mv -f ${D}${libdir}/libcgroup.so.* ${D}${base_libdir}/
		rel_lib_prefix=`echo ${libdir} | sed 's,\(^/\|\)[^/][^/]*,..,g'`
		ln -sf ${rel_lib_prefix}${base_libdir}/libcgroup.so.1 ${D}${libdir}/libcgroup.so
	fi
	# pam modules in ${base_libdir}/security/ should be binary .so files, not symlinks.
	if [ -f ${D}${base_libdir}/security/pam_cgroup.so.0.0.0 ]; then
		mv -f ${D}${base_libdir}/security/pam_cgroup.so.0.0.0 ${D}${base_libdir}/security/pam_cgroup.so
		rm -f ${D}${base_libdir}/security/pam_cgroup.so.*
	fi
}

PACKAGES =+ "cgroup-tools libpam-cgroup"

FILES_cgroup-tools += "${bindir}/* ${sbindir}/*"
FILES_libpam-cgroup += "${base_libdir}/security/pam_cgroup.so*"
FILES_${PN}-dbg += "${base_libdir}/security/.debug"
FILES_${PN}-dev += "${base_libdir}/security/*.la"

# Rename package follow Debian
DEBIANNAME_${PN} = "${PN}1"


SUMMARY = "Sensor/Actuator repository for Mraa"
SECTION = "libs"
AUTHOR = "Brendan Le Foll, Tom Ingleby, Yevgeniy Kiveisha"

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=66493d54e65bfc12c7983ff2e884f37f"

DEPENDS = "libjpeg-turbo mraa"

SRC_URI = "git://github.com/intel-iot-devkit/upm.git;protocol=git;tag=v${PV}"

S = "${WORKDIR}/git"

inherit distutils-base pkgconfig python-dir cmake

CFLAGS_append_edison = " -msse3 -mfpmath=sse"

FILES_${PN}-doc += "${datadir}/upm/examples/"
RDEPENDS_${PN} += "mraa"

# override this in local.conf to get a subset of bindings.
# BINDINGS_pn-upm="python"
# will result in only the python bindings being built/packaged.

BINDINGS ?= "python nodejs"

PACKAGECONFIG ??= "${@bb.utils.contains('PACKAGES', 'node-${PN}', 'nodejs', '', d)} \
 ${@bb.utils.contains('PACKAGES', 'python-${PN}', 'python', '', d)}"

PACKAGECONFIG[python] = "-DBUILDSWIGPYTHON=ON, -DBUILDSWIGPYTHON=OFF, swig-native ${PYTHON_PN},"
PACKAGECONFIG[nodejs] = "-DBUILDSWIGNODE=ON, -DBUILDSWIGNODE=OFF, swig-native nodejs,"

### Python ###

# Python dependency in PYTHON_PN (from poky/meta/classes/python-dir.bbclass)
# Possible values for PYTHON_PN: "python" or "python3"

# python-upm package containing Python bindings
FILES_${PYTHON_PN}-${PN} = "${PYTHON_SITEPACKAGES_DIR} \
                       ${datadir}/${BPN}/examples/python/ \
                       ${prefix}/src/debug/${BPN}/${PV}-${PR}/build/src/*/pyupm_* \
                      "
RDEPENDS_${PYTHON_PN}-${PN} += "${PYTHON_PN} mraa"
INSANE_SKIP_${PYTHON_PN}-${PN} = "debug-files"

### Node ###

# node-upm package containing Nodejs bindings
FILES_node-${PN} = "${prefix}/lib/node_modules/ \
                    ${datadir}/${BPN}/examples/javascript/ \
                   "
RDEPENDS_node-${PN} += "nodejs mraa"
INSANE_SKIP_node-${PN} = "debug-files"

### Include desired language bindings ###
PACKAGES =+ "${@bb.utils.contains('BINDINGS', 'nodejs', 'node-${PN}', '', d)}"
PACKAGES =+ "${@bb.utils.contains('BINDINGS', 'python', 'python-${PN}', '', d)}"


Add recipe for libdatetime-timezone-perl package

SUMMARY = "framework exposing the Olson time zone database to Perl"
DESCRIPTION = "\
DateTime::TimeZone is a Perl module framework providing an interface to the \
Olson time zone database. It exposes the database as a set of modules, one \
for each time zone defined, allowing for various optimizations in doing time \
zone calculations. \
.\
The Olson time zone database is the best available source for worldwide time \
zone information and is available from <URL:ftp://ftp.iana.org/tz/releases/>. \
"
HOMEPAGE = "http://datetime.perl.org/"
PR = "r0"
inherit debian-package

LICENSE = "Artistic-1.0 | GPL-1+"
LIC_FILES_CHKSUM = "\
	file://LICENSE;md5=8cb5990fa1f243cd63c97cfd08571fe7"
inherit cpan

do_install_append() {
	rm ${D}${PERLLIBDIRS}/vendor_perl/*/DateTime/TimeZone/Local/Win32.pm
}
RDEPENDS_${PN} += "libparams-validate-perl"


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

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

require gst-plugins-ti.inc

PR = "${INC_PR}.0"
SRCREV = "5107007ca1be8ed66f6a9ec3ffbb70ec7eb0b120"

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


Add repositories for Imagination specific demo on DRM

DESCRIPTION = "Imagination PowerVR SDK"
HOMEPAGE = "http://community.imgtec.com/developers/powervr/installers"
LICENSE = "TI-TSPA"
LIC_FILES_CHKSUM = "file://LegalNotice.txt;md5=d9c0ca03b9845110090435a33eec4a33"

SRC_URI = "git://git.ti.com/glsdk/img-pvr-sdk.git;protocol=git"
SRCREV = "edbd108d1582560429192dc0221f0a8fddea0928"

PR = "r3"

S = "${WORKDIR}/git"

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

INHIBIT_PACKAGE_STRIP = "1"

INSANE_SKIP_${PN} += "dev-so"

FILES_${PN} += "/opt/img-powervr-sdk/Examples/Advanced/OGLES2ChameleonMan /opt/img-powervr-sdk/Examples/Advanced/OGLES2Coverflow /opt/img-powervr-sdk/Examples/Advanced/OGLES2ExampleUI /opt/img-powervr-sdk/Examples/Advanced/OGLES2Navigation /opt/img-powervr-sdk/PVRHub/* /opt/img-powervr-sdk/PVRScopeDeveloper/*"


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"


PV = "0.0cvs${CVSDATE}"
SECTION = "libs"
PRIORITY = "optional"
MAINTAINER = "Phil Blundell <pb@debian.org>"
# DEPENDS = "x11 libpixman libpng fontconfig libxrender xcb glitz"
DEPENDS = "x11 libpixman libpng fontconfig libxrender"
DESCRIPTION = "Cairo graphics library"
LICENSE = "MPL LGPL"
PR = "r1"

SRC_URI = "cvs://anoncvs:anoncvs@cvs.cairographics.org/cvs/cairo;module=cairo
\
	   file://status.patch;patch=1"
S = "${WORKDIR}/cairo"

inherit autotools pkgconfig

do_stage () {
	oe_runmake install DESTDIR="" bindir=${STAGING_BINDIR} includedir=${STAGING_INCDIR} libdir=${STAGING_LIBDIR} prefix=${STAGING_DIR}
}

Fix syntax error in the cairo .bb.


# libaio-oracle .bb build file
# Copyright (C) 2005-2006, Advanced Micro Devices, Inc.  All Rights Reserved
# Released under the MIT license (see /COPYING)

DESCRIPTION="This is a library for accessing the new AIO system calls (asynchronous i/o) for the Linux kernel."
HOMEPAGE="http://oss.oracle.com/projects/libaio-oracle"
LICENSE="GPL"

SRC_URI="http://oss.oracle.com/projects/libaio-oracle/dist/files/${PN}-${PV}.tar.gz"

DEPENDS="libaio"
RDEPENDS="libaio"

inherit autotools

FILES_${PN}="/usr"

#We don't have a raw.h with uClibc, so copy in the one from glibc
SRC_URI_append_linux-uclibc=" file://raw.h"

do_configure_prepend_linux-uclibc () {
	install -D -m 0644 ${WORKDIR}/raw.h ${S}/sys/raw.h
}

do_stage() {

	rm -rf ${STAGE_TEMP}
	mkdir -p ${STAGE_TEMP}
	oe_runmake DESTDIR="${STAGE_TEMP}" install
	install -m 0644 ${STAGE_TEMP}/usr/include/libaio-oracle/libaio-oracle.h ${STAGING_INCDIR}
	rm -f ${STAGE_TEMP}/usr/lib/*.la
	oe_libinstall -a -so -C ${STAGE_TEMP}/usr/lib libaio-oracle ${STAGING_LIBDIR}
}

Change license from GPL to LGPL. See COPYING.LIB.

# libaio-oracle .bb build file
# Copyright (C) 2005-2006, Advanced Micro Devices, Inc.  All Rights Reserved
# Released under the MIT license (see /COPYING)

DESCRIPTION="This is a library for accessing the new AIO system calls (asynchronous i/o) for the Linux kernel."
HOMEPAGE="http://oss.oracle.com/projects/libaio-oracle"
LICENSE="LGPL"
PR = "r1"

SRC_URI="http://oss.oracle.com/projects/libaio-oracle/dist/files/${PN}-${PV}.tar.gz"

DEPENDS="libaio"
RDEPENDS="libaio"

inherit autotools

FILES_${PN}="/usr"

#We don't have a raw.h with uClibc, so copy in the one from glibc
SRC_URI_append_linux-uclibc=" file://raw.h"

do_configure_prepend_linux-uclibc () {
	install -D -m 0644 ${WORKDIR}/raw.h ${S}/sys/raw.h
}

do_stage() {

	rm -rf ${STAGE_TEMP}
	mkdir -p ${STAGE_TEMP}
	oe_runmake DESTDIR="${STAGE_TEMP}" install
	install -m 0644 ${STAGE_TEMP}/usr/include/libaio-oracle/libaio-oracle.h ${STAGING_INCDIR}
	rm -f ${STAGE_TEMP}/usr/lib/*.la
	oe_libinstall -a -so -C ${STAGE_TEMP}/usr/lib libaio-oracle ${STAGING_LIBDIR}
}


SUMMARY = "RPM installation environment"
DESCRIPTION = "\
	This is a tool for bootstrapping a basic RPM-based distribution of \
	GNU/Linux. It is comparable in purpose to the standard Debian \
	debootstrap utility, but works upon RPM-based distributions instead. \
	Rinse can setup 32 and 64-bit installations of: \
		* CentOS \
		* Scientific Linux CERN \
		* Fedora \
		* OpenSUSE"
HOMEPAGE = "http://collab-maint.alioth.debian.org/rinse/"

LICENSE = "GPL-1.0 | Artistic-2.0"
LIC_FILES_CHKSUM = "file://bin/rinse;beginline=165;endline=174;md5=dd2cdd3c695a6d3cc7450140acc46571"

PR = "r0"

inherit debian-package
PV = "3.0.9"

do_compile(){
	oe_runmake
}

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


SUMMARY = "Shell with C-like syntax"
DESCRIPTION = "The C shell was originally written at UCB to overcome limitations in the \
Bourne shell.  Its flexibility and comfort (at that time) quickly made it \
the shell of choice until more advanced shells like ksh, bash, zsh or \
tcsh appeared.  Most of the latter incorporate features original to csh."

inherit debian-package
PV = "20110502"

LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://csh.h;beginline=4;endline=30;md5=60d2e466017ade807b579cb0367517e6"

inherit autotools-brokensep update-alternatives

DEPENDS += "bmake-native libbsd"

export MAKE="bmake"
export LDADD="${LDFLAGS}"
do_compile() {
	oe_runmake CC="${CC}"
}

do_install() {
	install -D ${B}/csh ${D}${base_bindir}/bsd-csh
}
do_install_append_class-native() {
	ln -sf bsd-csh ${D}${base_bindir}/csh
}

# Add update-alternatives definitions base on debian/postinst
ALTERNATIVE_PRIORITY="30"
ALTERNATIVE_${PN} = "csh"
ALTERNATIVE_LINK_NAME[csh] = "${base_bindir}/csh"
ALTERNATIVE_TARGET[csh] = "${base_bindir}/bsd-csh"

RPROVIDES_${PN} = "c-shell"
RDEPENDS_${PN}_class-target += "libbsd"

BBCLASSEXTEND = "native"

# Disable parallel make
PARALLEL_MAKE = ""


SRC_URI="https://github.com/DefinitelyTyped/${PN}/archive/${PV}.tar.gz;downloadfilename=${PN}-${PV}.tar.gz"
LICENSE="Apache-2.0"

LIC_FILES_CHKSUM="file://LICENSE.txt;md5=585c0b2e399c33bf30e5021bbd5abaa6"
SRC_URI[md5sum]="7827e85f7220543b29eaa45ad139135a"
SRC_URI[sha256sum]="d8c951e8be81b951c13390bc8cb90b9e49d043be089626097ee9e7b8026f0328"

inherit npm-global

do_clean() {
	rm -f ${STAGING_DIR_NATIVE}/usr/bin/${BPN}
	rm -rf ${STAGING_DIR_NATIVE}/usr/lib/node_modules/${BPN}
}


Add initial recipe for msp430 chronos watch support

DESCRIPTION = "eZ430 Chronos Tools - MSP430 Development Kit/Watch"
HOMEPAGE = "http://processors.wiki.ti.com/index.php/EZ430-Chronos"
SECTION = "multimedia"

PV = "1_05_00_00"

SRC_URI = "http://focus.ti.com/lit/sw/slac388/slac388.zip;name=slac388zip"

SRC_URI[slac388zip.md5sum] = "22d4104a07af584222828fb377793796"
SRC_URI[slac388zip.sha256sum] = "1c9cd1e36015e8db3b36c98be41907628144b76002b3f76b27fd310f4bd35ad7"

require ti-paths.inc
require ti-staging.inc
require ti-eula-unpack.inc

S = "${WORKDIR}/ti/eZ430-Chronos"

BINFILE="Chronos-Setup"
TI_BIN_UNPK_CMDS="Y:workdir:"

do_unpack_append() {
    os.system('mv "Texas Instruments" ti')
}

do_compile() {
    echo "Do Nothing for Now"
}

do_install() {

    install -d ${D}/${installdir}/ti-msp430-chronos-apps
    cp -pPrf "${S}"/"Control Center"/* ${D}/${installdir}/ti-msp430-chronos-apps
}

PACKAGES += "ti-msp430-chronos-apps"
FILES_ti-msp430-chronos-apps = "${installdir}/ti-msp430-chronos-apps/*"

RDEPENDS_ti-msp430-chronos-apps += " tcl xdotool"


DESCRIPTION = "Abuse-SDL is a port of Abuse by Crack Dot Com to Linux using the Simple DirectMedia Layer library."
PRIORITY = "optional"
MAINTAINER = "Michael 'Mickey' Lauer <mickey@Vanille.de>"
SECTION = "opie/games"
LICENSE = "GPL"
DEPENDS = "virtual/libsdl libsdl-mixer libsdl-image"

FILES_${PN} += "${datadir}/games"

SRC_URI = "http://www.labyrinth.net.au/~trandor/abuse/files/abuse_sdl-${PV}.tar.bz2"
S = "${WORKDIR}/abuse_sdl-${PV}"

inherit autotools

Remove bogus 'opie' from section in the abuse .bb

DESCRIPTION = "Abuse-SDL is a port of Abuse by Crack Dot Com to Linux using the Simple DirectMedia Layer library."
PRIORITY = "optional"
MAINTAINER = "Michael 'Mickey' Lauer <mickey@Vanille.de>"
SECTION = "games"
LICENSE = "GPL"
DEPENDS = "virtual/libsdl libsdl-mixer libsdl-image"

FILES_${PN} += "${datadir}/games"

SRC_URI = "http://www.labyrinth.net.au/~trandor/abuse/files/abuse_sdl-${PV}.tar.bz2"
S = "${WORKDIR}/abuse_sdl-${PV}"

inherit autotools


Add recipe for ti customised softhsm package

DESCRIPTION = "TI softhsmv2 package"
LICENSE = "BSD-2-Clause | BSD-3-Clause | ISC | IBM-License | FSFULLR | Zlib"
LIC_FILES_CHKSUM = "file://LICENSE;md5=55144a048ba54f211a1aaa38c7fd2424"
SECTION = "libs"

mntdir = "/mnt"

inherit autotools pkgconfig

DEPENDS = "openssl libdaemon"
COMPATIBLE_MACHINE = "(tci6614-evm|keystone)"

BRANCH="master"
SRC_URI = "git://git.ti.com/keystone-linux/ti-softhsmv2.git;protocol=git;branch=${BRANCH}"
#Following commit corresponds to tag DEV.SOFTHSM-01.03.00.01
SRCREV = "c79d93ac2a326567a7245dda1b903ef340b5650c"
PV = "1.3.0.1"

S = "${WORKDIR}/git"

CFLAGS += " -mno-unaligned-access"
CPPFLAGS += " -mno-unaligned-access"

INITSCRIPT_NAME = "softhsm-daemon.sh"
INITSCRIPT_PARAMS = "defaults 10"

inherit update-rc.d

SELECTED_OPTIMIZATION := "${@d.getVar("SELECTED_OPTIMIZATION", True).replace("-O2", "-O3")}"
SELECTED_OPTIMIZATION := "${@d.getVar("SELECTED_OPTIMIZATION", True).replace("-ggdb2", "")}"

FILES_${PN} += "${libdir}/softhsm/lib*.so.* ${mntdir}/*"
FILES_${PN}-dbg += "${libdir}/softhsm/.debug"
FILES_${PN}-staticdev += "${libdir}/softhsm/*.a "
FILES_${PN}-dev += "${libdir}/softhsm/*.la ${libdir}/softhsm/lib*.so"

do_install_append() {
	install -d ${D}${mntdir}/securedbv0
	install -d ${D}${mntdir}/securedbv1

	install -d ${D}${sysconfdir}/init.d/
	install -c -m 755 ${S}/src/bin/daemon/softhsm-daemon.sh ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
}


SUMMARY = "cluster monitoring toolkit"
DESCRIPTION = "Ganglia is a scalable, real-time cluster monitoring environment \
 that collects cluster statistics in an open and well-defined XML format."
HOMEPAGE = "http://ganglia.info/"

PR = "r0"
inherit debian-package

LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://COPYING;md5=3b3c74375e67e92756770b3ee9debc5f"
# source format is 3.0 (quilt) but there is no debian patch
DEBIAN_QUILT_PATCHES = ""

#compile and install follow debian/rules
do_compile_prepend() {
	touch ChangeLog NEWS
}
do_install() {
	install -d ${D}${sysconfdir}/ganglia-webfrontend
	oe_runmake install APACHE_USER=www-data DESTDIR=${D} \
		GDESTDIR=${datadir}/ganglia-webfrontend  \
		GWEB_STATEDIR=${localstatedir}/lib/ganglia-web
	cp -f ${S}/debian/apache.conf \
		${D}${sysconfdir}/ganglia-webfrontend
	cp -f ${S}/debian/conf_debian.php \
		${D}${datadir}/ganglia-webfrontend/conf.php
	rm ${D}${datadir}/ganglia-webfrontend/COPYING
}

PKG_${PN} = "${PN}frontend"
FILES_${PN} += "${datadir}"
RDEPENDS_${PN} += "apache2 rrdtool"


SUMMARY = "Xilinx HDMI Linux Kernel module"
SECTION = "kernel/modules"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://LICENSE.md;md5=eb723b61539feef013de476e68b5c50a"

XILINX_HDMI_VERSION = "1.0.0"
PV = "${XILINX_HDMI_VERSION}"

S = "${WORKDIR}/git"

BRANCH ?= "master"
REPO ?= "git://gitenterprise.xilinx.com/ipssw/hdmi-modules.git;protocol=https"
SRCREV ?= "a0ca96b977dbe18a2a7bb4041346827d4a3c6cb3"
SRC_URI[md5sum] = "9c267ce818c29efdcc5ec405a4b33ae3"
SRC_URI[sha256sum] = "5ca81352d491e5b0bbfc40c7e22451ce1a569e2f6c83c2456af66c9f0f4ca7f1"

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

inherit module

COMPATIBLE_MACHINE = "^$"
COMPATIBLE_MACHINE_zynqmp = "zynqmp"


SUMMARY = "Wrapper library for evdev devices"
HOMEPAGE = "http://www.freedesktop.org/wiki/Software/libevdev/"
SECTION = "libs"

LICENSE = "MIT-X"
LIC_FILES_CHKSUM = "file://COPYING;md5=75aae0d38feea6fda97ca381cb9132eb \
                    file://libevdev/libevdev.h;endline=21;md5=7ff4f0b5113252c2f1a828e0bbad98d1"

SRC_URI = "http://www.freedesktop.org/software/libevdev/${BP}.tar.xz"
SRC_URI[md5sum] = "ab67de8f949e84ae2abb48af09eda423"
SRC_URI[sha256sum] = "265411ce79a592b3074e9d07fb97d462745d0c7ef178254a6f720245ed253446"

inherit autotools pkgconfig

#
# debian
#
inherit debian-package
DEBIAN_SECTION = "misc"
DPR = "0"


Add the openjpeg recipe necessary for building efl

DESCRIPTION = "OpenJPEG library is an open-source JPEG 2000 codec"
HOMEPAGE = "http://www.openjpeg.org"

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

SRC_URI = "https://github.com/uclouvain/${BPN}/archive/v${PV}.tar.gz;downloadfilename=${BP}.tar.gz"
SRC_URI[md5sum] = "0cc4b2aee0a9b6e9e21b7abcd201a3ec"
SRC_URI[sha256sum] = "82c27f47fc7219e2ed5537ac69545bf15ed8c6ba8e6e1e529f89f7356506dbaa"

inherit cmake

DEPENDS = "libpng tiff lcms zlib"

# standard path for *.cmake
EXTRA_OECMAKE += "-DOPENJPEG_INSTALL_PACKAGE_DIR=${baselib}/cmake \
                  -DOPENJPEG_INSTALL_LIB_DIR:PATH=${libdir}"

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


Add srctree based recipe to aid development.

include recipes/gnuradio/gnuradio.inc

inherit srctree autotools gitver

PV = "${GITVER}"

# Set S (the path to the source directory) via local.conf using the line:
# S_pn-gnuradio-srctree = "/home/username/src/git/gnuradio"

do_copy_to_target() {
    scp -rp ${D}/* root@192.168.1.171:/
}

addtask copy_to_target after do_install before do_package


SUMMARY = "A lightweight hotkey daemon"
HOMEPAGE = "https://github.com/wertarbyte/triggerhappy"

LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"

SRC_URI = "https://github.com/wertarbyte/triggerhappy/archive/debian/0.5.0-1.tar.gz"

SRC_URI[md5sum] = "77f90a18c775e47c4c5e9e08987ca32f"
SRC_URI[sha256sum] = "9150bafbf7f2de7d57e6cc154676c33da98dc11ac6442e1ca57e5dce82bd4292"

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

inherit autotools-brokensep pkgconfig update-rc.d systemd

PACKAGECONFIG = "${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd','',d)}"
PACKAGECONFIG[systemd] = ",,systemd"

INITSCRIPT_NAME = "triggerhappy"
INITSCRIPT_PARAMS = "defaults"
SYSTEMD_SERVICE_${PN} = "triggerhappy.service triggerhappy.socket"

FILES_${PN} = "\
${sbindir}/thd \
${sbindir}/th-cmd \
${sysconfdir}/triggerhappy/triggers.d \
${nonarch_base_libdir}/udev/rules.d/80-triggerhappy.rules \
${sysconfdir}/init.d/triggerhappy \
${systemd_unitdir}/system \
"
CONFFILES_${PN} = "${sysconfdir}/udev/rules.d/80-triggerhappy.rules"

do_install_append() {
    install -d ${D}${sysconfdir}/triggerhappy/triggers.d

    install -d ${D}${nonarch_base_libdir}/udev/rules.d
    install -m 0644 ${S}/udev/triggerhappy-udev.rules ${D}${nonarch_base_libdir}/udev/rules.d/80-triggerhappy.rules

    install -d ${D}${sysconfdir}/init.d
    install -m 0755 ${S}/debian/init.d ${D}${sysconfdir}/init.d/triggerhappy

    if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
        install -d ${D}/${systemd_unitdir}/system
        install -m 0644 ${S}/systemd/triggerhappy.socket ${D}${systemd_unitdir}/system
        install -m 0644 ${S}/systemd/triggerhappy.service ${D}${systemd_unitdir}/system
    fi
}


DESCRIPTION = "GNU Transport Layer Security Library"
DEPENDS = "zlib libgcrypt"
PR = "r2"

LICENSE = "LGPL"

SRC_URI = "ftp://ftp.gnutls.org/pub/gnutls/gnutls-${PV}.tar.gz \
	file://gnutls-openssl.patch;patch=1"

inherit autotools

PACKAGES =+ "${PN}-openssl ${PN}-extra ${PN}-bin"
FILES_${PN}-openssl = "${libdir}/libgnutls-openssl.so.*"
FILES_${PN}-extra = "${libdir}/libgnutls-extra.so.*"
FILES_${PN} = "${libdir}/libgnutls.so.*"
FILES_${PN}-bin = "${bindir}/gnutls-serv ${bindir}/gnutls-cli \
	${bindir}/srptool ${bindir}/certtool ${bindir}/gnutls-srpcrypt"
FILES_${PN}-dev += "${bindir}/*-config ${bindir}/gnutls-cli-debug"

EXTRA_OECONF="--with-included-opencdk"

do_stage() {
	oe_libinstall -C lib/.libs -so -a libgnutls ${STAGING_LIBDIR}
	oe_libinstall -C libextra/.libs -so -a libgnutls-extra ${STAGING_LIBDIR}
	oe_libinstall -C libextra/.libs -so -a libgnutls-openssl ${STAGING_LIBDIR}
	autotools_stage_includes
}

Fix building of gnutls when host system has libtasn1.

DESCRIPTION = "GNU Transport Layer Security Library"
DEPENDS = "zlib libgcrypt"
PR = "r3"

LICENSE = "LGPL"

SRC_URI = "ftp://ftp.gnutls.org/pub/gnutls/gnutls-${PV}.tar.gz \
	file://gnutls-openssl.patch;patch=1"

inherit autotools

PACKAGES =+ "${PN}-openssl ${PN}-extra ${PN}-bin"
FILES_${PN}-openssl = "${libdir}/libgnutls-openssl.so.*"
FILES_${PN}-extra = "${libdir}/libgnutls-extra.so.*"
FILES_${PN} = "${libdir}/libgnutls.so.*"
FILES_${PN}-bin = "${bindir}/gnutls-serv ${bindir}/gnutls-cli \
	${bindir}/srptool ${bindir}/certtool ${bindir}/gnutls-srpcrypt"
FILES_${PN}-dev += "${bindir}/*-config ${bindir}/gnutls-cli-debug"

EXTRA_OECONF="--with-included-opencdk --with-included-libtasn1"

do_stage() {
	oe_libinstall -C lib/.libs -so -a libgnutls ${STAGING_LIBDIR}
	oe_libinstall -C libextra/.libs -so -a libgnutls-extra ${STAGING_LIBDIR}
	oe_libinstall -C libextra/.libs -so -a libgnutls-openssl ${STAGING_LIBDIR}
	autotools_stage_includes
}


SUMMARY = "Library for reading/writing audio files"
DESCRIPTION = "libsndfile is a library of C routines for reading and writing files containing \
 sampled audio data."
HOMEPAGE = "http://www.mega-nerd.com/libsndfile/"

inherit debian-package
PV = "1.0.25"

LICENSE = "LGPLv2.1+ & BSD-3-Clause"
LIC_FILES_CHKSUM = "\
	file://COPYING;md5=e77fe93202736b47c07035910f47974a \
	file://programs/sndfile-cmp.c;endline=32;md5=641a2cf179542b99eb03abaeea248df1"
inherit autotools pkgconfig

DEPENDS += "alsa-lib libvorbis flac"
do_install_append() {
	rm -rf ${D}${bindir}/sndfile-regtest \
	       ${D}${bindir}/sndfile-salvage \
	       ${D}${libdir}/*.la
}

PACKAGES =+ "sndfile-programs"
FILES_sndfile-programs = "${bindir}/*"

PKG_${PN}-dev = "${PN}1-dev"
RPROVIDES_${PN}-dev += "${PN}1-dev"
RPROVIDES_${PN} += "${PN}1"


DESCRIPTION = "Simple wrapper to work with yandex disk using webdav Basic Auth."
# Other references https://365-on.com/%D0%BE%D1%82%D0%BF%D1%80%D0%B0%D0%B2%D0%BA%D0%B0-%D1%84%D0%B0%D0%B9%D0%BB%D0%B0-%D1%81-%D0%BF%D0%BE%D0%BC%D0%BE%D1%89%D1%8C%D1%8E-curl-%D0%BD%D0%B0-yandex-disk/

HOMEPAGE = "https://github.com/lexich/yandex-disk-webdav"
SECTION = "devel/python"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=8227180126797a0148f94f483f3e1489"

SRCNAME = "yandexwebdav"

SRC_URI = "http://pypi.python.org/packages/source/y/${SRCNAME}/${SRCNAME}-${PV}.tar.gz"
SRC_URI[md5sum] = "18223432c09f9d26c7f47413737fec9f"
SRC_URI[sha256sum] = "712166290fc412f01c7e665896072ec2e540285d747013209d62a71c55a27739"

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

inherit setuptools

RDEPENDS_${PN} += "python-six"


SUMMARY = "A fixed-size thread safe LRU cache in go"
HOMEPAGE = "https://github.com/hashicorp/golang-lru"
LICENSE = "MPL-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=f27a50d2e878867827842f2c60e30bfc"

PKG_NAME = "github.com/hashicorp/golang-lru"
SRC_URI = "git://${PKG_NAME}.git"
SRCREV = "995efda3e073b6946b175ed93901d729ad47466a"

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 += "golang_lru_sysroot_preprocess"

golang_lru_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}/*"


#
# base recipe: http://cgit.openembedded.org/cgit.cgi/meta-openembedded/tree/\
#		meta-networking/recipes-support/ifenslave/ifenslave_1.1.0.bb?
# base branch: master
# base commit: acc086420ca087c8d044b60bd5d96e28426fd840
#

SUMMARY = "Configure network interfaces for parallel routing"
DESCRIPTION = " This is a tool to attach and detach slave network interfaces to \
		a bonding device. A bonding device will act like a normal 	\
		Ethernet network device to the kernel, but will send out the 	\
		packets via the slave devices using a simple round-robin 	\
		scheduler. This allows for simple load-balancing, identical 	\
		to "channel bonding" or "trunking" techniques used in switches"
HOMEPAGE = "http://www.linuxfoundation.org/collaborate/workgroups/networking/bonding"

PR = "r0"
inherit debian-package

LICENSE = "GPLv3+"
LIC_FILES_CHKSUM = "file://ifenslave;md5=5b971c6ad58cb00d10e12e5bf460037c"

#Install follow Debian jessies
do_install() {
	#Create new folders
	install -d ${D}${sbindir}
	install -m 755 ${S}/ifenslave ${D}${sbindir}/
	install -d ${D}${sysconfdir}
	install -d ${D}${sysconfdir}/network
	install -d ${D}${sysconfdir}/network/if-post-down.d
	install -d ${D}${sysconfdir}/network/if-pre-up.d
	install -d ${D}${sysconfdir}/network/if-up.d

	ln -s ifenslave ${D}${sbindir}/ifenslave-2.6
	install -m 0755 ${S}/debian/ifenslave.if-post-down 		\
			${D}${sysconfdir}/network/if-post-down.d/ifenslave

	install -m 0755 ${S}/debian/ifenslave.if-pre-up 		\
			${D}${sysconfdir}/network/if-pre-up.d/ifenslave

	install -m 0755 ${S}/debian/ifenslave.if-up 			\
			${D}${sysconfdir}/network/if-up.d/ifenslave
}


Add Perl6::Junction perl module. This provides support for the perl6 style junction operators in perl5.

DESCRIPTION = "Perl6::Junction - Perl6 style Junction operators in Perl5."
SECTION = "libs"
MAINTAINER = "Jamie Lenehan <lenehan@twibble.org>"
LICENSE = "Artistic|GPL"
PR = "r0"

SRC_URI = "http://search.cpan.org/CPAN/authors/id/C/CF/CFRANKS/Perl6-Junction-1.10.tar.gz"

S = "${WORKDIR}/Perl6-Junction-${PV}"

inherit cpan


#
# Base recipe: meta/recipes-kernel/lttng/lttng-ust_git.bb
# Base branch: jethro
#
SUMMARY = "Linux Trace Toolkit Userspace Tracer 2.x"
DESCRIPTION = "The LTTng UST 2.x package contains the userspace tracer library to trace userspace codes."
HOMEPAGE = "http://lttng.org/ust"
BUGTRACKER = "https://bugs.lttng.org/projects/lttng-ust"

LICENSE = "LGPLv2.1+ & MIT & GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=c963eb366b781252b0bf0fdf1624d9e9 \
                    file://snprintf/snprintf.c;endline=32;md5=d3d544959d8a3782b2e07451be0a903c \
                    file://snprintf/various.h;endline=31;md5=89f2509b6b4682c4fc95255eec4abe44"

PR = "r0"

inherit debian-package autotools lib_package

DPN = "ust"

DEPENDS = "liburcu util-linux"

do_install_append() {
	# Remove unwanted files
	if [ -d ${D}${includedir}/uruc/ ]; then
		rm -rf ${D}${includedir}/uruc
	fi
}

PACKAGES =+ "lib${PN}-ctl2"

FILES_lib${PN}-ctl2 += "${libdir}/lib${PN}-ctl.so.*"

# Correct the package name
PKG_${PN}-dev = "lib${PN}-dev"
PKG_${PN} = "lib${PN}0"


Add the fribidi recipe necessary for building efl

SUMMARY = "Fribidi library for bidirectional text"
SECTION = "libs"
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=a916467b91076e631dd8edb7424769c7"
BBCLASSEXTEND = "native"

PROVIDES = "libfribidi"
DEPENDS = "glib-2.0 libpcre"

inherit autotools lib_package pkgconfig

CFLAGS_append = "  -DPAGE_SIZE=4096 "
SECURITY_CFLAGS_remove_toolchain-clang = "-D_FORTIFY_SOURCE=2"

SRC_URI = "http://fribidi.org/download/fribidi-${PV}.tar.bz2"

SRC_URI[md5sum] = "6c7e7cfdd39c908f7ac619351c1c5c23"
SRC_URI[sha256sum] = "08222a6212bbc2276a2d55c3bf370109ae4a35b689acbc66571ad2a670595a8e"


DESCRIPTION = "v4l2 and IR applications"
LICENSE = "GPLv2 & LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=48da9957849056017dc568bbc43d8975 \
                    file://COPYING.LIB;md5=d749e86a105281d7a44c2328acebc4b0"

PR = "r2"

DEPENDS = "jpeg"

inherit autotools gettext

# libv4l was absorbed into this, let OE know that
PROVIDES = "libv4l"

SRC_URI = "git://linuxtv.org/v4l-utils.git;protocol=git \
          "
# 54f16ca8183dd8ae8bf4ccc07949795aff0301f5 -> v0.8.8 tag
SRCREV = "0298efdcd1153b8f719b9164548a3f0546f0cb7c"

S = "${WORKDIR}/git"

EXTRA_OECONF = "--disable-qv4l2 --enable-shared"

do_configure() {
	# autotools_do_configure fails with:
	# | configure.ac:139: error: required file 'build-aux/config.rpath' not found
	autoreconf -vfi
	oe_runconf
}

PACKAGES =+ "rc-keymaps libv4l libv4l-dbg libv4l-dev"

FILES_rc-keymaps = "${sysconfdir}/rc* ${base_libdir}/udev/rc*"
FILES_${PN} = "${bindir} ${sbindir} ${base_libdir}/udev/rules.d/70-infrared.rules"
FILES_libv4l += "${libdir}/libv4l/* ${libdir}/*.so.*"
FILES_libv4l-dbg += "${libdir}/libv4l/.debug"
FILES_libv4l-dev += "${libdir}/*.so ${includedir}/lib* ${libdir}/pkgconfig/lib*"


DESCRIPTION = "Microchip Peripheral I/O"
LICENSE = "(Apache-2.0 & MIT)"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57 \
                   file://LICENSE.MIT;md5=eaff550e3336227837b4efbd2244da32"

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

RDEPENDS_${PN} = "python"

SRC_URI = "git://github.com/linux4sam/mpio.git;branch=master;protocol=http"

SRCREV = "d329ac453cc75d1483e516f7bfab6e8727675dc4"

S = "${WORKDIR}/git"

inherit setuptools


Add skin readheathd from daconi and mmark

DESCRIPTION = "Skin Red Heat HD. Daconi and mmark"
MAINTAINER = "SIFTeam"

inherit gitpkgv

PV = "1.0+git${SRCPV}"
PKGV = "1.0+git${GITPKGV}"
PR = "r0"
SRCREV = ${AUTOREV}

PV_font-nmsbd2 = "20120113"
PR_font-nmsbd2 = "r0"
PKGV_font-nmsbd2 = "${PV_font-nmsbd2}"
DESCRIPTION_font-nmsbd2 = "Nmsbd2 font"

PV_font-verdanar = "20120113"
PR_font-verdanar = "r0"
PKGV_font-verdanar = "${PV_font-verdanar}"
DESCRIPTION_font-verdanar = "Verdana_R font"

PACKAGES = "${PN} font-nmsbd2 font-verdanar"
PROVIDES = "${PN} font-nmsbd2 font-verdanar"

SRC_URI = "git://github.com/SIFTeam/skin-redheathd.git;protocol=git"

FILES_${PN} = "/usr/share/enigma2"
FILES_font-nmsbd2 = "/usr/share/fonts/nmsbd2.ttf"
FILES_font-verdanar = "/usr/share/fonts/Verdana_R.ttf"

RDEPENDS_${PN} = "font-nmsbd2 font-verdanar"

S = "${WORKDIR}/git"

do_install() {
	install -d ${D}/usr/share
	cp -rp ${S}/usr/share/* ${D}/usr/share/
	chmod -R a+rX ${D}/usr/share/enigma2/
	chmod 644 ${D}/usr/share/fonts/*.ttf
}


IMAGE_FEATURES += "package-management"

PR = "r0"

POKY_EXTRA_INSTALL = "\
    task-x11-server\
    task-x11-utils \
    task-xfce-extended \
    task-jlime-apps-cli \
    task-jlime-apps-gui \
    network-manager-applet \
    libgtkstylus \
    "

LICENSE = "MIT"

inherit core-image


# base recipe: http://cgit.openembedded.org/cgit.cgi/meta-openembedded/tree/\
#	meta-oe/recipes-connectivity/libnet/libnet_1.2-rc3.bb?
# base branch: master
# base commit: a558e8096c381bb2b83ad1ef39f3301e73759cbb
#

SUMMARY = "A packet dissection and creation library"
DESCRIPTION = "libnet provides a portable framework for low-level \
network packet writing and handling \
libnet features portable packet creation interfaces at the IP layer \
and link layer, as well as a host of supplementary functionality"
HOMEPAGE = "http://libnet-dev.sourceforge.net/"

PR = "r0"
inherit debian-package

LICENSE = "BSD-2-Clause & BSD-3-Clause & BSD-4-Clause"
LIC_FILES_CHKSUM = "file://doc/COPYING;md5=fb43d5727b2d3d1238545f75ce456ec3 \
		    file://include/ifaddrlist.h;md5=58a41682f610ab26d8b2e457f1d8d593 \
		    file://include/bpf.h;md5=4bf8fab88f054e7f83c66e9fa9180933 \
"
DEPENDS = "libpcap"

inherit autotools binconfig

#Correct the packages name
DEBIANNAME_${PN}-dev = "${PN}1-dev"
DEBIANNAME_${PN}-doc = "${PN}1-doc"
DEBIANNAME_${PN}-dbg = "${PN}1-dbg"


require ti-framework-components.inc

PV = "2_25_02_06"

SRC_URI[fctarball.md5sum] = "0ff9fc152633f6bfbe7ae98902833477"
SRC_URI[fctarball.sha256sum] = "1dc2994b867c76a474fd0c7c82c544d9163f661434ce994542bba9dd2997da6a"


Add recipe of directfb-examples built from Git repository

DESCRIPTION = "The DirectFB-examples package contains a set of simple DirectFB \
      applications that can be used to test and demonstrate various DirectFB \
      features"
DEPENDS = "directfb"
SECTION = "libs"
LICENSE = "MIT"
RV = "1.7-0+git"
PR = "r0"

SRC_URI = " \
           git://git.directfb.org/git/directfb/extras/DirectFB-examples.git;protocol=git \
          "
SRCREV = "61ddf7dc02ee28d8cab20ad482f37c2ad4390835"

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

S = "${WORKDIR}/git"

inherit autotools


#
# Base recipe: recipes-support/icu/icu_55.1.bb
# Base branch: jethro
#

SUMMARY = "International Component for Unicode libraries"
DESCRIPTION = "The International Component for Unicode (ICU) is a mature, \
portable set of C/C++ and Java libraries for Unicode support, software \
internationalization (I18N) and globalization (G11N), giving applications the \
same results on all platforms."
HOMEPAGE = "http://site.icu-project.org/"

PR = "r0"

inherit debian-package

LICENSE = "ICU"
LIC_FILES_CHKSUM = "file://../license.html;md5=3a0605ebb7852070592fbd57e8967f3f"

S = "${DEBIAN_UNPACK_DIR}/source"

DEPENDS = "icu-native"
DEPENDS_class-native = ""

CPPFLAGS_append_libc-uclibc = " -DU_TIMEZONE=0"

inherit autotools pkgconfig binconfig

STAGING_ICU_DIR_NATIVE = "${STAGING_DATADIR_NATIVE}/${BPN}/${PV}"

# ICU needs the native build directory as an argument to its --with-cross-build option when
# cross-compiling. Taken the situation that different builds may share a common sstate-cache
# into consideration, the native build directory needs to be staged.
EXTRA_OECONF = "--enable-static --with-cross-build=${STAGING_ICU_DIR_NATIVE}"
EXTRA_OECONF_class-native = ""
EXTRA_OECONF_class-nativesdk = "--with-cross-build=${STAGING_ICU_DIR_NATIVE}"

do_install_append_class-native() {
	mkdir -p ${D}/${STAGING_ICU_DIR_NATIVE}/config
	cp -r ${B}/config/icucross.mk ${D}/${STAGING_ICU_DIR_NATIVE}/config
	cp -r ${B}/config/icucross.inc ${D}/${STAGING_ICU_DIR_NATIVE}/config
	cp -r ${B}/lib ${D}/${STAGING_ICU_DIR_NATIVE}
	cp -r ${B}/bin ${D}/${STAGING_ICU_DIR_NATIVE}
	cp -r ${B}/tools ${D}/${STAGING_ICU_DIR_NATIVE}
}

# Add packages follow debian
PACKAGES =+ "icu-devtools libicu52"

# Rename packages follow debian
PKG_${PN}-dev = "libicu-dev"

FILES_icu-devtools += "${bindir}/* ${sbindir}/*"
FILES_libicu52 += "${libdir}/*.so.*"

BBCLASSEXTEND = "native nativesdk"


DESCRIPTION = "Asynchronous library to control Philips Hue"
HOMEPAGE = "https://pypi.org/project/aiohue/"
SECTION = "devel/python"
LICENSE = "Apache-2.0"
# No license file available but the license is specified in PKG-INFO and setup.py.
LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=7145f7cdd263359b62d342a02f005515"

SRC_URI[sha256sum] = "35696d04d6eb0328b7031ea3c0a3cfe5d83dfcf62f920522e4767d165c6bc529"

inherit pypi setuptools3

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


#
# Base recipe: meta/recipes-extended/sysstat/sysstat_10.2.1.bb
# Base branch: daisy
#

SUMMARY = "System performance tools"
DESCRIPTION = "The sysstat utilities are a collection of performance monitoring tools for Linux."
HOMEPAGE = "http://sebastien.godard.pagesperso-orange.fr/"

PR = "r0"

inherit debian-package autotools-brokensep gettext

LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b"

EXTRA_OECONF += " \
		--enable-yesterday \
		--disable-man-group \
		--disable-compress-manpg \
		--enable-copy-only \
		sa_lib_dir=${libdir}/${PN} \
		sa_di=${localstatedir}/log/${PN} \
		conf_dir=${sysconfdir}/${PN}"

# Install files follow deian/rules
do_install_append() {
	mkdir -p -m 755 ${D}${libdir}/sysstat
	install -m 0755 ${S}/contrib/isag/isag ${D}${bindir}/isag
	install -m 0644 ${S}/contrib/isag/isag.1 ${D}${mandir}/man1
	install -d ${D}${datadir}/applications
	install -m 0644 ${S}/debian/isag.desktop ${D}${datadir}/applications
	install -m 0755 ${S}/debian/debian-sa1 ${D}${libdir}/${DPN}
	mv ${D}${bindir}/sar ${D}${bindir}/sar.sysstat
	mv ${D}${mandir}/man1/sar.1 ${D}${mandir}/man1/sar.sysstat.1
	rm -rf ${D}${docdir}
	install -d ${D}${sysconfdir}/cron.d
	install -m 0644 ${S}/debian/sysstat.cron.d ${D}${sysconfdir}/cron.d/sysstat
	install -d ${D}${sysconfdir}/cron.daily
	install -m 0755 ${S}/debian/sysstat.cron.daily ${D}${sysconfdir}/cron.daily/sysstat
	install -d ${D}${sysconfdir}/init.d
	install -m 0755 ${S}/debian/sysstat.init.d ${D}${sysconfdir}/init.d/sysstat
}

# Ship packages follow debian
PACKAGES =+ "isag isag-doc"
FILES_isag += "${bindir}/isag"
FILES_isag-doc += "${datadir}/applications \
		   ${mandir}/man1/isag.1 \
		   ${datadir}/menu/"


Add simple-video-viewer recipe, useful for testing webcams using libv4l and gtk+

DESCRIPTION = "Simple Video Viewer"
HOMEPAGE = "http://github.com/nzjrs/simple-video-viewer/tree/master"
LICENSE = "GPLv2"
SECTION = "x/games"
PRIORITY = "optional"

DEPENDS="libv4l"

PR = "r1"

SRCREV = "dedf6cb62d0bfe234dae84e8e5dacdc934e59bad"
SRC_URI = "git://github.com/nzjrs/simple-video-viewer.git;protocol=git;branch=master"

S = "${WORKDIR}/git"

inherit autotools


Add examples for libarch version 1.0.0.0

DESCRIPTION = "TI Library Architecture Examples"

include libarch.inc

PR = "${INC_PR}.0"

DEPENDS += "libarch clocl-native"
RDEPENDS_${PN} += "opencl-runtime"

export LIBARCH_DIR    = "${LIBARCH_INSTALL_DIR}"
export TARGET_ROOTDIR = "${STAGING_DIR_TARGET}"

do_compile() {
    make examples TARGET=${TARGET} LIBOS=LIB_OPENCL

    # Remove object files before installing so that the binaries are not present
    find . -name "*.obj" -type f -delete
    find . -name "*.o" -type f -delete
    find . -name "*.out" -type f -delete
    find . -name "*.dsp_h" -type f -delete
}

do_install() {
    install -d ${D}${datadir}/ti/examples/libarch
    cp -r examples/arm+dsp ${D}${datadir}/ti/examples/libarch
    cp -r examples/common ${D}${datadir}/ti/examples/libarch
    cp examples/Makefile ${D}${datadir}/ti/examples/libarch
}

FILES_${PN} += "\
    ${datadir}/ti/examples/libarch/* \ "

FILES_${PN}-dbg += "\
    ${datadir}/ti/examples/libarch/*/.debug \ "

INSANE_SKIP_${PN} = "arch ldflags textrel"


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

inherit task

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

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

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


Add PRU software package version 4.0.0.0

DESCRIPTION = "Programmable Real-time Unit Software Package"
HOMEPAGE = "http://processors.wiki.ti.com/index.php/PRU-ICSS"
LICENSE = "BSD-3-Clause & GPL-2.0 & PD"

LIC_FILES_CHKSUM = "file://PRU-Package-v4.0-Manifest.html;md5=5ea937e4ff2c924a735d42e61ad8cbe3"

BRANCH = "master"
SRC_URI = "git://git.ti.com/pru-software-support-package/pru-software-support-package.git;protocol=git;branch=${BRANCH}"
SRCREV = "476289eb7c3a91977bae84aea55c56f3120b48ea"

PV = "4.0.0.0"
PR = "r0"

require recipes-ti/includes/ti-paths.inc

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

DEPENDS = "ti-cgt-pru-native"

S = "${WORKDIR}/git"

export PRU_CGT = "${TI_CGT_PRU_INSTALL_DIR}"

SUBDIRS = "examples pru_cape/pru_fw lib/src labs"

do_compile() {
    for dir in ${SUBDIRS}
    do
        make -C ${S}/$dir
    done
}

do_install_ti33x() {
    install -d ${D}/lib/firmware
    for i in 0 1
    do
        install -m 0644 ${S}/examples/am335x/PRU_RPMsg_Echo_Interrupt${i}/gen/PRU_RPMsg_Echo_Interrupt${i}.out \
                        ${D}/lib/firmware/am335x-pru${i}-fw
    done
}

do_install_ti43x() {
    install -d ${D}/lib/firmware
    for i in 0 1
    do
        install -m 0644 ${S}/examples/am437x/PRU_RPMsg_Echo_Interrupt${i}/gen/PRU_RPMsg_Echo_Interrupt${i}.out \
                        ${D}/lib/firmware/am437x-pru1_${i}-fw
    done
}

do_install_omap-a15() {
    install -d ${D}/lib/firmware
    for i in 1 2
    do
        for j in 0 1
        do
            install -m 0644 ${S}/examples/am572x/PRU_RPMsg_Echo_Interrupt${i}_${j}/gen/PRU_RPMsg_Echo_Interrupt${i}_${j}.out \
                            ${D}/lib/firmware/am57xx-pru${i}_${j}-fw
        done
    done
}

FILES_${PN} += "/lib/firmware"

INSANE_SKIP_${PN} = "arch"


DESCRIPTION = "Rezlooks Gil-Ouch theme"
HOMEPAGE = "http://gnome-look.org/content/show.php/Rezlooks-Gil-Ouch?content=70394"
SECTION = "x11/themes"

PR = "r1"

RDEPENDS = "gtk-engines-rezlooks"

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://gtk-2.0/gtkrc;md5=9b78ae1658f1b5b77d271ea2ba42bdca"

SRC_URI = "http://gnome-look.org/CONTENT/content-files/70394-Rezlooks-Gil-Ouch.tar.gz"
SRC_URI[md5sum] = "bf8c33d3754513d286f9feffebebebe0"
SRC_URI[sha256sum] = "03f3da37e76b2f09b0ff51c0aa423f353214a9b0af87a0d31c22143bc33139c7"

S = "${WORKDIR}/Rezlooks-Gil-Ouch"

PACKAGES = "${PN}"

FILES_${PN} = "${datadir}/themes/Rezlooks-Gil-Ouch/gtk-2.0/gtkrc"

do_install () {
    install -d -m 0755 "${D}/${datadir}/themes/Rezlooks-Gil-Ouch/gtk-2.0"
    install -m 0644 "${S}/gtk-2.0/gtkrc" "${D}/${datadir}/themes/Rezlooks-Gil-Ouch/gtk-2.0"
}


AUTHOR = "Willie <willie@openmoko.com>"
DESCRIPTION = "Exposure all devices on neo1973"
DEPENDS = "python-etk"
RDEPENDS = "python-etk python-re python-codecs"
PV = "0.0.1+svnr${SRCREV}"
SRCREV = ${AUTOREV}
PR = "r0"

S = ${WORKDIR}/${PN}

inherit setuptools
SRC_URI = "svn://svn.projects.openmoko.org/svnroot;module=exposure;proto=http"

PACKAGES = "${PN}"

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


DESCRIPTION = "Library for OAuth version 1.0a."
HOMEPAGE = "http://code.google.com/p/oauth/"
SECTION = "devel/python"
LICENSE = "MIT"
SOURCE = "oauth"
PR = "r0"

SRC_URI = "http://pypi.python.org/packages/source/o/${SOURCE}/${SOURCE}-${PV}.tar.gz"
SRC_URI[md5sum] = "30ed3cc8c11d7841a89feab437aabf81"
SRC_URI[sha256sum] = "e769819ff0b0c043d020246ce1defcaadd65b9c21d244468a45a7f06cb88af5d"

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

inherit setuptools


Add GLSDK specific staging tree for omap-a15

require recipes-graphics/drm/libdrm.inc

COMPATIBLE_MACHINE = "omap-a15"

DEFAULT_PREFERENCE = "-1"

EXTRA_OECONF += "--enable-omap-experimental-api --enable-kms"

SRC_URI = "git://git.ti.com/glsdk/libdrm.git;protocol=git"
SRCREV = "3cb5405084111193cedb8796d259b56560b088f0"

PR = "${INC_PR}.0"

S = "${WORKDIR}/git"


Add new recipe for 3D coordinate transformations

SUMMARY = "Functions for 3D coordinate transformations"
SECTION = "devel/python"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://setup.py;beginline=36;endline=36;md5=6dd3a8a8bcf9d24e830b974bf9345e72"

SRC_URI[sha256sum] = "404c7797c78aa461cb8043081901fc5517cef342d5ff56becd74a7967ba88d78"

inherit pypi setuptools3

RDEPENDS:${PN} += "\
    ${PYTHON_PN}-numpy \
"


DESCRIPTION = "Driver for HD Wireless Wi-Fi device"
HOMEPAGE = "http://www.hd-wireless.se"
PRIORITY = "optional"
SECTION = "kernel/modules"
LICENSE = "GPL"
PR = "r1"
RDEPENDS = "wireless-tools \
	 wpa-supplicant \
	 "

SRC_URI = "http://www.hd-wireless.se/images/stories/public_pdf/owl-linux-arm-${PV}.tar.gz \
	"

S = "${WORKDIR}/owl-linux-arm-${PV}"

inherit module

do_compile () {
        unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS CC LD CPP
        oe_runmake 'MODPATH=${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/net' \
                   'KERNELDIR=${STAGING_KERNEL_DIR}' \
                   'KDIR=${STAGING_KERNEL_DIR}' \
                   'KERNEL_VERSION=${KERNEL_VERSION}' \
                   'CC=${KERNEL_CC}' \
                   'LD=${KERNEL_LD}'
}

do_install() {
        install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/net
        install -m 0644 ${S}/owl*${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/net
}


Add a special version of binutils for building MinGW

PR = "r1"

require binutils.inc

DESCRIPTION = "A GNU collection of binary utilities - MinGW port"
HOMEPAGE = "http://www.mingw.org/"

SRC_URI = "${SOURCEFORGE_MIRROR}/mingw/binutils-${PV}-src.tar.gz"

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

DEFAULT_PREFERENCE = "0"


Install a package which contains the default config This is derived from openmoko-session2 and is responsible for setting the default values which settings-daemon will pick up and advertise as xsettings.

DESCRIPTION = "Theme support and defaults to integrate OM2007.2 in the April Software Update"
LICENSE = "GPL"
SECTION = "x11"
RDEPENDS_${PN} = "openmoko-common2"

ALLOW_EMPTY_${PN} = "1"
PACKAGE_ARCH = "all"

pkg_postinst_${PN} () {
#!/bin/sh -e
if [ "x$D" != "x" ]; then
    exit 1
fi

gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type string --set /desktop/poky/interface/theme Moko
gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type string --set /desktop/poky/interface/icon_theme openmoko-standard
gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type string --set /desktop/poky/interface/font_name "Sans 5"
gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type string --set /desktop/poky/interface/wallpaper ${datadir}/pixmaps/wallpaper.png
gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type bool --set /desktop/poky/interface/digital_clock 1
gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type int --set /desktop/poky/peripherals/mouse/drag_threshold 8
gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type int --set /desktop/openmoko/neod/power_management 2
# gstreamer audio settings
#gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct -t string --set /system/gstreamer/0.10/default/audiosink pulsesink
#gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct -t string --set /system/gstreamer/0.10/default/audiosrc pulsesrc

}


DESCRIPTION = "Utilities from Linaro for testing Power Management"
HOMEPAGE = "https://wiki.linaro.org/WorkingGroups/PowerManagement/Resources/TestSuite/PmQa"

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://../COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"

PV = "0.4.4"
PR = "r0"

BRANCH ?= "master"
SRCREV = "fbc2762359b863dfbf4fd0bab1e8abd2a6125ed4"

SRC_URI = "git://git.linaro.org/tools/pm-qa.git;protocol=git;branch=${BRANCH}"

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

UTILS = "cpuburn cpucycle heat_cpu nanosleep"

CFLAGS += "-pthread"

do_compile () {
    oe_runmake
}

do_install () {
    install -d ${D}${bindir}

    for util in ${UTILS}
    do
        install -m 0755 $util ${D}${bindir}/
    done
}