DESCRIPTION = "RDM DF Service"
HOMEPAGE = "http://www.rademacher.de"

LICENSE = "commercial"
LIC_FILES_CHKSUM = "file://${THISDIR}/files/license.txt;md5=3ebe3464e841ddbf115af1f7019017c5"
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

DEPENDS = "libxml2 libftdi"

PV = "1.2.0"

SRC_URI = "svn://192.168.1.186/svn/EW_Prj/trunk/;protocol=http;module=DuoFern_Service;rev=3524"

S = "${WORKDIR}/DuoFern_Service"

inherit autotools pkgconfig

EXTRA_OECONF="--prefix=/opt/homepilot"

do_configure() {
    autoreconf -i
    ${S}/configure	--build=${BUILD_SYS} \
			--host=${HOST_SYS} \
			--target=${TARGET_SYS} \
			${EXTRA_OECONF}

}

FILES_${PN} += "/opt/homepilot"
FILES_${PN}-dbg += "/opt/homepilot/bin/.debug"

Update DFService to support RDM sticks only

DESCRIPTION = "RDM DF Service"
HOMEPAGE = "http://www.rademacher.de"

LICENSE = "commercial"
LIC_FILES_CHKSUM = "file://${THISDIR}/files/license.txt;md5=3ebe3464e841ddbf115af1f7019017c5"
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

DEPENDS = "libxml2 libftdi"

PV = "1.2.0"

SRC_URI = "svn://192.168.1.186/svn/EW_Prj/trunk/;protocol=http;module=DuoFern_Service;rev=3658"

S = "${WORKDIR}/DuoFern_Service"

inherit autotools pkgconfig

EXTRA_OECONF="--prefix=/opt/homepilot"

do_configure() {
    autoreconf -i
    ${S}/configure	--build=${BUILD_SYS} \
			--host=${HOST_SYS} \
			--target=${TARGET_SYS} \
			${EXTRA_OECONF}

}

FILES_${PN} += "/opt/homepilot"
FILES_${PN}-dbg += "/opt/homepilot/bin/.debug"


DEPENDS = "clutter-box2d"

PV = "0.0+git${SRCREV}"
PR = "r1"

SRC_URI = "git://moblin.org/repos/users/pippin/prototype.git/;protocol=http \
           file://paths.patch;patch=1"

S = "${WORKDIR}/git"

do_install () {
	install -d ${D}${bindir}
	install ${S}/moblin-proto ${D}${bindir}

	install -d ${D}${datadir}/moblin-proto/
        cp -a ${S}/assets ${D}${datadir}/moblin-proto/
        cp -a ${S}/layouts ${D}${datadir}/moblin-proto/
}

Use the right git server - moblin.org => git.moblin.org

DEPENDS = "clutter-box2d"

PV = "0.0+git${SRCREV}"
PR = "r1"

SRC_URI = "git://git.moblin.org/repos/users/pippin/prototype.git/;protocol=http \
           file://paths.patch;patch=1"

S = "${WORKDIR}/git"

do_install () {
	install -d ${D}${bindir}
	install ${S}/moblin-proto ${D}${bindir}

	install -d ${D}${datadir}/moblin-proto/
        cp -a ${S}/assets ${D}${datadir}/moblin-proto/
        cp -a ${S}/layouts ${D}${datadir}/moblin-proto/
}


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

SUMMARY = "A userspace service that provides access to the Open webOS database"
SECTION = "webos/base"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"

# db8 is also the provider for mojodb
PROVIDES = "mojodb"

DEPENDS = "db luna-service2 jemalloc icu pmloglib curl glib-2.0"

PR = "r9"

inherit webos_component
inherit webos_public_repo
inherit webos_enhanced_submissions
inherit webos_cmake
inherit webos_system_bus
inherit webos_daemon
inherit webos_library
inherit webos_system_bus

WEBOS_GIT_TAG = "submissions/${WEBOS_SUBMISSION}"
SRC_URI = "${OPENWEBOS_GIT_REPO_COMPLETE}"
S = "${WORKDIR}/git"
#FILES_${PN}-dbg += "${libdir}/${PN}/tests/.debug"

Add LevelDB as build dependency for DB8

# Copyright (c) 2013 LG Electronics, Inc.

SUMMARY = "A userspace service that provides access to the Open webOS database"
SECTION = "webos/base"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"

# db8 is also the provider for mojodb
PROVIDES = "mojodb"

DEPENDS = "db luna-service2 jemalloc icu pmloglib curl glib-2.0 leveldb"

PR = "r10"

inherit webos_component
inherit webos_public_repo
inherit webos_enhanced_submissions
inherit webos_cmake
inherit webos_system_bus
inherit webos_daemon
inherit webos_library
inherit webos_system_bus

WEBOS_GIT_TAG = "submissions/${WEBOS_SUBMISSION}"
SRC_URI = "${OPENWEBOS_GIT_REPO_COMPLETE}"
S = "${WORKDIR}/git"
#FILES_${PN}-dbg += "${libdir}/${PN}/tests/.debug"


require u-boot-ti.inc

DESCRIPTION = "u-boot bootloader for TI devices"

PR = "r2"

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

BRANCH ?= "ti-u-boot-2013.01.01"

SRCREV = "9aab8612f643ab90df837e743f5435bba2ae68cf"

SPL_BINARY = "MLO"

Add SRCPV to the PR

require u-boot-ti.inc

DESCRIPTION = "u-boot bootloader for TI devices"

PR = "r3+gitr${SRCPV}"

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

BRANCH ?= "ti-u-boot-2013.01.01"

SRCREV = "9aab8612f643ab90df837e743f5435bba2ae68cf"

SPL_BINARY = "MLO"


SUMMARY = "A collection of cross-platform QtQuick components for building fluid and dynamic applications"
LICENSE = "MPLv2"
LIC_FILES_CHKSUM = " \
    file://LICENSE.MPL2;md5=815ca599c9df247a0c7f619bab123dad \
"

inherit liri

SRC_URI += "file://0001-remove-Werror-from-build-flags.patch"
PV = "0.9.0+git${SRCPV}"
SRCREV = "db128f54be2c65b98bf32e5d60aa1b286f938bfa"
S = "${WORKDIR}/git"

DEPENDS += " \
    qtgraphicaleffects \
    qtquickcontrols2 \
    qtsvg \
"

do_configure_append() {
    (cd ${S} && ./scripts/fetch_icons.sh)
}

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

Add mkspecs to dev subpackage

SUMMARY = "A collection of cross-platform QtQuick components for building fluid and dynamic applications"
LICENSE = "MPLv2"
LIC_FILES_CHKSUM = " \
    file://LICENSE.MPL2;md5=815ca599c9df247a0c7f619bab123dad \
"

inherit liri

SRC_URI += "file://0001-remove-Werror-from-build-flags.patch"
PV = "0.9.0+git${SRCPV}"
SRCREV = "a6103bd412abe49932964b9f09f69b1a28db530a"
S = "${WORKDIR}/git"

DEPENDS += " \
    qtgraphicaleffects \
    qtquickcontrols2 \
    qtsvg \
"

do_configure_append() {
    (cd ${S} && ./scripts/fetch_icons.sh)
}

FILES_${PN} += "${OE_QMAKE_PATH_QML}"
FILES_${PN}-dev += " \
    ${libdir}/cmake \
    ${OE_QMAKE_PATH_QT_ARCHDATA}/mkspecs \
"


SUMMARY = "TIDL Network Viewer"
DESCRIPTION = "TIDL Network viewer using dot and graphviz"
HOMEPAGE = "https://downloads.ti.com/mctools/esd/docs/tidl-api/intro.html"
LICENSE = "BSD"

include tidl-api.inc

PR = "${INC_PR}.0"

DEPENDS = "boost boost-native ti-cgt6x-native clocl-native"

S = "${WORKDIR}/git"

TARGET_class-target = "arm"
TARGET_class-native = "x86"
TARGET_class-nativesdk = "x86"

EXTRA_OEMAKE = " -C ${S}/viewer \
                 TARGET=${TARGET} \
                 TARGET_ROOTDIR=${STAGING_DIR_HOST} \
"

do_compile() {
  oe_runmake
}

do_install() {
  install -d ${D}${bindir}
  install -m 755 ${S}/viewer/${TARGET}/tidl_viewer ${D}${bindir}
}

BBCLASSEXTEND = "native nativesdk"

Fix tidl-viewer x86_64 build CXXFLAGS

SUMMARY = "TIDL Network Viewer"
DESCRIPTION = "TIDL Network viewer using dot and graphviz"
HOMEPAGE = "https://downloads.ti.com/mctools/esd/docs/tidl-api/intro.html"
LICENSE = "BSD"

include tidl-api.inc

PR = "${INC_PR}.1"

DEPENDS = "boost boost-native ti-cgt6x-native clocl-native"

S = "${WORKDIR}/git"

TARGET_class-target = "arm"
TARGET_class-native = "x86"
TARGET_class-nativesdk = "x86"

CXXFLAGS_append_class-native    = " -DPLATFORM_64BIT "
CXXFLAGS_append_class-nativesdk = " -DPLATFORM_64BIT "

EXTRA_OEMAKE = " -C ${S}/viewer \
                 TARGET=${TARGET} \
                 TARGET_ROOTDIR=${STAGING_DIR_HOST} \
"

do_compile() {
  oe_runmake
}

do_install() {
  install -d ${D}${bindir}
  install -m 755 ${S}/viewer/${TARGET}/tidl_viewer ${D}${bindir}
}

BBCLASSEXTEND = "native nativesdk"


DESCRIPTION = "Cryptography demo descriptions for Matrix v2"
HOMEPAGE = "https://gitorious.org/matrix-gui-v2/matrix-gui-v2-apps"
LICENSE = "CC-BY-SA"

require matrix-gui-apps-git.inc

PR = "${INC_PR}.1"

inherit allarch

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

# Make sure crypto submenu and app images has been installed. Also make sure openssl is available
RDEPENDS_${PN} += "matrix-gui-apps-images matrix-gui-submenus-cryptos openssl"

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

Switch to C base crypto applications

DESCRIPTION = "Cryptography demo descriptions for Matrix v2"
HOMEPAGE = "https://gitorious.org/matrix-gui-v2/matrix-gui-v2-apps"
LICENSE = "CC-BY-SA"

require matrix-gui-apps-git.inc

PR = "${INC_PR}.2"

inherit allarch

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

# Make sure crypto submenu and app images has been installed. Also make sure openssl is available
RDEPENDS_${PN} += "matrix-gui-apps-images matrix-gui-submenus-cryptos openssl ti-crypto-examples"

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


SECTION = "console/utils"
DESCRIPTION = "Video4linux Two sample applications"
LICENSE = "PD"
DEPENDS = "libxaw virtual/libx11 libxt"

SRC_URI = "http://www.thedirks.org/pub/v4l2/apps/apps${PV}.tgz"
S = "${WORKDIR}"

#FIXME: currently busted, as it requires v4l2 -kernel headers.
#either fix the apps to use headers not in linux/, or make this package
#depend on an actual virtual/kernel that supports v4l2.
BROKEN = "1"

do_install () {
	install -d ${S}/${bindir}
	install -m 0755 vcat vctrl vidpanel xcaptest ${D}${bindir}/
}

SRC_URI[md5sum] = "16d8cbed24945949956b6f7966f4a609"
SRC_URI[sha256sum] = "9ec43259123b89980ad0b5a36b8d582cf877d918019f993f629a9fa5327a5c58"

Switch to subdir= in SRC_URI

SECTION = "console/utils"
DESCRIPTION = "Video4linux Two sample applications"
LICENSE = "PD"
DEPENDS = "libxaw virtual/libx11 libxt"

SRC_URI = "http://www.thedirks.org/pub/v4l2/apps/apps${PV}.tgz;subdir=${BPN}-${PV}"

#FIXME: currently busted, as it requires v4l2 -kernel headers.
#either fix the apps to use headers not in linux/, or make this package
#depend on an actual virtual/kernel that supports v4l2.
BROKEN = "1"

do_install () {
	install -d ${S}/${bindir}
	install -m 0755 vcat vctrl vidpanel xcaptest ${D}${bindir}/
}

SRC_URI[md5sum] = "16d8cbed24945949956b6f7966f4a609"
SRC_URI[sha256sum] = "9ec43259123b89980ad0b5a36b8d582cf877d918019f993f629a9fa5327a5c58"


SUMMARY = "C++ library for client-side URL transfers"
HOMEPAGE = "http://www.curlpp.org/"
SECTION = "libdevel"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"

DEPENDS = "curl"
DEPENDS_class-native = "curl-native"

SRC_URI = "git://github.com/jpbarrette/curlpp.git"

SRCREV = "592552a165cc569dac7674cb7fc9de3dc829906f"

S = "${WORKDIR}/git"

inherit cmake pkgconfig binconfig

do_install_append () {
    sed -i 's,${STAGING_DIR_TARGET},,g' ${D}${libdir}/pkgconfig/curlpp.pc
}

PACKAGES =+ "libcurlpp libcurlpp-dev libcurlpp-staticdev"

FILES_lib${BPN} = "${libdir}/lib*.so.*"

FILES_lib${BPN}-dev = "${includedir} \
    ${libdir}/pkgconfig \
    ${bindir}/*-config \
"

FILES_lib${BPN}-staticdev = "${libdir}/lib*.a"

BBCLASSEXTEND = "native nativesdk"

Fix packaging and reference to license

