SUMMARY = "high-performance memory object caching system"
DESCRIPTION = "\
	Danga Interactive developed memcached to enhance the speed of LiveJournal.com, 	\
	a site which was already doing 20 million+ dynamic page views per day for 1 	\
	million users with a bunch of webservers and a bunch of database servers. 	\
	memcached dropped the database load to almost nothing, yielding faster page 	\
	load times for users, better resource utilization, and faster access to the 	\
	databases on a memcache miss \
	"
HOMEPAGE = "http://www.memcached.org/"
PR = "r0"
inherit debian-package

LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://COPYING;md5=7e5ded7363d335e1bb18013ca08046ff"

inherit autotools-brokensep

#configure follow debian/rules
EXTRA_OECONF += "--enable-sasl"

DEPENDS += "libevent libsasl2"
RDEPENDS_${PN} += "perl lsb-base"

#install follow Debian jessie
do_install_append() {
	install -d ${D}${sysconfdir}/default
	install -d ${D}${sysconfdir}/init.d
	install -d ${D}${base_libdir}/systemd/system
	install -d ${D}${datadir}/memcached

	install -m 0644 ${S}/debian/memcached.default ${D}${sysconfdir}/default/memcached
	install -m 0644 ${S}/scripts/memcached-init ${D}${sysconfdir}/init.d/memcached
	install -m 0644 ${S}/debian/memcached.service \
		${D}${base_libdir}/systemd/system/memcached.service
	install -m 0644 ${S}/debian/memcached.conf \
		${D}${datadir}/memcached/memcached.conf.default

	cp -a ${S}/scripts ${D}${datadir}/memcached
	install -m 0755 ${S}/debian/systemd-memcached-wrapper \
		${D}${datadir}/memcached/scripts
	rm ${D}${datadir}/memcached/scripts/memcached-init
	rm ${D}${datadir}/memcached/scripts/memcached.sysv
	rm ${D}${datadir}/memcached/scripts/memcached.service
}
FILES_${PN} += "${base_libdir}/*"
PARALLEL_MAKE = ""


inherit ti-pdk
require pktlib.inc

PR = "${INC_PR}.0"

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

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


SUMMARY = "hardware identification / configuration data"
DESCRIPTION = "\
	This package contains various hardware identification and \
	configuration data, such as the pci.ids database, or the XFree86/xorg \
	Cards database.It is needed for the kudzu hardware detection.\
"
HOMEPAGE = "http://git.fedorahosted.org/git/hwdata.git"
PR = "r0"
inherit debian-package

LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "\
	file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263\
	file://LICENSE;md5=1556547711e8246992b999edd9445a57"
inherit autotools-brokensep
DEBIAN_PATCH_TYPE = "nopatch"

