DESCRIPTION = "An accessibility toolkit for GNOME."
SECTION = "x11/libs"
PRIORITY = "optional"
LICENSE = "LGPL"

PR = "r1"

inherit gnome

SRC_URI[archive.md5sum] = "548d413775819fef425410739041cac3"
SRC_URI[archive.sha256sum] = "92b9b1213cafc68fe9c3806273b968c26423237d7b1f631dd83dc5270b8c268c"

DEPENDS = "glib-2.0 gtk-doc-native"

EXTRA_OECONF += "--disable-glibtest"

BBCLASSEXTEND = "native"

Update LICENSE field version to GPLv2

DESCRIPTION = "An accessibility toolkit for GNOME."
SECTION = "x11/libs"
PRIORITY = "optional"
LICENSE = "GPLv2+ LGPLv2+"

PR = "r2"

inherit gnome

SRC_URI[archive.md5sum] = "548d413775819fef425410739041cac3"
SRC_URI[archive.sha256sum] = "92b9b1213cafc68fe9c3806273b968c26423237d7b1f631dd83dc5270b8c268c"

DEPENDS = "glib-2.0 gtk-doc-native"

EXTRA_OECONF += "--disable-glibtest"

BBCLASSEXTEND = "native"


SUMMARY = "Set of CLI tools for Openlmi providers"
DESCRIPTION = "openlmi-tools is a set of command line tools for Openlmi providers."
HOMEPAGE = "http://www.openlmi.org/"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://../COPYING;md5=75859989545e37968a99b631ef42722e"
SECTION = "System/Management"

inherit setuptools3

DEPENDS = "python3-native python3-pywbem-native python3-m2crypto python-pywbem"

SRC_URI = "http://fedorahosted.org/released/${BPN}/${BP}.tar.gz \
          "
SRC_URI[md5sum] = "e156246cb7b49753db82f4ddf7f03e50"
SRC_URI[sha256sum] = "292b8f5f2250655a4add8183c529b73358bc980bd4f23cfa484a940953fce9e4"

S = "${WORKDIR}/${BP}/cli"

do_configure_prepend() {
    sed 's/@@VERSION@@/$(VERSION)/g' setup.py.skel >setup.py
}

python() {
    if 'meta-python' not in d.getVar('BBFILE_COLLECTIONS').split():
        raise bb.parse.SkipRecipe('Requires meta-python to be present.')
}

Use S to access setup.py

SUMMARY = "Set of CLI tools for Openlmi providers"
DESCRIPTION = "openlmi-tools is a set of command line tools for Openlmi providers."
HOMEPAGE = "http://www.openlmi.org/"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://../COPYING;md5=75859989545e37968a99b631ef42722e"
SECTION = "System/Management"

inherit setuptools3

DEPENDS = "python-native python-pywbem-native python-m2crypto python-pywbem"

SRC_URI = "http://fedorahosted.org/released/${BPN}/${BP}.tar.gz \
          "
SRC_URI[md5sum] = "e156246cb7b49753db82f4ddf7f03e50"
SRC_URI[sha256sum] = "292b8f5f2250655a4add8183c529b73358bc980bd4f23cfa484a940953fce9e4"

S = "${WORKDIR}/${BP}/cli"

do_configure_prepend() {
    sed 's/@@VERSION@@/$(VERSION)/g' ${S}/setup.py.skel > ${S}/setup.py
}

python() {
    if 'meta-python' not in d.getVar('BBFILE_COLLECTIONS').split():
        raise bb.parse.SkipRecipe('Requires meta-python to be present.')
}


UBOOT_VERSION = "v2021.01"

UBRANCH ?= "xlnx_rebase_v2022.01"

SRCREV = "c50d6c48f4e1368cd38699278e35563cb4b0e444"

include u-boot-xlnx.inc
include u-boot-spl-zynq-init.inc

LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://README;beginline=1;endline=4;md5=744e7e3bb0c94b4b9f6b3db3bf893897"

# u-boot-xlnx has support for these
HAS_PLATFORM_INIT ?= " \
		xilinx_zynqmp_virt_config \
		xilinx_zynq_virt_defconfig \
		xilinx_versal_vc_p_a2197_revA_x_prc_01_revA \
		"

Update branch and SRCREV for update release

UBOOT_VERSION = "v2021.01"

UBRANCH ?= "xlnx_rebase_v2022.01_2022.1_update"

SRCREV = "a807cf8f6ce03ef1441c246a90aefbc8b6ea4c43"

include u-boot-xlnx.inc
include u-boot-spl-zynq-init.inc

LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://README;beginline=1;endline=4;md5=744e7e3bb0c94b4b9f6b3db3bf893897"

# u-boot-xlnx has support for these
HAS_PLATFORM_INIT ?= " \
		xilinx_zynqmp_virt_config \
		xilinx_zynq_virt_defconfig \
		xilinx_versal_vc_p_a2197_revA_x_prc_01_revA \
		"


SECTION = "unknown"
LICENSE = "GPL"
inherit autotools gtk-icon-cache

# Override RDEPENDS_${PN} = hicolor-icon-theme from gtk-icon-cache
RDEPENDS_${PN} = ""
RDEPENDS_${PN} = ""
PR = "r1"

SRC_URI = "http://icon-theme.freedesktop.org/releases/${P}.tar.gz"

PACKAGE_ARCH = "all"

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

SRC_URI[md5sum] = "5cf5527e803a554f43319ee53c771e0b"
SRC_URI[sha256sum] = "44eb1f158a9b2a92cd626541a24c44387162b3d792e4b238c84e6f3d8ed1dd9a"

Update LICENSE field version to GPLv2

SECTION = "unknown"
LICENSE = "GPLv2"
inherit autotools gtk-icon-cache

# Override RDEPENDS_${PN} = hicolor-icon-theme from gtk-icon-cache
RDEPENDS_${PN} = ""
RDEPENDS_${PN} = ""
PR = "r2"

SRC_URI = "http://icon-theme.freedesktop.org/releases/${P}.tar.gz"

PACKAGE_ARCH = "all"

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

SRC_URI[md5sum] = "5cf5527e803a554f43319ee53c771e0b"
SRC_URI[sha256sum] = "44eb1f158a9b2a92cd626541a24c44387162b3d792e4b238c84e6f3d8ed1dd9a"


SUMMARY  = "Safe C Library"

LICENSE  = "safec"
LIC_FILES_CHKSUM = "file://COPYING;md5=6d0eb7dfc57806a006fcbc4e389cf164"
SECTION = "lib"

inherit autotools pkgconfig

S = "${WORKDIR}/git"
SRCREV = "a99a052a56da409638c9fe7e096a5ae6661ca7cb"
SRC_URI = "git://github.com/rurban/safeclib.git \
           file://0001-memrchr-Use-_ISOC11_SOURCE-only-with-glibc.patch \
"

CPPFLAGS_append_libc-musl = " -D_GNU_SOURCE"

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

RDEPENDS_${PN} = "perl"

Put perl requiring tools into separate package

SUMMARY  = "Safe C Library"

LICENSE  = "safec"
LIC_FILES_CHKSUM = "file://COPYING;md5=6d0eb7dfc57806a006fcbc4e389cf164"
SECTION = "lib"

inherit autotools pkgconfig

S = "${WORKDIR}/git"
SRCREV = "a99a052a56da409638c9fe7e096a5ae6661ca7cb"
SRC_URI = "git://github.com/rurban/safeclib.git \
           file://0001-memrchr-Use-_ISOC11_SOURCE-only-with-glibc.patch \
"

CPPFLAGS_append_libc-musl = " -D_GNU_SOURCE"

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

PACKAGES =+ "${PN}-check"

FILES_${PN}-check += "${bindir}/check_for_unsafe_apis"

RDEPENDS_${PN}-check += "perl"


LICENSE = "LGPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=5c213a7de3f013310bd272cdb6eb7a24"

DEPENDS = "kdelibs4 soprano"

inherit kde_without_docs kde_rdepends kde_cmake

SRC_URI = "git://anongit.kde.org/kde-baseapps;protocol=git;branch=master \
	   file://Convert-Phonon-to-phonon.patch"
SRCREV = "37a52f48ebd4850d07cd8fe7277e6fa7a653c2ae"

PV = "4.8.0+git${SRCPV}"

S = "${WORKDIR}/git"

OECMAKE_SOURCEPATH = ".."
OECMAKE_BUILDPATH = "build"

FILES_${PN} += "\
		${libdir}/kde4/*.so \
		${libdir}/libkdeinit4*.so \
		\
		${datadir}/* \
	       "

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

Fix build, use the right git version.

LICENSE = "LGPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=5c213a7de3f013310bd272cdb6eb7a24"

DEPENDS = "kdelibs4 soprano"

inherit kde_without_docs kde_rdepends kde_cmake

SRC_URI = "git://anongit.kde.org/kde-baseapps;protocol=git;branch=master \
	   file://Convert-Phonon-to-phonon.patch"

## Tag v4.8.0
SRCREV = "a7a128232033f284d41890a6967fc0641925b251"

PV = "4.8.0+git${SRCPV}"

S = "${WORKDIR}/git"

OECMAKE_SOURCEPATH = ".."
OECMAKE_BUILDPATH = "build"

FILES_${PN} += "\
		${libdir}/kde4/*.so \
		${libdir}/libkdeinit4*.so \
		\
		${datadir}/* \
	       "

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


require libgpg-error.inc

PR = "${INC_PR}.1"

SRC_URI[md5sum] = "86e60e9a03205fb706e99be101a2387e"
SRC_URI[sha256sum] = "fff67ec5ffc93cf91fc62350a19a9f677c9bc6eb2730395d22f9d40c754ed619"

Update LICENSE field version to GPLv2 and LGPLv2.1

require libgpg-error.inc

LICENSE = "GPLv2 LGPLv2.1"

PR = "${INC_PR}.2"

SRC_URI[md5sum] = "86e60e9a03205fb706e99be101a2387e"
SRC_URI[sha256sum] = "fff67ec5ffc93cf91fc62350a19a9f677c9bc6eb2730395d22f9d40c754ed619"


HOMEPAGE = "http://github.com/krallin/tini"
SUMMARY = "Minimal init for containers"
DESCRIPTION = "Tini is the simplest init you could think of. All Tini does is \
spawn a single child (Tini is meant to be run in a container), and wait for \
it to exit all the while reaping zombies and performing signal forwarding. "

SRCREV = "949e6facb77383876aeff8a6944dde66b3089574"
SRC_URI = " \
  git://github.com/krallin/tini.git \
  file://0001-Do-not-strip-the-output-binary-allow-yocto-to-do-thi.patch \
  "

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

S = "${WORKDIR}/git"

BBCLASSEXTEND = "native"

inherit cmake

do_install() {
  mkdir -p ${D}/${bindir}
  install -m 0755 ${B}/tini-static ${D}/${bindir}/balena-init
}

Fix tini filename after balena-engine rename

HOMEPAGE = "http://github.com/krallin/tini"
SUMMARY = "Minimal init for containers"
DESCRIPTION = "Tini is the simplest init you could think of. All Tini does is \
spawn a single child (Tini is meant to be run in a container), and wait for \
it to exit all the while reaping zombies and performing signal forwarding. "

SRCREV = "949e6facb77383876aeff8a6944dde66b3089574"
SRC_URI = " \
  git://github.com/krallin/tini.git \
  file://0001-Do-not-strip-the-output-binary-allow-yocto-to-do-thi.patch \
  "

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

S = "${WORKDIR}/git"

BBCLASSEXTEND = "native"

inherit cmake

do_install() {
  mkdir -p ${D}/${bindir}
  install -m 0755 ${B}/tini-static ${D}/${bindir}/balena-engine-init
}


SUMMARY = "Twisted Web Sockets"
HOMEPAGE = "https://github.com/MostAwesomeDude/txWS"

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

DEPENDS = "python-twisted python-six python-vcversioner python-six-native python-vcversioner-native"

SRC_URI = "git://github.com/MostAwesomeDude/txWS.git"
SRCREV= "88cf6d9b9b685ffa1720644bd53c742afb10a414"

S = "${WORKDIR}/git"

inherit setuptools3

Fix deps to py3 modules

SUMMARY = "Twisted Web Sockets"
HOMEPAGE = "https://github.com/MostAwesomeDude/txWS"

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

DEPENDS = "python3-twisted python3-six python3-vcversioner python3-six-native python3-vcversioner-native"

SRC_URI = "git://github.com/MostAwesomeDude/txWS.git"
SRCREV= "88cf6d9b9b685ffa1720644bd53c742afb10a414"

S = "${WORKDIR}/git"

inherit setuptools3


DESCRIPTION = "Package groups for Advantech WISE-PaaS"
LICENSE = "MIT"

inherit packagegroup

PACKAGES = "\
   ${PN} \
   ${PN}-base \
   ${PN}-addon \
   "

RDEPENDS_${PN} = "\
   ${PN}-base \
   ${PN}-addon \
   "

SUMMARY_${PN}-base = "Yocto native packages"
RDEPENDS_${PN}-base = "\
   sqlite3 lua uci \
   curl curl-dev libxml2 libxml2-dev openssl openssl-dev lsb \
   mosquitto mosquitto-dev libdmclient libdmclient-dev \
   packagegroup-sdk-target "

SUMMARY_${PN}-addon = "Advantech proprietary packages"
RDEPENDS_${PN}-addon = "\
   rmm susi4 susi-iot "

Add additional mosquitto programs & libraries

DESCRIPTION = "Package groups for Advantech WISE-PaaS"
LICENSE = "MIT"

inherit packagegroup

PACKAGES = "\
   ${PN} \
   ${PN}-base \
   ${PN}-addon \
   "

RDEPENDS_${PN} = "\
   ${PN}-base \
   ${PN}-addon \
   "

SUMMARY_${PN}-base = "Yocto native packages"
RDEPENDS_${PN}-base = "\
   sqlite3 lua uci \
   curl curl-dev libxml2 libxml2-dev openssl openssl-dev lsb \
   mosquitto mosquitto-dev libdmclient libdmclient-dev \
   mosquitto-clients libmosquitto1 libmosquittopp1 packagegroup-sdk-target "

SUMMARY_${PN}-addon = "Advantech proprietary packages"
RDEPENDS_${PN}-addon = "\
   rmm susi4 susi-iot "


SUMMARY = "Program for providing universal TLS/SSL tunneling service"
DESCRIPTION = "SSL encryption wrapper between remote client and local (inetd-startable) or remote server."
SECTION = "net"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=866cdc7459d91e092b174388fab8d283"
DEPENDS = "openssl zlib tcp-wrappers"

RDEPENDS_${PN} += "perl"

SRC_URI = "ftp://ftp.stunnel.org/stunnel/archive/5.x/${BP}.tar.gz"