SUMMARY = "C++ library for client-side URL transfers"
HOMEPAGE = "http://www.curlpp.org/"
SECTION = "libdevel"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://doc/LICENSE;md5=fd0c9adf285a69aa3b4faf34384e1029"

DEPENDS = "curl"
DEPENDS_class-native = "curl-native"

SRC_URI = "git://github.com/jpbarrette/curlpp.git"

SRCREV = "592552a165cc569dac7674cb7fc9de3dc829906f"

S = "${WORKDIR}/git"

inherit cmake pkgconfig binconfig

BBCLASSEXTEND = "native nativesdk"


PR = "r4"
MAINTAINER = "Oyvind Repvik <nail@nslu2-linux.org"
DEPENDS = "libol"

SRC_URI = "http://www.balabit.com/downloads/syslog-ng/1.6/src/${PN}-${PV}.tar.gz"

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

EXTRA_OECONF = "--with-libol=${STAGING_BINDIR}/"
CONFFILES_${PN} = "${sysconfdir}/${PN}/syslog-ng.conf"

do_install_append() {
	install -d ${D}/${sysconfdir}/${PN}
	install ${S}/doc/syslog-ng.conf.sample ${D}${sysconfdir}/${PN}/syslog-ng.conf

}

Add initscript. Remove/reinstall busybox syslog on install/remove. Should work entirely out of the box now

PR = "r5"
MAINTAINER = "Oyvind Repvik <nail@nslu2-linux.org"
DESCRIPTION = "Alternative system logger daemon"
DEPENDS = "libol"

SRC_URI = "http://www.balabit.com/downloads/syslog-ng/1.6/src/${PN}-${PV}.tar.gz \
	  file://initscript"

S = "${WORKDIR}/${PN}-${PV}"
inherit autotools update-rc.d

EXTRA_OECONF = "--with-libol=${STAGING_BINDIR}/"
CONFFILES_${PN} = "${sysconfdir}/${PN}/syslog-ng.conf"
INITSCRIPT_NAME = "syslog-ng"

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

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

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


DESCRIPTION = "Library for lowlevel pixel operations"

SRC_URI = "http://cairographics.org/releases/pixman-${PV}.tar.gz"

Fix previous cleanup. Removed too much.

SECTION = "libs"
PRIORITY = "optional"
DESCRIPTION = "Low-level pixel manipulation library."
LICENSE = "X11"

SRC_URI = "http://cairographics.org/releases/pixman-${PV}.tar.gz"
S = "${WORKDIR}/pixman-${PV}"

inherit autotools pkgconfig

do_stage () {
 	autotools_stage_all
}


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.

Remove COPYING file from bb 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://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.


SUMMARY = "Stand-alone system tray"
DESCRIPTION = "Stalonetray is a stand-alone freedesktop.org and KDE system tray"
SECTION = "x11/graphics"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"

DEPENDS = "virtual/libx11"

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

SRC_URI[md5sum] = "ae95dbbacc2620e032acea8abab8c9ef"
SRC_URI[sha256sum] = "36548a588b2d466913423245dda6ffb6313132cd0cec635a117d37b3dab5fd4c"

inherit autotools

Add x11 to required distro feature

SUMMARY = "Stand-alone system tray"
DESCRIPTION = "Stalonetray is a stand-alone freedesktop.org and KDE system tray"
SECTION = "x11/graphics"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"

DEPENDS = "virtual/libx11"

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

SRC_URI[md5sum] = "ae95dbbacc2620e032acea8abab8c9ef"
SRC_URI[sha256sum] = "36548a588b2d466913423245dda6ffb6313132cd0cec635a117d37b3dab5fd4c"

inherit autotools features_check

REQUIRED_DISTRO_FEATURES = "x11"


DESCRIPTION = "library implementing Secure RTP (RFC 3711)"
HOMEPAGE = "https://github.com/cisco/libsrtp"
SECTION = "libs"

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

S = "${WORKDIR}/git"
SRCREV = "2b091a4fb21c9b06fc5d4b5763bdaec97542fcd7"
SRC_URI = "git://github.com/cisco/libsrtp.git;protocol=https;branch=1_6_x_throttle; \
           file://0001-Rename-conflicting-variable-mips.patch \
           "

inherit autotools

ALLOW_EMPTY_${PN} = "1"

Fix compilation and add pkgconfig

DESCRIPTION = "library implementing Secure RTP (RFC 3711)"
HOMEPAGE = "https://github.com/cisco/libsrtp"
SECTION = "libs"

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

S = "${WORKDIR}/git"
SRCREV = "2b091a4fb21c9b06fc5d4b5763bdaec97542fcd7"
SRC_URI = "git://github.com/cisco/libsrtp.git;protocol=https;branch=1_6_x_throttle; \
           file://0001-Rename-conflicting-variable-mips.patch \
           "

inherit autotools pkgconfig

EXTRA_OEMAKE += "shared_library"

ALLOW_EMPTY_${PN} = "1"


DESCRIPTION = "MPEG Audio Decoder Library"
SECTION = "libs"
PRIORITY = "optional"
DEPENDS = "libid3tag"
LICENSE = "GPL"
PR = "r5"

SRC_URI = "${SOURCEFORGE_MIRROR}/mad/libmad-${PV}.tar.gz \
           file://add-pkgconfig.patch \
	   file://mad.diff \
	   file://mad-mips-h-constraint.patch"

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

SRC_URI_append_avr32 = " file://libmad-0.15.1b-avr32-optimization.patch"

inherit autotools pkgconfig

EXTRA_OECONF = "-enable-speed --enable-shared"
# The ASO's don't take any account of thumb...
EXTRA_OECONF_append_thumb = " --disable-aso --enable-fpm=default"
EXTRA_OECONF_append_arm = " --enable-fpm=arm"

do_configure_prepend () {
#	damn picky automake...
	touch NEWS AUTHORS ChangeLog
}

ARM_INSTRUCTION_SET = "arm"

SRC_URI[md5sum] = "1be543bc30c56fb6bea1d7bf6a64e66c"
SRC_URI[sha256sum] = "bbfac3ed6bfbc2823d3775ebb931087371e142bb0e9bb1bee51a76a6e0078690"

Update LICENSE field version to GPLv2

DESCRIPTION = "MPEG Audio Decoder Library"
SECTION = "libs"
PRIORITY = "optional"
DEPENDS = "libid3tag"
LICENSE = "GPLv2"
PR = "r6"

SRC_URI = "${SOURCEFORGE_MIRROR}/mad/libmad-${PV}.tar.gz \
           file://add-pkgconfig.patch \
	   file://mad.diff \
	   file://mad-mips-h-constraint.patch"

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

SRC_URI_append_avr32 = " file://libmad-0.15.1b-avr32-optimization.patch"

inherit autotools pkgconfig

EXTRA_OECONF = "-enable-speed --enable-shared"
# The ASO's don't take any account of thumb...
EXTRA_OECONF_append_thumb = " --disable-aso --enable-fpm=default"
EXTRA_OECONF_append_arm = " --enable-fpm=arm"

do_configure_prepend () {
#	damn picky automake...
	touch NEWS AUTHORS ChangeLog
}

ARM_INSTRUCTION_SET = "arm"

SRC_URI[md5sum] = "1be543bc30c56fb6bea1d7bf6a64e66c"
SRC_URI[sha256sum] = "bbfac3ed6bfbc2823d3775ebb931087371e142bb0e9bb1bee51a76a6e0078690"


# Copyright (C) 2017 Aaron Brice <aaron.brice@datasoft.com>
# Released under the MIT license (see COPYING.MIT for the terms)

DESCRIPTION = "Administration tool for IP sets"
HOMEPAGE = "http://ipset.netfilter.org"
LICENSE = "GPL-2.0"
LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
SECTION = "base"

DEPENDS = "libtool libmnl"
RDEPENDS_${PN} = "kernel-module-ip-set"

SRC_URI = "http://ftp.netfilter.org/pub/ipset/${PN}-${PV}.tar.bz2"

SRC_URI[md5sum] = "0e5d9c85f6b78e7dff0c996e2900574b"
SRC_URI[sha256sum] = "ceef625ba31fe0aaa422926c7231a819de0b07644c02c17ebdd3022a29e3e244"

inherit autotools pkgconfig module-base

EXTRA_OECONF += "-with-kbuild=${KBUILD_OUTPUT} --with-ksource=${STAGING_KERNEL_DIR}"

Replace need for BPN-PV with BP

# Copyright (C) 2017 Aaron Brice <aaron.brice@datasoft.com>
# Released under the MIT license (see COPYING.MIT for the terms)

DESCRIPTION = "Administration tool for IP sets"
HOMEPAGE = "http://ipset.netfilter.org"
LICENSE = "GPL-2.0"
LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
SECTION = "base"

DEPENDS = "libtool libmnl"
RDEPENDS_${PN} = "kernel-module-ip-set"

SRC_URI = "http://ftp.netfilter.org/pub/ipset/${BP}.tar.bz2"

SRC_URI[md5sum] = "0e5d9c85f6b78e7dff0c996e2900574b"
SRC_URI[sha256sum] = "ceef625ba31fe0aaa422926c7231a819de0b07644c02c17ebdd3022a29e3e244"

inherit autotools pkgconfig module-base

EXTRA_OECONF += "-with-kbuild=${KBUILD_OUTPUT} --with-ksource=${STAGING_KERNEL_DIR}"


require base-rootfs.inc

RECIPE_OPTIONS = "base_rootfs_ext2_options"

inherit ext2-image
DEFAULT_CONFIG_base_rootfs_ext2_options = "--faketime --squash"
EXT2_IMAGE_OPTIONS = "${RECIPE_OPTION_base_rootfs_ext2_options}"

inherit tar-image

Change default base_rootfs_ext2_options to also --allow-holes

require base-rootfs.inc

RECIPE_OPTIONS = "base_rootfs_ext2_options"

inherit ext2-image
DEFAULT_CONFIG_base_rootfs_ext2_options = "-z -q -f"
EXT2_IMAGE_OPTIONS = "${RECIPE_OPTION_base_rootfs_ext2_options}"

inherit tar-image


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

inherit autotools pkgconfig

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

DEPENDS = "libdrm ti-ipc"

SRC_URI = "git://git.omapzoom.org/repo/libdce.git;protocol=git"
SRCREV = "1916cfef94c4ee41c2beedc9cd87b8916ad29895"

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

Update to latest IPC 3.30.03.14

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

inherit autotools pkgconfig

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

DEPENDS = "libdrm ti-ipc"

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

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


require recipes-graphics/xorg-driver/xorg-driver-video.inc

DESCRIPTION = "X.Org X server -- A10/A13 display driver"

PR = "1"

LICENSE = "MIT-X"
LIC_FILES_CHKSUM = "file://COPYING;md5=f91dc3ee5ce59eb4b528e67e98a31266"

SRC_URI = "git://github.com/ssvb/xf86-video-sunxifb.git;protocol=http;branch=master"

SRCREV_pn-${PN} = "cbd5b2b6439308b293c84cce5e7923ef072c8110"
S = "${WORKDIR}/git"

CFLAGS += " -I${STAGING_INCDIR}/xorg "

DEPENDS += "sunxi-mali"

Change sunxifb to the new repository

require recipes-graphics/xorg-driver/xorg-driver-video.inc

DESCRIPTION = "X.Org X server -- A10/A13 display driver"

PR = "1"

LICENSE = "MIT-X"
LIC_FILES_CHKSUM = "file://COPYING;md5=f91dc3ee5ce59eb4b528e67e98a31266"

SRC_URI = "git://github.com/ssvb/xf86-video-fbturbo.git;protocol=http;branch=master"

SRCREV_pn-${PN} = "fed3148bad26186dd04707cdac67809a666f1742"
S = "${WORKDIR}/git"

CFLAGS += " -I${STAGING_INCDIR}/xorg "

DEPENDS += "sunxi-mali"


require gst-plugins.inc

INC_PR = "r0"
PR = "${INC_PR}.0"

do_configure_prepend() {
    sed -i -e s:docs::g Makefile.am
}

DEPENDS += "gst-plugins-base>=0.10.30"
do_configure[depends] += "gst-plugins-base:do_populate_sysroot"

EXTRA_OECONF_openpli += "--disable-apexsink --disable-dvdnav --disable-cdaudio --disable-mpeg2enc --disable-mplex"

SRC_URI_append_openpli += " file://mpegpsdemux_speedup.diff;patch=1;pnum=0 \
				 file://mpegtsdemux_fix_ac3_detection.diff;patch=1;pnum=0 \
				 file://aacparse-fix-rank.diff;patch=1;pnum=1 \
				 file://ac3parse-fix-rank.diff;patch=1;pnum=1"

RCONFLICTS_gst-plugin-mpegdemux = "gst-plugin-fluendo-mpegdemux"
RREPLACES_gst-plugin-mpegdemux = "gst-plugin-fluendo-mpegdemux"

Revert "gst-plugins-bad: Try to explain the build order"

require gst-plugins.inc

INC_PR = "r0"
PR = "${INC_PR}.0"

do_configure_prepend() {
    sed -i -e s:docs::g Makefile.am
}

DEPENDS += "gst-plugins-base>=0.10.30"

EXTRA_OECONF_openpli += "--disable-apexsink --disable-dvdnav --disable-cdaudio --disable-mpeg2enc --disable-mplex"

SRC_URI_append_openpli += " file://mpegpsdemux_speedup.diff;patch=1;pnum=0 \
				 file://mpegtsdemux_fix_ac3_detection.diff;patch=1;pnum=0 \
				 file://aacparse-fix-rank.diff;patch=1;pnum=1 \
				 file://ac3parse-fix-rank.diff;patch=1;pnum=1"