do_install_append() {
	#remove unwanted files
	rm ${D}${datadir}/${PN}/*.txt
	rm -r ${D}${libdir}
}
RDEPENDS_${PN} += "usbutils pciutils"


inherit autotools
include util-linux.inc

PR = "r3"

SRC_URI = "ftp://ftp.kernel.org/pub/linux/utils/util-linux/util-linux-${PV}.tar.bz2 \
           file://gcc34.patch;patch=1 \
           file://MCONFIG \
           file://make_include \
           file://swapargs.h \
           file://defines.h \
           file://pagesz-not-constant.patch;patch=1"

Remove pagesz-not-constant.patch as gcc34.patch is doing the same thing (which of course breaks the build)

inherit autotools
include util-linux.inc

PR = "r4"

SRC_URI = "ftp://ftp.kernel.org/pub/linux/utils/util-linux/util-linux-${PV}.tar.bz2 \
           file://gcc34.patch;patch=1 \
           file://MCONFIG \
           file://make_include \
           file://swapargs.h \
           file://defines.h"


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

PR = "r0"

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

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


SUMMARY = "NetBSD make"
DESCRIPTION = "bmake is a program designed to simplify the maintenance of other \
programs. Its input is a list of specifications as to the files upon \
which programs and other files depend.  mkdep, a program to construct \
Makefile dependency lists, is also included."
HOMEPAGE = "http://www.crufty.net/help/sjg/bmake.html"

inherit debian-package
PV = "20140620"

LICENSE = "BSD-3-Clause & BSD-4-Clause"
LIC_FILES_CHKSUM = "file://make.h;beginline=4;endline=70;md5=d6d25d369ff15e28ebaee4a6306a2e57"

inherit autotools native

do_configure() {
	oe_runconf
}

# bmake is stripped by default, this causes QA warning while stripping it
# from do_populate_sysroot()
export STRIP_FLAG = ""

do_install_append (){
	install -m 0755 ${S}/debian/mkdep ${D}${bindir}
	ln -sf bmake ${D}${bindir}/pmake
}
# Disable parallel make
PARALLEL_MAKE = ""


SUMMARY = "TI Network abstraction layer RTOS LLD library "

inherit ti-pdk

require recipes-bsp/nwal-lld/nwal-lld.inc

PR = "${INC_PR}.0"

DEPENDS_append = " cppi-lld-rtos \
                   pa-lld-rtos \
                   pktlib-rtos \
                   qmss-lld-rtos \
                   sa-lld-rtos \
"

COMPATIBLE_MACHINE = "k2hk-evm|k2e-evm|k2l-evm|c667x-evm"

# HTML doc link params
PDK_COMP_LINK_TEXT = "NWAL LLD"


SUMMARY = "Update Configuration File(s): preserve user changes to config files"
DESCRIPTION = " Debian policy mandates that user changes to configuration files must be \
 preserved during package upgrades. The easy way to achieve this behavior \
 is to make the configuration file a 'conffile', in which case dpkg \
 handles the file specially during upgrades, prompting the user as \
 needed."

inherit debian-package
PV = "3.0030"

LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=361b6b837cad26c6900a926b62aada5f"

inherit autotools-brokensep

DEPENDS += "coreutils-native"

do_install() {
	install -d ${D}${bindir} \
	           ${D}${sysconfdir} \
	           ${D}${localstatedir}/lib/ucf
	touch ${D}${localstatedir}/lib/ucf/hashfile
	touch ${D}${localstatedir}/lib/ucf/registry

	for file in ucf ucfr ucfq lcf; do
		install -p -m 755 $file ${D}${bindir}
	done
	install -p -m 644 ${S}/ucf.conf ${D}${sysconfdir}
}
BBCLASSEXTEND += "native"

RDEPENDS_${PN} += "debconf coreutils"


SUMMARY = "Multiplexing library for Golang"
HOMEPAGE = "https://github.com/hashicorp/yamux"
LICENSE = "MPL-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=2dd1a9ecf92cd5617f128808f9b85b44"

PKG_NAME = "github.com/hashicorp/yamux"
SRC_URI = "git://${PKG_NAME}.git"
SRCREV = "b2e55852ddaf823a85c67f798080eb7d08acd71d"

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

yamux_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 the giflib recipe necessary for building efl

SUMMARY = "shared library for GIF images"
SECTION = "libs"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=ae11c61b04b2917be39b11f78d71519a"

SRC_URI = "${SOURCEFORGE_MIRROR}/giflib/${BP}.tar.bz2"

inherit autotools

PACKAGES += "${PN}-utils"
FILES_${PN} = "${libdir}/libgif.so.*"
FILES_${PN}-utils = "${bindir}"

BBCLASSEXTEND = "native"

RDEPENDS_${PN}-utils = "perl"

SRC_URI[md5sum] = "2c171ced93c0e83bb09e6ccad8e3ba2b"
SRC_URI[sha256sum] = "df27ec3ff24671f80b29e6ab1c4971059c14ac3db95406884fc26574631ba8d5"


Add new library which is a optional dependency for Weston

DESCRIPTION = "libinput is a library to handle input devices in Wayland compositors"
HOMEPAGE = "http://www.freedesktop.org/wiki/Software/libinput/"

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=673e626420c7f859fbe2be3a9c13632d"

inherit autotools pkgconfig

DEPENDS = "libevdev udev"

PR = "r0"

BRANCH = "master"
SRCREV = "bb10ec84d3704fc0fb40591bcbffe90f6c77966d"

PV = "0.5.0"

SRC_URI = "git://anongit.freedesktop.org/wayland/libinput;protocol=git;branch=${BRANCH}"

S = "${WORKDIR}/git"


SUMMARY = "Non-interactive ssh password auth"
DESCRIPTION = "	SSH's (secure shell) most common authentication mode is called \
		"interactive keyboard password authentication", so called both \
		because it is typically done via keyboard, and because openssh \
		takes active measures to make sure that the password is, indeed,\
		typed interactively by the keyboard. Sometimes,however, it is \
		necessary to fool ssh into accepting an interactive password \
		non-interactively. This is where sshpass comes in."
HOMEPAGE = "http://sourceforge.net/projects/sshpass"

PR = "r0"
inherit debian-package

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

inherit autotools


SUMMARY = "conservative garbage collector for C and C++"
DESCRIPTION = "oehm-Demers-Weiser's GC is a garbage collecting storage allocator that is\n\
 intended to be used as a plug-in replacement for C's malloc or C++'s new().\n\
 .\n\
 It allows you to allocate memory basically as you normally would without\n\
 explicitly deallocating memory that is no longer useful. The collector\n\
 automatically recycles memory when it determines that it can no longer be\n\
 used.\n\
 .\n\
 This version of the collector is thread safe, has C++ support and uses the\n\
 defaults for everything else. However, it does not work as a drop-in malloc(3)\n\
 replacement."
HOMEPAGE = "http://www.hpl.hp.com/personal/Hans_Boehm/gc/"

PR = "r0"
inherit debian-package

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://doc/README;endline=37;md5=9f4fd307082acf7a8af3e3897245163b"
inherit autotools pkgconfig

# base on debian/rules
EXTRA_OECONF += "--enable-cplusplus -disable-dependency-tracking \
                 --with-tags=CXX --datadir=${docdir}"
PACKAGECONFIG ??= ""
PACKAGECONFIG[libatomic-ops] = "--with-libatomic-ops=yes,--with-libatomic-ops=no,libatomic-ops"

do_install_append() {
	# remove unwanted files
	rm -rf ${D}${libdir}/libcord*
}
PKG_${PN} = "${PN}1c2"
RPROVIDES_${PN} += "${PN}1c2"
BBCLASSEXTEND = "native"


SUMMARY = "Simple mDNS client/server library in Golang"
HOMEPAGE = "https://github.com/hashicorp/mdns"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=cb04212e101fbbd028f325e04ad45778"

DEPENDS += "golang-cross dns go-net"

PKG_NAME = "github.com/hashicorp/mdns"
SRC_URI = "git://${PKG_NAME}.git"
SRCREV = "2b439d37011456df8ff83a70ffd1cd6046410113"

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

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

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


DESCRIPTION = "an utility to manipulate constant databases (cdb) \
tinycdb is a small, fast and reliable utility and subroutine \
library for creating and reading constant databases. The database \
structure is tuned for fast reading."

PR = "r0"

inherit debian-package autotools-brokensep

LICENSE = "PD"
LIC_FILES_CHKSUM = "file://debian/copyright;md5=dca69c9caec3af9b850379632f912f81"

# Fix Makefile to set variable for compiling successfully
do_compile () {
	sed -i -e "s:/local::" ${S}/Makefile
	sed -i -e "s:^CC .*:CC = ${CC}:" ${S}/Makefile
        sed -i -e "s:^AR .*:AR = ${AR}:" ${S}/Makefile
        sed -i -e "s:^RANLIB .*:RANLIB = ${RANLIB}:" ${S}/Makefile
	sed -i -e 's:$(prefix)/man:${mandir}:' ${S}/Makefile
	sed -i -e "s:^DESTDIR=.*:DESTDIR=${D}:" ${S}/Makefile
	oe_runmake staticlib sharedlib cdb-shared nss
	cp -pf nss_cdb-Makefile cdb-Makefile
}

# Install files follow Debian
do_install_append () {
	install -d ${D}${libdir}
	install -m 0644 ${S}/*.a ${D}${libdir}
	install -m 0755 libcdb.so.* ${D}${libdir}
	ln -sf libcdb.so.1 ${D}${libdir}/libcdb.so
}

# Split files follow Debian
PACKAGES =+ "libcdb1"

FILES_libcdb1 += "${libdir}/*.so.*"
FILES_${PN}-doc += "${mandir}"

DEBIANNAME_${PN}-dev = "libcdb-dev"

# There is no debian patch
DEBIAN_PATCH_TYPE = "nopatch"

BBCLASSEXTEND = "native"


Add recipe for libcrypt-openssl-rsa-perl package

#
# base recipe: http://cgit.openembedded.org/meta-openembedded/tree/meta-perl/\
#		recipes-perl/libcrypt/libcrypt-openssl-rsa-perl_0.28.bb
# base branch: master
#

SUMMARY = " module for RSA encryption using OpenSSL"
DESCRIPTION = "\
    Crypt::OpenSSL::RSA is a Perl module that provides glue to the RSA functions\
    in the OpenSSL library. It provides the following functionalities: create \
    a key from a string, make a new key, save key to a string, save public \
    portion of key to a string using format compatible with OpenSSL's command-line\
    rsa tool, encrypt, decrypt, sign, verify, return the size in bytes of a key, \
    check the validity of a key"
HOMEPAGE = " http://perl-openssl.sourceforge.net/"

PR = "r0"
inherit debian-package

LICENSE = "Artistic-1.0 | GPL-1.0+"

LIC_FILES_CHKSUM = "file://LICENSE;md5=385c55653886acac3821999a3ccd17b3"

#cpan is perl modules that use Makefile.PL to build system
inherit cpan

DEPENDS += "openssl libcrypt-openssl-random-perl libcrypt-openssl-bignum-perl"
RDEPENDS_${PN} += "libcrypt-openssl-bignum-perl"

#install follow debian jessie
do_install_append () {
	mv ${D}${libdir}/perl/vendor_perl/* ${D}${libdir}/perl/
	rm -r ${D}${libdir}/perl/vendor_perl
	mv ${D}${libdir}/perl/5.20.2 ${D}${libdir}/perl/5.20
	mv ${D}${libdir}/perl ${D}${libdir}/perl5
	chmod 0644 ${D}${libdir}/perl5/5.20/auto/Crypt/OpenSSL/RSA/RSA.so
}
FILES_${PN} = "${libdir}/*"
FILES_${PN}-dbg += "${libdir}/perl5/5.20/auto/Crypt/OpenSSL/RSA/.debug"


HOMEPAGE = "https://git.linaro.org/landing-teams/working/qualcomm/fastrpc.git"
SUMMARY = "Qualcomm FastRPC applications and library"
SECTION = "devel"

LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://src/fastrpc_apps_user.c;beginline=1;endline=29;md5=f94f3a7beba14ae2f59f817e9634f891"

SRCREV = "a28fcb0f247f6c1a9f915dc318d931256edabeac"
SRC_URI = "git://git.linaro.org/landing-teams/working/qualcomm/fastrpc.git;branch=automake;protocol=https"

PV = "0.0+${SRCPV}"

S = "${WORKDIR}/git"

inherit autotools


DESCRIPTION = "Utility to generate specified CPU Load"
HOMEPAGE = "https://github.com/ptitiano/cpuloadgen"

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

PV = "0.93"
PR = "r0"

BRANCH ?= "master"
SRCREV ?= "301d69899d6f4d84f143e0ed86957eea416a27a6"

SRC_URI = "git://github.com/ptitiano/cpuloadgen.git;protocol=git;branch=${BRANCH}"

S = "${WORKDIR}/git"

do_install () {
    install -d ${D}${bindir}
    oe_runmake DESTDIR=${D}${bindir} install
}


DESCRIPTION = "FireNodejs"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"

SRC_URI = "file://firenodejs-start.init"

inherit update-rc.d

INITSCRIPT_NAME = "firenodejs-start"
INITSCRIPT_PARAMS = "start 10 S ."

do_install () {
        install -d ${D}${sysconfdir}/init.d
        install -m 0755 ${WORKDIR}/firenodejs-start.init ${D}${sysconfdir}/init.d/${PN}
}

PACKAGE_ARCH = "${MACHINE_ARCH}"


Revert "glm: remove - a later version is in meta-oe"

SUMMARY = "C++ mathematics library for graphics programming"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://copying.txt;md5=4431606d144252143c9c3df384a74cad"

inherit cmake

SRC_URI = "git://github.com/g-truc/glm.git"
# 0.9.8.3 tag
SRCREV = "6a1e2ec5d5e79e6d869c947cbdbcbb297bdf9d32"
S = "${WORKDIR}/git"

do_configure() {
    # for some reason simple tailored configure runs best
    mkdir -p ${B}
    cd ${B}
    # -DCMAKE_INSTALL_LIBDIR:PATH=${libdir} causes configur break with
    # | CMake Error: Could not open file for write in copy operation /usr/lib/cmake/glm/glmConfig.cmake.tmp
    # | CMake Error: : System Error: No such file or directory
    cmake \
        -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
        -DCMAKE_INSTALL_INCLUDEDIR:PATH=${includedir} \
        ${OECMAKE_SOURCEPATH}
}

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

BBCLASSEXTEND = "native"


Introduce a new version of gpe-bluetooth.

LICENSE = "GPL"
inherit gpe autotools

DESCRIPTION = "GPE bluetooth support"
DEPENDS = "gtk+ libdisplaymigration libgpewidget openobex libgpevtype bluez-libs sqlite dbus libglade blueprobe bluez-utils-dbus"
RDEPENDS = "bluez-utils-dbus blueprobe"
MAINTAINER = "Phil Blundell <pb@handhelds.org>"
SECTION = "gpe"
PRIORITY = "optional"
PR = "r0"

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

FILES_${PN} += '${datadir}/bluez-pin'


SUMMARY = "Go package for circular buffers"
HOMEPAGE = "https://github.com/armon/circbuf"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=d2d77030c0183e3d1e66d26dc1f243be"

PKG_NAME = "github.com/armon/circbuf"
SRC_URI = "git://${PKG_NAME}.git"
SRCREV = "f092b4f207b6e5cce0569056fba9e1a2735cb6cf"

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

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

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


SUMMARY = "TI RTOS low level driver for Inter-IC module (I2C)"

inherit ti-pdk

LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://I2C.h;beginline=1;endline=32;md5=147a6773e962b103cd162ca58535289c"

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

I2C_LLD_GIT_URI = "git://git.ti.com/keystone-rtos/i2c-lld.git"
I2C_LLD_GIT_PROTOCOL = "git"
I2C_LLD_GIT_BRANCH = "master"
I2C_LLD_GIT_DESTSUFFIX = "git/ti/drv/i2c"

# Below commit ID corresponds to "DEV.I2C_LLD.01.00.00.07A"
I2C_LLD_SRCREV = "85ad56fb6e1f2bdabdd3c371b97170cb62a6fdd7"

BRANCH = "${I2C_LLD_GIT_BRANCH}"
SRC_URI = "${I2C_LLD_GIT_URI};destsuffix=${I2C_LLD_GIT_DESTSUFFIX};protocol=${I2C_LLD_GIT_PROTOCOL};branch=${BRANCH}"

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

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

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

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

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

# HTML doc link params
PDK_COMP_LINK_TEXT = "I2C LLD"


SUMMARY = "TI Multimedia card(MMC)/Secure Digital(SD) low level driver for RTOS "

inherit ti-pdk

LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://MMCSD.h;beginline=1;endline=32;md5=f74069541d4d165a000a66b4043cb065"

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

MMCSD_LLD_GIT_URI = "git://git.ti.com/keystone-rtos/sd-mmc.git"
MMCSD_LLD_GIT_PROTOCOL = "git"
MMCSD_LLD_GIT_BRANCH = "master"
MMCSD_LLD_GIT_DESTSUFFIX = "git/ti/drv/mmcsd"

# Below commit ID corresponds to "DEV.MMCSD_LLD.01.00.00.07"
MMCSD_LLD_SRCREV = "54b4b40174297475a648abc4afd23560c2f29911"

BRANCH = "${MMCSD_LLD_GIT_BRANCH}"
SRC_URI = "${MMCSD_LLD_GIT_URI};destsuffix=${MMCSD_LLD_GIT_DESTSUFFIX};protocol=${MMCSD_LLD_GIT_PROTOCOL};branch=${BRANCH}"

SRCREV = "${MMCSD_LLD_SRCREV}"
PV = "01.00.00.07"
PR = "r0"

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

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

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

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

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

# HTML doc link params
PDK_COMP_LINK_TEXT = "MMCSD LLD"


Add librecord2, the new G(PE)^2 database library.

LICENSE     = "LiPS"
DESCRIPTION = "LiPS database API."
SECTION = "gpe/libs"
PRIORITY    = "optional"
DEPENDS     = "glib-2.0 e2fsprogs-libs sqlite3"
PR          = "r0"

GPE_TARBALL_SUFFIX = "bz2"
inherit gpephone pkgconfig autotools

LDFLAGS += " -L${STAGING_LIBDIR}"

do_stage () {
	autotools_stage_all
}


SUMMARY = "Filesystem mounting tool"
DESCIPTION = "Mountall mounts filesystems when the underlying block devices are \
ready, or when network interfaces come up, checking the filesystems \
first."

LICENSE = "LGPLv2+ & GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \
                    file://intl/gettext.c;endline=17;md5=235b186f82eb78ee2b3937e9231a0273"

inherit debian-package

DEPENDS += "plymouth libnih"

inherit autotools gettext

EXTRA_OECONF += "--exec-prefix= "" \
                 --libdir=${base_libdir} \
                 --sbindir=${base_sbindir} \
                 "

PR = "r0"
DEBIAN_PATCH_TYPE = "nopatch"
FILES_${PN} += "\
	${base_libdir} ${base_sbindir} \
	${datadir}/initramfs-tools/event-driven/upstart-jobs/mountall.conf \
	${datadir}/initramfs-tools/hooks/mountall \
	${datadir}/apport/package-hooks/mountall.py \
	"


DESCRIPTION = "A boot profiling tool"
HOMEPAGE = "http://code.google.com/p/ubootchart/"
LICENSE="GPLv3"
PV = "0.1.0+svnr${SRCREV}"
PR = "r0"
SRCREV_pn-ubootchart ?= "12"

SRC_URI="svn://ubootchart.googlecode.com/svn/;proto=http;module=trunk"
S = "${WORKDIR}/trunk"

do_patch() {
    sed -i "s/@VERSION@/${PV}-${PR}/" ${S}/ubootchartd
}

do_compile() {
        ${CC} ${CFLAGS} ${LDFLAGS} ${LIBS} ${INCLUDES} ${S}/ubootchartd_bin.c -o ubootchartd_bin
}

do_install() {
        install -m 0755 -d ${D}/sbin ${D}/etc/ubootchart ${D}${docdir}/ubootchart
        install -m 0755 ${S}/ubootchartd_bin ${D}/sbin
        install -m 0755 ${S}/ubootchartd ${D}/sbin
        install -m 0644 ${S}/ubootchart.conf ${D}/etc/ubootchart
        install -m 0755 ${S}/start.sh ${D}/etc/ubootchart
        install -m 0755 ${S}/finish.sh ${D}/etc/ubootchart
}


# Base this image on console-image
require recipes-images/angstrom/console-image.bb

IMAGE_FEATUES += "tools-testapps tools-debug"

# Include modules in rootfs
IMAGE_INSTALL += "alsa-utils kolibre-sample-client libkolibre-clientcore-dbg gdb"

export IMAGE_BASENAME = "kolibre-debug-image"


Add a bitbake recipe to build net-rpc-msgpackrpc

SUMMARY = "Provides functions of jsonrpc by communicating with MessagePack"
HOMEPAGE = "https://github.com/hashicorp/net-rpc-msgpackrpc"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE.md;md5=fb70e2b4f339ce6b09fffba9a882dc53"

DEPENDS = "go-msgpack"

PKG_NAME = "github.com/hashicorp/net-rpc-msgpackrpc"
SRC_URI = "git://${PKG_NAME}.git"
SRCREV = "d377902b7aba83dd3895837b902f6cf3f71edcb2"

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

net_rpc_msgpackrpc_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 the native version of the Local::gettext module.

SECTION = "libs"

inherit native

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

require liblocale-gettext-perl_${PV}.bb


SUMMARY = "Very Secure FTP server"
HOMEPAGE = "https://security.appspot.com/vsftpd.html"

PR = "r0"

inherit debian-package

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = " \
file://COPYING;md5=a6067ad950b28336613aed9dd47b1271 \
file://COPYRIGHT;md5=04251b2eb0f298dae376d92454f6f72e \
file://LICENSE;md5=654df2042d44b8cac8a5654fc5be63eb"

DEPENDS = "libcap openssl tcp-wrappers libpam"

LIBS="-lwrap -lpam -lcap -lssl -lcrypto"

do_compile () {
	oe_runmake CFLAGS="$(CFLAGS) -W -Wshadow" LIBS="${LIBS}" LINK=""
}

do_install () {
	install -d ${D}${sbindir}
	install -d ${D}${bindir}
	install -d ${D}${mandir}
	install -d ${D}${sysconfdir}/init.d
	install -d ${D}${sysconfdir}/logrotate.d
	install -d ${D}${sysconfdir}/pam.d
	install -d ${D}${base_libdir}/systemd/system
	install -m 0755 vsftpd ${D}${sbindir}/vsftpd
	install -m 0644 ${S}/vsftpd.conf ${D}${sysconfdir}
	install -m 0644 ${S}/debian/local/ftpusers ${D}${sysconfdir}
	install -m 0755 ${S}/debian/local/vsftpdwho ${D}${bindir}
	install -m 0755 ${S}/debian/vsftpd.init ${D}${sysconfdir}/init.d/vsftpd
	install -m 0755 ${S}/debian/vsftpd.logrotate  \
			${D}${sysconfdir}/logrotate.d
	install -m 0755 ${S}/debian/vsftpd.pam ${D}${sysconfdir}/pam.d
	install -m 0644 ${S}/debian/vsftpd.service \
			${D}${base_libdir}/systemd/system
}

FILES_${PN} += "${sysconfdir} ${base_libdir}"


Add package, ATA over ethernet userspace utilities

DESCRIPTION = "ATA over Ethernet Tools"
SECTION = "console/network"
RRECOMMENDS = "kernel-module-aoe"
PR = "r0"
LICENSE = "GPL"

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

inherit autotools


# Copyright (C) 2011 Peter Tworek <tworaz666@gmail.com>
# Released under the MIT license (see COPYING.MIT for the terms)

DESCRIPTION = "Tool for creating bootable images for Psion Teklogix NetBook Pro"
DEPENDS = "zlib-native"

SRCREV = "2a9036d5b67066f533c37c41f4c03cc7dc62214f"
PV = "0.1.99+git${SRCPV}"
PR = "r0"

LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://COPYING;md5=3775480a712fc46a69647678acb234cb"

SRC_URI = "git://github.com/tworaz/boost-img.git;branch=master;protocol=git"

S = "${WORKDIR}/git"

BBCLASSEXTEND = "native"

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


Integrate the SONOS control HomeAssistant module

DESCRIPTION = "A SoCo fork with fixes for Home Assistant "
HOMEPAGE = "https://pypi.org/project/pysonos/"
SECTION = "devel/python"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=07b0e2ca9ac77cd65cd4edf2e13367ea"

SRC_URI[sha256sum] = "3fed94dffbca5807d39d000d1415fe8d7dfc1032ba92a33d0b577eb2e98a81f3"

inherit pypi setuptools3

RDEPENDS_${PN} += "\
	${PYTHON_PN}-ifaddr \
	${PYTHON_PN}-requests \
	${PYTHON_PN}-xmltodict \
	"


DESCRIPTION = "Bootchart Lite for Embedded Systems."
AUTHOR = "Fred Chien"
LICENSE = "GPLv2"
SECTION = "console/utils"
HOMEPAGE = "http://code.google.com/p/bootchart-lite/"
PV = "0.1+svnr${SRCPV}"
PR = "r0"

SRC_URI = "svn://bootchart-lite.googlecode.com/svn/;module=trunk;proto=http"
S = "${WORKDIR}/trunk"

inherit autotools

pkg_postinst_${PN} () {
	install -d /etc/bootchart-lite
}

pkg_postrm_${PN} () {
	rm -rf /etc/bootchart-lite
}

Use mkdir rather than install in postinst.

DESCRIPTION = "Bootchart Lite for Embedded Systems."
AUTHOR = "Fred Chien"
LICENSE = "GPLv2"
SECTION = "console/utils"
HOMEPAGE = "http://code.google.com/p/bootchart-lite/"
PV = "0.1+svnr${SRCPV}"
PR = "r0"

SRC_URI = "svn://bootchart-lite.googlecode.com/svn/;module=trunk;proto=http"
S = "${WORKDIR}/trunk"

inherit autotools

pkg_postinst_${PN} () {
	mkdir /etc/bootchart-lite
}

pkg_postrm_${PN} () {
	rm -rf /etc/bootchart-lite
}


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

PR = "r0"

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

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


DESCRIPTION = "OpenSSL PKCS11 engine"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://src/engine_pkcs11.h;startline=1;endline=26;md5=471dacb7f0586e35729f422b8098585f"
SECTION = "libs"

inherit autotools pkgconfig

DEPENDS = "openssl libtool libp11"

PV = "1.3.0.0"
BRANCH="master"
# Commit corresponds to DEV.ENGINE_PKCS11-01.03.00.00
SRCREV = "0b14500b0ea8b37453b6d93aac02278465e7e732"

SRC_URI = "git://git.ti.com/keystone-linux/engine-pkcs11.git;protocol=git;branch=${BRANCH}"
S = "${WORKDIR}/git"

FILES_${PN} += "${libdir}/engines/*.so*"
FILES_${PN}-dbg += "${libdir}/engines/.debug"


DESCRIPTION = "Microsoft Azure IoT device SDK for C"
HOMEPAGE = "https://github.com/Azure/azure-iot-sdks"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=4283671594edec4c13aeb073c219237a"

inherit cmake pkgconfig

SRC_URI = "gitsm://github.com/Azure/azure-iot-sdks.git"
SRCREV = "${AUTOREV}"

PR = "r1"

S = "${WORKDIR}/git"

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

do_recursive_submodule_init() {
	cd ${S}
	git submodule update --init --recursive
}

addtask recursive_submodule_init after do_unpack before do_configure

OECMAKE_SOURCEPATH = "${WORKDIR}/git/c"
EXTRA_OECMAKE = "-Dskip_unittests=ON -Duse_mqtt=OFF -Duse_http=OFF -Duse_amqp=OFF -Drun_e2e_tests=OFF"

FILES_${PN}-staticdev += "${libdir}/*"
FILES_${PN}-dev += "${includedir}/*"


Add recipe for redsocks - transparent proxy redirector

DESCRIPTION = "redsocks - transparent socks redirector"
SECTION = "net/misc"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM="file://README;beginline=74;endline=78;md5=edd3a93090d9025f47a1fdec44ace593"

SRCREV = "27b17889a43e32b0c1162514d00967e6967d41bb"

SRC_URI = "git://github.com/darkk/redsocks.git"

DEPENDS = "libevent"

S = "${WORKDIR}/git"

do_install () {
    install -d ${D}${bindir}
    install -m 0775 ${S}/redsocks ${D}${bindir}/redsocks
}


Add recipe for requests unixsocket python library

SUMMARY = "Use requests to talk HTTP via a UNIX domain socket"
HOMEPAGE = "https://github.com/msabramo/requests-unixsocket"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=d2794c0df5b907fdace235a619d80314"

inherit pypi setuptools3

DEPENDS += "\
    python3-pbr-native \
"

RDEPENDS_${PN} += "\
    python3-requests \
    python3-urllib3 \
"

RDEPENDS_${PN} += " \
    python3-io \
"

SRC_URI[sha256sum] = "9e5c1a20afc3cf786197ae59c79bcdb0e7565f218f27df5f891307ee8817c1ea"


inherit ti-pdk

require rm-lld.inc

PR = "${INC_PR}.0"

PACKAGE_ARCH = "${MACHINE_ARCH}"

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


SUMMARY = "Zstandard - Fast real-time compression algorithm"
DESCRIPTION = "Zstandard is a fast lossless compression algorithm, targeting \
real-time compression scenarios at zlib-level and better compression ratios. \
It's backed by a very fast entropy stage, provided by Huff0 and FSE library."
HOMEPAGE = "http://www.zstd.net/"
SECTION = "console/utils"

LICENSE = "BSD-3-Clause & GPLv2"
LIC_FILES_CHKSUM = "file://LICENSE;md5=c7f0b161edbe52f5f345a3d1311d0b32 \
                    file://COPYING;md5=39bba7d2cf0ba1036f2a6e2be52fe3f0"

SRC_URI = "git://github.com/facebook/zstd.git;nobranch=1"

SRCREV = "10f0e6993f9d2f682da6d04aa2385b7d53cbb4ee"
UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"

S = "${WORKDIR}/git"

PACKAGECONFIG ??= ""
PACKAGECONFIG[lz4] = "HAVE_LZ4=1,HAVE_LZ4=0,lz4"
PACKAGECONFIG[lzma] = "HAVE_LZMA=1,HAVE_LZMA=0,xz"
PACKAGECONFIG[zlib] = "HAVE_ZLIB=1,HAVE_ZLIB=0,zlib"

# See programs/README.md for how to use this
ZSTD_LEGACY_SUPPORT ??= "4"

do_compile () {
    oe_runmake ${PACKAGECONFIG_CONFARGS} ZSTD_LEGACY_SUPPORT=${ZSTD_LEGACY_SUPPORT}
}

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

BBCLASSEXTEND = "native nativesdk"


DESCRIPTION = "AMSDK multimedia support files"
HOMEPAGE = "https://gforge.ti.com/gf/project/am_multimedia/"
LICENSE = "CC-BY-NC-ND-3.0"
SECTION = "multimedia"
PRIORITY = "optional"
LIC_FILES_CHKSUM = "file://Multimedia_Data_Files_Manifest.doc;md5=5f25f2753d6294d6b3ecac61d2f64146"
PR = "r0"

COMPATIBLE_MACHINE = "(omap3evm|am37x-evm|am3517-evm|am389x-evm|beagleboard|am335x-evm)"
PACKAGE_ARCH = "${MACHINE_ARCH}"

VIDEO_FILES = "video_480p "
VIDEO_FILES_append_am37x-evm   = "video_vga_r"
VIDEO_FILES_append_beagleboard = "video_vga"
VIDEO_FILES_append_am3517-evm  = "video_wqvga"
VIDEO_FILES_append_am335x-evm  = "video_wvga \
				                  video_wqvga"

SRC_URI = "https://gforge.ti.com/gf/download/frsrelease/564/5179/amsdk-av-files_${PV}.tar.gz;name=avfilestarball"

S = "${WORKDIR}/amsdk-av-files"

do_compile() {
    :
}

do_install() {
    install -d ${D}${datadir}/ti \
       ${D}${datadir}/ti/audio \
       ${D}${datadir}/ti/video
    install -m 0644 ${S}/audio/* ${D}${datadir}/ti/audio/
    for file in ${VIDEO_FILES}; do
	install -m 0644 ${S}/${file}/* ${D}${datadir}/ti/video/
    done
}

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

SRC_URI[avfilestarball.md5sum] = "19d254541f7c050d6220bd11249c1e8c"
SRC_URI[avfilestarball.sha256sum] = "5b81f49a305c3c88a6e33834d30561e8c16a534f9dcd10d31b348fd0031b2a74"


Create recipe to demonstrate qt5 example.

SUMMARY = "Qt5 everywhere demo"
DESCRIPTION = "Quick tour of Qt 5.0, primarily focusing on its graphical capabilities."
HOMEPAGE = "https://qt.gitorious.org/qt-labs"
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://main.cpp;md5=1187cb795a0f96bce64e63dd1a67dc2b"

DEPENDS = "qtdeclarative qtgraphicaleffects"

SRCREV = "9a868f96ee63c21ceda890d8dfc9d33f093d1b6d"
SRC_URI = "git://gitorious.org/qt-labs/qt5-everywhere-demo.git"

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

require recipes-qt/qt5/qt5.inc

do_install() {
    install -d ${D}${datadir}/${P}
    install -m 0755 ${B}/QtDemo ${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"


#
# base recipe: http://git.yoctoproject.org/cgit/cgit.cgi/meta-security/\
#	       tree/recipes-security/paxctl/paxctl_0.9.bb
# base branch: master
# base commit: 8eadad192719be3d2320effe6a27a83120d74a2f
#

SUMMARY = "new PaX control program for using the PT_PAX_FLAGS marking"
DESCRIPTION = "paxctl  is  a tool that allows PaX flags to be modified on a \
               per-binary basis. PaX is part of common  security-enhancing  \
               kernel  patches  and secure distributions, such as \
               GrSecurity or Adamantix and Hardened Gen-too, respectively."
HOMEPAGE = "https://pax.grsecurity.net/"

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://paxctl.c;beginline=1;endline=5;md5=0ddd065c61020dda79729e6bedaed2c7 \
		    file://paxctl-elf.c;beginline=1;endline=5;md5=99f453ce7f6d1687ee808982e2924813 \
		   "

PR = "r0"
inherit debian-package

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


DESCRIPTION = "TI dsptop utility."
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://../debian/copyright;md5=309825aa8f5edfcf2c44912ac094b979"

DEPENDS = "ti-cgt6x-native"
PR = "${INC_PR}.0"

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

DEVICE=""
DEVICE_dra7xx = "DRA7xx"
DEVICE_keystone = "C66AK2Hxx"

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

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

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

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

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

include dsptop.inc

ALLOW_EMPTY_${PN} = "1"

PARALLEL_MAKE= ""


SUMMARY = "Python3 version of the Olson timezone database"
DESCRIPTION = "python-tz brings the Olson tz database into Python. This library allows \
 accurate and cross platform timezone calculations using Python 2.3 or higher. \
 It also solves the issue of ambiguous times at the end of daylight savings, \
 which you can read more about in the Python Library Reference \
 (datetime.tzinfo)."
HOMEPAGE = "http://pypi.python.org/pypi/pytz/"

DPN = "python-tz"
INC_PR = "r0"
inherit debian-package

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=22b38951eb857cf285a4560a914b7cd6"
inherit setuptools python3native
DEPENDS += "python3-setuptools-native"

do_debian_patch_prepend() {
	# ${S}/.pc is existed by default, so we need to remove it to
	# avoid error "unknown quilt patches already applied"
	rm -rf ${S}/.pc
}
do_install_append() {
	# remove unwanted files
	rm -rf `find ${D}${libdir} -type d -name "__pycache__"`
}
RDEPENDS_${PN} += "tzdata"


SUMMARY = "TI RTOS low level driver for Hyperlink peripheral"

inherit ti-pdk

require recipes-bsp/hyplnk-lld/hyplnk-lld.inc

PR = "${INC_PR}.0"

COMPATIBLE_MACHINE_append = "|c66x"

# HTML doc link params
PDK_COMP_LINK_TEXT = "HYPLNK LLD"


UMMARY = "An Open Source implementation of the Microsoft's .NET Framework"
DESCRIPTION = "This is part of the Mono project - http://mono-project.com"
HOMEPAGE = "http://www.mono-project.com/"

PR = "r0"
inherit debian-package

LICENSE = "LGPLv2+ & GPLv2+ & MIT & MPL-1.1"
LIC_FILES_CHKSUM = "\
	file://COPYING.LIB;md5=80862f3fd0e11a5fa0318070c54461ce \
	file://mcs/COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
	file://mcs/LICENSE;md5=9331d7bdf59594f966a1db06adeefd3c \
	file://mcs/LICENSE.MPL;md5=bfe1f75d606912a4111c90743d6c7325 \
	file://mcs/LICENSE.GPL;md5=4f20d7df8c88ac40c2ae9467222d0376 \
	file://mcs/LICENSE.LGPL;md5=429262d6c41a35150ebec9533c828b8d"
inherit autotools-brokensep

DEPENDS = "perl-native"

inherit native

do_fix_libtool_name() {
	# inherit native will make that all native tools that are being
	# built are prefixed with something like "i686-linux-",
	# including libtool. Fix up some hardcoded libtool names:
	for i in "${S}"/runtime/*-wrapper.in; do
		sed -e "s/libtool/${BUILD_SYS}-libtool/" -i "${i}"
	done

	sed -e "s/slash\}libtool/slash\}${HOST_SYS}-libtool/" -i acinclude.m4
	sed -e "s/slash\}libtool/slash\}${HOST_SYS}-libtool/" -i libgc/acinclude.m4
	sed -e "s/slash\}libtool/slash\}${HOST_SYS}-libtool/" -i eglib/acinclude.m4
	libtoolize --force --copy
}

addtask fix_libtool_name after do_patch before do_configure

do_install_append() {
	rm -r ${D}${datadir}/libgc-mono
	rm ${D}${bindir}/*.py ${D}${bindir}/nunit*
	ln -s mcs ${D}${bindir}/mono-csc
}


Remove kernel-version and add own version

SUMMARY = "Module for Low Power Actions on sitec systems S4 Comm Pro X"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
MAINTAINER = "Robert Lehmann <robert.lehmann@sitec-systems.de>"

inherit module

PR = "r2"
PV = "1.0.0"

SRC_URI = "file://Makefile \
           file://main.c \
           file://sitec_lp.h \
           file://sts_fm.c \
           file://sts_fm.h \
          "

S = "${WORKDIR}"

# The inherit of module.bbclass will automatically name module packages with
# "kernel-module-" prefix as required by the oe-core build environment.


SECTION = "console/utils"
DESCRIPTION = 'The PCI Utilities package contains a library for portable access \
to PCI bus configuration space and several utilities based on this library.'
HOMEPAGE = "http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml"
LICENSE = "GPLv2"

PR="r1"

PARALLEL_MAKE = ""

SRC_URI = "ftp://ftp.kernel.org/pub/software/utils/pciutils/pciutils-${PV}.tar.bz2 \
	   file://configure.patch;patch=1 \
	   file://configure-uclibc.patch;patch=1 \
	   file://pcimodules-pciutils-2.1.11.diff;patch=1"

do_configure () {
	(cd lib && ./configure ${datadir} ${PV} ${TARGET_OS} 2.4.21 ${TARGET_ARCH})
}

export PREFIX = "${D}${prefix}"
export SBINDIR = "${D}${sbindir}"
export SHAREDIR = "${D}${datadir}"
export MANDIR = "${D}${mandir}"

do_install () {
	oe_runmake install
}

Add pci.ids, in a separate package

SECTION = "console/utils"
DESCRIPTION = 'The PCI Utilities package contains a library for portable access \
to PCI bus configuration space and several utilities based on this library.'
HOMEPAGE = "http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml"
LICENSE = "GPLv2"

PR="r2"

PARALLEL_MAKE = ""
FILES_pciutils-ids="${prefix}/share/pci.ids"
PACKAGES =+ "pciutils-ids"
SRC_URI = "ftp://ftp.kernel.org/pub/software/utils/pciutils/pciutils-${PV}.tar.bz2 \
	   file://configure.patch;patch=1 \
	   file://configure-uclibc.patch;patch=1 \
	   file://pcimodules-pciutils-2.1.11.diff;patch=1"

do_configure () {
	(cd lib && ./configure ${datadir} ${PV} ${TARGET_OS} 2.4.21 ${TARGET_ARCH})
}

export PREFIX = "${D}${prefix}"
export SBINDIR = "${D}${sbindir}"
export SHAREDIR = "${D}${datadir}"
export MANDIR = "${D}${mandir}"

do_install () {
	oe_runmake install
}
do_install_append () {
	install -d ${D}/${prefix}/share
	install -m 6440 ${WORKDIR}/${PN}-${PV}/pci.ids ${D}/${prefix}/share
}


Add recipe for transitions python library

SUMMARY = "A lightweight, object-oriented Python state machine implementation with many extensions."
AUTHOR = "Tal Yarkoni"
HOMEPAGE = "http://github.com/pytransitions/transitions"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=8734a2c2e13bbf9c2fd1b6cb64af8219"

inherit pypi setuptools3

RDEPENDS_${PN} += "\
    ${PYTHON_PN}-six \
"

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

PR = "r0"

SRC_URI[sha256sum] = "2b8cf2078ed189ffbb0f29421798d7a63ff0d7823682a0d69c01bd8240363cac"


require recipes-bsp/u-boot/u-boot.inc

DESCRIPTION = "U-Boot port for C.H.I.P. boards"

DEPENDS += "dtc-native"
PROVIDES += "u-boot"

UBOOT_VERSION ?= "2015.07"
PV = "${UBOOT_VERSION}+git${SRCPV}"

SRCREV ?= "854d5fcc641d8d8914c03a69d7172815d5b81a99"
BRANCH ?= "chip/stable"
SRC_URI = "git://github.com/NextThingCo/CHIP-u-boot.git;branch=${BRANCH}"
S = "${WORKDIR}/git"

do_compile_append() {
    install ${B}/spl/${SPL_BINARY} ${B}/${SPL_BINARY}
}

COMPATIBLE_MACHINE = "chip"


SUMMARY = "iCalendar library implementation in C"
DESCRIPTION = "\
	libical is an open source implementation of the IETF's iCalendar calendaring \
	and scheduling protocols (RFC 2445, 2446, and 2447). It parses iCal components \
	and provides a C API for manipulating the component properties, parameters, \
	and subcomponents. \
	"
HOMEPAGE = "http://freeassociation.sourceforge.net"
PR = "r0"
inherit debian-package

LICENSE = "MPL-1.0 | LGPL-2.1"
LIC_FILES_CHKSUM = "\
	file://COPYING;md5=d4fc58309d8ed46587ac63bb449d82f8 \
	file://LICENSE;md5=d1a0891cd3e582b3e2ec8fe63badbbb6"

inherit cmake perlnative

PKG_${PN} = "${PN}1a"
RDEPENDS_${PN}-dev += "${PN}"
RDEPENDS_${PN} += "tzdata"


DESCRIPTION = "FarSight is an audio/video conferencing framework specifically designed for Instant Messengers."
HOMEPAGE = "http://farsight.sf.net"
SRC_URI = "http://farsight.freedesktop.org/releases/farsight2/${P}.tar.gz"

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

PR = "r1"

DEPENDS = "libnice glib-2.0 libxml2 zlib dbus gstreamer gst-plugins-base"

inherit autotools

EXTRA_OECONF = " \
  --disable-debug \
  --disable-gtk-doc \
  --disable-python \
"

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

SRC_URI[md5sum] = "e1f540cf3ebab06c3d7db1f46b44ac88"
SRC_URI[sha256sum] = "3ae59aa61a8071c9fad111e5fd606aabc27961eb4192f8729987a27dae6b3974"

Fix QA warning about non staticdev containing .a files.

DESCRIPTION = "FarSight is an audio/video conferencing framework specifically designed for Instant Messengers."
HOMEPAGE = "http://farsight.sf.net"
SRC_URI = "http://farsight.freedesktop.org/releases/farsight2/${P}.tar.gz"

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

PR = "r2"

DEPENDS = "libnice glib-2.0 libxml2 zlib dbus gstreamer gst-plugins-base"

inherit autotools

EXTRA_OECONF = " \
  --disable-debug \
  --disable-gtk-doc \
  --disable-python \
"

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

SRC_URI[md5sum] = "e1f540cf3ebab06c3d7db1f46b44ac88"
SRC_URI[sha256sum] = "3ae59aa61a8071c9fad111e5fd606aabc27961eb4192f8729987a27dae6b3974"


Add recipe for C implementation for userspace driver app

# SPDX-FileCopyrightText: Huawei Inc.
#
# SPDX-License-Identifier: Apache-2.0

HOMEPAGE = "https://booting.oniroproject.org/distro/components/pim435"
SUMMARY = "A userspace driver application for PIM435 written in C"
DESCRIPTION = "A userspace driver application for PIM435 (Pimoroni LED matrix) \
written in C"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSES/MIT.txt;md5=7dda4e90ded66ab88b86f76169f28663"

SRC_URI = "git://booting.oniroproject.org/distro/components/pim435;protocol=https;branch=main"
SRCREV = "ee07a83de4d0ecdf4b5de20a7e374d36a9a6f5d5"
S = "${WORKDIR}/git"

DEPENDS = "i2c-tools"

EXTRA_OEMAKE += "DESTDIR=${D}"

do_install() {
    oe_runmake install
}


SUMMARY = "TI RTOS library for SERDES diagnostics"

inherit ti-pdk

LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://serdes_diag.h;beginline=1;endline=42;;md5=68e7ce6fdc0e9328fa7d0ec41c54420c"

COMPATIBLE_MACHINE = "keystone|c66x"
PACKAGE_ARCH = "${MACHINE_ARCH}"

SERDES_DIAG_GIT_URI = "git://git.ti.com/keystone-rtos/serdes_diag.git"
SERDES_DIAG_GIT_PROTOCOL = "git"
SERDES_DIAG_GIT_BRANCH = "master"
SERDES_DIAG_GIT_DESTSUFFIX = "git/ti/diag/serdes_diag"

# Below commit ID corresponds to "DEV.DIAG_SERDES_SB.01.00.00.07"
SERDES_DIAG_SRCREV = "65a0c2f6afc84dce03c706432667382700a08654"

BRANCH = "${SERDES_DIAG_GIT_BRANCH}"
SRC_URI = "${SERDES_DIAG_GIT_URI};destsuffix=${SERDES_DIAG_GIT_DESTSUFFIX};protocol=${SERDES_DIAG_GIT_PROTOCOL};branch=${BRANCH}"

SRCREV = "${SERDES_DIAG_SRCREV}"
PV = "01.00.00.07"
PR = "r0"

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

# HTML doc link params
PDK_COMP_LINK_TEXT = "SERDES Diagnostics"

INSANE_SKIP_${PN} = "arch"


SUMMARY = "Add ams application user"
DESCRIPTION = "This recipe adds the ams user"
SECTION = "roche"
PR = "r3"
LICENSE = "CLOSED"

SRC_URI = ""
S = "${WORKDIR}"

EXCLUDE_FROM_WORLD = "1"

inherit useradd

USERADD_PACKAGES = "${PN}"

USERADD_PARAM_${PN} = " \
    --system \
    --no-create-home \
    --shell /bin/false \
    --user-group \
    ams \
    "

INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
ALLOW_EMPTY_${PN} = "1"


Add bitbake recipe for daconi skin jules black hd

DESCRIPTION = "Skin Jules Black HD. Daconi"
MAINTAINER = "SIFTeam"

inherit gitpkgv

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

PV_font-daconi-digital-watch = "${PV}"
PR_font-daconi-digital-watch = "r0"
PKGV_font-daconi-digital-watch = "${PKGV}"
DESCRIPTION_font-daconi-digital-watch = "Daconi digital watch font"

PV_enigma2-plugin-skins-jules-black-hd-supremacy = "${PV}"
PR_enigma2-plugin-skins-jules-black-hd-supremacy = "r0"
PKGV_enigma2-plugin-skins-jules-black-hd-supremacy = "${PKGV}"
DESCRIPTION_enigma2-plugin-skins-jules-black-hd-supremacy = "Skin Jules Black HD Supremacy. Daconi"

PACKAGES = "${PN} font-daconi-digital-watch enigma2-plugin-skins-jules-black-hd-supremacy"
PROVIDES = "${PN} font-daconi-digital-watch enigma2-plugin-skins-jules-black-hd-supremacy"

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

FILES_${PN} = "/usr/share/enigma2/jules_black_hd"
FILES_enigma2-plugin-skins-jules-black-hd-supremacy = "/usr/share/enigma2/jules_black_hd_supremacy"
FILES_font-daconi-digital-watch = "/usr/share/fonts/Daconi-digital-watch.ttf"

RDEPENDS_${PN} = "font-nmsbd2 font-verdanar font-daconi-digital-watch"
RDEPENDS_enigma2-plugin-skins-jules-black-hd-supremacy = "${PN}"

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
}


SUMMARY = "QT5 LedScreen"
DESCRIPTION = "This is LedScreen Qt5 QML component"
HOMEPAGE = "http://quitcoding.com/?page=work#cinex"
LICENSE = "CC-BY-3.0"
LIC_FILES_CHKSUM = "file://README.txt;md5=fe07f4a0be40fe88f8c7ceaca63a28b5"

DEPENDS = "qtdeclarative qtgraphicaleffects"

SRC_URI = "http://quitcoding.com/download/ledscreen_1.0.tgz"
SRC_URI[md5sum] = "8fc482d5a8b16f43f022c9a282f305b8"
SRC_URI[sha256sum] = "fa4759b70a5fa148a901a3f9a659f7bd2503d73774022012bded880dffa0d15c"

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

do_install() {
    install -d ${D}${datadir}/${P}
    #install -m 0755 ${B}/QUItBattery ${D}${datadir}/${P}
    cp -ar ${S}/* ${D}${datadir}/${P}
}

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

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


Add libdce version 2.0 support from glsdk

DESCRIPTION = "Library used for remotely invoking the hw accelerated codec on IVA-HD"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://libdce.h;beginline=1;endline=31;md5=0a398cf815b8b5f31f552266cd453dae"

inherit autotools pkgconfig

PR = "r0+gitr${SRCPV}"
PV = "2.0"

DEPENDS = "libdrm ti-ipc"

SRC_URI = "git://git.omapzoom.org/repo/libdce.git;protocol=git"
SRCREV = "0c7eee9ffdd480063a579013161bcf85ada376b1"

S = "${WORKDIR}/git"
EXTRA_OECONF += "IPC_HEADERS=${STAGING_INCDIR}/ti/ipc/mm"


SUMMARY = "C library providing queue, tree, I/O and utility functions"
DESCIPTION = "a C library (with some C++ bindings available) that provides data \
structures and functions commonly needed, such as maps, deques, linked lists, \
string formatting and autoresizing, option and config file parsing, type \
checking casts and more. This package contains the shared libraries."
HOMEPAGE =  "http://libhx.sourceforge.net/"

PR = "r0"

inherit debian-package

PV = "3.21"

LICENSE = "(LGPLv3 | LGPLv2.1+) & GPLv3+"
LIC_FILES_CHKSUM = " \
	file://LICENSE.GPL3;md5=f27defe1e96c2e1ecd4e0c9be8967949 \
	file://LICENSE.LGPL2;md5=fbc093901857fcd118f065f900982c24 \
	file://LICENSE.LGPL3;md5=6a6a8e020838b23406c81b19c1d46df6"

inherit autotools

do_install_append(){
	install -d ${D}${datadir}/lintian/overrides
	install -m 0644 ${S}/debian/libhx-dev.lintian-overrides ${D}${datadir}/lintian/overrides/libhx-dev
}

FILES_${PN}-dev += "${datadir}/lintian/overrides/libhx-dev"
FILES_${PN}-dbg += "${base_libdir}/security/.debug/*"


SUMMARY = "A bluetooth development image"
HOMEPAGE = "http://www.jumpnowtek.com"

require console-image.bb

BT_SUPPORT = " \
    bluez5 \
    bluez5-dev \
"

IMAGE_INSTALL += " \
    ${BT_SUPPORT} \
"

export IMAGE_BASENAME = "bluetooth-image"


SUMMARY = "Database driver for libdbi"
HOMEPAGE = "http://libdbi.sourceforge.net/"

PR = "r0"
inherit debian-package

LICENSE = "LGPLv2+"
LIC_FILES_CHKSUM = "\
	file://COPYING;md5=d8045f3b8f929c1cb29a1e3fd737b499"
inherit autotools-brokensep

DEPENDS += "libdbi mysql sqlite3 postgresql sqlite"
EXTRA_OECONF += "\
	--with-pgsql \
	--with-dbi-libdir=${STAGING_LIBDIR} \
	--with-mysql \
	--with-mysql-incdir=${STAGING_INCDIR} \
	--with-mysql-libdir=${STAGING_LIBDIR} \
	--with-sqlite3 \
	--with-sqlite3-incdir=${STAGING_INCDIR} \
	--with-sqlite3-libdir=${STAGING_LIBDIR} \
	--with-sqlite \
	--with-sqlite-incdir=${STAGING_INCDIR} \
	--with-sqlite-libdir=${STAGING_LIBDIR} \
	--with-freetds \
	--with-freetds-incdir=${STAGING_INCDIR} \
	--with-freetds-libdir=${STAGING_LIBDIR} \
"
# Avoid a parallel build problem
PARALLEL_MAKE = ""

do_install_append() {
	#remove unwanted files
	rm ${D}${libdir}/dbd/*.a
}
PACKAGES =+ "\
	libdbd-freetds libdbd-mysql libdbd-pgsql libdbd-sqlite libdbd-sqlite3"
FILES_libdbd-freetds = "${libdir}/dbd/libdbdfreetds.*"
FILES_libdbd-mysql = "${libdir}/dbd/libdbdmysql.*"
FILES_libdbd-pgsql = "${libdir}/dbd/libdbdpgsql.*"
FILES_libdbd-sqlite = "${libdir}/dbd/libdbdsqlite.*"
FILES_libdbd-sqlite3 = "${libdir}/dbd/libdbdsqlite3.*"
FILES_${PN}-dbg += "${libdir}/dbd/.debug"


#
# base recipe: ./meta/recipes-extended/time/time_1.7.bb
# base branch: master
# base commit: 81a9c1313deb6904728edb53288a623809321038
#

SUMMARY = "Tool that measures CPU resources"
DESCRIPTION = " time measures many of the CPU resources, such as time and \
		memory, that other programs use."
HOMEPAGE = "http://www.gnu.org/software/time/"

PR = "r0"
inherit debian-package

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

inherit autotools


Change YUV file to NV12 format for ducati encoding.

DESCRIPTION = "AMSDK multimedia support files"
HOMEPAGE = "https://gforge.ti.com/gf/project/am_multimedia/"
LICENSE = "CC-BY-NC-ND-3.0 & CC-BY-3.0"
SECTION = "multimedia"
LIC_FILES_CHKSUM = "file://Multimedia_Data_Files_Manifest.doc;md5=9254447a504d2179d83a6bc9e2c28142"
PR = "r0"

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

VIDEO_FILES = "video_480p "

VIDEO_FILES_append_am37x-evm   = "video_vga_r"
VIDEO_FILES_append_beagleboard = "video_vga"
VIDEO_FILES_append_am3517-evm  = "video_wqvga"
VIDEO_FILES_append_ti33x       = "video_wvga \
                                  video_wqvga"
VIDEO_FILES_append_dra7xx      = "video_wvga \
                                  video_1080p \
                                  video_720p \
                                  video_yuv"

SRC_URI = "https://gforge.ti.com/gf/download/frsrelease/1271/7720/amsdk-av-files_${PV}.tar.gz;name=avfilestarball"

S = "${WORKDIR}/amsdk-av-files"

do_compile() {
    :
}

do_install() {
    install -d ${D}${datadir}/ti \
       ${D}${datadir}/ti/audio \
       ${D}${datadir}/ti/video
    install -m 0644 ${S}/audio/* ${D}${datadir}/ti/audio/
    for file in ${VIDEO_FILES}; do
	install -m 0644 ${S}/${file}/* ${D}${datadir}/ti/video/
    done
}

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

SRC_URI[avfilestarball.md5sum] = "3f930cd873bc55bfd52a09b85f567d0c"
SRC_URI[avfilestarball.sha256sum] = "b389b732df409546c0aba6464a5b0815647d8fa24020c4bede823cbe26337c06"


SUMMARY = "lightweight C library for daemons"
DESCRIPTION = "libdaemon is a lightweight C library which eases the writing of UNIX daemons.\n\
 It consists of the following parts:\n\
 .\n\
  * Wrapper around fork() for correct daemonization of a process\n\
  * Wrapper around syslog() for simple log output to syslog or STDERR\n\
  * An API for writing PID files\n\
  * An API for serializing signals into a pipe for use with select() or poll()\n\
  * An API for running subprocesses with STDOUT and STDERR redirected to syslog\n\
 .\n\
 Routines like these are included in most of the daemon software available. It\n\
 is not simple to get these done right and code duplication is not acceptable."
HOMEPAGE = "http://0pointer.de/lennart/projects/libdaemon/"

inherit debian-package
PV = "0.14"

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

inherit autotools
EXTRA_OECONF += "--disable-lynx"

RPROVIDES_${PN} += "libdaemon0"


Add a recipe to build l-loader for poplar.

SUMMARY = "Loader to switch from aarch32 to aarch64 and boot"

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

COMPATIBLE_MACHINE = "poplar"
DEPENDS += " atf-poplar coreutils-native util-linux-native"

inherit deploy pythonnative

SRCREV = "c9bccc57ddef1baa8f7adb8618c7f8a5b71ad4cc"

### DISCLAIMER ###
# l-loader should be built with an aarch32 toolchain but we target an
# ARMv8 machine. OE cross-toolchain is aarch64 in this case.
# We decided to use an external pre-built toolchain in order to build
# l-loader.
# knowledgeably, it is a hack...
###
SRC_URI = "git://github.com/Linaro/poplar-l-loader.git;branch=latest \
           http://releases.linaro.org/components/toolchain/binaries/5.3-2016.02/arm-linux-gnueabihf/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf.tar.xz;name=tc \
"
SRC_URI[tc.md5sum] = "01d8860d62807b676762c9c2576dfb22"
SRC_URI[tc.sha256sum] = "dd66f07662e1f3b555eaa0d076f133b6db702ab0b9ab18f7dfc91a23eab653c5"

S = "${WORKDIR}/git"

do_configure[noexec] = "1"

do_compile() {
    # Use pre-built aarch32 toolchain
    export PATH=${WORKDIR}/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin:$PATH

    # bl1 from fip.bin are required from ATF
    rm -f atf/bl1.bin
    rm -f arf/fip.bin
    ln -sf ${STAGING_LIBDIR}/atf/bl1.bin ${S}/atf/bl1.bin
    ln -sf ${STAGING_LIBDIR}/atf/fip.bin ${S}/atf/fip.bin

    make
}

do_install() {
    install -D -p -m0644 fastboot.bin ${D}${libdir}/l-loader/fastboot.bin
}

do_deploy() {
    install -D -p -m0644 fastboot.bin ${DEPLOYDIR}/fastboot.bin
}

FILES_${PN} += "${libdir}/l-loader"

addtask deploy before do_build after do_compile


Add recipe for libcrypt-openssl-random-perl package

#
# base recipe: http://cgit.openembedded.org/meta-openembedded/tree/meta-perl/\
#		recipes-perl/libcrypt/libcrypt-openssl-random-perl_0.04.bb
# base branch: master
#

SUMMARY = "module to access the OpenSSL pseudo-random number generator"
HOMEPAGE = " http://perl-openssl.sourceforge.net/"

PR = "r0"
inherit debian-package

LICENSE = "Artistic-1.0 | GPL-1.0+"

LIC_FILES_CHKSUM = "file://LICENSE;md5=385c55653886acac3821999a3ccd17b3"

#cpan is perl modules that use Makefile.PL to build system
inherit cpan

DEPENDS += "openssl"

#install follow debian jessie
do_install_append () {
	mv ${D}${libdir}/perl/vendor_perl/* ${D}${libdir}/perl/
	rm -r ${D}${libdir}/perl/vendor_perl
	mv ${D}${libdir}/perl/5.20.2 ${D}${libdir}/perl/5.20
	mv ${D}${libdir}/perl ${D}${libdir}/perl5
	chmod 0644 ${D}${libdir}/perl5/5.20/auto/Crypt/OpenSSL/Random/Random.so
}
FILES_${PN} = "${libdir}/*"
FILES_${PN}-dbg += "${libdir}/perl5/5.20/auto/Crypt/OpenSSL/Random/.debug"


DESCRIPTION="Rezlooks GTK+ Engine"
HOMEPAGE="http://www.gnome-look.org/content/show.php?content=39179"
SECTION = "x11/themes"

PR = "r0"

DEPENDS = "gtk+"

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

SRC_URI="http://www.gnome-look.org/CONTENT/content-files/39179-rezlooks-${PV}.tar.gz"
SRC_URI[md5sum] = "87b768eb372dd5065f9e36bf10245ac7"
SRC_URI[sha256sum] = "a7dbc45ba32b8f1f40a097d7bafbdff595464c4af16a5bbb9febf63d15cab699"

EXTRA_OECONF = "--enable-animation"

FILES_${PN} += "${libdir}/gtk-2.0/*/engines/*.so"
FILES_${PN}-dbg += "${libdir}/gtk-2.0/*/engines/.debug/*.so"
FILES_${PN}-dev += "${libdir}/gtk-2.0/*/engines/*"

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

inherit autotools pkgconfig


DESCRIPTION = "Jupyter notebook examples for Power Management (PM) in Versal devices"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=268f2517fdae6d70f4ea4c55c4090aa8"

SRC_URI = "file://LICENSE \
           file://README \
           file://pm-cpufreq.ipynb \
           file://pm-hotplug.ipynb \
           file://pmutil/__init__.py \
           file://pmutil/cpufreq.py \
           file://pmutil/hotplug.py \
           file://pmutil/data/cpu-icon-0-off.png \
           file://pmutil/data/cpu-icon-0-on.png \
           file://pmutil/data/cpu-icon-1-off.png \
           file://pmutil/data/cpu-icon-1-on.png \
           file://pmutil/data/cpu-icon-freq-1.png \
           file://pmutil/data/cpu-icon-freq-2.png \
           file://pmutil/data/cpu-icon-freq-3.png \
           file://pmutil/data/cpu-icon-freq-4.png \
           file://pmutil/data/cpu-icon-freq-def.png \
           "

S = "${WORKDIR}"

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

COMPATIBLE_MACHINE = "^$"
COMPATIBLE_MACHINE_versal = "versal"

RDEPENDS_${PN} = "packagegroup-petalinux-jupyter \
                  python3-ipywidgets \
                  "

do_install() {
    install -d ${D}/${datadir}/pm-notebooks
    install -d ${D}/${datadir}/pm-notebooks/pmutil
    install -d ${D}/${datadir}/pm-notebooks/pmutil/data

    install -m 0755 ${S}/*.ipynb ${D}/${datadir}/pm-notebooks
    install -m 0755 ${S}/pmutil/*.py ${D}/${datadir}/pm-notebooks/pmutil
    install -m 0755 ${S}/pmutil/data/*.png ${D}/${datadir}/pm-notebooks/pmutil/data
}

# These libraries shouldn't get installed in world builds unless something
# explicitly depends upon them.

EXCLUDE_FROM_WORLD = "1"


SUMMARY = "PAM module that can mount volumes for a user session"
DESCIPTION = "This module is aimed at environments with central file servers \
that a user wishes to mount on login and unmount on logout, such as (semi-) \
diskless stations where many users can logon. The module also supports \
mounting local filesystems of any kind the normal mount utility supports, \
with extra code to make sure certain volumes are set up properly because \
often they need more than just a mount call, such as encrypted volumes. This \
includes SMB/CIFS, FUSE, dm-crypt and LUKS."

PR = "r0"

inherit debian-package

DEPENDS += "libhx pkgconfig libpam cryptsetup libxml2"

LICENSE = "GPL-3"
LIC_FILES_CHKSUM = "file://COPYING;md5=8ff88ed2ef97e3905a92cd1c331bbe42"

inherit autotools

PV = "2.14"

EXTRA_OECONF += "\
	--libdir=${base_libdir} \
	--with-dtd"

do_install_append(){
	rm -rf ${D}${localstatedir}/run

	install -d ${D}${datadir}/lintian/overrides
	install -m 0644 ${S}/debian/libpam-mount.lintian-overrides ${D}${datadir}/lintian/overrides/libpam-mount

	install -d ${D}${datadir}/pam-configs
	install -m 0644 ${S}/debian/pam-auth-update ${D}${datadir}/pam-configs/libpam-mount
}

FILES_${PN}-dbg += "${base_libdir}/security/.debug/*"
FILES_${PN}-dev += "${base_libdir}/pkgconfig/libcryptmount.pc"
FILES_${PN} += "\
	${datadir}/xml/pam_mount/dtd/pam_mount.conf.xml.dtd \
	${base_libdir}/security/pam_mount.so \
	${datadir}/lintian/overrides/libpam-mount \
	${datadir}/pam-configs/libpam-mount \
	"


SUMMARY = "OPTEE Client"
DESCRIPTION = "OPTEE Client"

LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=69663ab153298557a59c67a60a743e5b"
PR="r0"
PV="1.0+git"

PACKAGE_ARCH = "${MACHINE_ARCH}"

#inherit autotools pkgconfig

SRC_URI = "git://github.com/OP-TEE/optee_client.git"
S = "${WORKDIR}/git"

SRCREV = "0b0d237779de6982451f6f5971b7106e459a2958"

do_compile() {
    mkdir -p ${D}/usr
    oe_runmake EXPORT_DIR=${D}/usr/
}
do_install() {
    mkdir -p ${D}/usr
    oe_runmake install EXPORT_DIR=${D}/usr

    cd ${D}/usr/lib
    rm libteec.so libteec.so.1
    ln -s libteec.so.1.0 libteec.so.1
    ln -s libteec.so.1.0 libteec.so
    cd -
}


Add packageroup for qatests Use this packagroup to add some apps in image

SUMMARY = "QA Tests"
LICENSE = "MIT"

inherit packagegroup

RDEPENDS_${PN} = " \
    example-app-c \
    example-app-node \
    bad-groups-app \
"


SUMMARY = "OPTEE AES Decryptor for Linaro OpenCDM"
DESCRIPTION = "OPTEE AES Decryptor for Linaro OpenCDM"

LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=f0fb2f357d31d6a98213b19f57abf927"
PR="r0"
PV="1.0+git"

DEPENDS = "optee-os optee-client"

PACKAGE_ARCH = "${MACHINE_ARCH}"

SRC_URI = "git://github.com/kuscsik/optee-clearkey-cdmi;protocol=https"
SRCREV = "${AUTOREV}"

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

#stub
do_configure[noexec] = "1"

EXTRA_OEMAKE = ""
do_compile() {
    export TA_DEV_KIT_DIR=${STAGING_INCDIR}/optee/export-user_ta
    export TEEC_EXPORT=${STAGING_DIR_HOST}/usr

    oe_runmake -C ${S}/host LDFLAGS=""

    oe_runmake -C ${S}/ta LDFLAGS="" CROSS_COMPILE=${HOST_PREFIX}
}

do_install() {
    mkdir -p ${D}/usr/bin
    mkdir -p ${D}/lib/optee_armtz
    install -d ${D}/${libdir}
    install -m 0644 ${S}/host/*.a ${D}/${libdir}/

    install -d ${D}${includedir}
    install -m 0644 ${S}/host/*.h ${D}${includedir}/

    #ta part
    install -m 444 ${B}/ta/*.ta ${D}/lib/optee_armtz/
}

FILES_${PN} = "${libdir}/*.a  /usr/bin /lib/optee_armtz/"
FILES_${PN}-staticdev = "${libdir}/*.a"

INHIBIT_PACKAGE_STRIP = "1"


DESCRIPTION = "U-boot bootloader mkimage tool"
LICENSE = "GPL"
SECTION = "bootloader"

SRC_URI = "ftp://ftp.denx.de/pub/u-boot/u-boot-${PV}.tar.bz2 \
           file://fix-arm920t-eabi.patch;patch=1"

S = "${WORKDIR}/u-boot-${PV}"

inherit native

EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}"

do_compile () {
 	oe_runmake smdk2410_config
        oe_runmake tools
}

do_stage () {
        install -m 0755 tools/mkimage ${STAGING_BINDIR_NATIVE}/uboot-mkimage
        ln -sf ${STAGING_BINDIR_NATIVE}/uboot-mkimage ${STAGING_BINDIR_NATIVE}/mkimage
}

Fix problem building on a system without strip.

DESCRIPTION = "U-boot bootloader mkimage tool"
LICENSE = "GPL"
SECTION = "bootloader"

SRC_URI = "ftp://ftp.denx.de/pub/u-boot/u-boot-${PV}.tar.bz2 \
           file://fix-arm920t-eabi.patch;patch=1"

S = "${WORKDIR}/u-boot-${PV}"

inherit native

EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}"

do_compile () {
 	oe_runmake smdk2410_config
        oe_runmake tools STRIP='/bin/true'
}

do_stage () {
        install -m 0755 tools/mkimage ${STAGING_BINDIR_NATIVE}/uboot-mkimage
        ln -sf ${STAGING_BINDIR_NATIVE}/uboot-mkimage ${STAGING_BINDIR_NATIVE}/mkimage
}


# Copyright (C) 2017 GENIVI Alliance
# Released under the MIT license (see COPYING.MIT for the terms)

SUMMARY = "CDL Concept Demo"
LICENSE  = "MPL-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=9741c346eef56131163e13b9db1241b3"
SRC_URI = "git://github.com/GENIVI/car-data-logger.git;branch=proof-of-concept;protocol=https"
SRCREV  = "14a44c1d0db2b02582bcdf9e38b0947677c6f485"

DEPENDS = "qtbase qtdeclarative vsomeip common-api-c++-someip dbus dlt-daemon common-api-c++-dbus common-api-c++"

S = "${WORKDIR}/git"

inherit qmake5

FILES_${PN} += "/opt/cdl/*"
INSANE_SKIP_${PN} = "dev-so"


Add recipes for python-aniso8601 packages

SUMMARY = "python3 library for parsing dates and time"
DESCRIPTION = "Library for parsing the following: \
  - Parse a time, get a datetime.time \
  - Parse a date, get a datetime.date \
  - Parse a datetime, get a datetime.datetime \
  - Parse a duration, get a datetime.timedelta \
  - Parse an interval, get a tuple of dates or datetimes \
  - Parse a repeating interval, get a date or datetime generator."
HOMEPAGE = "https://bitbucket.org/nielsenb/aniso8601"

DPN = "python-aniso8601"
INC_PR = "r0"
inherit debian-package

LICENSE = "GPLv3+"
LIC_FILES_CHKSUM = "file://COPYING;md5=8f0e2cd40e05189ec81232da84bd6e1a"
inherit setuptools python3native
DEPENDS += "python3-setuptools-native"

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

do_install_append() {
	# remove unwanted files
	rm -rf `find ${D}${libdir} -type d -name "__pycache__"`
}


SUMMARY = " Shared memory library"
DESCRIPTION = "\
	OSSP mm is a two layer abstraction library which simplifies the use of \
	shared memory between forked (and therefore closely related) processes.\
	It hides all platform-dependent aspects of the process from the user \
	and provides a malloc(3)-style API."

PR = "r0"
inherit debian-package

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=0ba10c36898067a75f550bfa27a47b8b"

inherit autotools-brokensep pkgconfig

#configure follow debian/rules
EXTRA_OECONF += "--with-shm=IPCSHM"

do_configure() {
	autoreconf ${S}
	#set share memory maxsize is 32M
	oe_runconf 'ac_cv_maxsegsize=33554432'
}
#Correct DEBIAN_PATCH_TYPE
DEBIAN_PATCH_TYPE = "nopatch"

do_install_append() {
	rm ${D}${libdir}/libmm.la
}

PKG_${PN} = "libmm14"
PKG_${PN}-dev = "lib${PN}-dev"
PKG_${PN}-dbg = "lib${PN}-dbg"

FILES_${PN}-dev += "${bindir}/mm-config"


DESCRIPTION = "A regular expression library"
HOMEPAGE = "https://github.com/google/re2/"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b5c31eb512bdf3cb11ffd5713963760"

SRCREV = "166dbbeb3b0ab7e733b278e8f42a84f6882b8a25"

SRC_URI = "git://github.com/google/re2.git;branch=master"

S = "${WORKDIR}/git"

inherit cmake

EXTRA_OECMAKE += " \
	-DBUILD_SHARED_LIBS=ON \
	-DRE2_BUILD_TESTING=OFF \
"

# Don't include so files in dev package
FILES_${PN} = "${libdir}"
FILES_${PN}-dev = "${includedir} ${libdir}/cmake"

BBCLASSEXTEND = "native nativesdk"


Add recipe to build uio pruss test firmware

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

S = "${WORKDIR}/git"

DEPENDS = "ti-cgt-pru-native"

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

# Corresponds to version 01.00.00.00
SRCREV = "f04b91b84331c9a12c897e4eb2836a0a3e3a5fae"

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

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


Add mmwave, serial-ros and octomap to ros-ti group

DESCRIPTION = "ros-ti package group"
LICENSE = "MIT"

inherit packagegroup

PACKAGES = "${PN}"

RDEPENDS_${PN} = "\
    mmwave-ros-pkg-master \
    serial-ros \
    octomap-server \
"


Add new recipe for lksctp tools: library and utilities

DESCRIPTION = "The Linux Kernel Stream Control Transmission Protocol (lksctp) project"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "LGPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=0c56db0143f4f80c369ee3af7425af6e"

PR = "r0"

SRC_URI = "${SOURCEFORGE_MIRROR}/lksctp/lksctp-tools-${PV}.tar.gz"

SRC_URI[md5sum] = "708bb0b5a6806ad6e8d13c55b067518e"
SRC_URI[sha256sum] = "0903dd526b7f30a89d5031aa2c82757612becc38ed7bc6e4f972f8deae351f26"

BBCLASSEXTEND = "native"

inherit autotools pkgconfig binconfig

RREPLACES_${PN} = "lksctp"

PACKAGES =+ "${PN}-withsctp ${PN}-utils"

FILES_${PN} = "${libexecdir}/* ${libdir}/lib*${SOLIBS} \
            ${sysconfdir} ${sharedstatedir} ${localstatedir} \
            ${base_libdir}/*${SOLIBS}"

FILES_${PN}-withsctp = "${libdir}/lksctp-tools/lib*${SOLIBS}"

FILES_${PN}-dev += " \
  ${datadir}/lksctp-tools/checksctp.c \
  ${datadir}/lksctp-tools/sctp_socket.c \
  ${datadir}/lksctp-tools/sctp_bind.c \
  ${datadir}/lksctp-tools/sctp_darn.c \
  ${datadir}/lksctp-tools/sctp_load_libs.c \
  ${datadir}/lksctp-tools/sctp_sockopt.c \
  ${datadir}/lksctp-tools/sctp_socket.h \
  ${datadir}/lksctp-tools/sctp_test.c \
  ${datadir}/lksctp-tools/sctp_darn.h \
  ${datadir}/lksctp-tools/sctp_status.c \
  ${libdir}/lksctp-tools/lib*.so"

FILES_${PN}-utils = " \
  ${bindir}/sctp_test \
  ${bindir}/sctp_darn \
  ${bindir}/checksctp \
  ${bindir}/withsctp \
  ${bindir}/sctp_status"


Add new recipe Create recipe to build libtext-charwidth-perl from Debian's source code

# base recipe: not base recipe
# base branch:

PR = "r0"
inherit debian-package

LICENSE = "GPLv1+ & Artistic-1.0"
LIC_FILES_CHKSUM = "file://README;beginline=50;md5=e3cf8a40071097069c8423fef7600df2"

DEPENDS = "perl"
inherit cpan


DESCRIPTION = "Next generation, high-performance debugger"
HOMEPAGE = "http://lldb.llvm.org/"
LICENSE = "NCSA"
SECTION = "devel"

DEPENDS = "clang-native zlib libxml2"

require ../../../meta-clang/recipes-devtools/clang/clang.inc

PV .= "+git${SRCPV}"

LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=${LLVMMD5SUM}; \
                    file://tools/clang/LICENSE.TXT;md5=${CLANGMD5SUM}; \
                   "

SRC_URI = "${LLVM_GIT}/llvm.git;protocol=${LLVM_GIT_PROTOCOL};branch=${BRANCH};name=llvm \
           ${LLVM_GIT}/clang.git;protocol=${LLVM_GIT_PROTOCOL};branch=${BRANCH};destsuffix=git/tools/clang;name=clang \
           ${LLVM_GIT}/lldb.git;protocol=${LLVM_GIT_PROTOCOL};branch=${BRANCH};destsuffix=git/tools/lldb;name=lldb \
          "
SRCREV_lldb = "80586015c260c80b5aadf4a8481af81b335eb13a"
SRCREV_FORMAT = "llvm_clang"

S = "${WORKDIR}/git"

inherit cmake

OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM = "BOTH"

EXTRA_OECMAKE="\
    -DLLVM_BUILD_LLVM_DYLIB=ON \
    -DLLDB_DISABLE_LIBEDIT=1 \
    -DLLDB_DISABLE_CURSES=1 \
    -DLLDB_DISABLE_PYTHON=1 \
    -DLLVM_ENABLE_TERMINFO=0 \
    -DLLVM_TABLEGEN=${STAGING_BINDIR_NATIVE}/llvm-tblgen \
    -DCLANG_TABLEGEN=${STAGING_BINDIR_NATIVE}/clang-tblgen \
    "

do_compile() {
	cd ${B}/tools/lldb
	base_do_compile VERBOSE=1
}

do_install() {
	cd ${B}/tools/lldb
	oe_runmake 'DESTDIR=${D}' install
}


SUMMARY = "remote file distribution client and server"
DESCRIPTION = "Rdist is a program to maintain identical copies of files \
over multiple hosts. It preserves the owner, group, mode, and mtime of files \
if possible and can update programs that are executing"
HOMEPAGE = "http://www.magnicomp.com/rdist/"

PR = "r0"
inherit debian-package

LICENSE = "BSD-4-Clause"
LIC_FILES_CHKSUM = "file://Copyright;md5=3f47ec9f64b11c8192ee05a66b5c2755"

do_install_append () {
	#Install /usr/bin/rdist; /usr/bin/rdistd
	install -d ${D}${bindir}
	install -m 0755 ${S}/src/rdist ${D}${bindir}/
	install -m 0755 ${S}/src/rdistd ${D}${bindir}/
}


DESCRIPTION = "Enlightenment image"

inherit core-image

IMAGE_FEATURES += "splash package-management x11-base"

#Enlightenment
IMAGE_INSTALL  += " enlightenment enlightenment-config-mobile \
                    enlightenment-backgrounds \
                  "

IMAGE_INSTALL  += " udev-extraconf "

#IMAGE_INSTALL += "midori takao-fonts mpv jack2"


Add rm-lld RTOS package version 02.02.00.00

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

inherit ti-pdk

RM_LLD_GIT_URI = "git://git.ti.com/keystone-rtos/rm-lld.git"
RM_LLD_GIT_PROTOCOL = "git"
RM_LLD_GIT_BRANCH = "master"
RM_LLD_GIT_DESTSUFFIX = "git/ti/drv/rm"

# Below commit ID corresponds to DEV.RM_LLD.02.02.00.00
RM_LLD_SRCREV = "48fc05bf1835f76760da4341a4c551398aeeb7cd"

BRANCH = "${RM_LLD_GIT_BRANCH}"
SRC_URI = "${RM_LLD_GIT_URI};destsuffix=${RM_LLD_GIT_DESTSUFFIX};protocol=${RM_LLD_GIT_PROTOCOL};branch=${BRANCH}"
SRCREV = "${RM_LLD_SRCREV}"

PV = "02.02.00.00"

COMPATIBLE_MACHINE = "keystone"

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

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


Add recipe for picamera module under python3

DESCRIPTION = "A pure Python interface for the Raspberry Pi camera module."
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=a5f6282f39d52726bdc1e51d5c4b95c9"

FILESEXTRAPATHS_prepend := "${THISDIR}/python-picamera:"

SRC_URI += "file://0001-Remove-stupid-checks.patch"

SRC_URI[md5sum] = "47e815b0f21bba2a91ab3c4cd36c6f90"
SRC_URI[sha256sum] = "890815aa01e4d855a6a95dd3ad0953b872a6b954982106407df0c5a31a163e50"

PYPI_PACKAGE = "picamera"

inherit pypi setuptools3

DEPENDS +=	" \
		virtual/libgles2 \
		virtual/egl \
		"

RDEPENDS_${PN} += ""


DESCRIPTION = "Firmware for IPU "

LICENSE = "TI-TSPA"
LIC_FILES_CHKSUM_dra7xx-evm = "file://MMIP-${PV}-Manifest.doc;md5=64ca6f9d7e5243b8a4084eb918a543bc"
LIC_FILES_CHKSUM_omap5-evm = "file://MMIP-${PV}-Manifest.doc;md5=39a593dd8fc2a9654c74f679ed329c45"

COMPATIBLE_MACHINE = "omap-a15"
PACKAGE_ARCH = "${MACHINE_ARCH}"

SRC_URI = "http://downloads.ti.com/dsps/dsps_public_sw/glsdk/ipumm/3_00_04_02/exports/ipumm-${MACHINE}-3.00.04.02.tar.gz;protocol=http;name=${MACHINE}"

# DRA7xx checksums
SRC_URI[dra7xx-evm.md5sum] = "da04c03b0fd57901e8283afa80f81379"
SRC_URI[dra7xx-evm.sha256sum] = "0b26fd13f9c318b52c18b9bff56862ef1f58a768b19285b87c035e65bc828ddc"

# OMAP5 checksums
SRC_URI[omap5-evm.md5sum] = "1572073ebd4f6d127c4e8cf47d270b6a"
SRC_URI[omap5-evm.sha256sum] = "2fdb469f19e3c9984854f5bc82444fca4d7da869f5e645da22ec0d5beaa5cc65"

S = "${WORKDIR}/ipumm-${MACHINE}-${PV}"

TARGET_dra7xx-evm = "dra7-ipu2-fw.xem4"
TARGET_omap5-evm = "ducati-m3-core0.xem3"

do_install() {
        mkdir -p ${D}${base_libdir}/firmware
        cp ${S}/firmware/${TARGET} ${D}${base_libdir}/firmware/${TARGET}
}

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


#
# base recipe: http://cgit.openembedded.org/cgit.cgi/meta-openembedded/tree\
#		/meta-networking/recipes-support/libesmtp/libesmtp_1.0.6.bb?
# base branch: master
# base commit: 7ddf591eb625abad574eea6af82685c267252cdb
#

SUMMARY = "SMTP client library"
DESCRIPTION = "\
	LibESMTP is a library to manage posting (or submission of) \
	electronic mail using SMTP to a preconfigured Mail Transport Agent(MTA)\
	such as Exim or PostFix."
HOMEPAGE = "http://www.stafford.uklinux.net/libesmtp/"

PR = "r0"
inherit debian-package

LICENSE = "GPL-2.0+ & LGPL-2.1+"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
                    file://auth-client.h;md5=955622f1ac3009c083042cfd8c34a2b5"
inherit autotools
DEPENDS = "openssl"

#Configure follow debian/rules
EXTRA_OECONF += "--enable-etrn"

#prepare some header file for compile
do_compile_prepend (){
	cp ${S}/auth-client.h ${S}/login
	cp ${S}/auth-plugin.h ${S}/login
	cp ${S}/auth-client.h ${S}/plain
	cp ${S}/auth-plugin.h ${S}/plain
	cp ${S}/auth-client.h ${S}/crammd5
        cp ${S}/auth-plugin.h ${S}/crammd5
}

#install follow Debian jessies
do_install_append () {
	#Correct the permission of file
	LINKLIB=$(basename $(readlink ${D}${libdir}/libesmtp.so))
	chmod 0644 ${D}${libdir}/$LINKLIB

	#re-name /usr/lib/esmtp-plugins to /usr/lib/esmtp
	mv ${D}${libdir}/esmtp-plugins ${D}${libdir}/esmtp
	chmod 0644 ${D}${libdir}/esmtp/*.so
	#remove .la files
	rm ${D}${libdir}/esmtp/*.la
	rm ${D}${libdir}/*la
}
#Correct the package name
PKG_${PN} = "libesmtp6"

FILES_${PN}-dev += "${bindir}/libesmtp-config"
FILES_${PN} += "${libdir}/esmtp/*.so"
FILES_${PN}-staticdev += "${libdir}/esmtp/*.a"
FILES_${PN}-dbg += "${libdir}/esmtp/.debug/*"


DESCRIPTION = "A cross platform audio visualization library"
HOMEPAGE = "http://libvisual.sf.net"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "LGPL GPL"
PR = "r1"

SRC_URI = "${SOURCEFORGE_MIRROR}/libvisual/libvisual-${PV}.tar.gz \
           file://no-libdir.patch \
          "

inherit autotools pkgconfig

SRC_URI[md5sum] = "f4e78547c79ea8a8ad111cf8b85011bb"
SRC_URI[sha256sum] = "0b4dfdb87125e129567752089e3c8b54cefed601eef169d2533d8659da8dc1d7"

Update LICENSE field version to LGPLv2.1

DESCRIPTION = "A cross platform audio visualization library"
HOMEPAGE = "http://libvisual.sf.net"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "LGPLv2.1+ GPLv2"
PR = "r2"

SRC_URI = "${SOURCEFORGE_MIRROR}/libvisual/libvisual-${PV}.tar.gz \
           file://no-libdir.patch \
          "

inherit autotools pkgconfig

SRC_URI[md5sum] = "f4e78547c79ea8a8ad111cf8b85011bb"
SRC_URI[sha256sum] = "0b4dfdb87125e129567752089e3c8b54cefed601eef169d2533d8659da8dc1d7"


Add srctree based recipe to aid uhd development.

require recipes/uhd/uhd.inc

INHERIT += "srctree"

PR = "${INC_PR}.0"

#PV = "${GITVER}"

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

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

addtask copy_to_target after do_install before do_package


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"


DESCRIPTION = "libmikmod is a module player library supporting many formats, including mod, s3m, it, and xm."
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "LGPL"
PR = "r4"

SRC_URI = "\
  ${SOURCEFORGE_MIRROR}/mikmod/libmikmod-${PV}.tar.gz \
  file://m4.patch \
  file://autofoo.patch \
  file://ldflags.patch \
  file://CVE-2010-2971.patch \
"

inherit autotools binconfig

EXTRA_OECONF = "\
  --disable-af \
  --enable-alsa \
  --disable-esd \
  --enable-oss \
  --disable-sam9407 \
  --disable-ultra \
  --disable-esdtest \
  --enable-threads \
"

SRC_URI[md5sum] = "9f3c740298260d5f88981fc0d51f6f16"
SRC_URI[sha256sum] = "891a2b780306e6ef86e381f459e71a085d4e7f56c970a879d3bf341c01bdfc32"

Update LICENSE field version to LGPLv2.1

DESCRIPTION = "libmikmod is a module player library supporting many formats, including mod, s3m, it, and xm."
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "LGPLv2.1"
PR = "r5"

SRC_URI = "\
  ${SOURCEFORGE_MIRROR}/mikmod/libmikmod-${PV}.tar.gz \
  file://m4.patch \
  file://autofoo.patch \
  file://ldflags.patch \
  file://CVE-2010-2971.patch \
"

inherit autotools binconfig

EXTRA_OECONF = "\
  --disable-af \
  --enable-alsa \
  --disable-esd \
  --enable-oss \
  --disable-sam9407 \
  --disable-ultra \
  --disable-esdtest \
  --enable-threads \
"

SRC_URI[md5sum] = "9f3c740298260d5f88981fc0d51f6f16"
SRC_URI[sha256sum] = "891a2b780306e6ef86e381f459e71a085d4e7f56c970a879d3bf341c01bdfc32"


DESCRIPTION = "AM SysInfo"
HOMEPAGE = "https://gforge.ti.com/gf/project/am_sysinfo/"
LICENSE = "BSD"
SECTION = "system"
PRIORITY = "optional"

SRCREV = "5"
PV = "1.0"
PR = "r1+svnr${SRCPV}"

SRC_URI = "svn://gforge.ti.com/svn/am_sysinfo/;module=trunk;proto=https;user=anonymous;pswd=''"

S = "${WORKDIR}/trunk"

do_compile() {
	${CC} ${CFLAGS} ${LDFLAGS} -o mem_util/mem_util mem_util/mem_util.c
}

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

Update SRCREV to add CCSv5 support

DESCRIPTION = "AM SysInfo"
HOMEPAGE = "https://gforge.ti.com/gf/project/am_sysinfo/"
LICENSE = "BSD"
SECTION = "system"
PRIORITY = "optional"

SRCREV = "6"
PV = "1.0"
PR = "r1+svnr${SRCPV}"

SRC_URI = "svn://gforge.ti.com/svn/am_sysinfo/;module=trunk;proto=https;user=anonymous;pswd=''"

S = "${WORKDIR}/trunk"

do_compile() {
	${CC} ${CFLAGS} ${LDFLAGS} -o mem_util/mem_util mem_util/mem_util.c
}

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


SUMMARY = "Library for implementing command-line interfaces in Go"
HOMEPAGE = "https://github.com/mitchellh/cli"
LICENSE = "MPL-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=b278a92d2c1509760384428817710378"

DEPENDS = "crypto"

PKG_NAME = "github.com/mitchellh/cli"
SRC_URI = "git://${PKG_NAME}.git"
SRCREV = "76e2780bc4f71797e1ce037ac0b43b7c99b31749"

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

cli_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 kernel for HTC Universal by goxboxlive <goxboxlive@gmail.com>

############## /home/jrs/cvs/oe/org.openembedded.dev/packages/linux/xanadux-un-2.6_2.6.12.bb ###############

DESCRIPTION = "Xanadux HTC-Universal kernel based on the hh 2.6.12"
MAINTAINER = "goxboxlive <goxboxlive@gmail.com>"
LICENSE = "GPL"
PR="r2"

SRC_URI = "cvs://anonymous@xanadux.cvs.sourceforge.net/cvsroot/xanadux;method=pserver;module=linux-2.6-xda;tag=K2-6-12-hh2-xda0-un0"
S = "${WORKDIR}/linux-2.6-xda"

COMPATIBLE_HOST = "arm.*-linux"

inherit kernel

do_configure() {
        cp arch/arm/configs/htcuniversal_defconfig .config || die "No default configuration for ${MACHINE} available."
        yes '' | oe_runmake oldconfig
}

###############################################################
# put into deploy directory
#
do_deploy() {
        install -d ${DEPLOY_DIR_IMAGE}
        install -m 0644 arch/${ARCH}/boot/${KERNEL_IMAGETYPE} ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${PV}-${MACHINE}-${DATETIME}.bin
        tar -cvzf ${DEPLOY_DIR_IMAGE}/modules-${KERNEL_RELEASE}-${MACHINE}.tgz -C ${D} lib
}

do_deploy[dirs] = "${S}"

addtask deploy before do_package after do_install


Add recipe for TI unified Instrumentation Architecture in C module

DESCRIPTION = "TI Unified Instrumentation Architecture in C (cUIA)"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://cuia_${CUIA_PV}_manifest.html;md5=0eea94e3bb94de4ddee77653eba1c7c5"

CUIA_PV = "1_00_00_13"
CUIA_PVExtra = ""

SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_ccstudio/UIA/SCMCSDK/cuia_${CUIA_PV}${CUIA_PVExtra}.tar.gz;name=cuia"
SRC_URI[cuia.md5sum] = "ef53989ac70c191841cd656cdc8770be"
SRC_URI[cuia.sha256sum] = "f16d138a9146fdc7d52cba77bd30596da65835f6ffe4092baf2b33d1c1a4fb0d"

S = "${WORKDIR}/cuia_${CUIA_PV}${CUIA_PVExtra}"

do_compile () {
	cd ${S}
	oe_runmake clean
	oe_runmake all
}

do_install() {
	cd ${S}
	oe_runmake DESTDIR=${D} libdir=${libdir} includedir=${includedir} install
}


#Angstrom minimalist image
#gives you a small images with ssh access

ARAGO_EXTRA_INSTALL = "alsa-lib ncurses mtd-utils thttpd zlib tslib libpng jpeg freetype"

#ARAGO_EXTRA_INSTALL ?= ""

#DISTRO_SSH_DAEMON ?= "dropbear"

IMAGE_PREPROCESS_COMMAND = "create_etc_timestamp"

IMAGE_INSTALL = "task-arago-boot \
            util-linux-mount util-linux-umount \
            ${DISTRO_SSH_DAEMON} \
            angstrom-version \
	    ${ARAGO_EXTRA_INSTALL} \
	   "

export IMAGE_BASENAME = "minimalist-image"
IMAGE_LINGUAS = ""

inherit image


SUMMARY = "Go library for providing consensus"
HOMEPAGE = "https://github.com/hashicorp/raft"
LICENSE = "MPL-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=b278a92d2c1509760384428817710378"

DEPENDS = "go-metrics go-msgpack"

PKG_NAME = "github.com/hashicorp/raft"
SRC_URI = "git://${PKG_NAME}.git"
SRCREV = "379e28eb5a538707eae7a97ecc60846821217f27"

S = "${WORKDIR}/git"

#Custom do_compile to stop go from trying to autotest and fetch deps.
do_compile() {
}

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

SYSROOT_PREPROCESS_FUNCS += "raft_sysroot_preprocess"

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

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


DESCRIPTION = "VPE VPDMA firmware and test program"

DEPENDS += "virtual/kernel"

LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://COPYING;md5=74d2f71d8898c54e3d1c9d0058c484aa"

COMPATIBLE_MACHINE = "dra7xx-evm"

PV = "1b8"
PR = "r0"

SRCREV = "24a5487ec13bf560f0e7fb24a9d4747f9f358be2"
BRANCH ?= "master"

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

S = "${WORKDIR}/git"

# The test application needs additional include headers from the kernel
EXTRA_OEMAKE = 'KDIR="${STAGING_KERNEL_DIR}/include/uapi -I${STAGING_KERNEL_DIR}/include"'

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

# Separate the firmware into it's own package.
PACKAGES =+ "${PN}-fw"
FILES_${PN}-fw += "${base_libdir}/firmware"


DESCRIPTION = "Configuration files for online package repositories of Openmoko community repository feeds"
PR = "r0.01"

do_compile() {
    mkdir -p ${S}/${sysconfdir}/opkg
    for feed in Multiverse; do
        echo "src/gz daily-${feed} ${OPENMOKO_URI}/${feed}" > ${S}/${sysconfdir}/opkg/${feed}-feed.conf
    done
}
do_install () {
        install -d ${D}${sysconfdir}/opkg
        install -m 0644  ${S}/${sysconfdir}/opkg/* ${D}${sysconfdir}/opkg/
}

PACKAGE_ARCH = "${MACHINE_ARCH}"

CONFFILES_${PN} += "${sysconfdir}/opkg/community-repository-feed.conf"

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

OPENMOKO_URI = "http://downloads.openmoko.org/repository/"

Revert "[openmoko] Change default community repository"

DESCRIPTION = "Configuration files for online package repositories of Openmoko community repository feeds"
PR = "r0"

do_compile() {
    mkdir -p ${S}/${sysconfdir}/opkg
    for feed in community-repository; do
        echo "src/gz daily-${feed} ${OPENMOKO_URI}/${feed}" > ${S}/${sysconfdir}/opkg/${feed}-feed.conf
    done
}
do_install () {
        install -d ${D}${sysconfdir}/opkg
        install -m 0644  ${S}/${sysconfdir}/opkg/* ${D}${sysconfdir}/opkg/
}

PACKAGE_ARCH = "${MACHINE_ARCH}"

CONFFILES_${PN} += "${sysconfdir}/opkg/community-repository-feed.conf"

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

OPENMOKO_URI = "http://downloads.openmoko.org"


SUMMARY = "Provides gsyslog without introducing cross-compilation issues"
HOMEPAGE = "https://github.com/hashicorp/go-syslog"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=cb04212e101fbbd028f325e04ad45778"

PKG_NAME = "github.com/hashicorp/go-syslog"
SRC_URI = "git://${PKG_NAME}.git"
SRCREV = "42a2b573b664dbf281bd48c3cc12c086b17a39ba"

S = "${WORKDIR}/git"

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

SYSROOT_PREPROCESS_FUNCS += "go_syslog_sysroot_preprocess"

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

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


DESCRIPTION = "Packages for PubNub."
LICENSE = "MIT"

inherit packagegroup python-dir

PR = "r0"

PACKAGES = "${PN}"

PACKAGECONFIG ??= "python"
PACKAGECONFIG[python] = "\
	, \
	, \
	, \
	${PYTHON_PN}-pubnub \
"


SUMMARY = "C++ bindings for the atk"
SECTION = "libs"

LICENSE = "LGPLv2.1 & GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=2d5025d4aa3495befef8f17206a5b0a1 \
                    file://COPYING.tools;md5=751419260aa954499f7abaabaa882bbe"

DEPENDS = "atk glibmm-2.68"

GNOMEBASEBUILDCLASS = "meson"
GNOMEBN = "atkmm"

inherit gnomebase features_check

REQUIRED_DISTRO_FEATURES = "x11"

SRC_URI[archive.sha256sum] = "e11324bfed1b6e330a02db25cecc145dca03fb0dff47f0710c85e317687da458"

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

EXTRA_OEMESON = "-Dbuild-documentation=false"

FILES:${PN}-dev += "${libdir}/*/include ${libdir}/*/proc/m4"


SUMMARY = "Netfilter packet queue access library"
DESCRIPTION = "Userspace library providing a programming interface (API) to access the Linux kernel netfilter packet queue"
HOMEPAGE = "http://www.netfilter.org/projects/libnetfilter_queue/index.html"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b"
DEPENDS = "libnfnetlink"

SRC_URI = "http://www.netfilter.org/projects/libnetfilter_queue/files/libnetfilter_queue-${PV}.tar.bz2;name=tar"
SRC_URI[tar.md5sum] = "df09befac35cb215865b39a36c96a3fa"
SRC_URI[tar.sha256sum] = "838490eb5dbe358f9669823704982f5313a8d397111562373200203f93ac1a32"

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

inherit autotools pkgconfig

Add missing libmnl to DEPENDS

SUMMARY = "Netfilter packet queue access library"
DESCRIPTION = "Userspace library providing a programming interface (API) to access the Linux kernel netfilter packet queue"
HOMEPAGE = "http://www.netfilter.org/projects/libnetfilter_queue/index.html"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b"
DEPENDS = "libnfnetlink libmnl"

SRC_URI = "http://www.netfilter.org/projects/libnetfilter_queue/files/libnetfilter_queue-${PV}.tar.bz2;name=tar"
SRC_URI[tar.md5sum] = "df09befac35cb215865b39a36c96a3fa"
SRC_URI[tar.sha256sum] = "838490eb5dbe358f9669823704982f5313a8d397111562373200203f93ac1a32"

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

inherit autotools pkgconfig


DESCRIPTION = "xterm app"
SECTION = "x11/applications"
LICENSE = "MIT-X"

DEPENDS = "libxaw xproto virtual/libx11 xextproto xext xau libxpm ncurses"

SRC_URI = "${XORG_MIRROR}/development/X11R7.0-RC4/extras/${PN}-${PV}.tar.gz"

inherit autotools pkgconfig

FILES_${PN} += " /usr/lib/X11"

#EXTRA_OERECONF = " -I${S}/xterm.m4"
EXTRA_OECONF = " --x-includes=${STAGING_INCDIR} --x-libraries=${STAGING_LIBDIR} FREETYPE_CONFIG=${STAGING_DIR}/${BUILD_SYS}/bin/freetype-config --disable-imake"

#do_configure_prepend () {
#	mv ${S}/aclocal.m4 ${S}/xterm.m4
#}
do_configure() {

	sed -e "s%/usr/contrib/X11R6%${STAGING_LIBDIR}%g" -i configure

	oe_runconf
}

do_stage() {
	autotools_stage_all
}

Fix what looks like a totally insane staging path (probably missed in pervious rounds of cleanup?)

DESCRIPTION = "xterm app"
SECTION = "x11/applications"
LICENSE = "MIT-X"

DEPENDS = "libxaw xproto virtual/libx11 xextproto xext xau libxpm ncurses"

SRC_URI = "${XORG_MIRROR}/development/X11R7.0-RC4/extras/${PN}-${PV}.tar.gz"

inherit autotools pkgconfig

FILES_${PN} += " /usr/lib/X11"

#EXTRA_OERECONF = " -I${S}/xterm.m4"
EXTRA_OECONF = " --x-includes=${STAGING_INCDIR} --x-libraries=${STAGING_LIBDIR} FREETYPE_CONFIG=${STAGING_BINDIR_CROSS}/freetype-config --disable-imake"

#do_configure_prepend () {
#	mv ${S}/aclocal.m4 ${S}/xterm.m4
#}
do_configure() {

	sed -e "s%/usr/contrib/X11R6%${STAGING_LIBDIR}%g" -i configure

	oe_runconf
}

do_stage() {
	autotools_stage_all
}


DESCRIPTION = "TI IQN2 peripheral module low level driver test binaries"

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

include iqn2-lld.inc

EXTRA_OEMAKE = "-f makefile_armv7 PDK_INSTALL_PATH=${STAGING_INCDIR} IQN2_SRC_DIR=${WORKDIR}/git"

do_compile () {
	oe_runmake clean DEVICE=k2l
	oe_runmake tests DEVICE=k2l
}

do_install () {
	oe_runmake installbin DEVICE=k2l IQN2_SRC_DIR=${WORKDIR}/git INSTALL_BIN_BASE_DIR=${D}/${bindir}
}


SECTION = "base"
require modutils_${PV}.bb
PR = "r9"
inherit cross
S = "${WORKDIR}/modutils-${PV}"
DEPENDS = ""
PACKAGES = ""
PROVIDES += "virtual/${TARGET_PREFIX}depmod virtual/${TARGET_PREFIX}depmod-2.4"
DEFAULT_PREFERENCE = "1"

SRC_URI +=  "file://modutils-cross/module.h.diff"

sbindir = "${prefix}/bin"

EXTRA_OECONF_append = " --program-prefix=${TARGET_PREFIX}"

CFLAGS_prepend_mipsel = "-D__MIPSEL__"
CFLAGS_prepend_mipseb = "-D__MIPSEB__"

do_stage () {
        oe_runmake install
        mv ${bindir}/${TARGET_PREFIX}depmod ${bindir}/${TARGET_PREFIX}depmod-2.4
}

do_install () {
        :
}

SRC_URI[md5sum] = "bac989c74ed10f3bf86177fc5b4b89b6"
SRC_URI[sha256sum] = "ab4c9191645f9ffb455ae7c014d8c45339c13a1d0f6914817cfbf30a0bc56bf0"

Convert do_stage to do_install (from Poky)

SECTION = "base"
require modutils_${PV}.bb
PR = "r9"
inherit cross
S = "${WORKDIR}/modutils-${PV}"
DEPENDS = ""
PACKAGES = ""
PROVIDES += "virtual/${TARGET_PREFIX}depmod virtual/${TARGET_PREFIX}depmod-2.4"
DEFAULT_PREFERENCE = "1"

SRC_URI +=  "file://modutils-cross/module.h.diff"

sbindir = "${prefix}/bin"

EXTRA_OECONF_append = " --program-prefix=${TARGET_PREFIX}"

CFLAGS_prepend_mipsel = "-D__MIPSEL__"
CFLAGS_prepend_mipseb = "-D__MIPSEB__"

do_install_append () {
        mv ${D}${bindir}/${TARGET_PREFIX}depmod ${D}${bindir}/${TARGET_PREFIX}depmod-2.4
}

SRC_URI[md5sum] = "bac989c74ed10f3bf86177fc5b4b89b6"
SRC_URI[sha256sum] = "ab4c9191645f9ffb455ae7c014d8c45339c13a1d0f6914817cfbf30a0bc56bf0"


LICENSE = "GPL"
MAINTAINER = "Oyvind Repvik <nail@nslu2-linux.org>"
DESCRIPTION = "Wakelan sends a magic packet to wake up remote PC's"
PR = "r0"

FILES = "${bindir}/wakelan"
SRC_URI = "http://www.ibiblio.org/pub/Linux/system/network/misc/${PN}-${PV}.tar.gz"

inherit autotools

do_install () {
	install -d ${bindir}
	install -m 0755 ${WORKDIR}/${PN}-${PV}/wakelan ${D}${bindir}/wakelan
}

Fix hardcoded path trying to set permissions on /usr/bin/

LICENSE = "GPL"
MAINTAINER = "Oyvind Repvik <nail@nslu2-linux.org>"
DESCRIPTION = "Wakelan sends a magic packet to wake up remote PC's"
PR = "r1"

FILES = "${bindir}/wakelan"
SRC_URI = "http://www.ibiblio.org/pub/Linux/system/network/misc/${PN}-${PV}.tar.gz"

inherit autotools

do_install () {
	install -d ${D}${bindir}
	install -m 0755 ${WORKDIR}/${PN}-${PV}/wakelan ${D}${bindir}/wakelan
}


SUMMARY = "Implements a radix tree in go"
HOMEPAGE = "https://github.com/armon/go-radix"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=cb04212e101fbbd028f325e04ad45778"

PKG_NAME = "github.com/armon/go-radix"
SRC_URI = "git://${PKG_NAME}.git"
SRCREV = "fbd82e84e2b13651f3abc5ffd26b65ba71bc8f93"

S = "${WORKDIR}/git"

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

SYSROOT_PREPROCESS_FUNCS += "go_radix_sysroot_preprocess"

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

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


DESCRIPTION = "Action GUI for Installer"
HOMEPAGE = "http://assassin.projects.openmoko.org/"
LICENSE = "GPL"
DEPENDS = "dbus (>= 1.1.1) glib-2.0 e-wm packagekit etk edbus eet"
PV = "0.2+svnr${SRCREV}"
PR = "r6"

SRC_URI = "svn://svn.projects.openmoko.org/svnroot/;module=assassin;proto=https"

S = "${WORKDIR}/assassin"

inherit autotools pkgconfig

EXTRA_OECONF = ""

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

Add curl to assassin's depends. Tick did a quick hack to assassin for access networking. It's is a temporary solution.

DESCRIPTION = "Action GUI for Installer"
HOMEPAGE = "http://assassin.projects.openmoko.org/"
LICENSE = "GPL"
DEPENDS = "dbus (>= 1.1.1) glib-2.0 e-wm packagekit etk edbus eet curl"
RDEPENDS = "etk-theme-ninja"
PV = "0.2+svnr${SRCREV}"
PR = "r6.02"

SRC_URI = "svn://svn.projects.openmoko.org/svnroot/;module=assassin;proto=https"

S = "${WORKDIR}/assassin"

inherit autotools pkgconfig

EXTRA_OECONF = ""

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


SUMMARY = "grep-like program specifically for large source trees"
DESCRIPTION = "\
	Ack is designed as an alternative for 99% of the uses of grep. ack is 	\
	intelligent about the files it searches. It knows about certain file 	\
	types, based on both the extension on the file and, in some cases, the 	\
	contents of the file. \
	Ack ignores backup files and files under CVS and .svn directories. It 	\
	also highlights matches to help you see where the match was. Ack uses	\
	perl regular expressions."
HOMEPAGE = "http://beyondgrep.com/"
PR = "r0"
inherit debian-package cpan

LICENSE = "Artistic-2.0 & GPL-2+ | GPL-1+"
LIC_FILES_CHKSUM = "\
	file://LICENSE.md;md5=f19ee102af436a61316db71e613ded2c \
	file://t/swamp/c-source.c;md5=4434b7963eee9c9432761f5124202e1c \
	file://t/swamp/c-header.h;md5=e419183d1776291d257bb6c47e35bfe4"

do_install() {
	oe_runmake install INSTALLVENDORLIB=${datadir}/perl5 DESTDIR=${D}
	ln -s ack ${D}${bindir}/ack-grep
}
FILES_${PN} += "${datadir}"


SUMMARY = "Realtek out-of-tree kernel driver for rtl8192cu"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://include/autoconf.h;startline=1;endline=18;md5=25cbdd5262c1bef1021387c1fbe9d7ba"

inherit module

SRC_URI = "git://github.com/agherzan/rtl8192cu.git"
SRCREV = "8dc5b70d63154d85d71a213546a978393ccc2f16"
S = "${WORKDIR}/git"

EXTRA_OEMAKE += " \
    CONFIG_PLATFORM_I386_PC=n \
    KSRC=${STAGING_KERNEL_DIR} \
    "


SUMMARY = "Audio sample rate conversion library"
DESCRIPTION = "\
libsamplerate (aka Secret Rabbit Code) is a library for audio rate conversion. \
libsamplerate currently provides three different sample rate conversion \
algorithms; zero order hold, linear interpolation and FIR filter interpolation \
(using filters derived from the mathematical SINC function). The first two \
algorithms (zero order hold and linear) are included for completeness and are \
not recommended for any application where high quality sample rate conversion \
is required. For the FIR/Sinc algorithm, three converters are provided; \
SRC_SINC_FASTEST, SRC_SINC_MEDIUM_QUALITY and SRC_SINC_BEST_QUALITY to allow a \
trade off between conversion speed and conversion quality \
"
HOMEPAGE = "http://www.mega-nerd.com/SRC/"
PR = "r0"
inherit debian-package

LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "\
	file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
inherit autotools-brokensep pkgconfig

PACKAGES =+ "samplerate-programs"

DEBIANNAME_${PN} = "${PN}0"
DEBIANNAME_${PN}-dev = "${PN}0-dev"

FILES_samplerate-programs = "${bindir}/sndfile-resample"
RDEPENDS_${PN}-dev += "${PN}"


SUMMARY = "Tvheadend: TV streaming server and recorder"
HOMEPAGE = "https://tvheadend.org/"

inherit autotools-brokensep gettext gitpkgv pkgconfig

DEPENDS = "avahi cmake-native libdvbcsa libpcre2 openssl uriparser zlib"

LICENSE = "GPLv3+"
LIC_FILES_CHKSUM = "file://LICENSE.md;md5=9cae5acac2e9ee2fc3aec01ac88ce5db"

SRC_URI = "git://github.com/tvheadend/tvheadend.git"

SRCREV = "bdc2ae9e19520a10cdf0bec0fcc0050b32bc75ff"
PV = "4.3+git${SRCPV}"
PKGV = "4.3+git${GITPKGV}"

S = "${WORKDIR}/git"

EXTRA_OECONF += "--arch=${TARGET_ARCH} \
                 --disable-hdhomerun_static \
                 --disable-ffmpeg_static \
                 --disable-libav \
                 "