SRC_URI[md5sum] = "9079f5fafbccaf88b7d92b227d78249a"
SRC_URI[sha256sum] = "ffa386ae4c825f35f35157c285e7402a6d58779ad8c3822f74a9d355b54aba1d"

inherit autotools

EXTRA_OECONF += "--with-ssl='${STAGING_EXECPREFIXDIR}' --disable-fips"

PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6 systemd', d)}"
PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd,systemd"
PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"

Add HOMEPAGE info into recipe file.

SUMMARY = "Program for providing universal TLS/SSL tunneling service"
HOMEPAGE = "http://www.stunnel.org/"
DESCRIPTION = "SSL encryption wrapper between remote client and local (inetd-startable) or remote server."
SECTION = "net"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=866cdc7459d91e092b174388fab8d283"
DEPENDS = "openssl zlib tcp-wrappers"

RDEPENDS_${PN} += "perl"

SRC_URI = "ftp://ftp.stunnel.org/stunnel/archive/5.x/${BP}.tar.gz"

SRC_URI[md5sum] = "9079f5fafbccaf88b7d92b227d78249a"
SRC_URI[sha256sum] = "ffa386ae4c825f35f35157c285e7402a6d58779ad8c3822f74a9d355b54aba1d"

inherit autotools

EXTRA_OECONF += "--with-ssl='${STAGING_EXECPREFIXDIR}' --disable-fips"

PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6 systemd', d)}"
PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd,systemd"
PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"


DESCRIPTION = "Project Valerie - Media Center"
DEPENDS = "python"
PACKAGES = "${PN}"
PACKAGE_ARCH = "all"
MODULE = "ValerieMediaCenter"
require valerie.inc

RDEPENDS_${PN} = "python-ctypes valerie-libshowiframe valerie-sync valerie-e2control"
RREPLACES_${PN} = "project-valerie"
RCONFLICTS_${PN} = "project-valerie"

do_compile() {
	sed -i "s/\"r001\"/\"r${SRCPV}\"/g" __init__.py
	python -O -m compileall ${S}
	echo "oe16" > oe.txt
}

do_install() {
	install -d ${D}${PLUGINDIR}
	install -m 644 *.py* *.xml *.png *.txt ${D}${PLUGINDIR}
	# Should i use "install" here?
	cp -r skins ${D}${PLUGINDIR}/
	rm -rf `find ${D}${PLUGINDIR}/skins -name '.svn' -type d`;
}

Change recipe to cope with extra subdirectories

DESCRIPTION = "Project Valerie - Media Center"
DEPENDS = "python"
PACKAGES = "${PN}"
PACKAGE_ARCH = "all"
MODULE = "ValerieMediaCenter"
require valerie.inc
PR = "r1"

RDEPENDS_${PN} = "python-ctypes valerie-libshowiframe valerie-sync valerie-e2control"
RREPLACES_${PN} = "project-valerie"
RCONFLICTS_${PN} = "project-valerie"