RCONFLICTS_gst-plugin-mpegdemux = "gst-plugin-fluendo-mpegdemux"
RREPLACES_gst-plugin-mpegdemux = "gst-plugin-fluendo-mpegdemux"


DESCRIPTION = "Minimal initramfs image for Tegra platforms"
LICENSE = "MIT"

TEGRA_INITRD_INSTALL ??= ""
INITRD_FSTYPES ??= "${INITRAMFS_FSTYPES}"

PACKAGE_INSTALL = "\
    tegra-firmware-xusb \
    tegra-minimal-init \
    ${TEGRA_INITRD_INSTALL} \
"

IMAGE_FEATURES = ""
IMAGE_LINGUAS = ""

COPY_LIC_MANIFEST = "0"
COPY_LIC_DIRS = "0"

COMPATIBLE_MACHINE = "(tegra)"

KERNELDEPMODDEPEND = ""

IMAGE_ROOTFS_SIZE = "8192"

inherit core-image

IMAGE_FSTYPES = "${INITRD_FSTYPES}"

Set IMAGE_ROOTFS_EXTRA_SPACE to zero in initramfs

DESCRIPTION = "Minimal initramfs image for Tegra platforms"
LICENSE = "MIT"

TEGRA_INITRD_INSTALL ??= ""
INITRD_FSTYPES ??= "${INITRAMFS_FSTYPES}"

PACKAGE_INSTALL = "\
    tegra-firmware-xusb \
    tegra-minimal-init \
    ${TEGRA_INITRD_INSTALL} \
"

IMAGE_FEATURES = ""
IMAGE_LINGUAS = ""

COPY_LIC_MANIFEST = "0"
COPY_LIC_DIRS = "0"

COMPATIBLE_MACHINE = "(tegra)"

KERNELDEPMODDEPEND = ""

IMAGE_ROOTFS_SIZE = "8192"
IMAGE_ROOTFS_EXTRA_SPACE = "0"

inherit core-image

IMAGE_FSTYPES = "${INITRD_FSTYPES}"


require gvfs.inc

BPN = "gvfs"

DEPENDS = "gvfs gnome-disk-utility"

PR = "${INC_PR}.0"

# we need gdu files only: reduce files to delete in libexecdir
EXTRA_OECONF += "--disable-gphoto2 \
                 --disable-afc \
                 --disable-samba"

do_install_append() {
    rm -rf ${D}${sysconfdir}
    rm -rf ${D}${bindir}
    rm -rf ${D}${includedir}
    rm -rf ${D}${libdir}/gio
    rm -rf ${D}${libdir}/lib*
    rmdir --ignore-fail-on-non-empty ${D}${libdir}
    rm -rf ${D}${datadir}/gvfs/mounts
    rm -rf ${D}${datadir}/glib-2.0
    rm -rf ${D}${datadir}/GConf
    rm -f ${D}${datadir}/dbus-1/services/gvfs-*
    rm -rf ${D}${datadir}/locale
    rm -f ${D}${libexecdir}/gvfsd*
    rm -f ${D}${libexecdir}/gvfs-fuse-daemon
    rm -f ${D}${libexecdir}/gvfs-gphoto2-volume-monitor
}

Define build dependency on libgnome-keyring

require gvfs.inc

BPN = "gvfs"

DEPENDS = "gvfs gnome-disk-utility libgnome-keyring"
PR = "${INC_PR}.0"

# we need gdu files only: reduce files to delete in libexecdir
EXTRA_OECONF += "--disable-gphoto2 \
                 --disable-afc \
                 --disable-samba"

do_install_append() {
    rm -rf ${D}${sysconfdir}
    rm -rf ${D}${bindir}
    rm -rf ${D}${includedir}
    rm -rf ${D}${libdir}/gio
    rm -rf ${D}${libdir}/lib*
    rmdir --ignore-fail-on-non-empty ${D}${libdir}
    rm -rf ${D}${datadir}/gvfs/mounts
    rm -rf ${D}${datadir}/glib-2.0
    rm -rf ${D}${datadir}/GConf
    rm -f ${D}${datadir}/dbus-1/services/gvfs-*
    rm -rf ${D}${datadir}/locale
    rm -f ${D}${libexecdir}/gvfsd*
    rm -f ${D}${libexecdir}/gvfs-fuse-daemon
    rm -f ${D}${libexecdir}/gvfs-gphoto2-volume-monitor
}


FILESEXTRAPATHS_prepend := "${THISDIR}:"

DESCRIPTION = "ACME Utilities"
SECTION = "acme"
DEPENDS = "python3"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://LICENSE;md5=578ecfeb82fabd60bb6310f0bf6af799"

SRC_URI = "git://github.com/bayLibre-acme/acme-utils.git;branch=next"
SRCREV = "next"

S = "${WORKDIR}/git"

inherit systemd

SYSTEMD_SERVICE_${PN} = "pyacmed.service"
SYSTEMD_PACKAGES = "${PN}"

do_compile() {
	     make -C api
}

do_install() {
	     install -d ${D}${bindir}
	     install -d ${D}${systemd_unitdir}/system/
	     install -m 0755 api/dut-hard-reset ${D}${bindir}
	     install -m 0755 api/dut-switch-*   ${D}${bindir}
	     install -m 0755 api/dut-dump-probe ${D}${bindir}
	     install -m 0755 pyacmed/pyacmed    ${D}${bindir}
	     install -m 0644 pyacmed/pyacmed.service ${D}${systemd_unitdir}/system
	     sed -i -e 's,@BINDIR@,${bindir},g' ${D}${systemd_unitdir}/system/pyacmed.service
}

Add back python3 modules rdepends

FILESEXTRAPATHS_prepend := "${THISDIR}:"

DESCRIPTION = "ACME Utilities"
SECTION = "acme"
DEPENDS = "python3"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://LICENSE;md5=578ecfeb82fabd60bb6310f0bf6af799"

SRC_URI = "git://github.com/bayLibre-acme/acme-utils.git;branch=next"
SRCREV = "next"

S = "${WORKDIR}/git"

RDEPENDS_${PN} = "python3-modules"

inherit systemd

SYSTEMD_SERVICE_${PN} = "pyacmed.service"
SYSTEMD_PACKAGES = "${PN}"

do_compile() {
	     make -C api
}

do_install() {
	     install -d ${D}${bindir}
	     install -d ${D}${systemd_unitdir}/system/
	     install -m 0755 api/dut-hard-reset ${D}${bindir}
	     install -m 0755 api/dut-switch-*   ${D}${bindir}
	     install -m 0755 api/dut-dump-probe ${D}${bindir}
	     install -m 0755 pyacmed/pyacmed    ${D}${bindir}
	     install -m 0644 pyacmed/pyacmed.service ${D}${systemd_unitdir}/system
	     sed -i -e 's,@BINDIR@,${bindir},g' ${D}${systemd_unitdir}/system/pyacmed.service
}


SUMMARY = "Different startup scripts"
SECTION = "base"
PR = "r0"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690"

SRC_URI = "file://rcS.swupdate \
	"

S = "${WORKDIR}"

do_install () {
	install -d ${D}/${sysconfdir}/init.d
	install -d ${D}${base_sbindir}
	install -m 755 ${S}/rcS.swupdate ${D}${base_sbindir}/init
}

PACKAGES = "${PN}"
FILES_${PN} = "/"

PACKAGE_ARCH = "${MACHINE_ARCH}"

CONFFILES_${PN} = ""

Fix for Yocto deprecation issue on MIT license file.

SUMMARY = "Different startup scripts"
SECTION = "base"
PR = "r0"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

SRC_URI = "file://rcS.swupdate \
	"

S = "${WORKDIR}"

do_install () {
	install -d ${D}/${sysconfdir}/init.d
	install -d ${D}${base_sbindir}
	install -m 755 ${S}/rcS.swupdate ${D}${base_sbindir}/init
}

PACKAGES = "${PN}"
FILES_${PN} = "/"

PACKAGE_ARCH = "${MACHINE_ARCH}"

CONFFILES_${PN} = ""


LINUX_VERSION = "5.15.19"
KBRANCH="xlnx_rebase_v5.15_LTS"
SRCREV = "b0c1be301e78c320df8c4d93b18393bfd7fd4e9d"

KCONF_AUDIT_LEVEL="0"

include linux-xlnx.inc

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

Update branch and SRCREV for update release

LINUX_VERSION = "5.15.19"
KBRANCH="xlnx_rebase_v5.15_LTS_2022.1_update"
SRCREV = "5ead03b6e64b5072737c653bb20ebcd88704e3d1"

KCONF_AUDIT_LEVEL="0"

include linux-xlnx.inc

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


require mender-artifact.inc

MENDER_ARTIFACT_BRANCH ?= "master"

SRC_URI = "git://github.com/mendersoftware/mender-artifact.git;protocol=https;branch=${MENDER_ARTIFACT_BRANCH}"

# The revision listed below is not really important, it's just a way to avoid
# network probing during parsing if we are not gonna build the git version
# anyway. If git version is enabled, the AUTOREV will be chosen instead of the
# SHA.
def mender_artifact_is_git_version(d):
    version = d.getVar("PREFERRED_VERSION_${PN}")
    if version is not None and "git" in version:
        return d.getVar("AUTOREV")
    else:
        return "77326b288c70cd713e7ad15d2a084b6ee797e8ff"
SRCREV ?= '${@mender_artifact_is_git_version(d)}'

PV = "${MENDER_ARTIFACT_BRANCH}-git${SRCPV}"

LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LIC_FILES_CHKSUM.sha256;md5=f4a3edb2a8fe8e2ecde8062ba20b1c86"

# Downprioritize this recipe in version selections.
DEFAULT_PREFERENCE = "-1"

Add missing comment about mender-artifact license files.

require mender-artifact.inc

MENDER_ARTIFACT_BRANCH ?= "master"

SRC_URI = "git://github.com/mendersoftware/mender-artifact.git;protocol=https;branch=${MENDER_ARTIFACT_BRANCH}"

# The revision listed below is not really important, it's just a way to avoid
# network probing during parsing if we are not gonna build the git version
# anyway. If git version is enabled, the AUTOREV will be chosen instead of the
# SHA.
def mender_artifact_is_git_version(d):
    version = d.getVar("PREFERRED_VERSION_${PN}")
    if version is not None and "git" in version:
        return d.getVar("AUTOREV")
    else:
        return "77326b288c70cd713e7ad15d2a084b6ee797e8ff"
SRCREV ?= '${@mender_artifact_is_git_version(d)}'

PV = "${MENDER_ARTIFACT_BRANCH}-git${SRCPV}"

# DO NOT change the checksum here without make sure that ALL licenses (including
# dependencies) are included in the LICENSE variable below.
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LIC_FILES_CHKSUM.sha256;md5=f4a3edb2a8fe8e2ecde8062ba20b1c86"

# Downprioritize this recipe in version selections.
DEFAULT_PREFERENCE = "-1"


require mraa.inc

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

Move to use GT branch with latest commit

require mraa.inc

SRC_URI = "git://github.com/intel-iot-devkit/mraa.git;protocol=git;branch=gt"
SRCREV = "9efeceb9af75809c48efbca55636639e3cd08617"


SUMMARY = "GNOME Shell Extensions"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=4cb3a392cbf81a9e685ec13b88c4c101"

GNOMEBASEBUILDCLASS = "meson"

inherit gnomebase gettext gsettings features_check

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

SRC_URI[archive.sha256sum] = "3ee65b75b1afd8bcca0a2a03da9b2884787ed40e257a881d9aa6ef7c8727602f"

DEPENDS += " \
    sassc-native \
"

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

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

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

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

Stop copying gnome-classic session to wayland

SUMMARY = "GNOME Shell Extensions"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=4cb3a392cbf81a9e685ec13b88c4c101"

GNOMEBASEBUILDCLASS = "meson"

inherit gnomebase gettext gsettings features_check

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

SRC_URI[archive.sha256sum] = "3ee65b75b1afd8bcca0a2a03da9b2884787ed40e257a881d9aa6ef7c8727602f"

DEPENDS += " \
    sassc-native \
"

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

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

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


# Base this image on core-image-minimal
include recipes-core/images/core-image-minimal.bb

# Include modules in rootfs
IMAGE_INSTALL += " \
	kernel-modules \
	"

Add wayland/weston to the build

# Base this image on core-image-minimal
#include recipes-image/images/tizen-common-core-image-minimal.bb

# Include modules in rootfs
IMAGE_INSTALL += " \
	kernel-modules \
	"

SUMMARY = "A very basic image"
LICENSE = "MIT"
DESCRIPTION = "An image with Tizen common."

inherit core-image distro_features_check

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

REQUIRED_DISTRO_FEATURES = "wayland pam"

CORE_IMAGE_BASE_INSTALL += "userland"
CORE_IMAGE_BASE_INSTALL += "v4l-utils"
CORE_IMAGE_BASE_INSTALL += "desktop-skin"
CORE_IMAGE_BASE_INSTALL += "packagegroup-tizen-gstreamer"

# from ./meta-tizen/meta-tizen-common-base/recipes-image/images/tizen-core-image-minimal.bb

CORE_IMAGE_BASE_INSTALL += "connman"
CORE_IMAGE_BASE_INSTALL += "${WESTONSTARTUP}"

# Profile specific configuration - default is Tizen common
CORE_IMAGE_BASE_INSTALL += "${IMAGECONFIG}"

CORE_IMAGE_BASE_INSTALL += "tlm"
CORE_IMAGE_BASE_INSTALL += "${TLMCONFIG}"

CORE_IMAGE_BASE_INSTALL += "gum-utils"
CORE_IMAGE_BASE_INSTALL += "meta-common"
CORE_IMAGE_BASE_INSTALL += "pam"
CORE_IMAGE_BASE_INSTALL += "user-session-units"
CORE_IMAGE_BASE_INSTALL += "default-ac-domains"
CORE_IMAGE_BASE_INSTALL += "rpm-security-plugin"
CORE_IMAGE_BASE_INSTALL += "config-image"
CORE_IMAGE_BASE_INSTALL += "kernel-modules"
CORE_IMAGE_BASE_INSTALL += "less"
CORE_IMAGE_BASE_INSTALL += "bash"
CORE_IMAGE_BASE_INSTALL += "psmisc"
CORE_IMAGE_BASE_INSTALL += "coreutils"
CORE_IMAGE_BASE_INSTALL += "procps"

# Fonts
CORE_IMAGE_EXTRA_INSTALL += "packagegroup-tizen-fonts-ttf"
CORE_IMAGE_EXTRA_INSTALL += "packagegroup-tizen-fonts-pango"

export SYSROOT = "${IMAGE_ROOTFS}"


require qt5.inc
require qt5-git.inc

LICENSE = "(GPL-3.0 & BSD) | The-Qt-Company-Commercial"
LIC_FILES_CHKSUM = " \
    file://LICENSE.GPL3;md5=d32239bcb673463ab874e80d47fae504 \
"

DEPENDS += "qtbase qtdeclarative qtquickcontrols2"

SRC_URI += " \
    git://github.com/assimp/assimp.git;name=assimp;branch=master;protocol=https;destsuffix=git/src/3rdparty/assimp/src \
"

PACKAGECONFIG ??= ""
PACKAGECONFIG[system-assimp] = "-system-assimp,-qt-assimp,assimp"

EXTRA_QMAKEVARS_CONFIGURE += "${PACKAGECONFIG_CONFARGS}"

FILES_${PN}-qmlplugins += " \
  ${OE_QMAKE_PATH_QML}/QtQuick3D/Helpers/meshes/*.mesh \
"

SRCREV_qtquick3d = "f45dd1261fd9a3343742cc528d63a27e60c90205"
SRCREV_assimp = "8f0c6b04b2257a520aaab38421b2e090204b69df"

SRCREV_FORMAT = "qtquick3d_assimp"

Fix branch for fetching assimp submodule

require qt5.inc
require qt5-git.inc

LICENSE = "(GPL-3.0 & BSD) | The-Qt-Company-Commercial"
LIC_FILES_CHKSUM = " \
    file://LICENSE.GPL3;md5=d32239bcb673463ab874e80d47fae504 \
"

DEPENDS += "qtbase qtdeclarative qtquickcontrols2"

SRC_URI += " \
    git://github.com/assimp/assimp.git;name=assimp;branch=assimp_5.0_release;protocol=https;destsuffix=git/src/3rdparty/assimp/src \
"

PACKAGECONFIG ??= ""
PACKAGECONFIG[system-assimp] = "-system-assimp,-qt-assimp,assimp"

EXTRA_QMAKEVARS_CONFIGURE += "${PACKAGECONFIG_CONFARGS}"

FILES_${PN}-qmlplugins += " \
  ${OE_QMAKE_PATH_QML}/QtQuick3D/Helpers/meshes/*.mesh \
"

SRCREV_qtquick3d = "f45dd1261fd9a3343742cc528d63a27e60c90205"
SRCREV_assimp = "8f0c6b04b2257a520aaab38421b2e090204b69df"

SRCREV_FORMAT = "qtquick3d_assimp"


# Copyright (C) 2014 O.S. Systems Software LTDA.

SUMMARY = "Host packages for the Qt5 standalone SDK or external toolchain"
LICENSE = "MIT"

inherit nativesdk packagegroup

PACKAGEGROUP_DISABLE_COMPLEMENTARY = "1"

RDEPENDS_${PN} += " \
    nativesdk-packagegroup-sdk-host \
    nativesdk-qttools-tools \
    nativesdk-qtbase \
    nativesdk-qtbase-dev \
    nativesdk-perl-modules \
"

Add nativesdk-qtdeclarative-tools to nativesdk packagegroup

# Copyright (C) 2014 O.S. Systems Software LTDA.

SUMMARY = "Host packages for the Qt5 standalone SDK or external toolchain"
LICENSE = "MIT"

inherit nativesdk packagegroup

PACKAGEGROUP_DISABLE_COMPLEMENTARY = "1"

RDEPENDS_${PN} += " \
    nativesdk-packagegroup-sdk-host \
    nativesdk-qttools-tools \
    nativesdk-qtbase \
    nativesdk-qtbase-dev \
    nativesdk-perl-modules \
    nativesdk-qtdeclarative-tools \
"


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

def get_filespath_extra(d, subpath):
    metaroot = next((p for p in d.getVar('BBPATH').split(':') if os.path.basename(p) == 'meta'), None)
    if metaroot:
        return os.path.join(metaroot, subpath) + ":"
    return ""

# TODO: improve this, since it is very hacky that this recipe need to build tunctl.
# include the existing qemu-helper-native
require recipes-devtools/qemu/qemu-helper-native_1.0.bb
# get the path to tunctl.c
FILESEXTRAPATHS_prepend := "${@get_filespath_extra(d, 'recipes-devtools/qemu/qemu-helper')}"

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

# replace qemu with qemu-xilinx
DEPENDS_remove = "qemu-system-native"
DEPENDS_append = " \
		qemu-xilinx-system-native \
		qemu-xilinx-multiarch-helper-native \
		"

RDEPENDS_${PN}_remove = "qemu-system-native"
RDEPENDS_${PN}_append = " qemu-xilinx-system-native"

Change the way we find the oe-core files

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

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

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

# replace qemu with qemu-xilinx
DEPENDS_remove = "qemu-system-native"
DEPENDS_append = " \
		qemu-xilinx-system-native \
		qemu-xilinx-multiarch-helper-native \
		"

RDEPENDS_${PN}_remove = "qemu-system-native"
RDEPENDS_${PN}_append = " qemu-xilinx-system-native"


DESCRIPTION = "Minimal Hello world!"
LICENSE = "GPL"
LIC_FILES_CHKSUM = "file://helloworld.c;md5=5251979965bb2281b6a6dc1eb7fd64bc"

do_fetch () {
	mkdir -p ${S}
	cd ${S}
	printf "#include <stdio.h>\nint main(void)\n{\n\tprintf(\"Hello world!\\\n\");\twhile(1);\n\treturn 0;\n}\n" >helloworld.c
}

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

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

Remove the infinite loop from helloworld

DESCRIPTION = "Minimal Hello world!"
LICENSE = "GPL"
LIC_FILES_CHKSUM = "file://helloworld.c;md5=0790c8c6a3871d0c3bed428b4ae240c4"

do_fetch () {
	mkdir -p ${S}
	cd ${S}
	printf "#include <stdio.h>\nint main(void)\n{\n\tprintf(\"Hello world!\\\n\");\n\treturn 0;\n}\n" >helloworld.c
}

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

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


SECTION = "libs"
DESCRIPTION = "Liboop is a low-level event loop management library \
for POSIX-based operating systems."
LICENSE = "LGPL"

SRC_URI = "http://download.ofb.net/liboop/liboop-${PV}.tar.bz2"
S = "${WORKDIR}/liboop-${PV}"

inherit autotools  pkgconfig

headers = "oop.h oop-adns.h oop-glib.h \
	  oop-tcl.h oop-www.h oop-rl.h \
	  oop-read.h"
do_stage () {
	oe_libinstall -a -so liboop ${STAGING_LIBDIR}
	install -m 0644 ${headers} ${STAGING_INCDIR}/
}

Disable www, glib, adns, readline and tcl as it is not in the DEPENDS

SECTION = "libs"
DESCRIPTION = "Liboop is a low-level event loop management library \
for POSIX-based operating systems."
LICENSE = "LGPL"

SRC_URI = "http://download.ofb.net/liboop/liboop-${PV}.tar.bz2"
S = "${WORKDIR}/liboop-${PV}"

inherit autotools  pkgconfig

EXTRA_OECONF = "--without-tcl --without-glib \
                --without-readline --without-adns"

headers = "oop.h oop-adns.h oop-glib.h \
	  oop-tcl.h oop-www.h oop-rl.h \
	  oop-read.h"
do_stage () {
	oe_libinstall -a -so liboop ${STAGING_LIBDIR}
	install -m 0644 ${headers} ${STAGING_INCDIR}/
}


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

IMAGE_FEATURES += "ssh-server-openssh"
IMAGE_FSTYPES += "ext3"

VIRTUAL-RUNTIME_init_manager = "sysvinit"
TASK_BASIC_SSHDAEMON = ""

IMAGE_INSTALL = "\
    packagegroup-boot \
    packagegroup-base-extended \
    packagegroup-basic \
    procps \
    i2c-tools \
    tmux coreutils gateone zsh-full sudo \
    connman connman-tests connman-tools \
    ${CORE_IMAGE_EXTRA_INSTALL} \
    "

inherit core-image

Make the comment in this image reflect reality.

DESCRIPTION = "A console-only sysvinit image with openssh and procps."

IMAGE_FEATURES += "ssh-server-openssh"
IMAGE_FSTYPES += "ext3"

VIRTUAL-RUNTIME_init_manager = "sysvinit"
TASK_BASIC_SSHDAEMON = ""

IMAGE_INSTALL = "\
    packagegroup-boot \
    packagegroup-base-extended \
    packagegroup-basic \
    procps \
    i2c-tools \
    tmux coreutils gateone zsh-full sudo \
    connman connman-tests connman-tools \
    ${CORE_IMAGE_EXTRA_INSTALL} \
    "

inherit core-image


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

S = "${WORKDIR}/git"

DEPENDS = "ti-cgt-pru-native"

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

# Corresponds to version 01.00.00.00
SRCREV = "f04b91b84331c9a12c897e4eb2836a0a3e3a5fae"

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

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

Update recipe to fix issues with Make

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

S = "${WORKDIR}/git"

DEPENDS = "ti-cgt-pru-native"

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

# Corresponds to version 01.00.00.00A
SRCREV = "88e78564ff9094ecb13b53d627fa6bfb25d9ac03"

PR = "r1"

COMPATIBLE_MACHINE = "am57xx-evm"

PACKAGE_ARCH = "${MACHINE_ARCH}"

DEVICE_NAME = ""
DEVICE_NAME_append_am57xx-evm = "am57xx"

EXTRA_OEMAKE = "CGT_PRU=${TI_CGT_PRU_INSTALL_DIR} DEVICE=${DEVICE_NAME}"

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


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

inherit module

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

BRANCH = "next"

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

SRCREV = "872aa64b227cadbc97755a4192919dd5ca637971"

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

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

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

Use kernel mechanism for module installation.

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

inherit module

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

BRANCH = "next"

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

SRCREV = "872aa64b227cadbc97755a4192919dd5ca637971"

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

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

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


DESCRIPTION = "Library for interacting with ID3 tags"
SECTION = "libs/multimedia"
PRIORITY = "optional"
LICENSE = "GPL"
DEPENDS = "zlib"
PR = "r3"

SRC_URI = "ftp://ftp.mars.org/pub/mpeg/libid3tag-${PV}.tar.gz \
           file://libid3tag-pkg-config.patch"
SRC_URI[md5sum] = "e5808ad997ba32c498803822078748c3"
SRC_URI[sha256sum] = "63da4f6e7997278f8a3fef4c6a372d342f705051d1eeb6a46a86b03610e26151"

inherit autotools pkgconfig

EXTRA_OECONF = "-enable-speed"

Update LICENSE field version to GPLv2

DESCRIPTION = "Library for interacting with ID3 tags"
SECTION = "libs/multimedia"
PRIORITY = "optional"
LICENSE = "GPLv2+"
DEPENDS = "zlib"
PR = "r4"

SRC_URI = "ftp://ftp.mars.org/pub/mpeg/libid3tag-${PV}.tar.gz \
           file://libid3tag-pkg-config.patch"
SRC_URI[md5sum] = "e5808ad997ba32c498803822078748c3"
SRC_URI[sha256sum] = "63da4f6e7997278f8a3fef4c6a372d342f705051d1eeb6a46a86b03610e26151"

inherit autotools pkgconfig

EXTRA_OECONF = "-enable-speed"


DESCRIPTION = "a unit test framework for C"
LICENSE = "LGPL"
MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
PRIORITY = "optional"
SECTION = "devel"

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

inherit autotools

EXTRA_OECONF += "--enable-plain-docdir"

Add staging of library and includes

DESCRIPTION = "a unit test framework for C"
LICENSE = "LGPL"
MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
PRIORITY = "optional"
SECTION = "devel"

PR="r1"

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

inherit autotools

EXTRA_OECONF += "--enable-plain-docdir"

do_stage() {

	install -m 0644 ${S}/src/check.h ${STAGING_INCDIR}/check.h
	oe_libinstall -a -C src libcheck ${STAGING_LIBDIR}
}


SECTION = "utils"
DESCRIPTION = "LVM2 is a set of utilities to manage logical volumes in Linux."
LICENSE = "GPL"
PR = ""
DEPENDS = "device-mapper"