do_compile() {
	# remove .svn dirs
	rm -rf `find . -name '.svn' -type d`
	# patch SVN version
	sed -i "s/\"r001\"/\"r${SRCPV}\"/g" __init__.py
	# sanitize file modes
	chmod a-x *.py */*.py
	# Compile python files
	python -O -m compileall ${S}
	# Create weird file, required for the plugin to work
	echo "oe16" > oe.txt
}

do_install() {
	install -d ${D}${PLUGINDIR}
	cp -r . ${D}${PLUGINDIR}/
}


require navit.inc

SRCREV = "4345"
PV = "0.2.0+svnr${SRCPV}"
PR = "${INC_PR}.12"

S = "${WORKDIR}/navit"
SRC_URI += "svn://anonymous@navit.svn.sourceforge.net/svnroot/navit/trunk;module=navit;proto=https "

Upgrade to SVN snapshot 4495. Changed SVN URI to http (https does not work).

require navit.inc

SRCREV = "4495"
PV = "0.2.0+svnr${SRCPV}"
PR = "${INC_PR}.12"

S = "${WORKDIR}/navit"
SRC_URI += "svn://anonymous@navit.svn.sourceforge.net/svnroot/navit/trunk;module=navit;proto=http "


DESCRIPTION = "Python pyinotify: Linux filesystem events monitoring"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=ab173cade7965b411528464589a08382"

RDEPENDS:${PN} += "\
    ${PYTHON_PN}-ctypes \
    ${PYTHON_PN}-io \
    ${PYTHON_PN}-misc \
    ${PYTHON_PN}-shell \
    ${PYTHON_PN}-smtpd \
    ${PYTHON_PN}-threading \
"

SRC_URI[md5sum] = "8e580fa1ff3971f94a6f81672b76c406"
SRC_URI[sha256sum] = "9c998a5d7606ca835065cdabc013ae6c66eb9ea76a00a1e3bc6e0cfe2b4f71f4"

inherit pypi setuptools3

Add fcntl, logging to RDEPENDS

DESCRIPTION = "Python pyinotify: Linux filesystem events monitoring"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=ab173cade7965b411528464589a08382"

RDEPENDS:${PN} += "\
    ${PYTHON_PN}-ctypes \
    ${PYTHON_PN}-fcntl \
    ${PYTHON_PN}-io \
    ${PYTHON_PN}-logging \
    ${PYTHON_PN}-misc \
    ${PYTHON_PN}-shell \
    ${PYTHON_PN}-smtpd \
    ${PYTHON_PN}-threading \
"

SRC_URI[md5sum] = "8e580fa1ff3971f94a6f81672b76c406"
SRC_URI[sha256sum] = "9c998a5d7606ca835065cdabc013ae6c66eb9ea76a00a1e3bc6e0cfe2b4f71f4"

inherit pypi setuptools3


LINUX_VERSION = "5.15.19"
KBRANCH="xlnx_rebase_v5.15_LTS"
SRCREV = "63ddb06d5da5f9804b96213b697283dee17f42dd"

KCONF_AUDIT_LEVEL="0"

include linux-xlnx.inc

FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"

Update SRCREV and Version to 5.15.36

LINUX_VERSION = "5.15.36"
KBRANCH="xlnx_rebase_v5.15_LTS"
SRCREV = "9ef3be1de28ec61f4dad2b16b1097b7e2270a5a6"

KCONF_AUDIT_LEVEL="0"

include linux-xlnx.inc

FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"


SUMMARY = "Module for Low Power Actions on sitec systems S4 Comm Pro X"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e"
MAINTAINER = "Robert Lehmann <robert.lehmann@sitec-systems.de>"

inherit module

PR = "r1"
PV = "${KERNEL_VERSION}"

SRC_URI = "file://Makefile \
           file://main.c \
           file://COPYING \
           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.

Change license file to COREBASE file

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 = "r1"
PV = "${KERNEL_VERSION}"

SRC_URI = "file://Makefile \
           file://main.c \
           file://COPYING \
           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.


require dwarf.inc

SRC_URI += "file://fix-gennames.patch"

do_install() {
    install -d ${D}${libdir} ${D}${includedir}
    install -m 0755 libdwarf.a ${D}${libdir}
    install -m 0644 dwarf.h libdwarf.h ${D}${includedir}
}

ALLOW_EMPTY_${PN} = "1"

BBCLASSEXTEND = "native"

Revert "libdwarf: ship header in /usr/include/ like in other distros"

require dwarf.inc

SRC_URI += "file://fix-gennames.patch"

do_install() {
    install -d ${D}${libdir} ${D}${includedir}/libdwarf
    install -m 0755 libdwarf.a ${D}${libdir}
    install -m 0644 dwarf.h libdwarf.h ${D}${includedir}/libdwarf
}

ALLOW_EMPTY_${PN} = "1"

BBCLASSEXTEND = "native"


DESCRIPTION = "ARM Benchmarks"
HOMEPAGE = "https://gforge.ti.com/gf/project/am_benchmarks/"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://COPYING;md5=7aefb5e1cffc7b6a3ef18b803f957922"
SECTION = "system"

SRCREV = "76"
PR = "r0+svnr${SRCPV}"

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

S = "${WORKDIR}/trunk"

do_compile() {
	export CROSS_COMPILE=${TARGET_PREFIX}
	export ARCH=${TUNE_PKGARCH}
	# build the release version
	make release
}

do_install() {
	export ARCH=${TUNE_PKGARCH}
	make DESTDIR=${D} install
}

Fix compile and install issues

DESCRIPTION = "ARM Benchmarks"
HOMEPAGE = "https://gforge.ti.com/gf/project/am_benchmarks/"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://COPYING;md5=7aefb5e1cffc7b6a3ef18b803f957922"
SECTION = "system"

SRCREV = "76"
PR = "r1+svnr${SRCPV}"

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

S = "${WORKDIR}/trunk"

do_compile() {
	export CROSS_COMPILE=${TARGET_PREFIX}
	export ARCH=${ARMPKGARCH}
	# build the release version
	make release
}

do_install() {
	export ARCH=${ARMPKGARCH}
	make DESTDIR=${D} install
}


SUMMARY = "Python client for Redis key-value store"
DESCRIPTION = "The Python interface to the Redis key-value store."
HOMEPAGE = "http://github.com/andymccurdy/redis-py"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=51d9ad56299ab60ba7be65a621004f27"

SRC_URI[md5sum] = "048348d8cfe0b5d0bba2f4d835005c3b"
SRC_URI[sha256sum] = "a22ca993cea2962dbb588f9f30d0015ac4afcc45bee27d3978c0dbe9e97c6c0f"

inherit pypi setuptools3

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

Add python3-cryptography to RDEPENDS for python3-redis

SUMMARY = "Python client for Redis key-value store"
DESCRIPTION = "The Python interface to the Redis key-value store."
HOMEPAGE = "http://github.com/andymccurdy/redis-py"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=51d9ad56299ab60ba7be65a621004f27"

SRC_URI[md5sum] = "048348d8cfe0b5d0bba2f4d835005c3b"
SRC_URI[sha256sum] = "a22ca993cea2962dbb588f9f30d0015ac4afcc45bee27d3978c0dbe9e97c6c0f"

inherit pypi setuptools3

RDEPENDS_${PN} += "\
    ${PYTHON_PN}-datetime \
    ${PYTHON_PN}-cryptography \
"


SUMMARY = "A Qt5 library with input/output helpers"

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://LICENSE;md5=bd7b2c994af21d318bd2cd3b3f80c2d5"

require recipes-qt/qt5/qt5.inc

SRC_URI = "git://github.com/schnitzeltony/${BPN}.git;branch=master"

DEPENDS += "qtbase qtserialport"

PV = "0.4.0+git${SRCPV}"
SRCREV = "4edd92e915e56512dc32615bfe6ab2a807a9fdeb"

S="${WORKDIR}/git"

Upgrade to latest / change source location / cmake build

SUMMARY = "A Qt5 library with input/output helpers"

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://LICENSE;md5=bd7b2c994af21d318bd2cd3b3f80c2d5"

inherit cmake_qt5

SRC_URI = "git://github.com/ZeraGmbH/qtiohelper.git"

DEPENDS += "qtbase qtserialport"

PV = "0.4.0+git${SRCPV}"
SRCREV = "5c28d4765ce7de57702f4f529fed7da80b82e8d8"

S="${WORKDIR}/git"


SUMMARY = "Support packages for MagOS"
LICENSE = "MIT"
PR = "r0"

PACKAGE_ARCH = "${MACHINE_ARCH}"

inherit packagegroup

RDEPENDS_${PN} = " \
        lsb \
        lsbinitscripts \
	openssh \
	tzcode \
	usbutils \
"

Add bluez-noinst-tools to the image.

SUMMARY = "Support packages for MagOS"
LICENSE = "MIT"
PR = "r0"

PACKAGE_ARCH = "${MACHINE_ARCH}"

inherit packagegroup

RDEPENDS_${PN} = " \
        bluez5-noinst-tools \
        lsb \
        lsbinitscripts \
	openssh \
	tzcode \
	usbutils \
"


SUMMARY = "Supervisor: A Process Control System"
DESCRIPTION = "\
Supervisor is a client/server system that allows its users \
to monitorand control a number of processes on UNIX-like \
operating systems."
HOMEPAGE = "https://github.com/Supervisor/supervisor"
LICENSE = "BSD-4-Clause"
LIC_FILES_CHKSUM = "file://LICENSES.txt;md5=5b4e3a2172bba4c47cded5885e7e507e"

SRC_URI[sha256sum] = "40dc582ce1eec631c3df79420b187a6da276bbd68a4ec0a8f1f123ea616b97a2"

PYPI_PACKAGE = "supervisor"
inherit pypi systemd setuptools3
RDEPENDS:${PN} = "\
    ${PYTHON_PN}-meld3 \
"

SRC_URI += "file://supervisord.conf \
	    file://supervisor.service \
	"
SYSTEMD_SERVICE:${PN} = "supervisor.service"

do_install:append() {
	install -d ${D}${sysconfdir}/supervisor
	install -d ${D}${systemd_system_unitdir}

	install -m 0644 ${WORKDIR}/supervisord.conf ${D}${sysconfdir}/supervisor
	install -m 0644 ${WORKDIR}/supervisor.service ${D}${systemd_system_unitdir}
}

Add runtime dependencies for python3-supervisor

SUMMARY = "Supervisor: A Process Control System"
DESCRIPTION = "\
Supervisor is a client/server system that allows its users \
to monitorand control a number of processes on UNIX-like \
operating systems."
HOMEPAGE = "https://github.com/Supervisor/supervisor"
LICENSE = "BSD-4-Clause"
LIC_FILES_CHKSUM = "file://LICENSES.txt;md5=5b4e3a2172bba4c47cded5885e7e507e"

SRC_URI[sha256sum] = "40dc582ce1eec631c3df79420b187a6da276bbd68a4ec0a8f1f123ea616b97a2"

PYPI_PACKAGE = "supervisor"
inherit pypi systemd setuptools3
RDEPENDS:${PN} = "\
    python3-meld3 \
    python3-io \
    python3-xmlrpc \
    python3-resource \
    python3-setuptools \
    python3-smtpd \
"

SRC_URI += "file://supervisord.conf \
	    file://supervisor.service \
	"
SYSTEMD_SERVICE:${PN} = "supervisor.service"

do_install:append() {
	install -d ${D}${sysconfdir}/supervisor
	install -d ${D}${systemd_system_unitdir}

	install -m 0644 ${WORKDIR}/supervisord.conf ${D}${sysconfdir}/supervisor
	install -m 0644 ${WORKDIR}/supervisor.service ${D}${systemd_system_unitdir}
}


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

SRC_URI = "file://ArtifactRollback_Enter_00;subdir=${PN}-${PV} \
           file://Download_Enter_00;subdir=${PN}-${PV} \
           file://LICENSE;subdir=${PN}-${PV} \
           file://ArtifactCommit_Enter_00;subdir=${PN}-${PV} \
           file://Sync_Enter_00;subdir=${PN}-${PV} \
          "

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

inherit mender-state-scripts

do_compile() {
    cp ArtifactRollback_Enter_00 ${MENDER_STATE_SCRIPTS_DIR}/
    cp Download_Enter_00 ${MENDER_STATE_SCRIPTS_DIR}/
    cp ArtifactCommit_Enter_00 ${MENDER_STATE_SCRIPTS_DIR}/
    cp Sync_Enter_00 ${MENDER_STATE_SCRIPTS_DIR}/
}

RDEPENDS_${PN}_append = " netcat "

Use BPN rather than PN in master branch.

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

SRC_URI = "file://ArtifactRollback_Enter_00;subdir=${BPN}-${PV} \
           file://Download_Enter_00;subdir=${BPN}-${PV} \
           file://LICENSE;subdir=${BPN}-${PV} \
           file://ArtifactCommit_Enter_00;subdir=${BPN}-${PV} \
           file://Sync_Enter_00;subdir=${BPN}-${PV} \
          "

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

inherit mender-state-scripts

do_compile() {
    cp ArtifactRollback_Enter_00 ${MENDER_STATE_SCRIPTS_DIR}/
    cp Download_Enter_00 ${MENDER_STATE_SCRIPTS_DIR}/
    cp ArtifactCommit_Enter_00 ${MENDER_STATE_SCRIPTS_DIR}/
    cp Sync_Enter_00 ${MENDER_STATE_SCRIPTS_DIR}/
}

RDEPENDS_${PN}_append = " netcat "


SUMMARY = "A GNSS signal generator"
AUTHOR = "Javier Arribas <jarribas@cttc.es>"
HOMEPAGE = "https://bitbucket.org/jarribas/gnss-simulator/"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://COPYING;md5=31f43bdb1ab7b19dae6e891241ca0568"
PR = "r0"

DEPENDS = "volk boost armadillo gflags glog "

PV = "1.0.git"

SRCREV = "86dafacb8b86ce51006b5ecf48e791f5c8a9ed38"

# Make it easy to test against branches
GIT_BRANCH = "master"

SRC_URI = "git://bitbucket.org/jarribas/gnss-simulator.git;branch=${GIT_BRANCH};protocol=https "

S = "${WORKDIR}/git"

inherit cmake

PACKAGES = "gnss-simulator gnss-simulator-dbg"

FILES_${PN} = "${bindir}/gnss_sim \
  /usr/share/gnss-sim/* \
"

FILES_${PN}-dbg = " \
  /usr/bin/.debug/gnss_sim \
  /usr/src/debug/gnss-simulator/* \
"

do_rm_work() {
}

Use standard target filesystem paths

SUMMARY = "A GNSS signal generator"
AUTHOR = "Javier Arribas <jarribas@cttc.es>"
HOMEPAGE = "https://bitbucket.org/jarribas/gnss-simulator/"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://COPYING;md5=31f43bdb1ab7b19dae6e891241ca0568"
PR = "r0"

DEPENDS = "volk boost armadillo gflags glog "

PV = "1.0.git"

SRCREV = "86dafacb8b86ce51006b5ecf48e791f5c8a9ed38"

# Make it easy to test against branches
GIT_BRANCH = "master"

SRC_URI = "git://bitbucket.org/jarribas/gnss-simulator.git;branch=${GIT_BRANCH};protocol=https "

S = "${WORKDIR}/git"

inherit cmake

PACKAGES = "gnss-simulator gnss-simulator-dbg"

FILES_${PN} = "${bindir}/gnss_sim \
     ${datadir}/gnss-sim/* \
"

FILES_${PN}-dbg += " \
     ${prefix}/src/debug/gnss-simulator/* \
     ${bindir}/.debug/gnss_sim \
"

do_rm_work() {
}


require orbit2.inc

SRC_URI += "file://disable-ipv6.patch"
noipv6 = "${@base_contains('DISTRO_FEATURES', 'ipv6', '', '-DDISABLE_IPV6', d)}"
EXTRA_OEMAKE_append = " 'CFLAGS=${CFLAGS} ${noipv6}'"

SRC_URI[md5sum] = "10bfb957fa4a8935a0b4afaee7d71df7"
SRC_URI[sha256sum] = "62bfce3f678f9347a19c766944e8aef7b89bc32b25ac23eb3e4c25929ce8974c"

Update LICENSE field version to GPLv2

require orbit2.inc

LICENSE = "GPLv2+"

PR = "r1"

SRC_URI += "file://disable-ipv6.patch"
noipv6 = "${@base_contains('DISTRO_FEATURES', 'ipv6', '', '-DDISABLE_IPV6', d)}"
EXTRA_OEMAKE_append = " 'CFLAGS=${CFLAGS} ${noipv6}'"

SRC_URI[md5sum] = "10bfb957fa4a8935a0b4afaee7d71df7"
SRC_URI[sha256sum] = "62bfce3f678f9347a19c766944e8aef7b89bc32b25ac23eb3e4c25929ce8974c"


require u-boot-ti.inc

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

COMPATIBLE_MACHINE = "ti33x"

DEFAULT_PREFERENCE = "-1"

PR = "r5+gitr${SRCPV}"

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

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

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

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

Update am335x to use latest u-boot for 3.2 kernel

require u-boot-ti.inc

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

COMPATIBLE_MACHINE = "ti33x"

DEFAULT_PREFERENCE = "-1"

PR = "r6+gitr${SRCPV}"

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

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

SRCREV = "540aa6fbb0c9274bda598f7e8819ed28259cad6b"

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


SUMMARY = "Help browser for the GNOME desktop"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = " \
    file://COPYING;md5=6e1b9cb787e76d7e6946887a65caa754 \
"

inherit gnomebase itstool autotools-brokensep gsettings gettext gtk-doc features_check mime-xdg

# for webkitgtk
REQUIRED_DISTRO_FEATURES = "x11"

SRC_URI[archive.sha256sum] = "456a6415647bceeb0159b90b3553ff328728cf29a608fce08024232504ccb874"

DEPENDS += " \
    libxml2-native \
    glib-2.0-native \
    gtk+3 \
    appstream-glib \
    libxslt \
    sqlite3 \
    webkitgtk \
    yelp-xsl \
"

do_configure:prepend() {
    export ITSTOOL=${STAGING_BINDIR_NATIVE}/itstool
}

FILES:${PN} += " \
    ${datadir}/metainfo \
    ${datadir}/yelp-xsl \
"

RDEPENDS:${PN} += "yelp-xsl"

Add option to support webkit2gtk-4-0

SUMMARY = "Help browser for the GNOME desktop"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = " \
    file://COPYING;md5=6e1b9cb787e76d7e6946887a65caa754 \
"

inherit gnomebase itstool autotools-brokensep gsettings gettext gtk-doc features_check mime-xdg

# for webkitgtk
REQUIRED_DISTRO_FEATURES = "x11"

SRC_URI[archive.sha256sum] = "456a6415647bceeb0159b90b3553ff328728cf29a608fce08024232504ccb874"

DEPENDS += " \
    libxml2-native \
    glib-2.0-native \
    gtk+3 \
    appstream-glib \
    libxslt \
    sqlite3 \
    webkitgtk \
    yelp-xsl \
"
PACKAGECONFIG ?= ""

# Enable if soup3 is enabled in webkit recipe
PACKAGECONFIG[soup3] = ",--with-webkit2gtk-4-0,"

do_configure:prepend() {
    export ITSTOOL=${STAGING_BINDIR_NATIVE}/itstool
}

FILES:${PN} += " \
    ${datadir}/metainfo \
    ${datadir}/yelp-xsl \
"

RDEPENDS:${PN} += "yelp-xsl"


inherit features_check

REQUIRED_DISTRO_FEATURES = "canps"

inherit esw python3native

DEPENDS += "xilstandalone "

ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/canps/src/"
ESW_COMPONENT_NAME = "libcanps.a"

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

Fix naming in the recipe

inherit features_check

REQUIRED_DISTRO_FEATURES = "xxvethernet"

inherit esw python3native

DEPENDS += "xilstandalone"

ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/xxvethernet/src/"
ESW_COMPONENT_NAME = "libxxvethernet.a"

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


require recipes-qt/qt5/qt5-git.inc
require recipes-qt/qt5/${PN}.inc

# qtwayland wasn't released yet, last tag before this SRCREV is 5.0.0-beta1
# qt5-git PV is only to indicate that this recipe is compatible with qt5 5.2.1

SRC_URI = "git://github.com/webOS-ports/qtwayland;branch=webOS-ports/master;protocol=git"
SRCREV = "69ce77c74641bf0c66f13af7e5d6df071d0c41fc"

FILES_${PN} += "${OE_QMAKE_PATH_PLUGINS}/wayland-graphics-integration"
FILES_${PN}-dbg += "${OE_QMAKE_PATH_PLUGINS}/wayland-graphics-integration/*/.debug"

QT_VERSION ?= "5.2.1"

do_install_append() {
    # do install files created by qtwaylandscanner
    install ${B}/include/QtCompositor/${QT_VERSION}/QtCompositor/private/qwayland-server-*.h ${D}${OE_QMAKE_PATH_QT_HEADERS}/QtCompositor/${QT_VERSION}/QtCompositor/private
    install ${B}/include/QtCompositor/${QT_VERSION}/QtCompositor/private/*protocol*.h ${D}${OE_QMAKE_PATH_QT_HEADERS}/QtCompositor/${QT_VERSION}/QtCompositor/private
}

Revert "qtwayland: reverting back to old version"

require recipes-qt/qt5/qt5-git.inc
require recipes-qt/qt5/${PN}.inc

# qtwayland wasn't released yet, last tag before this SRCREV is 5.0.0-beta1
# qt5-git PV is only to indicate that this recipe is compatible with qt5 5.2.1

SRC_URI = "git://github.com/webOS-ports/qtwayland;branch=webOS-ports/master-next;protocol=git"
SRCREV = "4600a18b90740bea57ad5f027aedb18641aec969"

FILES_${PN} += "${OE_QMAKE_PATH_PLUGINS}/wayland-graphics-integration"
FILES_${PN}-dbg += "${OE_QMAKE_PATH_PLUGINS}/wayland-graphics-integration/*/.debug"

QT_VERSION ?= "5.3.0"

do_install_append() {
    # do install files created by qtwaylandscanner
    install ${B}/include/QtCompositor/${QT_VERSION}/QtCompositor/private/qwayland-server-*.h ${D}${OE_QMAKE_PATH_QT_HEADERS}/QtCompositor/${QT_VERSION}/QtCompositor/private
    install ${B}/include/QtCompositor/${QT_VERSION}/QtCompositor/private/*protocol*.h ${D}${OE_QMAKE_PATH_QT_HEADERS}/QtCompositor/${QT_VERSION}/QtCompositor/private
}


COMPATIBLE_MACHINE = "raspberrypi"

require linux.inc

DESCRIPTION = "Linux kernel for the RaspberryPi board"

PR = "r1"

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

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

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

S = "${WORKDIR}/git"

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

KERNEL_DEFCONFIG = "bcmrpi_defconfig"

PARALLEL_MAKEINST = ""

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

Fix build issue with make 3.82

COMPATIBLE_MACHINE = "raspberrypi"

require linux.inc

DESCRIPTION = "Linux kernel for the RaspberryPi board"

PR = "r1"

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

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

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

S = "${WORKDIR}/git"

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

KERNEL_DEFCONFIG = "bcmrpi_defconfig"

PARALLEL_MAKEINST = ""

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

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


DESCRIPTION = "Edje is a complex graphical design & layout library."
# can also install vim data files
DEPENDS = "virtual/evas virtual/ecore eet embryo edje-native virtual/imlib2"
LICENSE = "MIT"
PR = "r3"

PACKAGES += "edje-utils"
FILES_edje-utils += "${bindir} ${datadir}/edje/data/template ${datadir}/edje/include"
RDEPENDS_edje-utils += "cpp"

inherit efl

FILES_${SRCNAME}-themes = ""

SRC_URI += "cvs://anonymous@thinktux.net/root;module=e17/libs/edje/m4;date=20060101"

LEAD_SONAME = "libedje.so"

do_configure_prepend() {
	install -d "${S}/m4"
	install "${WORKDIR}/m4/"*.m4 "${S}/m4"
	aclocal -I m4
}

Remove unneeded files from edje-utils, add dependency on embryo-utils

DESCRIPTION = "Edje is a complex graphical design & layout library."
# can also install vim data files
DEPENDS = "virtual/evas virtual/ecore eet embryo edje-native virtual/imlib2"
LICENSE = "MIT"
PR = "r4"

PACKAGES = "edje-utils"
FILES_edje-utils = "${bindir}/edje ${bindir}/edje_* ${datadir}/edje/data/template ${datadir}/edje/include"
RDEPENDS_edje-utils = "embryo-utils cpp"

inherit efl

FILES_${SRCNAME}-themes = ""

SRC_URI += "cvs://anonymous@thinktux.net/root;module=e17/libs/edje/m4;date=20060101"

LEAD_SONAME = "libedje.so"

do_configure_prepend() {
	install -d "${S}/m4"
	install "${WORKDIR}/m4/"*.m4 "${S}/m4"
	aclocal -I m4
}


# packagegroup definitions to help the GNSS-SDR community build images
# they like.

LICENSE = "MIT"

inherit packagegroup

PACKAGES = " \
    packagegroup-gnss-sdr-base \
    packagegroup-gnss-sdr-bin \
    packagegroup-gnss-sdr-drivers \
"

PROVIDES = "${PACKAGES}"

SUMMARY_packagegroup-gnss-sdr-base = "Required packages."
RDEPENDS_packagegroup-gnss-sdr-base = " \
    gnuradio \
    gflags \
    glog \
    armadillo \
    gtest \
    gnutls \
    log4cpp \
    matio \
    python-mako \
    python-six \
    packagegroup-gnss-sdr-drivers \
"

SUMMARY_packagegroup-gnss-sdr-bin = "GNSS-SDR binary."
DEPENDS_packagegroup-gnss-sdr-bin = " \
    gnss-sdr \
"

SUMMARY_packagegroup-gnss-sdr-drivers = "RF front-end drivers."
DEPENDS_packagegroup-gnss-sdr-drivers = " \
    uhd \
    rtl-sdr \
    libbladerf \
    libbladerf-bin \
    gr-osmosdr \
    gr-iio \
"

Add libiio and gr-iio to target

# packagegroup definitions to help the GNSS-SDR community build images
# they like.

LICENSE = "MIT"

inherit packagegroup

PACKAGES = " \
    packagegroup-gnss-sdr-base \
    packagegroup-gnss-sdr-bin \
    packagegroup-gnss-sdr-drivers \
"

PROVIDES = "${PACKAGES}"

SUMMARY_packagegroup-gnss-sdr-base = "Required packages."
RDEPENDS_packagegroup-gnss-sdr-base = " \
    gnuradio \
    gflags \
    glog \
    armadillo \
    gtest \
    gnutls \
    log4cpp \
    matio \
    python-mako \
    python-six \
    uhd \
    rtl-sdr \
    libbladerf \
    libbladerf-bin \
    gr-osmosdr \
    gr-iio \
"

SUMMARY_packagegroup-gnss-sdr-bin = "GNSS-SDR binary."
DEPENDS_packagegroup-gnss-sdr-bin = " \
    gnss-sdr \
"

SUMMARY_packagegroup-gnss-sdr-drivers = "RF front-end drivers."
DEPENDS_packagegroup-gnss-sdr-drivers = " \
    uhd \
    rtl-sdr \
    libbladerf \
    libbladerf-bin \
    gr-osmosdr \
    gr-iio \
"


require version-image.inc

SUMMARY = "An image with the GNSS-SDR binary and the Xfce desktop environment"
LICENSE = "MIT"
PR = "r6"

inherit core-image image-buildinfo

require recipes-images/images/geniux-users.inc

IMAGE_FEATURES += " \
    ssh-server-openssh \
    splash \
"

EXTRA_IMAGE_FEATURES += " \
    package-management \
    tools-profile \
"

IMAGE_INSTALL:append = " kernel-modules resize-rootfs"

CORE_IMAGE_EXTRA_INSTALL += " \
    packagegroup-core-boot \
    packagegroup-gnss-sdr-bin \
    packagegroup-gnss-sdr-base \
    packagegroup-gnss-sdr-base-extended \
    packagegroup-gnss-sdr-drivers \
    packagegroup-xfce-extended \
    ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xauth', '', d)} \
    e2fsprogs-resize2fs \
"

IMAGE_FSTYPES:append = " wic.xz wic.bmap"
IMAGE_FSTYPES:remove:qemuall = "wic.xz wic.bmap"
WKS_FILE ??= "${TOPDIR}/../meta-gnss-sdr/wic/sdimage-geniux.wks"

Add u-boot-zynq-uenv to zedboard-zynq7, so the wic image can be built

require version-image.inc

SUMMARY = "An image with the GNSS-SDR binary and the Xfce desktop environment"
LICENSE = "MIT"
PR = "r6"

inherit core-image image-buildinfo

require recipes-images/images/geniux-users.inc

IMAGE_FEATURES += " \
    ssh-server-openssh \
    splash \
"

EXTRA_IMAGE_FEATURES += " \
    package-management \
    tools-profile \
"

IMAGE_INSTALL:append = " kernel-modules resize-rootfs"

CORE_IMAGE_EXTRA_INSTALL += " \
    packagegroup-core-boot \
    packagegroup-gnss-sdr-bin \
    packagegroup-gnss-sdr-base \
    packagegroup-gnss-sdr-base-extended \
    packagegroup-gnss-sdr-drivers \
    packagegroup-xfce-extended \
    ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xauth', '', d)} \
    e2fsprogs-resize2fs \
"

IMAGE_INSTALL:append:zedboard-zynq7 = " u-boot-zynq-uenv"
IMAGE_FSTYPES:append = " wic.xz wic.bmap"
IMAGE_FSTYPES:remove:qemuall = "wic.xz wic.bmap"
WKS_FILE ??= "${TOPDIR}/../meta-gnss-sdr/wic/sdimage-geniux.wks"


DESCRIPTION = "This software provides support for the Tag Image File Format (TIFF)"
LICENSE = ""
HOMEPAGE = "http://www.remotesensing.org/libtiff/"
DEPENDS = "zlib jpeg"
PR = "r3"

SRC_URI = "http://dl.maptools.org/dl/libtiff/old/tiff-${PV}.tar.gz \
	  file://configure.patch;patch=1"

inherit autotools

do_stage() {
	autotools_stage_includes
	install -d ${STAGING_LIBDIR}
	oe_libinstall -C libtiff -a -so libtiff ${STAGING_LIBDIR}
	oe_libinstall -C libtiff -a -so libtiffxx ${STAGING_LIBDIR}

}

PACKAGES =+ "tiffxx tiffxx-dbg tiffxx-dev tiff-utils tiff-utils-dbg"
FILES_tiffxx = "${libdir}/libtiffxx.so.*"
FILES_tiffxx-dev = "${libdir}/libtiffxx.so ${libdir}/libtiffxx.*a"
FILES_tiffxx-dbg = "${libdir}/.debug/libtiffxx.so*"
FILES_tiff-utils = "${bindir}/*"
FILES_tiff-utils-dbg = "${bindir}/.debug/"

Add lzo to dependencies, otherwise it will try to link against a build host lzo.

DESCRIPTION = "This software provides support for the Tag Image File Format (TIFF)"
LICENSE = ""
HOMEPAGE = "http://www.remotesensing.org/libtiff/"
DEPENDS = "zlib jpeg lzo"
PR = "r4"

SRC_URI = "http://dl.maptools.org/dl/libtiff/old/tiff-${PV}.tar.gz \
	  file://configure.patch;patch=1"

inherit autotools

do_stage() {
	autotools_stage_includes
	install -d ${STAGING_LIBDIR}
	oe_libinstall -C libtiff -a -so libtiff ${STAGING_LIBDIR}
	oe_libinstall -C libtiff -a -so libtiffxx ${STAGING_LIBDIR}

}

PACKAGES =+ "tiffxx tiffxx-dbg tiffxx-dev tiff-utils tiff-utils-dbg"
FILES_tiffxx = "${libdir}/libtiffxx.so.*"
FILES_tiffxx-dev = "${libdir}/libtiffxx.so ${libdir}/libtiffxx.*a"
FILES_tiffxx-dbg = "${libdir}/.debug/libtiffxx.so*"
FILES_tiff-utils = "${bindir}/*"
FILES_tiff-utils-dbg = "${bindir}/.debug/"


SUMMARY = "KDE standard image viewer"

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=5a3169a2d39a757efd8b7aa66a69d97b"

DEPENDS = "kdelibs4 automoc4-native exiv2"
# for videos?
RDEPENDS = "libqtphonon4"

inherit kde_cmake kde_rdepends kde_without_docs

SRC_URI = "git://anongit.kde.org/gwenview.git;branch=master \
    file://0001-Without-docs.patch \
    file://0002-Fix-Phonon-to-phonon-in-includes.patch"

## Tag 4.8.0
SRCREV = "043cb5a4338c9880a0aefaafa669b9eefe564ff1"

PV = "4.8.0+git${SRCPV}"

S = "${WORKDIR}/git"

FILES_${PN} += "${datadir} \
    ${libdir}/kde4/*.so"

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

Add missing depends to kde-baseapps

SUMMARY = "KDE standard image viewer"

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=5a3169a2d39a757efd8b7aa66a69d97b"

DEPENDS = "kdelibs4 automoc4-native exiv2 kde-baseapps"
# for videos?
RDEPENDS = "libqtphonon4"

inherit kde_cmake kde_rdepends kde_without_docs

SRC_URI = "git://anongit.kde.org/gwenview.git;branch=master \
    file://0001-Without-docs.patch \
    file://0002-Fix-Phonon-to-phonon-in-includes.patch"

## Tag 4.8.0
SRCREV = "043cb5a4338c9880a0aefaafa669b9eefe564ff1"

PV = "4.8.0+git${SRCPV}"

S = "${WORKDIR}/git"

FILES_${PN} += "${datadir} \
    ${libdir}/kde4/*.so"

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


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

DESCRIPTION = "OpenWrt uqmi utility"
HOMEPAGE = "http://git.openwrt.org/?p=project/uqmi.git;a=summary"
LICENSE = "GPL-2.0"
LIC_FILES_CHKSUM = "file://main.c;beginline=1;endline=20;md5=3f7041e5710007661d762bb6043a69c6"
SECTION = "base"
DEPENDS = "libubox json-c"

SRCREV = "c61815319c1c0e76898048a19151f30844a6989c"
SRC_URI = "git://git.openwrt.org/project/uqmi.git \
          "

inherit cmake pkgconfig

S = "${WORKDIR}/git"

FILES_SOLIBSDEV = ""

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

Set build dir as same source dir

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

DESCRIPTION = "OpenWrt uqmi utility"
HOMEPAGE = "http://git.openwrt.org/?p=project/uqmi.git;a=summary"
LICENSE = "GPL-2.0"
LIC_FILES_CHKSUM = "file://main.c;beginline=1;endline=20;md5=3f7041e5710007661d762bb6043a69c6"
SECTION = "base"
DEPENDS = "libubox json-c"

SRCREV = "c61815319c1c0e76898048a19151f30844a6989c"
SRC_URI = "git://git.openwrt.org/project/uqmi.git \
          "

inherit cmake pkgconfig

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

FILES_SOLIBSDEV = ""

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


LICENSE = "Open Market"
DESCRIPTION = "Fast CGI backend (web server to CGI handler) library"
PR = "r0"

SRC_URI = "http://www.fastcgi.com/dist/fcgi-${PV}.tar.gz"

S=${WORKDIR}/fcgi-${PV}

LEAD_SONAME = "libfcgi.so*"

inherit autotools pkgconfig

do_stage() {
	autotools_stage_all
}

do_compile() {
}

Disable parallel build, it's broken

LICENSE = "Open Market"
DESCRIPTION = "Fast CGI backend (web server to CGI handler) library"
PR = "r1"

SRC_URI = "http://www.fastcgi.com/dist/fcgi-${PV}.tar.gz"

S=${WORKDIR}/fcgi-${PV}

LEAD_SONAME = "libfcgi.so*"

PARALLEL_MAKE=""

inherit autotools pkgconfig

do_stage() {
	autotools_stage_all
}

do_compile() {
}


SUMMARY = "Engrave is an Edje Editing Library"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=edf2d968b9eb026bfa82cccbd0e6f9f5"
# also requires yacc and lex on host
DEPENDS = "evas ecore"
PV = "0.0.0+svnr${SRCPV}"
SRCREV = "${EFL_SRCREV}"

inherit efl
SRC_URI = "${E_SVN}/OLD;module=${SRCNAME};protocol=http;scmdata=keep"
S = "${WORKDIR}/${SRCNAME}"

Use autotools-brokensep to avoid build failures

SUMMARY = "Engrave is an Edje Editing Library"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=edf2d968b9eb026bfa82cccbd0e6f9f5"
# also requires yacc and lex on host
DEPENDS = "evas ecore"
PV = "0.0.0+svnr${SRCPV}"
SRCREV = "${EFL_SRCREV}"

inherit efl autotools-brokensep
SRC_URI = "${E_SVN}/OLD;module=${SRCNAME};protocol=http;scmdata=keep"
S = "${WORKDIR}/${SRCNAME}"


#
#   Copyright (C) 2015 Pelagicore AB
#   All rights reserved.
#
DESCRIPTION = "dLeyna Server"
DEPENDS = "dleyna-core"
EXTRA_OECONF += " --enable-never-quit "
require dleyna-git.inc

inherit systemd
SRCREV = "b5394e2be1cfaefe1f442a7cacc1c3a1f0c1c1ff"
SRC_URI += "file://dleyna.service"

SYSTEMD_SERVICE_${PN} = "dleyna.service"
SYSTEMD_AUTO_ENABLE = "enable"

do_install_append() {
               install -Dm0644 ${WORKDIR}/dleyna.service ${D}/lib/systemd/system/dleyna.service
}

Enable debug output (defaults to syslog)

#
#   Copyright (C) 2015 Pelagicore AB
#   All rights reserved.
#
DESCRIPTION = "dLeyna Server"
DEPENDS = "dleyna-core"
EXTRA_OECONF += " --enable-never-quit --enable-debug"
require dleyna-git.inc

inherit systemd
SRCREV = "b5394e2be1cfaefe1f442a7cacc1c3a1f0c1c1ff"
SRC_URI += "file://dleyna.service"

SYSTEMD_SERVICE_${PN} = "dleyna.service"
SYSTEMD_AUTO_ENABLE = "enable"

do_install_append() {
               install -Dm0644 ${WORKDIR}/dleyna.service ${D}/lib/systemd/system/dleyna.service
}


LICENSE = "LGPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=5c213a7de3f013310bd272cdb6eb7a24"

inherit kde_cmake kde_rdepends

DEPENDS = "kde-workspace kde-runtime soprano shared-desktop-ontologies kdelibs4 libkactivities4"

RDEPENDS_${PN} = " kde-workspace libkactivities4 plasma-active shared-desktop-ontologies"

RRECOMMENDS_${PN} = "kde-wallpapers virtual/plasma-active-startscript"

SRC_URI = "git://anongit.kde.org/contour.git;branch=master"
#2012-04-11
SRCREV = "e0d27c737853298015dabe3fe9c1a4bc92c13cc0"

PV = "Active-Two+git${SRCPV}"
S = "${WORKDIR}/git"

FILES_${PN} += "\
		${libdir}/kde4/*.so \
		\
		${datadir}/apps/contour/* \
		${datadir}/apps/plasma/* \
		${datadir}/kde4/* \
		${datadir}/autostart/* \
	       "

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

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

Remove virtual/plasma-active-startscript this will be handled by the image

LICENSE = "LGPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=5c213a7de3f013310bd272cdb6eb7a24"

inherit kde_cmake kde_rdepends

DEPENDS = "kde-workspace kde-runtime soprano shared-desktop-ontologies kdelibs4 libkactivities4"

RDEPENDS_${PN} = " kde-workspace libkactivities4 plasma-active shared-desktop-ontologies"

RRECOMMENDS_${PN} = "kde-wallpapers"

SRC_URI = "git://anongit.kde.org/contour.git;branch=master"
#2012-04-11
SRCREV = "e0d27c737853298015dabe3fe9c1a4bc92c13cc0"

PV = "Active-Two+git${SRCPV}"

S = "${WORKDIR}/git"

FILES_${PN} += "\
    ${libdir}/kde4/*.so \
    \
    ${datadir}/apps/contour/* \
    ${datadir}/apps/plasma/* \
    ${datadir}/kde4/* \
    ${datadir}/autostart/* \
    "

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

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


DESCRIPTION = "Mender artifact information"
HOMEPAGE = "https://mender.io"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"

FILESPATH = "${COMMON_LICENSE_DIR}"
SRC_URI = "file://Apache-2.0"

S = "${WORKDIR}"

inherit allarch

PV = "0.1"

do_compile() {
    if [ -z "${MENDER_ARTIFACT_NAME}" ]; then
        bberror "Need to define MENDER_ARTIFACT_NAME variable."
    fi

    cat > ${B}/artifact_info << END
artifact_name=${MENDER_ARTIFACT_NAME}
END
}

do_install() {
    install -d ${D}${sysconfdir}/mender
    install -m 0644 -t ${D}${sysconfdir}/mender ${B}/artifact_info
}

FILES_${PN} += " \
    ${sysconfdir}/mender/artifact_info \
"

Add missing exit command on error.

DESCRIPTION = "Mender artifact information"
HOMEPAGE = "https://mender.io"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"

FILESPATH = "${COMMON_LICENSE_DIR}"
SRC_URI = "file://Apache-2.0"

S = "${WORKDIR}"

inherit allarch

PV = "0.1"

do_compile() {
    if [ -z "${MENDER_ARTIFACT_NAME}" ]; then
        bberror "Need to define MENDER_ARTIFACT_NAME variable."
        exit 1
    fi

    cat > ${B}/artifact_info << END
artifact_name=${MENDER_ARTIFACT_NAME}
END
}

do_install() {
    install -d ${D}${sysconfdir}/mender
    install -m 0644 -t ${D}${sysconfdir}/mender ${B}/artifact_info
}

FILES_${PN} += " \
    ${sysconfdir}/mender/artifact_info \
"


SUMMARY = "Simple DirectMedia Layer truetype font library"
SECTION = "libs"
DEPENDS = "virtual/libsdl2 freetype virtual/libgl"
LICENSE = "Zlib"
LIC_FILES_CHKSUM = "file://COPYING.txt;md5=e98cfd01ca78f683e9d035795810ce87"

SRC_URI = "http://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-${PV}.tar.gz \
           file://automake_foreign.patch \
           "
SRC_URI[sha256sum] = "7234eb8883514e019e7747c703e4a774575b18d435c22a4a29d068cb768a2251"

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

inherit autotools pkgconfig features_check

# links to libGL.so
REQUIRED_DISTRO_FEATURES += "opengl"

do_configure:prepend() {
    # Removing these files fixes a libtool version mismatch.
    MACROS="libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4"

    for i in ${MACROS}; do
        rm -f ${S}/acinclude/$i
    done
}
ASNEEDED = ""

Change depenendency from virtual/libgl to virtual/egl

SUMMARY = "Simple DirectMedia Layer truetype font library"
SECTION = "libs"
DEPENDS = "virtual/libsdl2 freetype virtual/egl"
LICENSE = "Zlib"
LIC_FILES_CHKSUM = "file://COPYING.txt;md5=e98cfd01ca78f683e9d035795810ce87"

SRC_URI = "http://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-${PV}.tar.gz \
           file://automake_foreign.patch \
           "
SRC_URI[sha256sum] = "7234eb8883514e019e7747c703e4a774575b18d435c22a4a29d068cb768a2251"

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

inherit autotools pkgconfig features_check

# links to libGL.so
REQUIRED_DISTRO_FEATURES += "opengl"

do_configure:prepend() {
    # Removing these files fixes a libtool version mismatch.
    MACROS="libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4"

    for i in ${MACROS}; do
        rm -f ${S}/acinclude/$i
    done
}
ASNEEDED = ""


SUMMARY = "Data files for usbmodeswitch"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"

inherit allarch

SRC_URI = "http://www.draisberghof.de/usb_modeswitch/${BP}.tar.bz2"
SRC_URI[md5sum] = "0cc107cd0c4c83df0d9400c999e21dfd"
SRC_URI[sha256sum] = "e2dcfd9d28928d8d8f03381571a23442b3c50d48d343bc40a1a07d01662738d1"

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

RDEPENDS_${PN} = "usb-modeswitch (>= 2.4.0)"
FILES_${PN} += "${base_libdir}/udev/rules.d/ \
                ${datadir}/usb_modeswitch"

Add dep on native tcl

SUMMARY = "Data files for usbmodeswitch"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"

inherit allarch

DEPENDS += "tcl-native"

SRC_URI = "http://www.draisberghof.de/usb_modeswitch/${BP}.tar.bz2"
SRC_URI[md5sum] = "0cc107cd0c4c83df0d9400c999e21dfd"
SRC_URI[sha256sum] = "e2dcfd9d28928d8d8f03381571a23442b3c50d48d343bc40a1a07d01662738d1"

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

RDEPENDS_${PN} = "usb-modeswitch (>= 2.4.0)"
FILES_${PN} += "${base_libdir}/udev/rules.d/ \
                ${datadir}/usb_modeswitch"


# Add DSP and gstreamer packages to console image

require tvp5151-console-image.bb

PR = "1"

DSP_INSTALL += " \
    gstreamer-ti \
    gst-plugins-good-meta \
    gst-plugins-bad-meta \
 "

QT_TOOLS = " \
    qt4-embedded-dev\
    qt4-embedded \
 "

IMAGE_INSTALL += " \
    ${DSP_INSTALL} \
    ${QT_TOOLS} \
 "

export IMAGE_BASENAME = "tvp5151-dsp-image"

Add gstreamer base plugins to dsp image (for videotestsrc)

# Add DSP and gstreamer packages to console image

require tvp5151-console-image.bb

PR = "1"

DSP_INSTALL += " \
    gstreamer-ti \
    gst-plugins-base-meta \
    gst-plugins-good-meta \
    gst-plugins-bad-meta \
 "

QT_TOOLS = " \
    qt4-embedded-dev\
    qt4-embedded \
 "

IMAGE_INSTALL += " \
    ${DSP_INSTALL} \
    ${QT_TOOLS} \
 "

export IMAGE_BASENAME = "tvp5151-dsp-image"


SUMMMARY = "PLOS Testing tools/applications"
LICENSE = "MIT"
PR = "r1"

inherit packagegroup

# Requires touchscreen in machine features to work
USE_TS = " \
    evtest \
"

# Different touchscreen tools
TSTOOLS = " \
    ${@base_contains('MACHINE_FEATURES', 'touchscreen', '${USE_TS}', '',d)} \
"

# Different simple serial bus tools
SERBUSTOOLS = " \
    i2c-tools \
"

RDEPENDS_${PN} = " \
    ${TSTOOLS} \
    ${SERBUSTOOLS} \
    webmin \
"

Update tools testapp package group

SUMMMARY = "PLOS Testing tools/applications"
LICENSE = "MIT"
PR = "r1"

inherit packagegroup

# Requires touchscreen in machine features to work
USE_TS = " \
    evtest \
"

# Different touchscreen tools
#TSTOOLS = " \
#    ${@base_contains('MACHINE_FEATURES', 'touchscreen', '${USE_TS}', '',d)} \
#"

# Different simple serial bus tools
SERBUSTOOLS = " \
    i2c-tools \
"

RDEPENDS_${PN} = " \
    ${TSTOOLS} \
    ${SERBUSTOOLS} \
    webmin \
"


DESCRIPTION = "Driver for zd1211 family of wireless USB Dongles"
PRIORITY = "optional"
SECTION = "kernel/modules"
MAINTAINER = "dyoung <dyoung8888@yahoo.com>"
LICENSE = "GPL"
PR = "r1"
DEPENDS = "wireless-tools"

SRC_URI = "http://download.sourceforge.net/zd1211/sf_zd1211_${PV}_src.tar.gz \
	file://makefile.patch;patch=1"

S = "${WORKDIR}/zd1211"

inherit module

#do_compile_prepend() {
#	cp -f ${WORKDIR}/Makefile ${S}/
#}

do_compile () {
        unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS CC LD CPP
        oe_runmake 'KSRC=${STAGING_KERNEL_DIR}' \
        	   'KDIR=${STAGING_KERNEL_DIR}' \
                   'CC="${KERNEL_CC}"' \
                   'LD="${KERNEL_LD}"'
}

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

Change DEPENDS to RDEPENDS for wireless-tools

DESCRIPTION = "Driver for zd1211 family of wireless USB Dongles"
PRIORITY = "optional"
SECTION = "kernel/modules"
MAINTAINER = "dyoung <dyoung8888@yahoo.com>"
LICENSE = "GPL"
PR = "r2"
RDEPENDS = "wireless-tools"

SRC_URI = "http://download.sourceforge.net/zd1211/sf_zd1211_${PV}_src.tar.gz \
	file://makefile.patch;patch=1"

S = "${WORKDIR}/zd1211"

inherit module

#do_compile_prepend() {
#	cp -f ${WORKDIR}/Makefile ${S}/
#}

do_compile () {
        unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS CC LD CPP
        oe_runmake 'KSRC=${STAGING_KERNEL_DIR}' \
        	   'KDIR=${STAGING_KERNEL_DIR}' \
                   'CC="${KERNEL_CC}"' \
                   'LD="${KERNEL_LD}"'
}

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


LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://splash/main.qml;beginline=2;endline=18;md5=ab5c18ec5cfda84f5423a5ebe94dcb01"

inherit kde-workaround-tmp
require kde4.inc

SRC_URI = "svn://anonsvn.kde.org/home/kde;module=trunk/playground/base/plasma/kde-artwork-active;proto=svn"
SRCREV = "1266939"

PV = "0.2+svnr${SRCPV}"

S = "${WORKDIR}/trunk/playground/base/plasma/kde-artwork-active/"

FILES_${PN} += "\
		${datadir}/apps/ksplash/* \
		${datadir}/apps/kscreenlocker/* \
		${datadir}/wallpapers/* \
	       "

Fix cross compiling issue gracefully

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://splash/main.qml;beginline=2;endline=18;md5=ab5c18ec5cfda84f5423a5ebe94dcb01"

DEPENDS = "kdelibs4"

require kde4.inc

SRC_URI = "svn://anonsvn.kde.org/home/kde;module=trunk/playground/base/plasma/kde-artwork-active;proto=svn"
SRCREV = "1266939"

PV = "0.2+svnr${SRCPV}"

S = "${WORKDIR}/trunk/playground/base/plasma/kde-artwork-active/"

FILES_${PN} += "\
		${datadir}/apps/ksplash/* \
		${datadir}/apps/kscreenlocker/* \
		${datadir}/wallpapers/* \
	       "

EXTRA_OECMAKE =+ "-DOE_CROSSCOMPILING=TRUE"


#
# Base recipe: meta/recipes-support/popt/popt_1.16.bb
# Base branch: daisy
#
SUMMARY = "Library for parsing command line options"
HOMEPAGE = "http://rpm5.org/"

PR = "r0"

inherit debian-package

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=cb0613c30af2a8249b8dcc67d3edb06d"

inherit autotools gettext

# popt_fix_for_automake-1.12.patch: already applied in 1.16-10
SRC_URI += " \
file://pkgconfig_fix.patch \
file://disable_tests.patch \
"

# Preprocessing directive #elseif should be #elif
# so change it.
do_compile_prepend(){
	sed -i s@"#elseif"@"#elif"@g ${S}/system.h
}

Add native and nativesdk to BBCLASSEXTEND

#
# Base recipe: meta/recipes-support/popt/popt_1.16.bb
# Base branch: daisy
#
SUMMARY = "Library for parsing command line options"
HOMEPAGE = "http://rpm5.org/"

PR = "r0"

inherit debian-package

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=cb0613c30af2a8249b8dcc67d3edb06d"

inherit autotools gettext

# popt_fix_for_automake-1.12.patch: already applied in 1.16-10
SRC_URI += " \
file://pkgconfig_fix.patch \
file://disable_tests.patch \
"

# Preprocessing directive #elseif should be #elif
# so change it.
do_compile_prepend(){
	sed -i s@"#elseif"@"#elif"@g ${S}/system.h
}

BBCLASSEXTEND = "native nativesdk"


require u-boot.inc

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

SRCREV = "060955e39770b68b3cc0516b3641ca98e58d2d4a"

PV = "2009.08+${PR}+git${SRCREV}"
PR = "r10"
PE = "1"

SRC_URI = "git://git.denx.de/u-boot-ti.git;protocol=git \
           file://fw_env.config \
           file://tincan.patch;patch=1 \
          "

S = "${WORKDIR}/git"

Change SRCREV to commit prior to SDRC init breakage

require u-boot.inc

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

SRCREV = "1590f84007e2b50ad346a482fff89195cb04ff4e"

PV = "2009.08+${PR}+git${SRCREV}"
PR = "r11"
PE = "1"

SRC_URI = "git://git.denx.de/u-boot-ti.git;protocol=git \
           file://fw_env.config \
           file://tincan.patch;patch=1 \
          "

S = "${WORKDIR}/git"


DESCRIPTION = "RPC program number mapper."
SECTION = "console/network"
LICENSE = "GPL"
RDEPENDS = "portmap-utils"
PR = "r4"

SRC_URI = "http://www.uk.debian.org/debian/pool/main/p/portmap/portmap_5.orig.tar.gz \
	http://www.uk.debian.org/debian/pool/main/p/portmap/portmap_${PV}.diff.gz;patch=1 \
	file://no-libwrap.patch;patch=1;pnum=0 \
	file://portmap.init \
	file://make.patch;patch=1"
S = "${WORKDIR}/portmap_5beta"

PACKAGES =+ "portmap-utils"
FILES_portmap-utils = "/sbin/pmap_set /sbin/pmap_dump"
FILES_${PN}-doc += "${docdir}"

INITSCRIPT_NAME = "portmap"
INITSCRIPT_PARAMS = "start 43 S . start 32 0 6 . stop 81 1 ."

inherit update-rc.d

sbindir = "/sbin"

do_compile() {
	oe_runmake
}

do_install() {
	install -d ${D}${sysconfdir}/init.d
	install -m 0755 ${WORKDIR}/portmap.init ${D}${sysconfdir}/init.d/portmap
	oe_runmake 'docdir=${docdir}/portmap' \
		   'DESTDIR=${D}' install
}

Correct commit. Back out the RDEPENDS from portmap

DESCRIPTION = "RPC program number mapper."
SECTION = "console/network"
LICENSE = "GPL"
PR = "r5"

SRC_URI = "http://www.uk.debian.org/debian/pool/main/p/portmap/portmap_5.orig.tar.gz \
	http://www.uk.debian.org/debian/pool/main/p/portmap/portmap_${PV}.diff.gz;patch=1 \
	file://no-libwrap.patch;patch=1;pnum=0 \
	file://portmap.init \
	file://make.patch;patch=1"
S = "${WORKDIR}/portmap_5beta"

PACKAGES =+ "portmap-utils"
FILES_portmap-utils = "/sbin/pmap_set /sbin/pmap_dump"
FILES_${PN}-doc += "${docdir}"

INITSCRIPT_NAME = "portmap"
INITSCRIPT_PARAMS = "start 43 S . start 32 0 6 . stop 81 1 ."

inherit update-rc.d

sbindir = "/sbin"

do_compile() {
	oe_runmake
}

do_install() {
	install -d ${D}${sysconfdir}/init.d
	install -m 0755 ${WORKDIR}/portmap.init ${D}${sysconfdir}/init.d/portmap
	oe_runmake 'docdir=${docdir}/portmap' \
		   'DESTDIR=${D}' install
}


## Reminder:  Tabs should not be used (use spaces instead)  in : 	install -d ${D}${bindir}
## Reminder:  Tabs should not be used (use spaces instead)  in : 	for binary in `find . -perm 0755 -type f`
## Reminder:  Tabs should not be used (use spaces instead)  in : 	do
## Reminder:  Tabs should not be used (use spaces instead)  in : 		install -m 0755 $binary ${D}${bindir}
## Reminder:  Tabs should not be used (use spaces instead)  in : 	done
DESCRIPTION = "Real-time tests, such as cyclictest."
HOMEPAGE = "http://rt.wiki.kernel.org/index.php/Cyclictest"
LICENSE = "GPL"
PR = "r0"

SRC_URI = "http://www.kernel.org/pub/linux/kernel/people/tglx/rt-tests/rt-tests-${PV}.tar.bz2"

S = "${WORKDIR}/rt-tests"

do_install() {
        install -d ${D}${bindir}
        for binary in `find . -perm 0755 -type f`
        do
                install -m 0755 $binary ${D}${bindir}
        done
}

Fix detection of executables in do_install().

DESCRIPTION = "Real-time tests, such as cyclictest, for real-time linux PREEMPT RT kernels"
HOMEPAGE = "http://rt.wiki.kernel.org/index.php/Cyclictest"
LICENSE = "GPL"
PR = "r2"

SRC_URI = "http://www.kernel.org/pub/linux/kernel/people/tglx/rt-tests/rt-tests-${PV}.tar.bz2"

S = "${WORKDIR}/rt-tests"

# Limit to cyclictest only for non-real-time kernels.
# EXTRA_OEMAKE = "cyclictest"

do_install() {
  install -d ${D}${bindir}
  # any file that is executable by user and/or group
  for binary in `find . -perm /u+x,g+x -type f`
  do
    install -m 0755 $binary ${D}${bindir}
  done
}


DESCRIPTION = "Linux Kernel for x86 compatible machines"
SECTION = "kernel"
LICENSE = "GPL"
PR = "r1"

SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2 "

SRC_URI_append_x86 = "file://i486-defconfig"
SRC_URI_append_i586-generic = "file://i586-defconfig"
SRC_URI_append_i686-generic = "file://i686-defconfig"

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

inherit kernel

COMPATIBLE_HOST = "i.86.*-linux"
KERNEL_IMAGETYPE = "bzImage"

do_configure_prepend_x86() {
	install -m 0644 ${WORKDIR}/i486-defconfig ${S}/.config
}

do_configure_prepend_i586-generic() {
	install -m 0644 ${WORKDIR}/i586-defconfig ${S}/.config
}

do_configure_prepend_i686() {
	install -m 0644 ${WORKDIR}/i686-defconfig ${S}/.config
}

Add deploying of kernel image again.

DESCRIPTION = "Linux Kernel for x86 compatible machines"
SECTION = "kernel"
LICENSE = "GPL"
PR = "r2"

SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2 "

SRC_URI_append_x86 = "file://i486-defconfig"
SRC_URI_append_i586-generic = "file://i586-defconfig"
SRC_URI_append_i686-generic = "file://i686-defconfig"

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

inherit kernel

COMPATIBLE_HOST = "i.86.*-linux"
KERNEL_IMAGETYPE = "bzImage"

do_configure_prepend_x86() {
	install -m 0644 ${WORKDIR}/i486-defconfig ${S}/.config
}

do_configure_prepend_i586-generic() {
	install -m 0644 ${WORKDIR}/i586-defconfig ${S}/.config
}

do_configure_prepend_i686() {
	install -m 0644 ${WORKDIR}/i686-defconfig ${S}/.config
}

do_deploy() {
        install -d ${DEPLOY_DIR_IMAGE}
        install -m 0644 arch/i386/boot/${KERNEL_IMAGETYPE}  ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${PV}-${MACHINE}-${DATETIME}
}

do_deploy[dirs] = "${S}"

addtask deploy before do_populate_staging after do_compile


DESCRIPTION = "libdaemon is a lightweight C library that eases the writing of UNIX daemons."
SECTION = "libs"
AUTHOR = "Lennart Poettering <lennart@poettering.net>"
HOMEPAGE = "http://0pointer.de/lennart/projects/libdaemon/"
LICENSE = "LGPL"
PR = "r0"

SRC_URI = "http://0pointer.de/lennart/projects/libdaemon/libdaemon-${PV}.tar.gz"

inherit autotools pkgconfig

EXTRA_OECONF = "--disable-lynx --disable-doxygen"

SRC_URI[md5sum] = "ae9113fcd825d5a7f07e5ddccb3c3102"
SRC_URI[sha256sum] = "bd949d459d2da54f1cdfbd1f4592e32541e8a195aca56fa7a8329ed79836d709"

Update LICENSE field version to LGPLv2.1

DESCRIPTION = "libdaemon is a lightweight C library that eases the writing of UNIX daemons."
SECTION = "libs"
AUTHOR = "Lennart Poettering <lennart@poettering.net>"
HOMEPAGE = "http://0pointer.de/lennart/projects/libdaemon/"
LICENSE = "LGPLv2.1+"
PR = "r1"

SRC_URI = "http://0pointer.de/lennart/projects/libdaemon/libdaemon-${PV}.tar.gz"

inherit autotools pkgconfig

EXTRA_OECONF = "--disable-lynx --disable-doxygen"

SRC_URI[md5sum] = "ae9113fcd825d5a7f07e5ddccb3c3102"
SRC_URI[sha256sum] = "bd949d459d2da54f1cdfbd1f4592e32541e8a195aca56fa7a8329ed79836d709"


require libav.inc

LIC_FILES_CHKSUM = "file://COPYING.GPLv2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
                    file://COPYING.GPLv3;md5=d32239bcb673463ab874e80d47fae504 \
                    file://COPYING.LGPLv2.1;md5=e344c8fa836c3a41c4cbd79d7bd3a379 \
                    file://COPYING.LGPLv3;md5=e6a600fd5e1d9cbde2d983680233ad02 \
"

# When bumping SRCREV make sure you bump PR here and in dependant recipes (gst-ffmpeg, gnash, omxil, etc) to account for SOVERSION changes
SRCREV = "62c473934822afd317dfef27754a0ff71f58ce2a"

PV = "0.6.5"
PR = "${INC_PR}.0"

SRC_URI = "git://git.libav.org/libav.git;protocol=git;branch=release/0.6"

S = "${WORKDIR}/git"

Update git version to 2012-10-04 snapshot

require libav.inc

LIC_FILES_CHKSUM = "file://COPYING.GPLv2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
                    file://COPYING.GPLv3;md5=d32239bcb673463ab874e80d47fae504 \
                    file://COPYING.LGPLv2.1;md5=bd7a443320af8c812e4c18d1b79df004 \
                    file://COPYING.LGPLv3;md5=e6a600fd5e1d9cbde2d983680233ad02"

DEPENDS += "libpostproc"
PV = "0.8.99+git${SRCPV}"
PR = "${INC_PR}.0"

DEFAULT_PREFERENCE = "-1"

# When bumping SRCREV make sure you bump PR here and in dependant
# recipes (gst-ffmpeg, gnash, omxil, etc) to account for SOVERSION
# changes
SRCREV = "4673a5a761f329af0aa56fc84f34ed898188bfa2"
SRC_URI = "git://git.libav.org/libav.git;protocol=git"

S = "${WORKDIR}/git"

# postproc has been split
EXTRA_OECONF := "${@oe_filter_out('--enable-postproc', '${EXTRA_OECONF}', d)}"


DESCRIPTION = "A mode switching tool for controlling 'flip flop' (multiple device) USB gear"
SECTION = "base"
PRIORITY = "required"
LICENSE = "GPLv2"
DEPENDS = "virtual/libusb0"

PR = "r2"

SRC_URI = "http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-${PV}.tar.bz2"
SRC_URI[md5sum] = "a04db36bd0fc6fb303df7567f677b714"
SRC_URI[sha256sum] = "c20abfdf9d46fb83e1b82f961a9f6ec8064bed3304155b6e1af7cf596845d0d0"

FILES_${PN} = "${bindir} ${sysconfdir} ${base_libdir}/udev/usb_modeswitch"
RPROVIDES_${PN} += "usbmodeswitch"
RREPLACES_${PN} += "usbmodeswitch"
RRECOMMENDS_${PN} = "usb-modeswitch-data"

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

Add sbin dir to package

DESCRIPTION = "A mode switching tool for controlling 'flip flop' (multiple device) USB gear"
SECTION = "base"
PRIORITY = "required"
LICENSE = "GPLv2"
DEPENDS = "virtual/libusb0"

PR = "r3"

SRC_URI = "http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-${PV}.tar.bz2"
SRC_URI[md5sum] = "a04db36bd0fc6fb303df7567f677b714"
SRC_URI[sha256sum] = "c20abfdf9d46fb83e1b82f961a9f6ec8064bed3304155b6e1af7cf596845d0d0"

FILES_${PN} = "${bindir} ${sysconfdir} ${base_libdir}/udev/usb_modeswitch ${sbindir}"
RPROVIDES_${PN} += "usbmodeswitch"
RREPLACES_${PN} += "usbmodeswitch"
RRECOMMENDS_${PN} = "usb-modeswitch-data"

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


DESCRIPTION = "Utilities for working with generic SCSI devices"
AUTHOR = "Eric Schwartz (Skif) <emschwar@debian.org>"
HOMEPAGE = "http://packages.qa.debian.org/s/sg3-utils.html"
SECTION = "console/admin"
LICENSE = "GPLv2"
AUTHOR = "Eric Schwartz (Skif) <emschwar@debian.org>"
PR = "r2"

TARGET_CC_ARCH += "${LDFLAGS}"

SRC_URI = "${DEBIAN_MIRROR}/main/s/sg3-utils/sg3-utils_${PV}.orig.tar.gz \
	file://Makefile-r1.patch"

S = "${WORKDIR}/sg3-utils-${PV}"

inherit autotools

EXTRA_OEMAKE='"LIBTOOL=${STAGING_BINDIR_NATIVE}/${HOST_SYS}-libtool"'

SRC_URI[md5sum] = "9e1b8811b013d8f97d8ea2e0942cebad"
SRC_URI[sha256sum] = "0a06dae84a8f7f464c0c29c78a8f73f24a62894a2d3fc10b5f74a993f7b5abfe"

Switch to getting libtool from PATH

DESCRIPTION = "Utilities for working with generic SCSI devices"
AUTHOR = "Eric Schwartz (Skif) <emschwar@debian.org>"
HOMEPAGE = "http://packages.qa.debian.org/s/sg3-utils.html"
SECTION = "console/admin"
LICENSE = "GPLv2"
AUTHOR = "Eric Schwartz (Skif) <emschwar@debian.org>"
PR = "r3"

TARGET_CC_ARCH += "${LDFLAGS}"

SRC_URI = "${DEBIAN_MIRROR}/main/s/sg3-utils/sg3-utils_${PV}.orig.tar.gz \
	file://Makefile-r1.patch"

S = "${WORKDIR}/sg3-utils-${PV}"

inherit autotools

LIBTOOL = "${HOST_SYS}-libtool"
EXTRA_OEMAKE = "'LIBTOOL=${LIBTOOL}'"

SRC_URI[md5sum] = "9e1b8811b013d8f97d8ea2e0942cebad"
SRC_URI[sha256sum] = "0a06dae84a8f7f464c0c29c78a8f73f24a62894a2d3fc10b5f74a993f7b5abfe"


#
# base recipe: recipes-devtools/quilt/quilt_0.65.bb
# base branch: master
# base commit: 821a6f2a170cfcaf8fe51240a2558ae06328a998
#

require quilt.inc
inherit gettext

RDEPENDS_${PN}-ptest += "coreutils patch"

do_install_ptest_append() {
    # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=909398
    rm ${D}${PTEST_PATH}/test/push_timeskew.test
}

Revert "quilt: fix ptest failure"


SRC_URI = "cvs://anonymous@openwrt.org/openwrt;module=openwrt/target/utils/src;tag=TESTED"
S = "${WORKDIR}/src/"

inherit native

do_compile() {
	${CC} -o trx trx.c
	${CC} -o motorola-bin motorola-bin.c
	${CC} -o addpattern addpattern.c
}

do_stage() {
	install -m 0755 ${S}/trx ${STAGING_BINDIR}
	install -m 0755 ${S}/motorola-bin ${STAGING_BINDIR}
	install -m 0755 ${S}/addpattern ${STAGING_BINDIR}
}

Fix do_fetch by taking svn snapshot until OE can handle SVN by itself. Fixes 1735.

#SRC_URI = "svn://svn.openwrt.org/openwrt;module=trunk/tools/firmware-utils/src;proto=https"
SRC_URI = ${SOURCEFORGE_MIRROR}/gakusei/openwrt-imagetools-svn-rev7641.tar.bz2
S = "${WORKDIR}/src/"

inherit native

do_compile() {
	${CC} -o trx trx.c
	${CC} -o motorola-bin motorola-bin.c
	${CC} -o addpattern addpattern.c
}

do_stage() {
	install -m 0755 ${S}/trx ${STAGING_BINDIR}
	install -m 0755 ${S}/motorola-bin ${STAGING_BINDIR}
	install -m 0755 ${S}/addpattern ${STAGING_BINDIR}
}


DESCRIPTION = "Hardware drivers for VuPlus"
SECTION = "base"
PRIORITY = "required"
LICENSE = "proprietary"

def get_modules_extension(bb, d):
	if bb.data.getVar('GLIBC_ADDONS', d, 1) in ['nptl']:
		return "-gcc4.1"
	return ""

KV = "2.6.18-7.3"
PV = "${KV}"

SRCDATE = "20100719"

RDEPENDS = "initscripts-vuplus kernel (${KV}) kernel-module-firmware-class kernel-module-input kernel-module-evdev kernel-module-i2c-core kernel-module-snd kernel-module-snd-pcm"
PR = "r19-${SRCDATE}"

DOWNLOADMACHINE = "${MACHINE}"
DOWNLOADMACHINE_vuduo = "bm750"

SRC_URI = "http://archive.vuplus.com/download/drivers/mbox-dvb-modules-${DOWNLOADMACHINE}-${KV}-${SRCDATE}.tar.gz "

S = "${WORKDIR}"

do_install() {
        install -d ${D}/lib/modules/${KV}/extra
        for f in *.ko; do
                install -m 0644 ${WORKDIR}/$f ${D}/lib/modules/${KV}/extra/$f;
        done
}

PACKAGE_ARCH := "${MACHINE_ARCH}"
FILES_${PN} = "/"

Update vuduo drivers to 2010-08-27

DESCRIPTION = "Hardware drivers for VuPlus"
SECTION = "base"
PRIORITY = "required"
LICENSE = "proprietary"

def get_modules_extension(bb, d):
	if bb.data.getVar('GLIBC_ADDONS', d, 1) in ['nptl']:
		return "-gcc4.1"
	return ""

KV = "2.6.18-7.3"
PV = "${KV}"

SRCDATE = "20100827"

RDEPENDS = "initscripts-vuplus kernel (${KV}) kernel-module-firmware-class kernel-module-input kernel-module-evdev kernel-module-i2c-core kernel-module-snd kernel-module-snd-pcm"
PR = "r19-${SRCDATE}"

DOWNLOADMACHINE = "${MACHINE}"
DOWNLOADMACHINE_vuduo = "bm750"

SRC_URI = "http://archive.vuplus.com/download/drivers/mbox-dvb-modules-${DOWNLOADMACHINE}-${KV}-${PREFERRED_VERSION_gcc}-${SRCDATE}.tar.gz"

S = "${WORKDIR}"

do_install() {
        install -d ${D}/lib/modules/${KV}/extra
        for f in *.ko; do
                install -m 0644 ${WORKDIR}/$f ${D}/lib/modules/${KV}/extra/$f;
        done
}

PACKAGE_ARCH := "${MACHINE_ARCH}"
FILES_${PN} = "/"


require libxslt.inc
PR = "${INC_PR}.0"

do_stage () {
	autotools_stage_all
}

SRC_URI[archive.md5sum] = "59fe34e85692f71df2a38c2ee291b3ca"
SRC_URI[archive.sha256sum] = "ccefd4ceb29bb729dcaa9a9d4a86654a9134adfd29bdd72be1a9d3726efb54e0"

Convert old version to new staging

require libxslt.inc
PR = "${INC_PR}.0"
SRC_URI[archive.md5sum] = "59fe34e85692f71df2a38c2ee291b3ca"
SRC_URI[archive.sha256sum] = "ccefd4ceb29bb729dcaa9a9d4a86654a9134adfd29bdd72be1a9d3726efb54e0"


require libgpg-error.inc

PR = "${INC_PR}.1"

SRC_URI[md5sum] = "86e60e9a03205fb706e99be101a2387e"
SRC_URI[sha256sum] = "fff67ec5ffc93cf91fc62350a19a9f677c9bc6eb2730395d22f9d40c754ed619"

Update LICENSE field version to GPLv2 and LGPLv2.1

require libgpg-error.inc

LICENSE = "GPLv2 LGPLv2.1"

PR = "${INC_PR}.2"

SRC_URI[md5sum] = "86e60e9a03205fb706e99be101a2387e"
SRC_URI[sha256sum] = "fff67ec5ffc93cf91fc62350a19a9f677c9bc6eb2730395d22f9d40c754ed619"


# yocto-bsp-filename {{=example_recipe_name}}_0.1.bb
#
# This file was derived from the 'Hello World!' example recipe in the
# Yocto Project Development Manual.
#

SUMMARY = "SBSA ACS commandline application"
SECTION = "meta-luv"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"

SRC_URI = "file://sbsa_app_main.c \
           file://sbsa_app_pcie.c \
           file://sbsa_drv_intf.c \
           file://include/sbsa_drv_intf.h \
           file://include/sbsa_app.h \
           https://raw.githubusercontent.com/ARM-software/sbsa-acs/master/val/include/sbsa_avs_common.h \
           "
SRC_URI[md5sum] = "67ac822ba7b3a74c355c81663d8c7f21"

S = "${WORKDIR}"

do_compile() {
	     ${CC} sbsa_app_main.c sbsa_app_pcie.c sbsa_drv_intf.c -o sbsa
}

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

Update sbsa app bitbake script to fix build issue

# yocto-bsp-filename {{=example_recipe_name}}_0.1.bb
#
# This file was derived from the 'Hello World!' example recipe in the
# Yocto Project Development Manual.
#

SUMMARY = "SBSA ACS commandline application"
SECTION = "meta-luv"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"

SRC_URI = "file://sbsa_app_main.c \
           file://sbsa_app_pcie.c \
           file://sbsa_drv_intf.c \
           file://include/sbsa_drv_intf.h \
           file://include/sbsa_app.h \
           file://include/sbsa_avs_common.h \
           "

S = "${WORKDIR}"

do_compile() {
	     ${CC} sbsa_app_main.c sbsa_app_pcie.c sbsa_drv_intf.c -Iinclude -o sbsa
}

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


SUMMARY = "pristine-tar can regenerate a pristine upstream tarball using only a small binary delta file and a revision control checkout of the upstream branch"
HOMEPAGE = "https://github.com/tramseyer/pristine-tar-fwu"
SECTION = "console/utils"

LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://GPL;md5=751419260aa954499f7abaabaa882bbe"

PR = "r0"
PV = "1.37+gitr${SRCPV}"
DEPENDS = "zlib"

SRC_URI = "git://github.com/tramseyer/${BPN}.git;protocol=git;branch=master"
SRCREV = "43325d3339a86059c3970e38f6162e68ec286109"

S = "${WORKDIR}/git"

inherit cpan

# https://github.com/kraj/poky/blob/krogoth/meta/recipes-devtools/perl/perl-rdepends_5.22.1.inc
RDEPENDS_${PN} = " tar \
                   xdelta3 \
                   xz \
                   perl \
                   perl-module-digest-sha \
                   perl-module-file-find \
                   perl-module-file-glob \
                   perl-module-file-temp \
                   perl-module-getopt-long \
                   perl-module-ipc-open2 \
                   perl-module-overloading"

Use newest git revision for pristine-tar-fwu.

SUMMARY = "pristine-tar can regenerate a pristine upstream tarball using only a small binary delta file and a revision control checkout of the upstream branch"
HOMEPAGE = "https://github.com/tramseyer/pristine-tar-fwu"
SECTION = "console/utils"

LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://GPL;md5=751419260aa954499f7abaabaa882bbe"

PR = "r0"
PV = "1.37+gitr${SRCPV}"
DEPENDS = "zlib"

SRC_URI = "git://github.com/tramseyer/${BPN}.git;protocol=git;branch=master"
SRCREV = "54f0d005b96bf5601a3ec730f781379339b5f9a3"

S = "${WORKDIR}/git"

inherit cpan

# https://github.com/kraj/poky/blob/krogoth/meta/recipes-devtools/perl/perl-rdepends_5.22.1.inc
RDEPENDS_${PN} = " tar \
                   xdelta3 \
                   xz \
                   perl \
                   perl-module-digest-sha \
                   perl-module-file-find \
                   perl-module-file-glob \
                   perl-module-file-temp \
                   perl-module-getopt-long \
                   perl-module-ipc-open2 \
                   perl-module-overloading"


LICENSE = "GPL"
DEPENDS = "libxml2 glib-2.0 gtk+ loudmouth"
MAINTAINER = "Chris Lord <chris@openedhand.com>"
DESCRIPTION = "Kf is a GTK+ instant messaging client."
PR = "r2"

SRC_URI = "http://jabberstudio.2nw.net/${PN}/${PN}-${PV}.tar.gz \
           file://fix-configure.patch;patch=1 \
           file://fix-desktop-file.patch;patch=0"

inherit autotools pkgconfig

EXTRA_OECONF = "--disable-binreloc"

Fix pkgconfig related build issue (from poky)

LICENSE = "GPL"
DEPENDS = "libxml2 glib-2.0 gtk+ loudmouth"
MAINTAINER = "Chris Lord <chris@openedhand.com>"
DESCRIPTION = "Kf is a GTK+ instant messaging client."
PR = "r2"

SRC_URI = "http://jabberstudio.2nw.net/${PN}/${PN}-${PV}.tar.gz \
           file://fix-configure.patch;patch=1 \
           file://fix-desktop-file.patch;patch=0"

inherit autotools pkgconfig

export PKG_CONFIG="${STAGING_BINDIR}/pkg-config"

EXTRA_OECONF = "--disable-binreloc"


DESCRIPTION = "Library for reading some sort of media format."
SECTION = "libs"
PRIORITY = "optional"
DEPENDS = ""
LICENSE = "LGPL"

PR = "r1"

inherit autotools

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

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

FILES_${PN} = " ${bindir}/faac "
FILES_lib${PN} = " ${libdir}/libfaac.so.*"
FILES_lib${PN}-dev = " ${includedir}/faac.h ${includedir}/faaccfg.h ${libdir}/libfaac.so ${libdir}/libfaac.la ${libdir}/libfaac.a "

SRC_URI[md5sum] = "e72dc74db17b42b06155613489077ad7"
SRC_URI[sha256sum] = "a5844ff3bce0d7c885af71f41da01395d3253dcfc33863306a027a78a7cfad9e"

Update LICENSE field version to LGPLv2

DESCRIPTION = "Library for reading some sort of media format."
SECTION = "libs"
PRIORITY = "optional"
DEPENDS = ""
LICENSE = "LGPLv2 LGPLv2.1"

PR = "r2"

inherit autotools

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

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

FILES_${PN} = " ${bindir}/faac "
FILES_lib${PN} = " ${libdir}/libfaac.so.*"
FILES_lib${PN}-dev = " ${includedir}/faac.h ${includedir}/faaccfg.h ${libdir}/libfaac.so ${libdir}/libfaac.la ${libdir}/libfaac.a "

SRC_URI[md5sum] = "e72dc74db17b42b06155613489077ad7"
SRC_URI[sha256sum] = "a5844ff3bce0d7c885af71f41da01395d3253dcfc33863306a027a78a7cfad9e"


DESCRIPTION = "Central Regulatory Domain Agent"
SECTION = "base"
LICENSE = "ISC"
LIC_FILES_CHKSUM = "file://LICENSE;md5=07c4f6dea3845b02a18dc00c8c87699c"

PR = "r3"

DEPENDS = "libnl"
RDEPENDS_${PN} = "wireless-regdb"

S = "${WORKDIR}/git"

SRC_URI = "git://github.com/mcgrof/crda.git;protocol=git;tag=v1.1.3"

CFLAGS_append =" -DCONFIG_LIBNL32 -I${STAGING_INCDIR}/libnl3"
LDFLAGS_append =" -lnl-3 -lnl-genl-3"

do_compile() {
        ${CC} ${CFLAGS} ${S}/reglib.c ${S}/crda.c -o crda ${LDFLAGS}
}

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

Update after top level LICENSE file checksum change

DESCRIPTION = "Central Regulatory Domain Agent"
SECTION = "base"
LICENSE = "ISC"
LIC_FILES_CHKSUM = "file://LICENSE;md5=ef8b69b43141352d821fd66b64ff0ee7"

PR = "r3"

DEPENDS = "libnl"
RDEPENDS_${PN} = "wireless-regdb"

S = "${WORKDIR}/git"

SRC_URI = "git://github.com/mcgrof/crda.git;protocol=git;tag=v1.1.3"

CFLAGS_append =" -DCONFIG_LIBNL32 -I${STAGING_INCDIR}/libnl3"
LDFLAGS_append =" -lnl-3 -lnl-genl-3"

do_compile() {
        ${CC} ${CFLAGS} ${S}/reglib.c ${S}/crda.c -o crda ${LDFLAGS}
}

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


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

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

S = "${WORKDIR}/git"

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

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

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

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

TARGET_CC_ARCH += "${LDFLAGS}"

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

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

BBCLASSEXTEND = "native nativesdk"

Update to bootgen SRCREV to point to latest commit.

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

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

S = "${WORKDIR}/git"

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

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

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

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

TARGET_CC_ARCH += "${LDFLAGS}"

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

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

BBCLASSEXTEND = "native nativesdk"


require recipes-image/images/tizen-common-core-image-minimal.bb

DESCRIPTION = "A weston image with Tizen common and \
is suitable for development work."

IMAGE_FEATURES += "dev-pkgs"
IMAGE_INSTALL += "attr"

Add extra package for dev image

require recipes-image/images/tizen-common-core-image-minimal.bb

DESCRIPTION = "A weston image with Tizen common and \
is suitable for development work."

IMAGE_FEATURES += "dev-pkgs tools-debug debug-tweaks ssh-server-openssh"
IMAGE_INSTALL += "attr"
IMAGE_INSTALL += "util-linux-agetty"
IMAGE_INSTALL += "strace"
IMAGE_INSTALL += "gdb"


require linux.inc
require linux-dtb.inc

DESCRIPTION = "Linux kernel for the lager board"
COMPATIBLE_MACHINE = "lager"

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

SRCREV = "6250e5a61a718dbb5a2d8b4dd40a57d1d1b6fe96"
SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas-backport.git;protocol=git;branch=bsp/ltsi-3.4.25/rcar-gen2-5"

S = "${WORKDIR}/git"

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

KERNEL_DEFCONFIG = "lager_defconfig"

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

Update BSP to version 0.5.2

require linux.inc
require linux-dtb.inc

DESCRIPTION = "Linux kernel for the lager board"
COMPATIBLE_MACHINE = "lager"

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

SRCREV = "84331fb0be9d4ee58657eff172c893ba94468ad5"
SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas-backport.git;protocol=git;branch=bsp/ltsi-3.4.25/rcar-gen2-5.2"

S = "${WORKDIR}/git"

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

KERNEL_DEFCONFIG = "lager_defconfig"

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


require recipes-kernel/linux/linux-yocto.inc

KERNEL_IMAGETYPE = "zImage"

COMPATIBLE_MACHINE = "duovero"

RDEPENDS_kernel_base += "kernel-devicetree"

KERNEL_DEVICETREE_duovero = " \
    omap4-duovero-parlor.dtb \
    jumpnow-duovero-parlor.dtb \
    jumpnow-duovero-parlor-nodisplay.dtb \
 "

LINUX_VERSION = "4.1"
LINUX_VERSION_EXTENSION = "-jumpnow"

FILESEXTRAPATHS_prepend := "${THISDIR}/linux-stable-4.1:"

S = "${WORKDIR}/git"

PR = "r4"

# v4.1.4
SRCREV = "89e419960fb6a260f6a112821507d516117d5aa1"
SRC_URI = " \
    git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git;branch=linux-4.1.y \
    file://defconfig \
    file://0001-spidev-Add-generic-compatible-dt-id.patch \
    file://0002-duovero-Add-spi1-spidev-dtsi.patch \
    file://0003-duovero-Add-spi4-spidev-dtsi.patch \
    file://0004-kernel-Add-some-custom-dts-files.patch \
 "

Fix recipe so dtbs get included in rootfs

require recipes-kernel/linux/linux-yocto.inc

KERNEL_IMAGETYPE = "zImage"

COMPATIBLE_MACHINE = "duovero"

RDEPENDS_kernel-base += "kernel-devicetree"

KERNEL_DEVICETREE_duovero = " \
    omap4-duovero-parlor.dtb \
    jumpnow-duovero-parlor.dtb \
    jumpnow-duovero-parlor-nodisplay.dtb \
 "

LINUX_VERSION = "4.1"
LINUX_VERSION_EXTENSION = "-jumpnow"

FILESEXTRAPATHS_prepend := "${THISDIR}/linux-stable-4.1:"

S = "${WORKDIR}/git"

PR = "r5"

# v4.1.4
SRCREV = "89e419960fb6a260f6a112821507d516117d5aa1"
SRC_URI = " \
    git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git;branch=linux-4.1.y \
    file://defconfig \
    file://0001-spidev-Add-generic-compatible-dt-id.patch \
    file://0002-duovero-Add-spi1-spidev-dtsi.patch \
    file://0003-duovero-Add-spi4-spidev-dtsi.patch \
    file://0004-kernel-Add-some-custom-dts-files.patch \
 "


DESCRIPTION = "A library handling all the details of proxy configuration"
LICENSE = "LGPL"
DEPENDS = "libxmu gconf virtual/libx11"

PR = "r1"

SRC_URI = "http://libproxy.googlecode.com/files/libproxy-${PV}.tar.gz \
	   file://libproxy-move-define-__USE_BSD.patch \
	   "

inherit autotools

# Disable plugins that are *up* in the depchain, they need libproxy to build
# Don't we just love circular deps?
EXTRA_OECONF = " --with-file \
                 --with-gnome \
                 --without-kde \
                 --without-webkit \
                 --without-mozjs \
                 --without-networkmanager \
                "

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

SRC_URI[md5sum] = "86b635e1eb2d665cfbef4c6134fe6604"
SRC_URI[sha256sum] = "59ded160b3547d29e37cc9d06359f7f37d94112214e4532430cd65e704c1339a"

Update LICENSE field version to LGPLv2.1

DESCRIPTION = "A library handling all the details of proxy configuration"
LICENSE = "LGPLv2.1+"
DEPENDS = "libxmu gconf virtual/libx11"

PR = "r2"

SRC_URI = "http://libproxy.googlecode.com/files/libproxy-${PV}.tar.gz \
	   file://libproxy-move-define-__USE_BSD.patch \
	   "

inherit autotools

# Disable plugins that are *up* in the depchain, they need libproxy to build
# Don't we just love circular deps?
EXTRA_OECONF = " --with-file \
                 --with-gnome \
                 --without-kde \
                 --without-webkit \
                 --without-mozjs \
                 --without-networkmanager \
                "

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

SRC_URI[md5sum] = "86b635e1eb2d665cfbef4c6134fe6604"
SRC_URI[sha256sum] = "59ded160b3547d29e37cc9d06359f7f37d94112214e4532430cd65e704c1339a"


DESCRIPTION = "An e17 module and a python app for the SHR first run wizard"
HOMEPAGE = "http://shr-project.org"
LICENSE = "GPL"
RDEPENDS = "python-elementary shr-settings python-phoneutils e-wm python-dbus python-edbus"
SECTION = "x11/application"
PV = "0.0.0+gitr${SRCREV}"
PR = "r0"

inherit autotools

SRC_URI = "git://git.shr-project.org/repo/shr-wizard.git;protocol=http;branch=master"
S = "${WORKDIR}/git"

FILES_${PN} += "${libdir}/enlightenment/modules/wizard/*/*"

Remove the inclusion of the debug modules to the package

DESCRIPTION = "An e17 module and a python app for the SHR first run wizard"
HOMEPAGE = "http://shr-project.org"
LICENSE = "GPL"
RDEPENDS = "python-elementary shr-settings python-phoneutils e-wm python-dbus python-edbus"
SECTION = "x11/application"
PV = "0.0.0+gitr${SRCREV}"
PR = "r1"

inherit autotools

SRC_URI = "git://git.shr-project.org/repo/shr-wizard.git;protocol=http;branch=master"
S = "${WORKDIR}/git"

FILES_${PN} += "${libdir}/enlightenment/modules/wizard/*/page_900.so"


# This image extends fsl-image-multimedia_full with the following:
#   XFCE desktop
#   Disk formatting tools
#   Modem and wireless support

require recipes-fsl/images/fsl-image-multimedia-full.bb

IMAGE_FEATURES += "package-management ssh-server-dropbear"

IMAGE_INSTALL_append = " e2fsprogs-mke2fs dosfstools"
IMAGE_INSTALL_append = " packagegroup-xfce-extended"
IMAGE_INSTALL_append = " ppp wvdial linux-firmware canutils"
IMAGE_INSTALL_append = " opal6-apps-led-demo opal6-apps-rs485-test"
IMAGE_INSTALL_append = " mesa-demos nano"
IMAGE_INSTALL_append = " libopencv-core-dev libopencv-highgui-dev \
			 			 libopencv-imgproc-dev libopencv-objdetect-dev libopencv-ml-dev"

Tidy opencv integration. Added Firefox browser.

# This image extends fsl-image-multimedia_full with the following:
#   XFCE desktop
#   Disk formatting tools
#   Modem and wireless support

require recipes-fsl/images/fsl-image-multimedia-full.bb

IMAGE_FEATURES += "package-management ssh-server-dropbear"

IMAGE_INSTALL_append = " e2fsprogs-mke2fs dosfstools"
IMAGE_INSTALL_append = " packagegroup-xfce-extended"
IMAGE_INSTALL_append = " ppp wvdial linux-firmware canutils"
IMAGE_INSTALL_append = " opal6-apps-led-demo opal6-apps-rs485-test"
IMAGE_INSTALL_append = " mesa-demos nano"
IMAGE_INSTALL_append = " opencv opencv-samples"
IMAGE_INSTALL_append = " firefox"


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

include libmetal.inc

Update branch for 2021.1 release

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

include libmetal.inc


DESCRIPTION = "A console-only image with more full-featured Linux system \
functionality installed."

IMAGE_FEATURES += "splash ssh-server-openssh"

setDownloadDirectory (){
     #!/bin/sh -e
     if [ x"${DOWNLOAD_DIR_TRANSMISSION}" = "x" ]; then
          exit 0
     else
         mkdir -p  ${IMAGE_ROOTFS}/${DOWNLOAD_DIR_TRANSMISSION}
         chmod 666 ${IMAGE_ROOTFS}/${DOWNLOAD_DIR_TRANSMISSION}
     fi
}
ROOTFS_POSTPROCESS_COMMAND += "setDownloadDirectory; "

IMAGE_INSTALL = "\
    ${CORE_IMAGE_BASE_INSTALL} \
    packagegroup-core-full-cmdline \
    packagegroup-core-boot \
    transmission-web \
    filemanager \
     "

inherit core-image

Add dhclient package to image nas

DESCRIPTION = "A console-only image with more full-featured Linux system \
functionality installed."

IMAGE_FEATURES += "splash ssh-server-openssh"

setDownloadDirectory (){
     #!/bin/sh -e
     if [ x"${DOWNLOAD_DIR_TRANSMISSION}" = "x" ]; then
          exit 0
     else
         mkdir -p  ${IMAGE_ROOTFS}/${DOWNLOAD_DIR_TRANSMISSION}
         chmod 666 ${IMAGE_ROOTFS}/${DOWNLOAD_DIR_TRANSMISSION}
     fi
}
ROOTFS_POSTPROCESS_COMMAND += "setDownloadDirectory; "

IMAGE_INSTALL = "\
    ${CORE_IMAGE_BASE_INSTALL} \
    packagegroup-core-full-cmdline \
    packagegroup-core-boot \
    transmission-web \
    filemanager \
    dhcp-client \
     "

inherit core-image


DESCRIPTION = "Startup notification support"
LICENSE = "LGPL"
SECTION = "libs"
PRIORITY = "optional"
DEPENDS = "virtual/libx11"

inherit autotools pkgconfig

SRC_URI = "http://www.freedesktop.org/software/startup-notification/releases/startup-notification-0.8.tar.gz"

do_stage () {
	autotools_stage_all
}

Add missing DEPENDs on libsm

DESCRIPTION = "Startup notification support"
LICENSE = "LGPL"
SECTION = "libs"
PRIORITY = "optional"
DEPENDS = "virtual/libx11 libsm"

inherit autotools pkgconfig

SRC_URI = "http://www.freedesktop.org/software/startup-notification/releases/startup-notification-0.8.tar.gz"

do_stage () {
	autotools_stage_all
}


SECTION = "libs"
LICENSE = "BSD"
DESCRIPTION = "A library for configuring and customizing font access."
DEPENDS = "expat freetype freetype-native zlib fontconfig-native"

SRC_URI = "http://freedesktop.org/fontconfig/release/fontconfig-${PV}.tar.gz \
           file://fc-glyphname.patch;patch=1 \
           file://fc-lang.patch;patch=1"
PR = "r5"

PACKAGES =+ "fontconfig-utils"
FILES_fontconfig-utils = "${bindir}/*"

# Work around past breakage in debian.bbclass
RPROVIDES_fontconfig-utils = "libfontconfig-utils"
DEBIAN_NOAUTONAME_fontconfig-utils = "1"

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

inherit autotools pkgconfig

export HASDOCBOOK="no"

EXTRA_OECONF = " --disable-docs "
EXTRA_OEMAKE = "FC_LANG=fc-lang FC_GLYPHNAME=fc-glyphname"

do_stage () {
	oe_libinstall -so -a -C src libfontconfig ${STAGING_LIBDIR}
	install -d ${STAGING_INCDIR}/fontconfig
	for i in ${S}/fontconfig/*.h; do install -m 0644 $i ${STAGING_INCDIR}/fontconfig/; done
}

do_install () {
	autotools_do_install
}

Use RREPLACES instead of RPROVIDES to prevent upgrades breakage

SECTION = "libs"
LICENSE = "BSD"
DESCRIPTION = "A library for configuring and customizing font access."
DEPENDS = "expat freetype freetype-native zlib fontconfig-native"

SRC_URI = "http://freedesktop.org/fontconfig/release/fontconfig-${PV}.tar.gz \
           file://fc-glyphname.patch;patch=1 \
           file://fc-lang.patch;patch=1"
PR = "r6"

PACKAGES =+ "fontconfig-utils"
FILES_fontconfig-utils = "${bindir}/*"

# Work around past breakage in debian.bbclass
RREPLACES_fontconfig-utils = "libfontconfig-utils"
DEBIAN_NOAUTONAME_fontconfig-utils = "1"

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

inherit autotools pkgconfig

export HASDOCBOOK="no"

EXTRA_OECONF = " --disable-docs "
EXTRA_OEMAKE = "FC_LANG=fc-lang FC_GLYPHNAME=fc-glyphname"

do_stage () {
	oe_libinstall -so -a -C src libfontconfig ${STAGING_LIBDIR}
	install -d ${STAGING_INCDIR}/fontconfig
	for i in ${S}/fontconfig/*.h; do install -m 0644 $i ${STAGING_INCDIR}/fontconfig/; done
}

do_install () {
	autotools_do_install
}


require cacaoh-native.inc

DEPENDS += "midpath-cldc-native"

SRC_URI = "\
  http://www.complang.tuwien.ac.at/cacaojvm/download/cacao-${PV}/cacao-${PV}.tar.bz2;md5sum=8b8907c8b925761c9410bcadb9705346 \
  "

EXTRA_OECONF += "\
  --with-classpath-includedir=${STAGING_INCDIR}/classpath \
  --enable-jni \
  --enable-java=cldc1.1 \
  --with-classpath=cldc1.1 \
  --with-classpath-classes=${STAGING_DATADIR}/midpath-cldc/midpath-cldc1.1.jar \
"

do_stage() {
	install -m 0755 src/cacaoh/.libs/cacaoh ${STAGING_BINDIR}/cacaoh-cldc-${PV}
}

Remove unneeded dependencies and configure arguments.

require cacaoh-native.inc

SRC_URI = "\
  http://www.complang.tuwien.ac.at/cacaojvm/download/cacao-${PV}/cacao-${PV}.tar.bz2;md5sum=8b8907c8b925761c9410bcadb9705346 \
  "

do_stage() {
	install -m 0755 src/cacaoh/.libs/cacaoh ${STAGING_BINDIR}/cacaoh-cldc-${PV}
}


DESCRIPTION = "Libcap is a library for getting and setting POSIX.1e (formerly POSIX 6) draft 15 capabilities."
PRIORITY = "optional"
SECTION = "libs"
LICENSE = "GPL"

SRC_URI = "http://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.4/libcap-${PV}.tar.bz2 \
	   file://makenames.patch;patch=1 \
	   file://make.patch;patch=1 "

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

do_stage() {
	install -d ${STAGING_INCDIR}/sys
	install -m 0644 libcap/include/sys/capability.h ${STAGING_INCDIR}/sys/
	oe_libinstall -s -C libcap libcap ${STAGING_LIBDIR}
}

do_install() {
	install -d ${D}${includedir}/sys
	install -m 0644 libcap/include/sys/capability.h ${D}${includedir}/sys/
	install -d ${D}${libdir}
	oe_libinstall -s -C libcap libcap ${D}${libdir}
}

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

Make DEPENDS on flex-native and bison-native explicit. Closes 1659. This is being pulled in automatically for most DISTRO via gcc-cross and binutils-cross but not when these are assumed provided as for Sharp ROM for example.

DESCRIPTION = "Libcap is a library for getting and setting POSIX.1e (formerly POSIX 6) draft 15 capabilities."
PRIORITY = "optional"
SECTION = "libs"
LICENSE = "GPL"
DEPENDS = "bison-native flex-native"

SRC_URI = "http://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.4/libcap-${PV}.tar.bz2 \
	   file://makenames.patch;patch=1 \
	   file://make.patch;patch=1 "

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

do_stage() {
	install -d ${STAGING_INCDIR}/sys
	install -m 0644 libcap/include/sys/capability.h ${STAGING_INCDIR}/sys/
	oe_libinstall -s -C libcap libcap ${STAGING_LIBDIR}
}

do_install() {
	install -d ${D}${includedir}/sys
	install -m 0644 libcap/include/sys/capability.h ${D}${includedir}/sys/
	install -d ${D}${libdir}
	oe_libinstall -s -C libcap libcap ${D}${libdir}
}

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