S = "${WORKDIR}/LVM2.${PV}"

SRC_URI = "ftp://sources.redhat.com/pub/lvm2/LVM2.${PV}.tgz"

# Unset user/group to unbreak install.
EXTRA_OECONF = "--with-user= --with-group= --disable-o_direct"
EXTRA_OECONF_arm = "--with-user= --with-group= --disable-o_direct"
inherit autotools

Add PR so the package doesn't end in PV-

SECTION = "utils"
DESCRIPTION = "LVM2 is a set of utilities to manage logical volumes in Linux."
LICENSE = "GPL"
PR = "r0"
DEPENDS = "device-mapper"

S = "${WORKDIR}/LVM2.${PV}"

SRC_URI = "ftp://sources.redhat.com/pub/lvm2/LVM2.${PV}.tgz"

# Unset user/group to unbreak install.
EXTRA_OECONF = "--with-user= --with-group= --disable-o_direct"
EXTRA_OECONF_arm = "--with-user= --with-group= --disable-o_direct"
inherit autotools


require cairo.inc

PR = "r2"

SRC_URI = "http://cairographics.org/releases/cairo-${PV}.tar.gz;name=cairo \
"

SRC_URI[cairo.md5sum] = "70a2ece66cf473d976e2db0f75bf199e"
SRC_URI[cairo.sha256sum] = "0f2ce4cc4615594088d74eb8b5360bad7c3cc3c3da9b61af9bfd979ed1ed94b2"

Update LICENSE field version to MPL-1 and LGPLv2.1

require cairo.inc

LICENSE = "MPL-1 LGPLv2.1"

PR = "r3"

SRC_URI = "http://cairographics.org/releases/cairo-${PV}.tar.gz;name=cairo \
"

SRC_URI[cairo.md5sum] = "70a2ece66cf473d976e2db0f75bf199e"
SRC_URI[cairo.sha256sum] = "0f2ce4cc4615594088d74eb8b5360bad7c3cc3c3da9b61af9bfd979ed1ed94b2"


DESCRIPTION = "Asio 0.3.7 for work with boost, should be moved into boost package once integrated into the boost distribution."
HOMEPAGE = "http://asio.sf.net/"
MAINTAINER = "Martin Dietze <dietze@4g-systems.com>"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "Boost Software License"
PR = "r1"

inherit debian

SRC_URI = "${SOURCEFORGE_MIRROR}/asio/boost_asio_0_3_7.tar.bz2"

# mtx-[12] use 2.4 kernels but the kernel-libc-headers are from kernel 2.6,
# thus the automatic epoll detection does not work in epoll_reactor_fwd.hpp.
SRC_URI_append_mtx-1 = " file://disable-epoll.patch;patch=1"
SRC_URI_append_mtx-2 = " file://disable-epoll.patch;patch=1"

S = "${WORKDIR}/boost_asio_0_3_7"

do_configure() {
}

do_compile() {
}

do_install() {
	cd ${S}
	install -d ${D}/usr/include
	cp -dpR boost ${D}/usr/include
}

do_stage() {
	cd ${S}
	install -d -m 775 ${STAGING_INCDIR}
	cp -dpR boost ${STAGING_INCDIR}
}

PACKAGES = "${PN}-dev"
FILES_${PN}-dev = "/usr/include"

Remove inherit debian. We do not set distro policy in .bb files.

DESCRIPTION = "Asio 0.3.7 for work with boost, should be moved into boost package once integrated into the boost distribution."
HOMEPAGE = "http://asio.sf.net/"
MAINTAINER = "Martin Dietze <dietze@4g-systems.com>"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "Boost Software License"
PR = "r1"

SRC_URI = "${SOURCEFORGE_MIRROR}/asio/boost_asio_0_3_7.tar.bz2"

# mtx-[12] use 2.4 kernels but the kernel-libc-headers are from kernel 2.6,
# thus the automatic epoll detection does not work in epoll_reactor_fwd.hpp.
SRC_URI_append_mtx-1 = " file://disable-epoll.patch;patch=1"
SRC_URI_append_mtx-2 = " file://disable-epoll.patch;patch=1"

S = "${WORKDIR}/boost_asio_0_3_7"

do_configure() {
}

do_compile() {
}

do_install() {
	cd ${S}
	install -d ${D}/usr/include
	cp -dpR boost ${D}/usr/include
}

do_stage() {
	cd ${S}
	install -d -m 775 ${STAGING_INCDIR}
	cp -dpR boost ${STAGING_INCDIR}
}

PACKAGES = "${PN}-dev"
FILES_${PN}-dev = "/usr/include"


DESCRIPTION = "Image Gallery"
HOMEPAGE = "https://gitorious.org/image-gallery"
SECTION = "multimedia"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://LICENSE;md5=9c57cc1cdee589f97cbba69e95a89a15"

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

inherit qt-provider

PR = "r1"

BRANCH = "master"
SRCREV = "1f89d5e6c160e87e73a9c06933e50c3981bbf41d"

SRC_URI = "git://gitorious.org/image-gallery/image-gallery.git;protocol=git;branch=${BRANCH}"

S = "${WORKDIR}/git/"

do_install() {
	install -d ${D}/${bindir}
	install -m 0755 ${B}/image-gallery ${D}/${bindir}/image-gallery
	install -d ${D}${MATRIX_APP_DIR}/qt-image-gallery
	cp -rf matrix-files/*  ${D}${MATRIX_APP_DIR}/qt-image-gallery
}

PACKAGES += "matrix-gui-apps-image-gallery"

RDEPENDS_matrix-gui-apps-image-gallery  = "matrix-gui-apps-images matrix-gui-submenus-camera ${PN}"

FILES_matrix-gui-apps-image-gallery += "${MATRIX_APP_DIR}/*"

Fix installation of matrix files.

DESCRIPTION = "Image Gallery"
HOMEPAGE = "https://gitorious.org/image-gallery"
SECTION = "multimedia"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://LICENSE;md5=9c57cc1cdee589f97cbba69e95a89a15"

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

inherit qt-provider

PR = "r2"

BRANCH = "master"
SRCREV = "1f89d5e6c160e87e73a9c06933e50c3981bbf41d"

SRC_URI = "git://gitorious.org/image-gallery/image-gallery.git;protocol=git;branch=${BRANCH}"

S = "${WORKDIR}/git/"

do_install() {
	install -d ${D}/${bindir}
	install -m 0755 ${B}/image-gallery ${D}/${bindir}/image-gallery
	install -d ${D}${MATRIX_APP_DIR}/qt-image-gallery
	cp -rf ${S}/matrix-files/*  ${D}${MATRIX_APP_DIR}/qt-image-gallery
}

PACKAGES += "matrix-gui-apps-image-gallery"

RDEPENDS_matrix-gui-apps-image-gallery  = "matrix-gui-apps-images matrix-gui-submenus-camera ${PN}"

FILES_matrix-gui-apps-image-gallery += "${MATRIX_APP_DIR}/*"


SUMMARY = "Gesture Recognition And Instantiation Library"

HOMEPAGE = "https://launchpad.net/grail"

LICENSE = "GPLv3 & LGPLv3"
LIC_FILES_CHKSUM = " \
    file://COPYING;md5=e6a600fd5e1d9cbde2d983680233ad02 \
    file://COPYING.GPL3;md5=d32239bcb673463ab874e80d47fae504 \
"

inherit autotools pkgconfig

DEPENDS = "frame"

SRC_URI = "https://launchpad.net/${BPN}/trunk/${PV}/+download/${BPN}-${PV}.tar.bz2"
SRC_URI[md5sum] = "0df1b3ec6167920f310e2effe6e2ad44"
SRC_URI[sha256sum] = "5eed1f650f042481daa3a2de5e7d43261fe343b2a1b1e240f3b7fc26572c9df3"

PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}"
PACKAGECONFIG[x11] = "--with-x11, --without-x11, libxi"

PACKAGE_BEFORE_PN += "${PN}-test"
FILES_${PN}-test = "${bindir}/grail-test*"

Disable elision warnings for clang

SUMMARY = "Gesture Recognition And Instantiation Library"

HOMEPAGE = "https://launchpad.net/grail"

LICENSE = "GPLv3 & LGPLv3"
LIC_FILES_CHKSUM = " \
    file://COPYING;md5=e6a600fd5e1d9cbde2d983680233ad02 \
    file://COPYING.GPL3;md5=d32239bcb673463ab874e80d47fae504 \
"

inherit autotools pkgconfig

DEPENDS = "frame"
CXXFLAGS_append_toolchain-clang = " -Wno-pessimizing-move"
SRC_URI = "https://launchpad.net/${BPN}/trunk/${PV}/+download/${BPN}-${PV}.tar.bz2"
SRC_URI[md5sum] = "0df1b3ec6167920f310e2effe6e2ad44"
SRC_URI[sha256sum] = "5eed1f650f042481daa3a2de5e7d43261fe343b2a1b1e240f3b7fc26572c9df3"

PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}"
PACKAGECONFIG[x11] = "--with-x11, --without-x11, libxi"

PACKAGE_BEFORE_PN += "${PN}-test"
FILES_${PN}-test = "${bindir}/grail-test*"


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

DESCRIPTION = "LunaPreferencesManager"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
SECTION = "Linux/Multimedia"

PROVIDES = "luna-prefs"

DEPENDS += "luna-service2 mjson cjson sqlite3 glib-2.0"

inherit webos_component
inherit webos_public_repo
inherit webos_submissions
inherit webos_cmake

WEBOS_GIT_TAG = "${WEBOS_SUBMISSION}"
SRC_URI = "${OPENWEBOS_GIT_REPO}/${PN};tag=${WEBOS_GIT_TAG};protocol=git"
S = "${WORKDIR}/git"

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

Remove unneeded dependency on mjson

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

DESCRIPTION = "LunaPreferencesManager"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
SECTION = "Linux/Multimedia"

PROVIDES = "luna-prefs"

DEPENDS += "luna-service2 cjson sqlite3 glib-2.0"

inherit webos_component
inherit webos_public_repo
inherit webos_submissions
inherit webos_cmake

WEBOS_GIT_TAG = "${WEBOS_SUBMISSION}"
SRC_URI = "${OPENWEBOS_GIT_REPO}/${PN};tag=${WEBOS_GIT_TAG};protocol=git"
S = "${WORKDIR}/git"

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


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

DEFAULT_PREFERENCE = "-1"

inherit gpephone pkgconfig autotools

SRC_URI = "svn://projects.linuxtogo.org/svn/gpephone/trunk/source/ptim;module=immanager \
           file://gtkmodule-location.patch;patch=1;pnum=0"

S = "${WORKDIR}/immanager"

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

do_install_append () {
	# That's evil...
	install -m 644 ${S}/conf/imconfig ${D}/${libdir}/gtk-2.0/*/immodules/ptim
}

do_stage () {
    autotools_stage_all
}

Remove patch which was applied upstream.

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

DEFAULT_PREFERENCE = "-1"

inherit gpephone pkgconfig autotools

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

S = "${WORKDIR}/immanager"

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

do_install_append () {
	# That's evil...
	install -m 644 ${S}/conf/imconfig ${D}/${libdir}/gtk-2.0/*/immodules/ptim
}

do_stage () {
    autotools_stage_all
}


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"


SUMMARY = "Capture and control API for IIDC compliant cameras"
HOMEPAGE = "http://sourceforge.net/projects/libdc1394/"
SECTION = "libs"
LICENSE = "LGPL-2.0"
LIC_FILES_CHKSUM = "file://COPYING;md5=c848e78d9a4a5cc69906178e4d6fbd64"

# libsdl to provide sdl.m4 with AM_PATH_SDL
DEPENDS += "libusb1 libraw1394 libsdl"

PV = "2.2.5+gitr${SRCPV}"

SRCREV = "5e78f51936fd09db0c0f742c7d2c0e5bdbbeed56"

SRC_URI = "git://git.code.sf.net/p/libdc1394/code;branch=master;protocol=git \
           file://install_examples.patch \
          "

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

inherit autotools-brokensep pkgconfig

EXTRA_OECONF += "--disable-doxygen-doc --disable-examples"

Add X11 and opengl deps if distro has them in policy

SUMMARY = "Capture and control API for IIDC compliant cameras"
HOMEPAGE = "http://sourceforge.net/projects/libdc1394/"
SECTION = "libs"
LICENSE = "LGPL-2.0"
LIC_FILES_CHKSUM = "file://COPYING;md5=c848e78d9a4a5cc69906178e4d6fbd64"

# libsdl to provide sdl.m4 with AM_PATH_SDL
DEPENDS += "libusb1 libraw1394 libsdl \
            ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'libxv virtual/libx11', '', d)} \
            ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virtual/libgl libglu', '', d)} \
"

PV = "2.2.5+gitr${SRCPV}"

SRCREV = "5e78f51936fd09db0c0f742c7d2c0e5bdbbeed56"

SRC_URI = "git://git.code.sf.net/p/libdc1394/code;branch=master;protocol=git \
           file://install_examples.patch \
          "

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

inherit autotools-brokensep pkgconfig

EXTRA_OECONF += "--disable-doxygen-doc --disable-examples"


DESCRIPTION = "Tool to edit the Redboot FIS partition layout from userspace"
PR = "r4"

SRC_URI = "svn://svn.nslu2-linux.org/svnroot/fis;module=trunk;proto=http"
S="${WORKDIR}/trunk"

export CFLAGS += "--std=c99"

do_install() {
	${STRIP} ${S}/fis

	install -d ${D}/${sbindir}
	install -m 755 ${S}/fis ${D}/${sbindir}
}

Update to svn rev 6

DESCRIPTION = "Tool to edit the Redboot FIS partition layout from userspace"
PR = "r5"

SRC_URI = "svn://svn.nslu2-linux.org/svnroot/fis;module=trunk;proto=http;rev=6"
S="${WORKDIR}/trunk"

export CFLAGS += "--std=c99"

do_install() {
	${STRIP} ${S}/fis

	install -d ${D}/${sbindir}
	install -m 755 ${S}/fis ${D}/${sbindir}
}


SECTION = "kernel"
DESCRIPTION = "Mainline Linux kernel"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
COMPATIBLE_MACHINE = "(sun4i|sun5i|sun7i)"

inherit kernel

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

# Pull in the devicetree files into the rootfs
RDEPENDS_kernel-base += "kernel-devicetree"

# Default is to use stable kernel version
# If you want to use latest git version set to "1"
DEFAULT_PREFERENCE = "-1"

KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"

# 4.7 rc4
PV = "4.4+4.7rc4.git${SRCPV}"
SRCREV_pn-${PN} = "33688abb2802ff3a230bd2441f765477b94cc89e"

SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git;protocol=git;branch=master \
        file://defconfig \
        "
S = "${WORKDIR}/git"

Change PV for kernel git version

SECTION = "kernel"
DESCRIPTION = "Mainline Linux kernel"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
COMPATIBLE_MACHINE = "(sun4i|sun5i|sun7i)"

inherit kernel

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

# Pull in the devicetree files into the rootfs
RDEPENDS_kernel-base += "kernel-devicetree"

# Default is to use stable kernel version
# If you want to use latest git version set to "1"
DEFAULT_PREFERENCE = "-1"

KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"

# 4.7 rc4
PV = "4.6+4.7rc4.git${SRCPV}"
SRCREV_pn-${PN} = "33688abb2802ff3a230bd2441f765477b94cc89e"

SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git;protocol=git;branch=master \
        file://defconfig \
        "
S = "${WORKDIR}/git"


require u-boot-ti.inc

PR = "r32"

BRANCH = "ti-u-boot-2020.01"

SRCREV = "3352297ed065254b1a615fb16a7e4eefb07f9728"

Update to the latest commit


DESCRIPTION = "VPE test program"

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

COMPATIBLE_MACHINE = "dra7xx"

SRCREV = "e3d8db1aa935775f9d196ad7428e0cd9864a36ca"
BRANCH ?= "master"

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

S = "${WORKDIR}/git"

FLOATABI = "${@base_contains("TUNE_FEATURES", "vfp", base_contains("TUNE_FEATURES", "callconvention-hard", " -mfloat-abi=hard", " -mfloat-abi=softfp", d), "" ,d)}"

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

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

Add DEPENDS for the recipe

DESCRIPTION = "VPE test program"

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

DEPENDS = "virtual/kernel"

PR="r1"

COMPATIBLE_MACHINE = "dra7xx"

SRCREV = "e3d8db1aa935775f9d196ad7428e0cd9864a36ca"
BRANCH ?= "master"

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

S = "${WORKDIR}/git"

FLOATABI = "${@base_contains("TUNE_FEATURES", "vfp", base_contains("TUNE_FEATURES", "callconvention-hard", " -mfloat-abi=hard", " -mfloat-abi=softfp", d), "" ,d)}"

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

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


require linux-ti-staging_5.10.bb

# Look in the generic major.minor directory for files
# This will have priority over generic non-rt path
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-5.10:"

BRANCH = "ti-rt-linux-5.10.y"

SRCREV = "d238e71a2d3157a7faec48d4d3681b537a2e08cc"
PV = "5.10.41+git${SRCPV}"

Update linux-rt srcrev to 08.00.00.003

require linux-ti-staging_5.10.bb

# Look in the generic major.minor directory for files
# This will have priority over generic non-rt path
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-5.10:"

BRANCH = "ti-rt-linux-5.10.y"

SRCREV = "bee192299392dc41c94f4603968b7a3c02f17a1d"
PV = "5.10.41+git${SRCPV}"


# Image for Beagleboard-based robots

require recipes-images/angstrom/systemd-image.bb

DEPENDS += " \
	    libtirpc \
	    linux-firmware \
	    gst-plugins-base \
	    gst-plugins-ugly \
	    minicom \
	    avrdude \
	    ntp \
	   "

IMAGE_INSTALL += " \
	     libtirpc \
	     linux-firmware \
	     kernel-module-rt2x00usb \
	     kernel-module-rt2800usb \
	     kernel-module-uvcvideo \
	     kernel-module-ftdi-sio \
	     i2c-tools \
	     alsa-utils-amixer \
	     alsa-utils-aplay \
	     gst-plugins-base-audioconvert \
	     gst-plugins-base-audioresample \
	     gst-plugins-base-alsa \
	     gst-plugins-ugly-mad \
	     connman-tests \
	     python-dbus \
	     minicom \
	     avrdude \
	     espeak \
	     ntp \
	    "

export IMAGE_BASENAME = "robot-image"

Tweak image for USB audio and connman

# Image for Beagleboard-based robots

require recipes-images/angstrom/systemd-image.bb

DEPENDS += " \
	    libtirpc \
	    linux-firmware \
	    gst-plugins-base \
	    gst-plugins-good \
	    gst-plugins-ugly \
	    minicom \
	    avrdude \
	    ntp \
	   "

IMAGE_INSTALL += " \
	     libtirpc \
	     linux-firmware \
	     kernel-module-rt2x00usb \
	     kernel-module-rt2800usb \
	     kernel-module-uvcvideo \
	     kernel-module-snd-usb-audio \
	     kernel-module-ftdi-sio \
	     i2c-tools \
	     alsa-utils-amixer \
	     alsa-utils-aplay \
	     gst-plugins-base-audioconvert \
	     gst-plugins-base-audioresample \
	     gst-plugins-base-alsa \
	     gst-plugins-ugly-mad \
	     python-pygobject \
	     python-dbus \
	     connman-tests \
	     minicom \
	     avrdude \
	     espeak \
	     ntp \
	    "

export IMAGE_BASENAME = "robot-image"


Fix the build of unzip-5.52 (wrong S directory)

DESCRIPTION = "A (de)compression library for the ZIP format"
SECTION = "console/utils"
LICENSE = "Info-ZIP"

SRC_URI = "ftp://ftp.info-zip.org/pub/infozip/src/unzip${PV}.tar.gz"
S = "${WORKDIR}/unzip-5.52"

do_compile() {
        make -f unix/Makefile generic
}

do_install() {
        make -f unix/Makefile install prefix=${D}${prefix}
}


DESCRIPTION = "Packages that are required for the OpenSlug native build environment"
LICENSE = MIT
PR = "r2"

INHIBIT_DEFAULT_DEPS = "1"
ALLOW_EMPTY = 1
PACKAGES = "${PN}"

OPENSLUG_NATIVE = "\
	automake \
	bash \
	binutils binutils-dev \
	bison \
	bzip2 \
	coreutils \
	cpp \
	cvs \
	flex \
	gawk \
	g++ g++-symlinks \
	gcc gcc-symlinks \
	glibc-extra-nss glibc-utils \
	gnu-config \
	libc6 libc6-dev \
	libg2c-dev \
	libgdbm3 \
	libperl5 \
	libreadline4 libreadline-dev \
	libstdc++-dev \
	libthread-db1 \
	lrzsz \
	m4 \
	make \
	ncurses ncurses-dev ncurses-terminfo \
	patch \
	sed \
	tar \
	util-linux \
	wget \
	"

RDEPENDS = '${OPENSLUG_NATIVE}'

Add gcc-symlinks, fix the files libpthread.so and libc.so from libc6-dev (that really should be fixed in there)

DESCRIPTION = "Packages that are required for the OpenSlug native build environment"
LICENSE = MIT
PR = "r3"

INHIBIT_DEFAULT_DEPS = "1"
ALLOW_EMPTY = 1
PACKAGES = "${PN}"

OPENSLUG_NATIVE = "\
	automake \
	bash \
	binutils binutils-dev \
	bison \
	bzip2 \
	coreutils \
	cpp cpp-symlinks \
	cvs \
	flex \
	gawk \
	g++ g++-symlinks \
	gcc gcc-symlinks \
	glibc-extra-nss glibc-utils \
	gnu-config \
	libc6 libc6-dev \
	libg2c-dev \
	libgdbm3 \
	libperl5 \
	libreadline4 libreadline-dev \
	libstdc++-dev \
	libthread-db1 \
	lrzsz \
	m4 \
	make \
	ncurses ncurses-dev ncurses-terminfo \
	patch \
	sed \
	tar \
	util-linux \
	wget \
	"

RDEPENDS = '${OPENSLUG_NATIVE}'

pkg_postinst_${PN} () {
	# Fix some strange .so-files with strange comments in them. This should
	# really be done in the packages providing these, but untill that, this
	# works, and will not break anything when it actually gets fixed
	tail -n 2 /usr/lib/libc.so > /tmp/tmpfile
	mv /tmp/tmpfile /usr/lib/libc.so
	tail -n 2 /usr/lib/libpthread.so > /tmp/tmpfile
	mv /tmp/tmpfile /usr/lib/libpthread.so
}


DESCRIPTION = "An audio format Conversion library"
HOMEPAGE = "http://www.mega-nerd.com/libsndfile"
AUTHOR = "Erik de Castro Lopo"
SECTION = "libs/multimedia"
LICENSE = "LGPL"
PR = "r2"

SRC_URI = "http://www.mega-nerd.com/libsndfile/libsndfile-${PV}.tar.gz \
           file://configure-fix.patch;patch=1"

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

inherit autotools lib_package pkgconfig

do_configure_prepend_arm() {
	export ac_cv_sys_largefile_source=1
	export ac_cv_sys_file_offset_bits=64
	ac_cv_sizeof_off_t=8
}

do_stage() {
	oe_libinstall -a -so -C src libsndfile ${STAGING_LIBDIR}
	install -m 0644 ${S}/src/sndfile.h ${STAGING_INCDIR}/
}

Package unpackaged octave files to subpackage libsndfile1-octave.

DESCRIPTION = "An audio format Conversion library"
HOMEPAGE = "http://www.mega-nerd.com/libsndfile"
AUTHOR = "Erik de Castro Lopo"
SECTION = "libs/multimedia"
LICENSE = "LGPL"
PR = "r2"

SRC_URI = "http://www.mega-nerd.com/libsndfile/libsndfile-${PV}.tar.gz \
           file://configure-fix.patch;patch=1"

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

inherit autotools lib_package pkgconfig

do_configure_prepend_arm() {
	export ac_cv_sys_largefile_source=1
	export ac_cv_sys_file_offset_bits=64
	ac_cv_sizeof_off_t=8
}

do_stage() {
	oe_libinstall -a -so -C src libsndfile ${STAGING_LIBDIR}
	install -m 0644 ${S}/src/sndfile.h ${STAGING_INCDIR}/
}

PACKAGES =+ "${PN}-octave"
FILES_${PN}-octave += "/usr/share/octave/site/m"


SECTION = "kernel"
DESCRIPTION = "Linux kernel for ODROID devices"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"

inherit kernel

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

# Pull in the devicetree files into the rootfs
RDEPENDS_kernel-base += "kernel-devicetree"

# Specify dtb file
KERNEL_DEVICETREE_odroidxu-kvm = "exynos5410-odroidxu.dtb"

KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"

COMPATIBLE_MACHINE = "odroidxu"

S = "${WORKDIR}/git"

BRANCH = "odroid-3.14.y-linaro"

SRCREV = "d66fd10dd31613ae4ec0d8e128c70dadb3411415"
PV = "3.14.0"

# Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild
MACHINE_KERNEL_PR_append = "a+gitr${SRCPV}"
PR = "${MACHINE_KERNEL_PR}"

SRC_URI = "git://github.com/hardkernel/linux.git;protocol=https;branch=${BRANCH} \
           file://defconfig \
          "

Fix source revision hash for linux source

SECTION = "kernel"
DESCRIPTION = "Linux kernel for ODROID devices"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"

inherit kernel

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

# Pull in the devicetree files into the rootfs
RDEPENDS_kernel-base += "kernel-devicetree"

# Specify dtb file
KERNEL_DEVICETREE_odroidxu-kvm = "exynos5410-odroidxu.dtb"

KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"

COMPATIBLE_MACHINE = "odroidxu"

S = "${WORKDIR}/git"

BRANCH = "odroid-3.14.y-linaro"

SRCREV = "f2083913678cde7c497401c148c0dd53106d9746"
PV = "3.14.0"

# Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild
MACHINE_KERNEL_PR_append = "a+gitr${SRCPV}"
PR = "${MACHINE_KERNEL_PR}"

SRC_URI = "git://github.com/hardkernel/linux.git;protocol=https;branch=${BRANCH} \
           file://defconfig \
          "


# (C) Copyright 2019,
#  National Instruments Corporation.
#  All rights reserved.

SUMMARY = "Safemode specific packages for NI Linux Realtime distribution"
LICENSE = "MIT"

PACKAGE_ARCH = "${MACHINE_ARCH}"

inherit packagegroup

RDEPENDS_${PN} = " \
	initscripts-nilrt-safemode \
"

Add e2fsprogs utilities to support formatting ext4 filesystem

# (C) Copyright 2019,
#  National Instruments Corporation.
#  All rights reserved.

SUMMARY = "Safemode specific packages for NI Linux Realtime distribution"
LICENSE = "MIT"

PACKAGE_ARCH = "${MACHINE_ARCH}"

inherit packagegroup

RDEPENDS_${PN} = " \
	initscripts-nilrt-safemode \
	e2fsprogs \
	e2fsprogs-e2fsck \
	e2fsprogs-mke2fs \
	e2fsprogs-tune2fs \
"


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} = "plasma-contour-config kde-runtime shared-desktop-ontologies soprano libkactivities4"

RRECOMMENDS_${PN} = "kde-wallpapers"

SRC_URI = "git://anongit.kde.org/contour.git;branch=master"
SRCREV = "24b721c30aa36943e17ecc5ab2617ff4bc67cb2a"

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

Move plasma-contour-config from RDEPENDS to RRECOMMENDS

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-runtime shared-desktop-ontologies soprano libkactivities4"

RRECOMMENDS_${PN} = "kde-wallpapers plasma-contour-config"

SRC_URI = "git://anongit.kde.org/contour.git;branch=master"
SRCREV = "24b721c30aa36943e17ecc5ab2617ff4bc67cb2a"

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 = "Configuration files for online package repositories of Openmoko community repository feeds"
PR = "r0.02"

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

PACKAGE_ARCH = "${MACHINE_ARCH}"

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

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

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

Fix the feed configuration Make the package buildable again

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

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

PACKAGE_ARCH = "${MACHINE_ARCH}"

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

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

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


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

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

Add regulatory rules to the ipk needed by udev.

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

PR = "r4"

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

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

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}
	install -m 0755 -d ${D}/lib/udev/rules.d
	sed 's:$(SBINDIR):${bindir}/:' ${S}/udev/regulatory.rules > ${S}/udev/regulatory.rules.parsed
	install -m 0755 ${S}/udev/regulatory.rules.parsed ${D}/lib/udev/rules.d/85-regulatory.rules
}

FILES_${PN} += "${base_libdir}/udev/rules.d/85-regulatory.rules"


LICENSE = "GPL"
DESCRIPTION = "lftp is a sophisticated command line based file \
transfer program. Supported protocols include FTP, HTTP, \
and FISH."
HOMEPAGE = "http://lftp.yar.ru"
SECTION = "console/network"
DEPENDS = "readline gnutls"

SRC_URI = "ftp://ftp.wiretapped.net/pub/mirrors/lftp/old/lftp-3.5.1.tar.bz2"

EXTRA_OECONF = "--disable-largefile --disable-rpath --with-included-readline=no"

inherit autotools gettext

Delete the custom iconv.m4 in favor of the staged one fixing the uclibc build Make it use the libiconv iconv.m4 instead of the custom copy

LICENSE = "GPL"
DESCRIPTION = "lftp is a sophisticated command line based file \
transfer program. Supported protocols include FTP, HTTP, \
and FISH."
HOMEPAGE = "http://lftp.yar.ru"
SECTION = "console/network"
DEPENDS = "readline gnutls"

SRC_URI = "ftp://ftp.wiretapped.net/pub/mirrors/lftp/old/lftp-3.5.1.tar.bz2"

EXTRA_OECONF = "--disable-largefile --disable-rpath --with-included-readline=no"

do_configure_prepend () {
    rm ${S}/m4/iconv.m4
}

inherit autotools gettext


SUMMARY = "fifo maps for c++"
HOMEPAGE = "https://github.com/nlohmann/fifo_map"
SECTION = "libs"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE.MIT;md5=b67209a1e36b682a8226de19d265b1e0"

SRC_URI = "git://github.com/nlohmann/fifo_map.git;branch=master;protocol=https"

PV = "1.0.0+git${SRCPV}"

SRCREV = "0dfbf5dacbb15a32c43f912a7e66a54aae39d0f9"

UPSTREAM_CHECK_COMMITS = "1"

S = "${WORKDIR}/git"

# nlohmann-fifo is a header only C++ library, so the main package will be empty.

RDEPENDS:${PN}-dev = ""

BBCLASSEXTEND = "native nativesdk"

do_install() {
    install -d ${D}${includedir}
    install -m 0644 ${S}/src/fifo_map.hpp ${D}${includedir}
}

Update to tip of trunk

SUMMARY = "fifo maps for c++"
HOMEPAGE = "https://github.com/nlohmann/fifo_map"
SECTION = "libs"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE.MIT;md5=b67209a1e36b682a8226de19d265b1e0"

SRC_URI = "git://github.com/nlohmann/fifo_map.git;branch=master;protocol=https"

PV = "1.0.0+git${SRCPV}"

SRCREV = "d732aaf9a315415ae8fd7eb11e3a4c1f80e42a48"

UPSTREAM_CHECK_COMMITS = "1"

S = "${WORKDIR}/git"

# nlohmann-fifo is a header only C++ library, so the main package will be empty.

RDEPENDS:${PN}-dev = ""

BBCLASSEXTEND = "native nativesdk"

do_install() {
    install -d ${D}${includedir}
    install -m 0644 ${S}/src/fifo_map.hpp ${D}${includedir}
}


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

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

SRC_URI = "http://www.trapkit.de/tools/checksec.sh"

SRC_URI[md5sum] = "57cc3fbbbe48e8ebd4672c569954374d"
SRC_URI[sha256sum] = "05822cd8668589038d20650faa0e56f740911d8ad06f7005b3d12a5c76591b90"

S = "${WORKDIR}"

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

RDEPENDS_${PN} = "bash binutils"

BBCLASSEXTEND = "native"

Convert checksec to unix format

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

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

SRC_URI = "http://www.trapkit.de/tools/checksec.sh"

SRC_URI[md5sum] = "57cc3fbbbe48e8ebd4672c569954374d"
SRC_URI[sha256sum] = "05822cd8668589038d20650faa0e56f740911d8ad06f7005b3d12a5c76591b90"

S = "${WORKDIR}"

do_install() {
    install -d ${D}${bindir}
    install -m 0755 ${WORKDIR}/checksec.sh    ${D}${bindir}
    sed -i 's/\r//' ${D}${bindir}/checksec.sh
}

RDEPENDS_${PN} = "bash binutils"

BBCLASSEXTEND = "native"


SUMMARY = "PMU ROM for QEMU"
DESCRIPTION = "The ZynqMP PMU ROM for QEMU emulation"
HOMEPAGE = "http://www.xilinx.com"
SECTION = "bsp"

LICENSE = "Proprietary"
LICENSE_FLAGS = "xilinx"
LIC_FILES_CHKSUM = "file://PMU_ROM-LICENSE.txt;md5=d43d49bc1eb1c907fc6f4ea75abafdfc"

SRC_URI = "https://www.xilinx.com/bin/public/openDownload?filename=PMU_ROM.tar.gz"
SRC_URI[sha256sum] = "f9a450ef960979463ea0a87a35fafb4a5b62d3a741de30cbcef04c8edc22a7cf"

S = "${WORKDIR}/PMU_ROM"

inherit deploy native

INHIBIT_DEFAULT_DEPS = "1"
PACKAGE_ARCH = "${MACHINE_ARCH}"

do_compile[noexec] = "1"
do_install[noexec] = "1"

do_deploy () {
	install -D ${S}/pmu-rom.elf ${DEPLOYDIR}/pmu-rom.elf
}

addtask deploy before do_build after do_install

Remove PACKAGE_ARCH and skip do_configure

SUMMARY = "PMU ROM for QEMU"
DESCRIPTION = "The ZynqMP PMU ROM for QEMU emulation"
HOMEPAGE = "http://www.xilinx.com"
SECTION = "bsp"

LICENSE = "Proprietary"
LICENSE_FLAGS = "xilinx"
LIC_FILES_CHKSUM = "file://PMU_ROM-LICENSE.txt;md5=d43d49bc1eb1c907fc6f4ea75abafdfc"

SRC_URI = "https://www.xilinx.com/bin/public/openDownload?filename=PMU_ROM.tar.gz"
SRC_URI[sha256sum] = "f9a450ef960979463ea0a87a35fafb4a5b62d3a741de30cbcef04c8edc22a7cf"

S = "${WORKDIR}/PMU_ROM"

inherit deploy native

INHIBIT_DEFAULT_DEPS = "1"

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

do_deploy () {
	install -D ${S}/pmu-rom.elf ${DEPLOYDIR}/pmu-rom.elf
}

addtask deploy before do_build after do_install


SUMMARY = "A tiny C support library"
SECTION = "libs"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=c93c0550bd3173f4504b2cbd8991e50b"

SRC_URI = "http://www.balabit.com/downloads/files/libol/0.3/${BP}.tar.gz \
           file://configure.patch"
SRC_URI[md5sum] = "cbadf4b7ea276dfa85acc38a1cc5ff17"
SRC_URI[sha256sum] = "9de3bf13297ff882e02a1e6e5f6bf760a544aff92a9d8a1cf4328a32005cefe7"

inherit autotools binconfig

do_compile_prepend() {
    install ${S}/utils/make_class.in ${B}/utils
}

do_install_append() {
    rm -fr ${D}${bindir}
}

Add HOMEPAGE info into recipe file.

SUMMARY = "A tiny C support library"
HOMEPAGE = "https://my.balabit.com/downloads/libol"
SECTION = "libs"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=c93c0550bd3173f4504b2cbd8991e50b"

SRC_URI = "http://www.balabit.com/downloads/files/libol/0.3/${BP}.tar.gz \
           file://configure.patch"
SRC_URI[md5sum] = "cbadf4b7ea276dfa85acc38a1cc5ff17"
SRC_URI[sha256sum] = "9de3bf13297ff882e02a1e6e5f6bf760a544aff92a9d8a1cf4328a32005cefe7"

inherit autotools binconfig

do_compile_prepend() {
    install ${S}/utils/make_class.in ${B}/utils
}

do_install_append() {
    rm -fr ${D}${bindir}
}


SUMMARY = "Zstandard - Fast real-time compression algorithm"
HOMEPAGE = "http://www.zstd.net"
LICENSE = "BSD & GPLv2"
LIC_FILES_CHKSUM = "file://LICENSE;md5=c7f0b161edbe52f5f345a3d1311d0b32 \
                    file://contrib/linux-kernel/COPYING;md5=39bba7d2cf0ba1036f2a6e2be52fe3f0"
SRCREV = "f3a8bd553a865c59f1bd6e1f68bf182cf75a8f00"
PV = "1.3.3+git${SRCPV}"
# required as we started with a wrong version (1.33)
PE = "1"

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

S = "${WORKDIR}/git"

EXTRA_OECMAKE_append = " -DTHREADS_PTHREAD_ARG=0"

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

BBCLASSEXTEND = "native"

Enable build of the nativesdk package

SUMMARY = "Zstandard - Fast real-time compression algorithm"
HOMEPAGE = "http://www.zstd.net"
LICENSE = "BSD & GPLv2"
LIC_FILES_CHKSUM = "file://LICENSE;md5=c7f0b161edbe52f5f345a3d1311d0b32 \
                    file://contrib/linux-kernel/COPYING;md5=39bba7d2cf0ba1036f2a6e2be52fe3f0"
SRCREV = "f3a8bd553a865c59f1bd6e1f68bf182cf75a8f00"
PV = "1.3.3+git${SRCPV}"
# required as we started with a wrong version (1.33)
PE = "1"

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

S = "${WORKDIR}/git"

EXTRA_OECMAKE_append = " -DTHREADS_PTHREAD_ARG=0"

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

BBCLASSEXTEND = "native nativesdk"


require u-boot-ti.inc

PR = "r18"

BRANCH = "ti-u-boot-2020.01"

SRCREV = "eea73800730b3d9125f5c12a629db2f88e566b71"

Update to latest HEAD for j7 build

require u-boot-ti.inc

PR = "r19"

BRANCH = "ti-u-boot-2020.01"

SRCREV = "bf0a77ee8e102e921c8f08f8e919a45ffb270ebe"


DESCRIPTION = "FBreader is an ebook reader"
LICENSE = "GPL2"
HOMEPAGE = "http://only.mawhrin.net/fbreader/"
SECTION = "x11/utils"
PRIORITY = "optional"
DEPENDS = "gtk+ enca expat bzip2"
PR = "r0"

SRC_URI = "http://only.mawhrin.net/fbreader/fbreader-sources-${PV}.tgz \
	file://fbreader-0.7.4q_buildsys_oe.patch;patch=1"

FILES_${PN} += "${datadir}/FBReader ${datadir}/zlibrary"

CFLAGS_append = " RESOLUTION=240x320 INSTALLDIR=/usr"
EXTRA_OEMAKE = "CC='${CXX}' LD='${CXX}' OE_CFLAGS='${CXXFLAGS}' INCPATH='${STAGING_INCDIR}' LIBPATH='${STAGING_LIBDIR}'"

inherit pkgconfig

do_install () {
        cd fbreader/openzaurus; oe_runmake .builddir RESOLUTION=240x320
	cp -r data/* ${D}
}

Fix DEPENDS and update SRC_URI

DESCRIPTION = "FBreader is an ebook reader"
LICENSE = "GPL2"
HOMEPAGE = "http://only.mawhrin.net/fbreader/"
SECTION = "x11/utils"
PRIORITY = "optional"
DEPENDS = "gtk+ enca expat bzip2 libgpewidget"
PR = "r1"

SRC_URI = "http://only.mawhrin.net/fbreader/obsolete/fbreader-sources-${PV}.tgz \
	file://fbreader-0.7.4q_buildsys_oe.patch;patch=1"

FILES_${PN} += "${datadir}/FBReader ${datadir}/zlibrary"

CFLAGS_append = " RESOLUTION=240x320 INSTALLDIR=/usr"
EXTRA_OEMAKE = "CC='${CXX}' LD='${CXX}' OE_CFLAGS='${CXXFLAGS}' INCPATH='${STAGING_INCDIR}' LIBPATH='${STAGING_LIBDIR}'"

inherit pkgconfig

do_install () {
        cd fbreader/openzaurus; oe_runmake .builddir RESOLUTION=240x320
	cp -r data/* ${D}
}


DESCRIPTION = "Mender tool for doing OTA software updates."
HOMEPAGE = "https://mender.io/"

#From oe-meta-go (https://github.com/mem/oe-meta-go)
DEPENDS = "go-cross godep"
S = "${WORKDIR}/git"

inherit go

SRC_URI = "git://github.com/mendersoftware/mender;protocol=https \
           file://mender.service \
          "

SRCREV = "${AUTOREV}"

LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"

inherit systemd

#FILESEXTRAPATHS_prepend := " ${THISDIR}/mender:"
#SRC_URI += "file://mender.service"

SYSTEMD_SERVICE_${PN} = "mender.service"
FILES_${PN} += "${systemd_unitdir}/system/mender.service \
               "

do_compile() {
  GOPATH="${B}:${S}"
  export GOPATH
  PATH="${B}/bin:$PATH"
  export PATH

  cd "${S}"
  godep go build -o "${B}/mender"
}

do_install() {
  install -d "${D}/${bindir}"
  install -m 0755 "${B}/mender" "${D}/${bindir}"
  install -d ${D}/${systemd_unitdir}/system
  install -m 0644 ${WORKDIR}/mender.service ${D}/${systemd_unitdir}/system
}

Remove unneeded and commented code.

DESCRIPTION = "Mender tool for doing OTA software updates."
HOMEPAGE = "https://mender.io/"

#From oe-meta-go (https://github.com/mem/oe-meta-go)
DEPENDS = "go-cross godep"
S = "${WORKDIR}/git"

inherit go

SRC_URI = "git://github.com/mendersoftware/mender;protocol=https \
           file://mender.service \
          "

SRCREV = "${AUTOREV}"

LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"

inherit systemd

SYSTEMD_SERVICE_${PN} = "mender.service"
FILES_${PN} += "${systemd_unitdir}/system/mender.service \
               "

do_compile() {
  GOPATH="${B}:${S}"
  export GOPATH
  PATH="${B}/bin:$PATH"
  export PATH

  cd "${S}"
  godep go build -o "${B}/mender"
}

do_install() {
  install -d "${D}/${bindir}"
  install -m 0755 "${B}/mender" "${D}/${bindir}"
  install -d ${D}/${systemd_unitdir}/system
  install -m 0644 ${WORKDIR}/mender.service ${D}/${systemd_unitdir}/system
}


DESCRIPTION = "Yet Another JSON Library - A Portable JSON parsing and serialization library in ANSI C"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=da2e9aa80962d54e7c726f232a2bd1e8"

inherit cmake

# corresponds to tag 1.0.12
SRCREV = "17b1790fb9c8abbb3c0f7e083864a6a014191d56"
SRC_URI = "git://github.com/lloyd/${PN}"

S = "${WORKDIR}/git"

Add nobranch param to SRC_URI

# Copyright (c) 2012-2014 LG Electronics, Inc.

DESCRIPTION = "Yet Another JSON Library - A Portable JSON parsing and serialization library in ANSI C"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=da2e9aa80962d54e7c726f232a2bd1e8"

inherit cmake

# corresponds to tag 1.0.12
SRCREV = "17b1790fb9c8abbb3c0f7e083864a6a014191d56"
SRC_URI = "git://github.com/lloyd/${PN};nobranch=1"

S = "${WORKDIR}/git"


DESCRIPTION = "Utility to dump IrDA traffic."
SECTION = "base"
LICENSE = "GPL"
DEPENDS = "glib-2.0 pkgconfig"
PR = "r1"

SRC_URI = "${SOURCEFORGE_MIRROR}/irda/irda-utils-${PV}.tar.gz \
	   file://glib2.patch"

S="${WORKDIR}/irda-utils-${PV}/irdadump"

EXTRA_CFLAGS += "`pkg-config --cflags glib-2.0`"
EXTRA_LDFLAGS += "`pkg-config --libs glib-2.0`"

inherit autotools

do_compile() {
    oe_runmake CFLAGS="${CFLAGS} ${EXTRA_CFLAGS}" LDFLAGS="${LDFLAGS} ${EXTRA_LDFLAGS}"
}

do_install () {
	install -d ${D}${bindir}
	install -m 0755 ${S}/shell/.libs/irdadump ${D}${bindir}
}

SRC_URI[md5sum] = "2ff18f0571b5a331be7cd22fc3decd41"
SRC_URI[sha256sum] = "09a30fa12d81014b2877e8b5c36f5a341788579669d72f2dec0e29d22efe11e9"

Use standard installation. * Fixes installation failure with new libtool.

DESCRIPTION = "Utility to dump IrDA traffic."
SECTION = "base"
LICENSE = "GPL"
DEPENDS = "glib-2.0 pkgconfig"
PR = "r2"

SRC_URI = "${SOURCEFORGE_MIRROR}/irda/irda-utils-${PV}.tar.gz \
	   file://glib2.patch"

S="${WORKDIR}/irda-utils-${PV}/irdadump"

EXTRA_CFLAGS += "`pkg-config --cflags glib-2.0`"
EXTRA_LDFLAGS += "`pkg-config --libs glib-2.0`"

inherit autotools

do_compile() {
    oe_runmake CFLAGS="${CFLAGS} ${EXTRA_CFLAGS}" LDFLAGS="${LDFLAGS} ${EXTRA_LDFLAGS}"
}

SRC_URI[md5sum] = "2ff18f0571b5a331be7cd22fc3decd41"
SRC_URI[sha256sum] = "09a30fa12d81014b2877e8b5c36f5a341788579669d72f2dec0e29d22efe11e9"


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

SUMMARY = "A Wayland image with a terminal and crosswalk"

LICENSE = "MIT"

DESCRIPTION = "A weston image with Tizen common ."

# Crosswalk
CORE_IMAGE_EXTRA_INSTALL += "packagegroup-tizen-crosswalk"

# Time zone
CORE_IMAGE_EXTRA_INSTALL += "tzdata wgt-backend"

Update Image recipes : add security manager package

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

SUMMARY = "A Wayland image with a terminal and crosswalk"

LICENSE = "MIT"

DESCRIPTION = "A weston image with Tizen common ."

# Crosswalk
CORE_IMAGE_EXTRA_INSTALL += "packagegroup-tizen-crosswalk"

# Time zone
CORE_IMAGE_EXTRA_INSTALL += "tzdata security-manager"


DESCRIPTION = "roscpp is a C++ implementation of ROS. It provides a client \
  library that enables C++ programmers to quickly interface with ROS Topics, \
  Services, Parameters. roscpp is the most widely used ROS client library and is designed to \
  be the high-performance library for ROS."
SECTION = "devel"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://package.xml;beginline=16;endline=16;md5=d566ef916e9dedc494f5f793a6690ba5"

DEPENDS = "\
  catkin-native cpp-common message-generation-native rosconsole roscpp-serialization \
  roscpp-traits rosgraph-msgs roslang rostime std-msgs xmlrpcpp \
"

require ros-comm.inc

S = "${WORKDIR}/ros_comm-${PV}/clients/${BPN}"

Add devel space include path to cflags

DESCRIPTION = "roscpp is a C++ implementation of ROS. It provides a client \
  library that enables C++ programmers to quickly interface with ROS Topics, \
  Services, Parameters. roscpp is the most widely used ROS client library and is designed to \
  be the high-performance library for ROS."
SECTION = "devel"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://package.xml;beginline=16;endline=16;md5=d566ef916e9dedc494f5f793a6690ba5"

DEPENDS = "\
  catkin-native cpp-common message-generation-native rosconsole roscpp-serialization \
  roscpp-traits rosgraph-msgs roslang rostime std-msgs xmlrpcpp \
"

require ros-comm.inc

S = "${WORKDIR}/ros_comm-${PV}/clients/${BPN}"

CXXFLAGS_append = " -I${OECMAKE_BUILDPATH}/devel/include"


# Kernel for Freecom FSG-3
#
# This bitbake file pulls patches and the defconfig straight
# from the NSLU2-Linux SVN repository. Information about this
# repository can be found at:
# http://trac.nslu2-linux.org/kernel/
#
# The revision that is pulled from SVN is specified below
IXP4XX_KERNEL_SVN_REV = "898"
#
# The directory containing the patches to be applied is
# specified below
IXP4XX_KERNEL_PATCH_DIR = "2.6.18-fsg3"
#
# Increment the number below (i.e. the digits after PR) when
# the changes in SVN between revisions include changes in the
# patches applied to the kernel, rather than simply defconfig
# changes
PR = "r1.${IXP4XX_KERNEL_SVN_REV}"

require ixp4xx-kernel.inc
require ixp4xx-kernel-svnpatch.inc

Update to latest svn defconfig

# Kernel for Freecom FSG-3
#
# This bitbake file pulls patches and the defconfig straight
# from the NSLU2-Linux SVN repository. Information about this
# repository can be found at:
# http://trac.nslu2-linux.org/kernel/
#
# The revision that is pulled from SVN is specified below
IXP4XX_KERNEL_SVN_REV = "902"
#
# The directory containing the patches to be applied is
# specified below
IXP4XX_KERNEL_PATCH_DIR = "2.6.18-fsg3"
#
# Increment the number below (i.e. the digits after PR) when
# the changes in SVN between revisions include changes in the
# patches applied to the kernel, rather than simply defconfig
# changes
PR = "r1.${IXP4XX_KERNEL_SVN_REV}"

require ixp4xx-kernel.inc
require ixp4xx-kernel-svnpatch.inc


DESCRIPTION = "XStream Server"

LICENSE = "GPL-2"
PR = "r1"

SRC_URI = "http://surfnet.dl.sourceforge.net/sourceforge/xbplayer/${P}.tar.gz \
	file://ccxstream-termcap.patch;patch=1 \
	file://ccxstream.init \
	file://ccxstream.conf"

inherit autotools

do_install() {
	# add startup and sample config
	install -d ${D}${sysconfdir}/init.d
	install -d ${D}${sbindir}
	install -m 0755 ${WORKDIR}/ccxstream.init ${D}${sysconfdir}/init.d/ccxstream
	install -m 0644 ${WORKDIR}/ccxstream.conf ${D}${sysconfdir}/ccxstream.conf
	install -m 0755 ccxstream ${D}${sbindir}/ccxstream || exit 1
}

Make ccxstream depend on readline

DESCRIPTION = "XStream Server"
DEPENDS = "readline"
LICENSE = "GPL-2"
PR = "r2"

SRC_URI = "http://surfnet.dl.sourceforge.net/sourceforge/xbplayer/${P}.tar.gz \
	file://ccxstream-termcap.patch;patch=1 \
	file://ccxstream.init \
	file://ccxstream.conf"

inherit autotools

do_install() {
	# add startup and sample config
	install -d ${D}${sysconfdir}/init.d
	install -d ${D}${sbindir}
	install -m 0755 ${WORKDIR}/ccxstream.init ${D}${sysconfdir}/init.d/ccxstream
	install -m 0644 ${WORKDIR}/ccxstream.conf ${D}${sysconfdir}/ccxstream.conf
	install -m 0755 ccxstream ${D}${sbindir}/ccxstream || exit 1
}


DESCRIPTION = "Library for interacting with ID3 tags"
SECTION = "libs/multimedia"
PRIORITY = "optional"
LICENSE = "GPL"
DEPENDS = "zlib"
PR = "r3"

SRC_URI = "ftp://ftp.mars.org/pub/mpeg/libid3tag-${PV}.tar.gz \
           file://libid3tag-pkg-config.patch"
SRC_URI[md5sum] = "e5808ad997ba32c498803822078748c3"
SRC_URI[sha256sum] = "63da4f6e7997278f8a3fef4c6a372d342f705051d1eeb6a46a86b03610e26151"

inherit autotools pkgconfig

EXTRA_OECONF = "-enable-speed"

Update LICENSE field version to GPLv2

DESCRIPTION = "Library for interacting with ID3 tags"
SECTION = "libs/multimedia"
PRIORITY = "optional"
LICENSE = "GPLv2+"
DEPENDS = "zlib"
PR = "r4"

SRC_URI = "ftp://ftp.mars.org/pub/mpeg/libid3tag-${PV}.tar.gz \
           file://libid3tag-pkg-config.patch"
SRC_URI[md5sum] = "e5808ad997ba32c498803822078748c3"
SRC_URI[sha256sum] = "63da4f6e7997278f8a3fef4c6a372d342f705051d1eeb6a46a86b03610e26151"

inherit autotools pkgconfig

EXTRA_OECONF = "-enable-speed"


inherit image

IMAGE_PREPROCESS_COMMAND = "create_etc_timestamp"

ANGSTROM_EXTRA_INSTALL ?= ""

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

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

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

Add extra disk space to the image, so additional files can be uploaded

inherit image

IMAGE_PREPROCESS_COMMAND = "create_etc_timestamp"

ANGSTROM_EXTRA_INSTALL ?= ""

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

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

IMAGE_EXTRA_SPACE = 65536

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