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

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

inherit autotools pkgconfig

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

do_stage () {
	oe_libinstall -a -so -C libdaemon libdaemon ${STAGING_LIBDIR}
	install -d ${STAGING_INCDIR}/libdaemon
	for i in dlog.h dexec.h dfork.h dsignal.h dnonblock.h dpid.h; do
		install -m 0644 ${S}/libdaemon/$i ${STAGING_INCDIR}/libdaemon/
	done
}

Add missing header file daemon.h to package.

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

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

inherit autotools pkgconfig

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

do_stage () {
	oe_libinstall -a -so -C libdaemon libdaemon ${STAGING_LIBDIR}
	install -d ${STAGING_INCDIR}/libdaemon
	for i in daemon.h dlog.h dexec.h dfork.h dsignal.h dnonblock.h dpid.h; do
		install -m 0644 ${S}/libdaemon/$i ${STAGING_INCDIR}/libdaemon/
	done
}


HOMEPAGE = "http://www.moblin.org/projects/projects_connman.php"
SUMMARY  = "Moblin Glib D-Bus integration"
LICENSE  = "GPL LGPL"
DEPENDS  = "glib-2.0 dbus"
PE       = "1"
PV       = "0.0+gitr${SRCREV}"
S        = "${WORKDIR}/git"

SRC_URI  = "git://moblin.org/repos/projects/libgdbus.git;proto=http"

inherit autotools pkgconfig

do_stage() {
    autotools_stage_all
}

Use the right git server, use the right protocol - moblin.org => git.moblin.org - really use http as protocol

HOMEPAGE = "http://www.moblin.org/projects/projects_connman.php"
SUMMARY  = "Moblin Glib D-Bus integration"
LICENSE  = "GPL LGPL"
DEPENDS  = "glib-2.0 dbus"
PE       = "1"
PV       = "0.0+gitr${SRCREV}"
S        = "${WORKDIR}/git"

SRC_URI  = "git://git.moblin.org/repos/projects/libgdbus.git;protocol=http"

inherit autotools pkgconfig

do_stage() {
    autotools_stage_all
}


UMMARY = "IIO blocks for GNU Radio"
HOMEPAGE = "https://github.com/analogdevicesinc/gr-iio"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"

DEPENDS ="gnuradio libiio libad9361-iio bison-native"

inherit distutils3-base cmake pkgconfig

export BUILD_SYS
export HOST_SYS="${MULTIMACH_TARGET_SYS}"

S="${WORKDIR}/git"

PV = "0.3"

SRCREV = "b3bd9edfaa03e8c63631f9166e1997870cc6b9ba"

GIT_BRANCH = "upgrade-3.8"
SRC_URI = "git://github.com/analogdevicesinc/gr-iio.git;branch=${GIT_BRANCH};protocol=https "

FILES_${PN} += " \
   /usr/share/gnuradio/grc/blocks/* \
"

Fix typo in gr-iio recipe

SUMMARY = "IIO blocks for GNU Radio"
HOMEPAGE = "https://github.com/analogdevicesinc/gr-iio"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"

DEPENDS ="gnuradio libiio libad9361-iio bison-native"

inherit distutils3-base cmake pkgconfig

export BUILD_SYS
export HOST_SYS="${MULTIMACH_TARGET_SYS}"

S="${WORKDIR}/git"

PV = "0.3"

SRCREV = "b3bd9edfaa03e8c63631f9166e1997870cc6b9ba"

GIT_BRANCH = "upgrade-3.8"
SRC_URI = "git://github.com/analogdevicesinc/gr-iio.git;branch=${GIT_BRANCH};protocol=https "

FILES_${PN} += " \
   /usr/share/gnuradio/grc/blocks/* \
"


DESCRIPTION = "Minimal statically compiled Hello world!"
LICENSE = "GPL"
PR = "r0"

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

do_fetch () {
	mkdir -p ${WORKDIR}/${P}
	cd ${WORKDIR}/${P}
	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} -o helloworld helloworld.c -static
}

do_install () {
	install -d ${D}${bindir}
	install -m 0755 helloworld ${D}${bindir}/
	# /bin/init is on purpose, it is tried after /sbin/init and /etc/init
	# so if a sysvinit is installed, it will be used instead of helloworld
	install -d ${D}${base_bindir}
	ln -sf ${bindir}/helloworld ${D}${base_bindir}/init
}

Use {C,LD}FLAGS during build. Duh.

DESCRIPTION = "Minimal statically compiled Hello world!"
LICENSE = "GPL"
PR = "r1"

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

do_fetch () {
	mkdir -p ${WORKDIR}/${P}
	cd ${WORKDIR}/${P}
	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 -static
}

do_install () {
	install -d ${D}${bindir}
	install -m 0755 helloworld ${D}${bindir}/
	# /bin/init is on purpose, it is tried after /sbin/init and /etc/init
	# so if a sysvinit is installed, it will be used instead of helloworld
	install -d ${D}${base_bindir}
	ln -sf ${bindir}/helloworld ${D}${base_bindir}/init
}


DESCRIPTION = "Python Bindings for the Cairo canvas library"
SECTION = "devel/python"
HOMEPAGE = "http://cairographics.org/pycairo"
LICENSE = "LGPL MPL"
# cairo >= 1.8.0
DEPENDS = "cairo"
PR = "ml4"

SRC_URI = "http://cairographics.org/releases/pycairo-${PV}.tar.gz \
           file://fix-setup-py.patch"
S = "${WORKDIR}/pycairo-${PV}"

inherit distutils pkgconfig

do_configure_append() {
	sed -e 's:@prefix@:${prefix}:' -e 's:@includedir@:\$\{prefix\}/include:' -e 's:@VERSION@:${PV}:' pycairo.pc.in > pycairo.pc
}

do_install_append() {
	mv ${D}${datadir}/include/* ${D}${includedir}
	mv ${D}${datadir}/lib/* ${D}${libdir}
	install -d ${D}${includedir}/pycairo
	ln -sf ..//pycairo.h ${D}${includedir}/pycairo/
}

SRC_URI[md5sum] = "847f5377c32228a656819f5bd18eb6b4"
SRC_URI[sha256sum] = "a2272dafceb25ed9fedd0b10429dfec9c412b3b36eb6137f79c87e7d004036d4"

Update LICENSE field version to LGPLv2.1

DESCRIPTION = "Python Bindings for the Cairo canvas library"
SECTION = "devel/python"
HOMEPAGE = "http://cairographics.org/pycairo"
LICENSE = "LGPLv2.1 MPL-1.1"
# cairo >= 1.8.0
DEPENDS = "cairo"
PR = "ml5"

SRC_URI = "http://cairographics.org/releases/pycairo-${PV}.tar.gz \
           file://fix-setup-py.patch"
S = "${WORKDIR}/pycairo-${PV}"

inherit distutils pkgconfig

do_configure_append() {
	sed -e 's:@prefix@:${prefix}:' -e 's:@includedir@:\$\{prefix\}/include:' -e 's:@VERSION@:${PV}:' pycairo.pc.in > pycairo.pc
}

do_install_append() {
	mv ${D}${datadir}/include/* ${D}${includedir}
	mv ${D}${datadir}/lib/* ${D}${libdir}
	install -d ${D}${includedir}/pycairo
	ln -sf ..//pycairo.h ${D}${includedir}/pycairo/
}

SRC_URI[md5sum] = "847f5377c32228a656819f5bd18eb6b4"
SRC_URI[sha256sum] = "a2272dafceb25ed9fedd0b10429dfec9c412b3b36eb6137f79c87e7d004036d4"


DESCRIPTION = "GNOME XML Parser library"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "MIT"
PR = "r5"

SRC_URI = "ftp://xmlsoft.org/libxml2/libxml2-${PV}.tar.gz"

inherit autotools pkgconfig binconfig

EXTRA_OECONF = "--without-python --without-debug --without-legacy --without-catalog --without-docbook --with-c14n"

export LDFLAGS += "-ldl"

do_stage() {
	autotools_stage_all
	install -m 0644 libxml.m4 ${STAGING_DATADIR}/aclocal/
        #this is need it by php during its install
        install -m 0755 xml2-config ${STAGING_BINDIR_CROSS}
}

python populate_packages_prepend () {
	# autonamer would call this libxml2-2, but we don't want that
	if bb.data.getVar('DEBIAN_NAMES', d, 1):
		bb.data.setVar('PKG_libxml2', 'libxml2', d)
}

PACKAGES = "${PN}-dbg ${PN}-dev ${PN}-utils ${PN} ${PN}-doc ${PN}-locale"

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

Create the directory before staging files into it.

DESCRIPTION = "GNOME XML Parser library"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "MIT"
PR = "r5"

SRC_URI = "ftp://xmlsoft.org/libxml2/libxml2-${PV}.tar.gz"

inherit autotools pkgconfig binconfig

EXTRA_OECONF = "--without-python --without-debug --without-legacy --without-catalog --without-docbook --with-c14n"

export LDFLAGS += "-ldl"

do_stage() {
	autotools_stage_all
	install -d ${STAGING_DATADIR}/aclocal/
	install -d ${STAGING_BINDIR_CROSS}

 	install -m 0644 libxml.m4 ${STAGING_DATADIR}/aclocal/
	#this is need it by php during its install
	install -m 0755 xml2-config ${STAGING_BINDIR_CROSS}
}

python populate_packages_prepend () {
	# autonamer would call this libxml2-2, but we don't want that
	if bb.data.getVar('DEBIAN_NAMES', d, 1):
		bb.data.setVar('PKG_libxml2', 'libxml2', d)
}

PACKAGES = "${PN}-dbg ${PN}-dev ${PN}-utils ${PN} ${PN}-doc ${PN}-locale"

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


inherit esw deploy

ESW_COMPONENT_SRC = "/lib/sw_services/xilffs/examples/"

DEPENDS += "xilffs xiltimer"

do_configure:prepend() {
    (
    cd ${S}
    lopper ${DTS_FILE} -- baremetallinker_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC}
    install -m 0755 memory.ld ${S}/${ESW_COMPONENT_SRC}/
    install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/
    )
}

ESW_CUSTOM_LINKER_FILE ?= "None"
EXTRA_OECMAKE = "-DCUSTOM_LINKER_FILE=${@d.getVar('ESW_CUSTOM_LINKER_FILE')}"

do_install() {
    install -d ${D}/${base_libdir}/firmware
    install -m 0755  ${B}/*.elf ${D}/${base_libdir}/firmware
}

do_deploy() {
    install -d ${DEPLOYDIR}/${BPN}/
    install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/*.elf ${DEPLOYDIR}/${BPN}/
}
addtask deploy before do_build after do_package

FILES:${PN} = "${base_libdir}/firmware/*.elf"

Add REQURIED_DISTRO_FEATURES to match dependency xilffs

inherit esw deploy

# Requires by dependency xilffs
REQUIRED_DISTRO_FEATURES = "sdps"

ESW_COMPONENT_SRC = "/lib/sw_services/xilffs/examples/"

DEPENDS += "xilffs xiltimer"

do_configure:prepend() {
    (
    cd ${S}
    lopper ${DTS_FILE} -- baremetallinker_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC}
    install -m 0755 memory.ld ${S}/${ESW_COMPONENT_SRC}/
    install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/
    )
}

ESW_CUSTOM_LINKER_FILE ?= "None"
EXTRA_OECMAKE = "-DCUSTOM_LINKER_FILE=${@d.getVar('ESW_CUSTOM_LINKER_FILE')}"

do_install() {
    install -d ${D}/${base_libdir}/firmware
    install -m 0755  ${B}/*.elf ${D}/${base_libdir}/firmware
}

do_deploy() {
    install -d ${DEPLOYDIR}/${BPN}/
    install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/*.elf ${DEPLOYDIR}/${BPN}/
}
addtask deploy before do_build after do_package

FILES:${PN} = "${base_libdir}/firmware/*.elf"


Set FILESPATH in ncurses-native so the patches actually apply.

SECTION = "libs"
include ncurses_${PV}.bb
inherit native
EXTRA_OEMAKE = '"BUILD_CCFLAGS=${BUILD_CCFLAGS}"'
DEPENDS = ""
FILESPATH = "${FILE_DIRNAME}/local:${FILE_DIRNAME}/ncurses-${PV}-${PR}:${FILE_DIRNAME}/ncurses-${PV}:${FILE_DIRNAME}/ncurses:${FILE_DIRNAME}"


DESCRIPTION = "Library for reading mod-like audio files."
HOMEPAGE = "http://modplug-xmms.sf.net"
SECTION = "libs"
LICENSE = "GPL"

PR = "r1"

SRC_URI = "${SOURCEFORGE_MIRROR}/modplug-xmms/libmodplug-${PV}.tar.gz"

inherit autotools pkgconfig

# NOTE: autotools_stage_all does nothing here, we need to do it manually
do_install_append() {
	install -d ${D}${includedir}/libmodplug
	install -m 0644 ${S}/src/modplug.h ${D}${includedir}/libmodplug
	install -m 0644 ${S}/src/modplug.h ${D}${includedir}/
}

SRC_URI[md5sum] = "d2d9ccd8da22412999caed076140f786"
SRC_URI[sha256sum] = "3cfdebb60833a082e2f2b8faa3892bc9201d05c64051503e8007d8c98ae9e4c2"

Update LICENSE field version to PD

DESCRIPTION = "Library for reading mod-like audio files."
HOMEPAGE = "http://modplug-xmms.sf.net"
SECTION = "libs"
LICENSE = "PD"

PR = "r2"

SRC_URI = "${SOURCEFORGE_MIRROR}/modplug-xmms/libmodplug-${PV}.tar.gz"

inherit autotools pkgconfig

# NOTE: autotools_stage_all does nothing here, we need to do it manually
do_install_append() {
	install -d ${D}${includedir}/libmodplug
	install -m 0644 ${S}/src/modplug.h ${D}${includedir}/libmodplug
	install -m 0644 ${S}/src/modplug.h ${D}${includedir}/
}

SRC_URI[md5sum] = "d2d9ccd8da22412999caed076140f786"
SRC_URI[sha256sum] = "3cfdebb60833a082e2f2b8faa3892bc9201d05c64051503e8007d8c98ae9e4c2"


require u-boot.inc

# This is needs to be validated among supported BSP's before we can
# make it default
DEFAULT_PREFERENCE = "-1"

# To build u-boot for your machine, provide the following lines in
# your machine config, replacing the assignments as appropriate for
# your machine.
# UBOOT_MACHINE = "omap3_beagle_config"
# UBOOT_ENTRYPOINT = "0x80008000"
# UBOOT_LOADADDRESS = "0x80008000"

LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb"

PV = "v2013.01.01+git${SRCPV}"
PR = "r4"

SRCREV = "b6af5fcc8dfcc9240c158e5d0f07716245d67a56"
SRC_URI = "git://git.denx.de/u-boot-sh.git;branch=renesas/bsp/rcar-gen2-5;protocol=git"

S = "${WORKDIR}/git"

PACKAGE_ARCH = "${MACHINE_ARCH}"

Update BSP to version 0.5.3

require u-boot.inc

# This is needs to be validated among supported BSP's before we can
# make it default
DEFAULT_PREFERENCE = "-1"

# To build u-boot for your machine, provide the following lines in
# your machine config, replacing the assignments as appropriate for
# your machine.
# UBOOT_MACHINE = "omap3_beagle_config"
# UBOOT_ENTRYPOINT = "0x80008000"
# UBOOT_LOADADDRESS = "0x80008000"

LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb"

PV = "v2013.01.01+git${SRCPV}"
PR = "r5"

SRCREV = "14c8f0753662a7b4802340279e62e4e6b9a6d612"
SRC_URI = "git://git.denx.de/u-boot-sh.git;branch=renesas/bsp/rcar-gen2-5.3;protocol=git"

S = "${WORKDIR}/git"

PACKAGE_ARCH = "${MACHINE_ARCH}"


SUMMARY = "A container image for domain 0 which is used for container control"
DESCRIPTION = "Launched from the essential image, this is a container image \
               used for controlling other containers in the system. \
              "
HOMEPAGE = "http://www.windriver.com"

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \
                    file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"

POD_DOM0_EXTRA_INSTALL ?= " "

PACKAGE_EXCLUDE = "busybox* "

PV = "0.4"

DOM0_MAIN_PKGS = " packagegroup-core-boot \
                   packagegroup-dom0 \
                   packagegroup-util-linux \
                   packagegroup-core-ssh-openssh \
                 "

IMAGE_INSTALL += "${DOM0_MAIN_PKGS} \
                  packagegroup-container \
                  packagegroup-service-discovery \
                  ${POD_DOM0_EXTRA_INSTALL} \
                 "

IMAGE_FEATURES += "package-management doc-pkgs"

IMAGE_FSTYPES = "tar.bz2"

inherit core-image
inherit builder-base

Add overc-system-agent to dom0 image

SUMMARY = "A container image for domain 0 which is used for container control"
DESCRIPTION = "Launched from the essential image, this is a container image \
               used for controlling other containers in the system. \
              "
HOMEPAGE = "http://www.windriver.com"

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \
                    file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"

POD_DOM0_EXTRA_INSTALL ?= " "

PACKAGE_EXCLUDE = "busybox* "

PV = "0.4"

DOM0_MAIN_PKGS = " packagegroup-core-boot \
                   packagegroup-dom0 \
                   packagegroup-util-linux \
                   packagegroup-core-ssh-openssh \
                   overc-system-agent \
                 "

IMAGE_INSTALL += "${DOM0_MAIN_PKGS} \
                  packagegroup-container \
                  packagegroup-service-discovery \
                  ${POD_DOM0_EXTRA_INSTALL} \
                 "

IMAGE_FEATURES += "package-management doc-pkgs"

IMAGE_FSTYPES = "tar.bz2"

inherit core-image
inherit builder-base


DESCRIPTION = "TI CSL"
LICENSE = "TI BSD"
LIC_FILES_CHKSUM = "file://COPYING.txt;md5=5857833e20836213677fac33f9aded21"

COMPATIBLE_MACHINE = "keystone"
ALLOW_EMPTY_${PN} = "1"

PR = "r0"
BRANCH="master"
SRC_URI = "git://git.ti.com/keystone-rtos/common-csl-ip.git;protocol=git;branch=${BRANCH}"
# commit ID corresponds to DEV.CSL_KEYSTONE2.02.00.00.17
SRCREV = "f6f90144c14e1ee783c4b893b52e54830be8166e"

S = "${WORKDIR}/git"

do_install () {
    install -d ${D}${includedir}/ti/csl
    find . -name "*.h" -type f | xargs -I {} cp --parents {} ${D}${includedir}/ti/csl
    find ./src/ip/serdes_sb/V0 -name "*.c" -type f | xargs -I {} cp --parents {} ${D}${includedir}/ti/csl
}

Update to csl version 2.1.0.5

DESCRIPTION = "Chip support library low level interface"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://COPYING.txt;md5=5857833e20836213677fac33f9aded21"

COMPATIBLE_MACHINE = "keystone"
ALLOW_EMPTY_${PN} = "1"

PR = "r1"
BRANCH="master"
SRC_URI = "git://git.ti.com/keystone-rtos/common-csl-ip.git;protocol=git;branch=${BRANCH}"
# commit ID corresponds to DEV.CSL_KEYSTONE2.02.01.00.05A
SRCREV = "80d18dda4a76ce1a22cf2b5156f111390d75bea4"

S = "${WORKDIR}/git"

do_install () {
    install -d ${D}${includedir}/ti/csl
    find . -name "*.h" -type f | xargs -I {} cp --parents {} ${D}${includedir}/ti/csl
    find ./src/ip/serdes_sb/V0 -name "*.c" -type f | xargs -I {} cp --parents {} ${D}${includedir}/ti/csl
}


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

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

S = "${WORKDIR}/git"

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

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

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

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

TARGET_CC_ARCH += "${LDFLAGS}"

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

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

BBCLASSEXTEND = "native nativesdk"

Update to bootgen SRCREV to point to latest commit.

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

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

S = "${WORKDIR}/git"

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

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

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

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

TARGET_CC_ARCH += "${LDFLAGS}"

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

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

BBCLASSEXTEND = "native nativesdk"


VIMVER = "72"

# vim-tiny sets that too
VIMFEATURES ?= "big"

# GUI type - gvim recipe sets "gtk2"
VIMGUI ?= "no"

# gvim recipes uses "--with-x"
VIMX ?= "--without-x"

require vim.inc

PR = "${INC_PR}.3"

# 001-411.diff contains 411 patches fetched from upstream
SRC_URI += "file://001-411.diff;apply=no"
SRC_URI += "file://configure.in_remove_CC_quotes.patch;apply=no"
SRC_URI += "file://vimrc"

# we need to apply patches in other dir then ${S}
do_patch() {
	cd ${WORKDIR}/vim${VIMVER}
	patch -p1 <${WORKDIR}/001-411.diff
	patch -p1 <${WORKDIR}/configure.in_remove_CC_quotes.patch
}

do_install_append() {
    install -m 0644 ${WORKDIR}/vimrc ${D}/${datadir}/vim
}

RCONFLICTS_${PN} = "gvim vim-tiny"
PACKAGES =+ "${PN}-vimrc"

FILES_${PN}-vimrc = "${datadir}/vim/vimrc"

Switch to patchdir rather than applying in do_configure

VIMVER = "72"

# vim-tiny sets that too
VIMFEATURES ?= "big"

# GUI type - gvim recipe sets "gtk2"
VIMGUI ?= "no"

# gvim recipes uses "--with-x"
VIMX ?= "--without-x"

require vim.inc

PR = "${INC_PR}.3"

# 001-411.diff contains 411 patches fetched from upstream
SRC_URI += "file://001-411.diff;patchdir=.."
SRC_URI += "file://configure.in_remove_CC_quotes.patch;patchdir=.."
SRC_URI += "file://vimrc"

do_install_append() {
    install -m 0644 ${WORKDIR}/vimrc ${D}/${datadir}/vim
}

RCONFLICTS_${PN} = "gvim vim-tiny"
PACKAGES =+ "${PN}-vimrc"

FILES_${PN}-vimrc = "${datadir}/vim/vimrc"


DESCRIPTION = "TI QMSS low level driver unit test and example binaries"

DEPENDS="common-csl-ip rm-lld cppi-lld qmss-lld cmem"

include qmss-lld.inc

PR = "${INC_PR}.2"

CHOICELIST = "yes no"

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

do_install () {
	for device in ${DEVICELIST}
	do
		make -f makefile_armv7 installbin PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE="$device" QMSS_SRC_DIR=${S} INSTALL_BIN_BASE_DIR=${D}${bindir}
	done
}

Add explicit dependency on uio-module-drv

DESCRIPTION = "TI QMSS low level driver unit test and example binaries"

DEPENDS="common-csl-ip rm-lld cppi-lld qmss-lld cmem uio-module-drv"

include qmss-lld.inc

PR = "${INC_PR}.2"

CHOICELIST = "yes no"

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

do_install () {
	for device in ${DEVICELIST}
	do
		make -f makefile_armv7 installbin PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE="$device" QMSS_SRC_DIR=${S} INSTALL_BIN_BASE_DIR=${D}${bindir}
	done
}


SECTION = "console/network"
DESCRIPTION = "IPv6 router advertisement daemon"
LICENSE = "BSD"
SRC_URI = "http://v6web.litech.org/radvd/dist/radvd-${PV}.tar.gz \
	   file://automake.patch;patch=1"
S = "${WORKDIR}/radvd-${PV}"

inherit autotools

Add build time dependancy on flex.

SECTION = "console/network"
DESCRIPTION = "IPv6 router advertisement daemon"
LICENSE = "BSD"
SRC_URI = "http://v6web.litech.org/radvd/dist/radvd-${PV}.tar.gz \
	   file://automake.patch;patch=1"
S = "${WORKDIR}/radvd-${PV}"
DEPENDS = "flex"

inherit autotools


#
# This file was derived from the 'Hello World!' example recipe in the
# Yocto Project Development Manual.
#

DESCRIPTION = "Open Content Decryption Module"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=ea83f8bc099c40bde8c4f2441a6eb40b"

SRC_URI = "git://github.com/kuscsik/linaro-cdmi.git;protocol=https;branch=master"
SRCREV_pn-ocdmi ?= "${AUTOREV}"

S = "${WORKDIR}/git"

EXTRA_OECONF_append = "${@base_contains('MACHINE_FEATURES', 'optee', '--enable-aes-ta', '', d)} "

# * use-playready : Enables support for Playready CDMI.
#
# * debug-build : Builds OCDM with debug symbols and verbose logging.

DEPENDS_append = " openssl portmap"

DEPENDS_append = "${@base_contains('MACHINE_FEATURES','optee',' optee-aes-decryptor ','',d)}"

# Only ClearKey implementation depends on ssl
DEPENDS_remove = " \
  ${@base_contains('PACKAGECONFIG','use-playready','openssl','',d)} \
  "

inherit autotools

Update GIT to point to linaro-home repo.

#
# This file was derived from the 'Hello World!' example recipe in the
# Yocto Project Development Manual.
#

DESCRIPTION = "Open Content Decryption Module"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=ea83f8bc099c40bde8c4f2441a6eb40b"

SRC_URI = "git://github.com/linaro-home/open-content-decryption-module-cdmi.git;protocol=https;branch=master"
SRCREV_pn-ocdmi ?= "${AUTOREV}"

S = "${WORKDIR}/git"

EXTRA_OECONF_append = "${@base_contains('MACHINE_FEATURES', 'optee', '--enable-aes-ta', '', d)} "

# * use-playready : Enables support for Playready CDMI.
#
# * debug-build : Builds OCDM with debug symbols and verbose logging.

DEPENDS_append = " openssl portmap"

DEPENDS_append = "${@base_contains('MACHINE_FEATURES','optee',' optee-aes-decryptor ','',d)}"

# Only ClearKey implementation depends on ssl
DEPENDS_remove = " \
  ${@base_contains('PACKAGECONFIG','use-playready','openssl','',d)} \
  "

inherit autotools


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

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

S = "${WORKDIR}/assassin"

inherit autotools pkgconfig

EXTRA_OECONF = ""

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

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

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

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

S = "${WORKDIR}/assassin"

inherit autotools pkgconfig

EXTRA_OECONF = ""

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


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

DESCRIPTION = "OpenWrt MDNS daemon"
HOMEPAGE = "http://git.openwrt.org/?p=project/mdnsd.git;a=summary"
LICENSE = "GPL-2.0"
LIC_FILES_CHKSUM = "file://main.c;beginline=1;endline=12;md5=ce0be9da20a926574bf76c1285343bef"
SECTION = "base"
DEPENDS = "json-c libcap libubox ubus"

SRC_URI = "git://git.openwrt.org/project/mdnsd.git \
          "
SRCREV = "59e4fc98162d253b4e5ecd110f7bc5ea3962e221"

S = "${WORKDIR}/git"

inherit cmake pkgconfig openwrt-services openwrt

TARGET_CFLAGS_append = " -Wno-error=array-bounds"

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

Update SRVREV fix error *format* type 'long unsigned int'

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

DESCRIPTION = "OpenWrt MDNS daemon"
HOMEPAGE = "http://git.openwrt.org/?p=project/mdnsd.git;a=summary"
LICENSE = "GPL-2.0"
LIC_FILES_CHKSUM = "file://main.c;beginline=1;endline=12;md5=ce0be9da20a926574bf76c1285343bef"
SECTION = "base"
DEPENDS = "json-c libcap libubox ubus"

SRC_URI = "git://git.openwrt.org/project/mdnsd.git \
          "
SRCREV = "78aa36b0e9808e801c527c6dc47320e593309522"

S = "${WORKDIR}/git"

inherit cmake pkgconfig openwrt-services openwrt

TARGET_CFLAGS_append = " -Wno-error=array-bounds"

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


SUMMARY = "MPSSD"
LICENSE = "GPL"
LIC_FILES_CHKSUM = "file://COPYING;md5=58dd7e3251f8a7d8c3784355098b8d53"

export KERNELDIR = "${STAGING_KERNEL_DIR}"

S = "${WORKDIR}/mpssd"

SRC_URI = " \
    file://mpssd.tar.gz \
"

do_compile() {
    cd ${S}
    make all || die
}

do_install() {
    install -d ${D}${bindir}
    install -m 755 ${S}/mpssd ${D}${bindir}
}

FILES_${PN} = " \
    ${bindir}/mpssd \
"

Add mpssd dependency on kernel

SUMMARY = "MPSSD"
LICENSE = "GPL"
LIC_FILES_CHKSUM = "file://COPYING;md5=58dd7e3251f8a7d8c3784355098b8d53"

DEPENDS = "virtual/kernel"

export KERNELDIR = "${STAGING_KERNEL_DIR}"

S = "${WORKDIR}/mpssd"

SRC_URI = " \
    file://mpssd.tar.gz \
"

do_compile() {
    cd ${S}
    make all || die
}

do_install() {
    install -d ${D}${bindir}
    install -m 755 ${S}/mpssd ${D}${bindir}
}

FILES_${PN} = " \
    ${bindir}/mpssd \
"


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

inherit autotools

DEPENDS = "openssh"

SRC_URI = "http://netcologne.dl.sourceforge.net/project/virtuoso/virtuoso/6.1.4/virtuoso-opensource-6.1.4.tar.gz \
	   file://fix-weird-md5-error.diff \
	   file://config-cross.diff \
	   file://build-sanely.diff \
	  "

SRC_URI[md5sum] = "7110a0b4b171b84850d346f4fe648172"
SRC_URI[sha256sum] = "153f92211a23e05dcf4bde4c94d2963d06321d00f213c50025d740b96140154e"

EXTRA_OECONF =+ "\
		 --disable-all-vads \
		 --disable-openldap \
		 --disable-wbxml2 \
		 --disable-imsg \
		 --disable-hslookup \
	        "

S = "${WORKDIR}/${BPN}-opensource-${PV}"

Fix build if imagemagick is present

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

inherit autotools

DEPENDS = "openssl"

SRC_URI = "http://netcologne.dl.sourceforge.net/project/virtuoso/virtuoso/6.1.4/virtuoso-opensource-6.1.4.tar.gz \
	   file://fix-weird-md5-error.diff \
	   file://config-cross.diff \
	   file://build-sanely.diff \
	  "

SRC_URI[md5sum] = "7110a0b4b171b84850d346f4fe648172"
SRC_URI[sha256sum] = "153f92211a23e05dcf4bde4c94d2963d06321d00f213c50025d740b96140154e"

# These options will prevent the run testing of features while crosscompiling
# Otherwise Autotools would notices it and give us an error.
EXTRA_OECONF =+ "\
		 --disable-all-vads \
		 --disable-openldap \
		 --disable-wbxml2 \
		 --disable-imsg \
		 --disable-hslookup \
		 --disable-imagemagick \
	        "

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

S = "${WORKDIR}/${BPN}-opensource-${PV}"


DESCRIPTION = "Linux kernel for Beck IPC Hardware"
KERNEL_IMAGETYPE = "zImage"

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

COMPATIBLE_MACHINE = "(sc145-db150)"

PV = "4.9.18"
PR = "r0"
SRCREV_pn-${PN} = "e255a9806fcb124986e0b62d6d320b61892d4947"

SRC_URI += "git://github.com/beck-ipc/kernel-at-chip.git;protocol=https;branch=v4.9-beck; \
            file://defconfig"

S = "${WORKDIR}/git"

Set Kernel image type in device configuration.

DESCRIPTION = "Linux kernel for Beck IPC Hardware"

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

COMPATIBLE_MACHINE = "(sc145-db150)"

PV = "4.9.18"
PR = "r0"
SRCREV_pn-${PN} = "e255a9806fcb124986e0b62d6d320b61892d4947"

SRC_URI += "git://github.com/beck-ipc/kernel-at-chip.git;protocol=https;branch=v4.9-beck; \
            file://defconfig"

S = "${WORKDIR}/git"


#
# This file was derived from the 'Hello World!' example recipe in the
# Yocto Project Development Manual.
#

FILESEXTRAPATHS_prepend := "${THISDIR}:"

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

SRCREV = "v1.0"
SRC_URI = "git://github.com/BayLibre/acme-utils.git"
SRC_URI[md5sum] = "d9d7179a5fa9721806d6ff866bda212f"

S = "${WORKDIR}/git"

do_compile() {
	     make -C api
}

do_install() {
	     install -d ${D}${bindir}
	     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}
}

Switch to python-cli version of acme-utils

FILESEXTRAPATHS_prepend := "${THISDIR}:"

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

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

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
}


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

inherit autotools gtk-doc

DEPENDS = "raptor"
RDEPENDS_${PN} = "raptor"

SRC_URI = "git://github.com/dajobe/rasqal.git;branch=master \
	   file://No-docs-and-NOCONFIGURE.patch \
	   file://Fix-cross-compile.patch \
	  "

SRCREV = "ffc5f88dcaa20b279a39b537db1c65019003b16d"

PV = "0.9.27+git${SRCPV}"

S = "${WORKDIR}/git"

EXTRA_OECONF = "\
		--enable-maintainer-mode \
		--disable-gtk-doc \
		--with-regex-library=posix \
		--with-decimal=gmp \
	       "

# Rasqal autogen.sh does not work properly, so let OE do the job
do_configure() {
	cd ${S}
	export NOCONFIGURE="no"; ./autogen.sh
	oe_runconf
}

Fix race conditions with PARALLEL_MAKE = ""

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

inherit autotools gtk-doc

DEPENDS = "raptor"
RDEPENDS_${PN} = "raptor"

SRC_URI = "git://github.com/dajobe/rasqal.git;branch=master \
	   file://No-docs-and-NOCONFIGURE.patch \
	   file://Fix-cross-compile.patch \
	  "

SRCREV = "ffc5f88dcaa20b279a39b537db1c65019003b16d"

PV = "0.9.27+git${SRCPV}"

S = "${WORKDIR}/git"

EXTRA_OECONF = "\
		--enable-maintainer-mode \
		--disable-gtk-doc \
		--with-regex-library=posix \
		--with-decimal=gmp \
	       "

# Rasqal autogen.sh does not work properly, so let OE do the job
do_configure() {
	cd ${S}
	export NOCONFIGURE="no"; ./autogen.sh
	oe_runconf
}
PARALLEL_MAKE = ""


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

PR = "r0"
inherit debian-package

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

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

}

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

Correct the permission of file

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

PR = "r1"
inherit debian-package

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

#install follow Debian jessie
do_install() {
	install -d ${D}${base_sbindir}
	install -m 0755 ${S}/chkconfig ${D}${base_sbindir}/

}

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


require libhildonmime.inc

DEPENDS += "osso-gnome-vfs2"

PR = "r0"

SRC_URI = "http://repository.maemo.org/pool/maemo4.0/free/source/libh/${PN}/${PN}_${PV}-1.tar.gz"

Set extra config flag to avoid -Werror to get used.

require libhildonmime.inc

DEPENDS += "osso-gnome-vfs2"

PR = "r0"

SRC_URI = "http://repository.maemo.org/pool/maemo4.0/free/source/libh/${PN}/${PN}_${PV}-1.tar.gz"

EXTRA_OECONF += "--with-compile-warnings=no"


require u-boot-socfpga-common.inc
require ${COREBASE}/meta/recipes-bsp/u-boot/u-boot.inc

SRC_URI = "git://github.com/altera-opensource/u-boot-socfpga.git;branch=socfpga_v2019.04"
SRCREV = "bc38a09daa09e73b075006d8006caa84bb2fe0fe"

DEPENDS += "dtc-native bc-native u-boot-mkimage-native"

Update u-boot-socfpga to latest release

require u-boot-socfpga-common.inc
require ${COREBASE}/meta/recipes-bsp/u-boot/u-boot.inc

SRC_URI = "git://github.com/altera-opensource/u-boot-socfpga.git;branch=socfpga_v2019.04"
SRCREV = "8c4cd804d6d77fbc4d7201d19755b6e89d43ae65"

DEPENDS += "dtc-native bc-native u-boot-mkimage-native"


DESCRIPTION = "Test Utilities for Firefly MV Cameras"
HOMEPAGE = "http://github.com/nzjrs/firefly-mv/tree/master"
SECTION = "console/utils"
PRIORITY = "optional"
LICENSE = "GPL"
PR = "r4"

DEPENDS = "libdc1394 gtk+"

#FIXME: Why are these lines necessary?, why isnt pkg-config in the
#Makefile sufficient?
CFLAGS_append = " $(pkg-config --cflags gtk+-2.0)"
LIBS_append = " $(pkg-config --libs gtk+-2.0)"

SRCREV = "1374fa542d63d688a96851cebc04d486ac8b6dd8"
SRC_URI = "git://github.com/nzjrs/firefly-mv.git;protocol=git;branch=master"

inherit pkgconfig

S = "${WORKDIR}/git"

do_compile() {
	oe_runmake
}

do_install () {
	install -d ${D}${bindir}
	install -m 0755 dc1394-camls ${D}${bindir}/
	install -m 0755 dc1394-show ${D}${bindir}/
	install -m 0755 dc1394-view ${D}${bindir}/
}

Install the record and playback utils from dc1394

DESCRIPTION = "Test Utilities for Firefly MV Cameras"
HOMEPAGE = "http://github.com/nzjrs/firefly-mv/tree/master"
SECTION = "console/utils"
PRIORITY = "optional"
LICENSE = "GPL"
PR = "r5"

DEPENDS = "libdc1394 gtk+"

#FIXME: Why are these lines necessary?, why isnt pkg-config in the
#Makefile sufficient?
CFLAGS_append = " $(pkg-config --cflags gtk+-2.0)"
LIBS_append = " $(pkg-config --libs gtk+-2.0)"

SRCREV = "3625d125cd8f4d932911991ac3e32fe09a52fa37"
SRC_URI = "git://github.com/nzjrs/firefly-mv.git;protocol=git;branch=master"

inherit pkgconfig

S = "${WORKDIR}/git"

do_compile() {
	oe_runmake
}

do_install () {
	install -d ${D}${bindir}
	install -m 0755 dc1394-camls ${D}${bindir}/
	install -m 0755 dc1394-show ${D}${bindir}/
	install -m 0755 dc1394-view ${D}${bindir}/
	install -m 0755 dc1394-record ${D}${bindir}/
	install -m 0755 dc1394-play ${D}${bindir}/
}


require recipes-graphics/xorg-driver/xorg-driver-video.inc
LIC_FILES_CHKSUM = "file://COPYING;md5=f8ad89d9d9a024f19d7dcc5acb044a42"

DESCRIPTION = "X.org server -- Geode GX2/LX display driver"
PR = "${INC_PR}.0"

SRC_URI[md5sum] = "a99c521db731c2f1df309057a8465e4c"
SRC_URI[sha256sum] = "28d845d727d99bfa4d4b93c5486ec01b72eb222e0910a766089db1103b1c2d92"

COMPATIBLE_HOST = "i.86.*-linux"

Add rdepends on EXA Xorg module

require recipes-graphics/xorg-driver/xorg-driver-video.inc
LIC_FILES_CHKSUM = "file://COPYING;md5=f8ad89d9d9a024f19d7dcc5acb044a42"

DESCRIPTION = "X.org server -- Geode GX2/LX display driver"
PR = "${INC_PR}.1"

SRC_URI[md5sum] = "a99c521db731c2f1df309057a8465e4c"
SRC_URI[sha256sum] = "28d845d727d99bfa4d4b93c5486ec01b72eb222e0910a766089db1103b1c2d92"

COMPATIBLE_HOST = "i.86.*-linux"

RDEPENDS_${PN} += "xserver-xorg-module-exa"


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

DEPENDS = "boost"

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

inherit cmake

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

Add missing dependency on virtual/libgl

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

DEPENDS = "boost virtual/libgl"

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

inherit cmake

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


DESCRIPTION = "NI Watchdog Petter"
SECTION = "base"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=0835ade698e0bcf8506ecda2f7b4f302"

inherit update-rc.d

S = "${WORKDIR}"

SRC_URI = "file://LICENSE \
	   file://niwatchdogpet.c \
	   file://niwatchdogpet.sh"

INITSCRIPT_NAME = "niwatchdogpet"
INITSCRIPT_PARAMS = "start 03 S ."

CFLAGS_append = " -std=c89 -Wall -Werror -pedantic"

do_compile() {
	${CC} -Os ${CFLAGS} ${WORKDIR}/niwatchdogpet.c -o niwatchdogpet ${LDFLAGS}
}

do_install() {
	install -m 0755 -d ${D}${sbindir} ${D}${sysconfdir}/init.d
	install -m 0755 ${S}/niwatchdogpet ${D}${sbindir}
	install -m 0755 ${S}/niwatchdogpet.sh ${D}${sysconfdir}/init.d/niwatchdogpet
}

Move watchdogpet later in startup

DESCRIPTION = "NI Watchdog Petter"
SECTION = "base"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=0835ade698e0bcf8506ecda2f7b4f302"

inherit update-rc.d

S = "${WORKDIR}"

SRC_URI = "file://LICENSE \
	   file://niwatchdogpet.c \
	   file://niwatchdogpet.sh"

INITSCRIPT_NAME = "niwatchdogpet"
INITSCRIPT_PARAMS = "start 04 S ."

CFLAGS_append = " -std=c89 -Wall -Werror -pedantic"

do_compile() {
	${CC} -Os ${CFLAGS} ${WORKDIR}/niwatchdogpet.c -o niwatchdogpet ${LDFLAGS}
}

do_install() {
	install -m 0755 -d ${D}${sbindir} ${D}${sysconfdir}/init.d
	install -m 0755 ${S}/niwatchdogpet ${D}${sbindir}
	install -m 0755 ${S}/niwatchdogpet.sh ${D}${sysconfdir}/init.d/niwatchdogpet
}


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

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

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

S = "${WORKDIR}/git"

BBCLASSEXTEND = "native"

# tini links with -static, so no PIE for us
SECURITY_CFLAGS_pn-${PN} = "${SECURITY_NO_PIE_CFLAGS}"

inherit cmake

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

Switch from docker to balena and minor formatting changes

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

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

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

S = "${WORKDIR}/git"

BBCLASSEXTEND = "native"

# tini links with -static, so no PIE for us
SECURITY_CFLAGS_pn-${PN} = "${SECURITY_NO_PIE_CFLAGS}"

inherit cmake

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


require linux-ti-staging_5.4.bb

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

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

SRCREV = "d4b0f63810a64c5f5c9876ba3492b647553d385d"
PV = "5.4.74+git${SRCPV}"

Update RT kernel hash to pick up a few fixes

require linux-ti-staging_5.4.bb

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

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

SRCREV = "9002faf1c069e1b0d435199a80a89268e69aeecf"
PV = "5.4.74+git${SRCPV}"


SUMMARY = "The utility to manipulate machines owner keys which managed in shim"

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

DEPENDS += "openssl efivar"

PV = "0.3.0+git${SRCPV}"

SRC_URI = "\
    git://github.com/lcp/mokutil.git \
"
SRCREV = "e19adc575c1f9d8f08b7fbc594a0887ace63f83f"

S = "${WORKDIR}/git"

inherit autotools pkgconfig

EXTRA_OEMAKE += "\
    EFIVAR_LIBS='-L${STAGING_LIBDIR} -lefivar' \
    OPENSSL_LIBS='-L${STAGING_LIBDIR} -lssl -lcrypto' \
"

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

FILES_${PN} += "${datadir}/bash-completion/*"

RDEPENDS_${PN} += "openssl efivar"

Fix build failure due to missing crypt.h

SUMMARY = "The utility to manipulate machines owner keys which managed in shim"

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

DEPENDS += "openssl efivar virtual/crypt"

PV = "0.3.0+git${SRCPV}"

SRC_URI = "\
    git://github.com/lcp/mokutil.git \
"
SRCREV = "e19adc575c1f9d8f08b7fbc594a0887ace63f83f"

S = "${WORKDIR}/git"

inherit autotools pkgconfig

EXTRA_OEMAKE += "\
    EFIVAR_LIBS='-L${STAGING_LIBDIR} -lefivar' \
    OPENSSL_LIBS='-L${STAGING_LIBDIR} -lssl -lcrypto' \
"

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

FILES_${PN} += "${datadir}/bash-completion/*"

RDEPENDS_${PN} += "openssl efivar"


DESCRIPTION = "The OpenMoko Dialer"
SECTION = "openmoko/pim"
DEPENDS = "libmokogsmd2 libmokoui2 libmokojournal2 gstreamer"
RDEPENDS = "gst-meta-audio"
PV = "0.1.0+svn${SVNREV}"
PR = "r2"

inherit openmoko2

EXTRA_OECONF = "--with-dbusbindir=${STAGING_BINDIR_NATIVE}"

FILES_${PN} += "${datadir}/openmoko-dialer/ ${datadir}/dbus-1/services/"

Switch dependency. The dialer uses pulseaudio instead of gstreamer now.

DESCRIPTION = "The OpenMoko Dialer"
SECTION = "openmoko/pim"
DEPENDS = "libmokogsmd2 libmokoui2 libmokojournal2 pulseaudio"
PV = "0.1.0+svn${SVNREV}"
PR = "r3"

inherit openmoko2

EXTRA_OECONF = "--with-dbusbindir=${STAGING_BINDIR_NATIVE}"

FILES_${PN} += "${datadir}/openmoko-dialer/ ${datadir}/dbus-1/services/"


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

DEPENDS = "kdelibs4"

require kde4.inc

SRC_URI = "git://anongit.kde.org/kde-runtime;protocol=git;branch=master \
	  file://Disable-docs.patch"
SRCREV = "37a52f48ebd4850d07cd8fe7277e6fa7a653c2ae"

PV = "4.7.97+git${SRCPV}"
EXTRA_OECMAKE =+ "\
		  -DKDEBASE_DISABLE_MULTIMEDIA=ON \
		  \
		  -DKActivities_DIR=${STAGING_DATADIR}/apps/cmake/modules \
		 "

#		  -DPHONON_INCLUDE_DIR=${OE_QMAKE_INCDIR_QT} \

S = "${WORKDIR}/git"

# build out of tree
#OECMAKE_SOURCEPATH = ".."
#OECMAKE_BUILDPATH = "build"

#BBCLASSEXTEND = "native"

Add soprano to the dependencies.

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

DEPENDS = "kdelibs4 soprano"

require kde4.inc

SRC_URI = "git://anongit.kde.org/kde-runtime;protocol=git;branch=master \
	  file://Disable-docs.patch"
SRCREV = "37a52f48ebd4850d07cd8fe7277e6fa7a653c2ae"

PV = "4.7.97+git${SRCPV}"
EXTRA_OECMAKE =+ "\
		  -DKDEBASE_DISABLE_MULTIMEDIA=ON \
		  \
		  -DKActivities_DIR=${STAGING_DATADIR}/apps/cmake/modules \
		 "

#		  -DPHONON_INCLUDE_DIR=${OE_QMAKE_INCDIR_QT} \

S = "${WORKDIR}/git"

# build out of tree
#OECMAKE_SOURCEPATH = ".."
#OECMAKE_BUILDPATH = "build"

#BBCLASSEXTEND = "native"


#
# Copyright (C) 2011 Colin Walters <walters@verbum.org>
#
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
                    file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"

inherit gnomeos-contents

PACKAGE_INSTALL += "task-core-sdk-dev \
		bison flex \
		git \
		pseudo \
		"

Add python-dev to devel image, drop pseudo

#
# Copyright (C) 2011 Colin Walters <walters@verbum.org>
#
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
                    file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"

inherit gnomeos-contents

PACKAGE_INSTALL += "task-core-sdk-dev \
		python-dev \
		bison flex \
		git \
		"


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.

Add FILESEXTRAPATHS_append to 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 = "r2"
PV = "${KERNEL_VERSION}"
FILESEXTRAPATHS_append := "${THISDIR}/${PN}:"

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.


require cppcheck.inc

SRC_URI = " https://github.com/danmar/cppcheck/archive/${PV}.tar.gz \
            file://0001-makefile.patch \
            file://0002-pkgconfig-instaed-of-pcre-config.patch \
            file://cppcheck.sca.description"
SRC_URI[md5sum] = "eba3b8b4d69045bd24104c2d0cc0cb0c"
SRC_URI[sha256sum] = "ea7ac1cd2f5c00ecffd596fd0f7281cba44308e565a634fae02b77ecd927c153"
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"

Add downloadfilename parameter to SRC_URI

require cppcheck.inc

SRC_URI = " https://github.com/danmar/cppcheck/archive/${PV}.tar.gz;downloadfilename=${BP}.tar.gz \
            file://0001-makefile.patch \
            file://0002-pkgconfig-instaed-of-pcre-config.patch \
            file://cppcheck.sca.description"
SRC_URI[md5sum] = "eba3b8b4d69045bd24104c2d0cc0cb0c"
SRC_URI[sha256sum] = "ea7ac1cd2f5c00ecffd596fd0f7281cba44308e565a634fae02b77ecd927c153"
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"


SUMMARY = "Utility functions for dLeyna libraries"
DESCRIPTION = "dleyna-core is a library of utility functions that are used \
by the higher level dLeyna libraries that communicate with DLNA devices, \
e.g., dleyna-server. In brief, it provides APIs for logging, error, settings \
and task management and an IPC asbstraction API."
HOMEPAGE = "https://01.org/dleyna/"

LICENSE = "LGPLv2.1+"
LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c \
                    file://libdleyna/core/core.c;endline=21;md5=139cba0c634344abc9456694fbb5083b"

DEPENDS = "glib-2.0 gupnp"

SRC_URI = "git://github.com/01org/${BPN}.git"
SRCREV = "27a3786ec013f64fd58243410a60798f824acec3"
S = "${WORKDIR}/git"

inherit autotools pkgconfig

Update to latest to support gupnp 1.2

SUMMARY = "Utility functions for dLeyna libraries"
DESCRIPTION = "dleyna-core is a library of utility functions that are used \
by the higher level dLeyna libraries that communicate with DLNA devices, \
e.g., dleyna-server. In brief, it provides APIs for logging, error, settings \
and task management and an IPC asbstraction API."
HOMEPAGE = "https://01.org/dleyna/"

LICENSE = "LGPLv2.1+"
LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c \
                    file://libdleyna/core/core.c;endline=21;md5=68602998351825b0844aae34c684c54e"

DEPENDS = "glib-2.0 gupnp"

PV .= "+git${SRCPV}"

SRC_URI = "git://github.com/01org/${BPN}.git"
SRCREV = "1c6853f5bc697dc0a8774fd70dbc915c4dbe7c5b"
S = "${WORKDIR}/git"

inherit autotools pkgconfig


DESCRIPTION = "Diversity_radar - a GPS location based communicative application"
HOMEPAGE = "http://diversity.projects.openmoko.org/"
SECTION = "openmoko/applications"
LICENSE = "GPL"
DEPENDS = "python-evas python-edje python-ecore python-edbus python-dbus python-etk"
RDEPENDS_${PN} = "diversity-daemon"
PV = "0.0.4+svnr${SRCREV}"
PR = "r0.01"

SRC_URI = "svn://svn.projects.openmoko.org/svnroot/diversity/toys;module=diversity-radar;proto=http"

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

inherit setuptools

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

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

Revert "[diversity] remove PACKAGES = "${PN}" from diversity-radar"

DESCRIPTION = "Diversity_radar - a GPS location based communicative application"
HOMEPAGE = "http://diversity.projects.openmoko.org/"
SECTION = "openmoko/applications"
LICENSE = "GPL"
DEPENDS = "python-evas python-edje python-ecore python-edbus python-dbus python-etk"
RDEPENDS_${PN} = "diversity-daemon"
PV = "0.0.4+svnr${SRCREV}"
PR = "r0"

SRC_URI = "svn://svn.projects.openmoko.org/svnroot/diversity/toys;module=diversity-radar;proto=http"

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

inherit setuptools

PACKAGES = "${PN}"

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

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


require shared-mime-info.inc

DEPENDS = "libxml2 intltool-native glib-2.0 shared-mime-info-native"
PR = "r2"

do_install_append() {
    update-mime-database ${D}${datadir}/mime
}

# freedesktop.org.xml is huge and only needed when updating the db
# mime.bbclass will add the dependency on it automagically
PACKAGES =+ "freedesktop-mime-info"
FILES_freedesktop-mime-info = "${datadir}/mime/packages/freedesktop.org.xml"
RDEPENDS_freedesktop-mime-info = "shared-mime-info"

SRC_URI[md5sum] = "01d72161f7d88123fbccd378871f02f0"
SRC_URI[sha256sum] = "1c247e03418d6b90bcbc0da6c1abe6ac9cd5bacf9c3a2f3b6105376cf7b0eed8"

Update LICENSE field version to GPLv2

require shared-mime-info.inc

LICENSE = "GPLv2"

DEPENDS = "libxml2 intltool-native glib-2.0 shared-mime-info-native"
PR = "r3"

do_install_append() {
    update-mime-database ${D}${datadir}/mime
}

# freedesktop.org.xml is huge and only needed when updating the db
# mime.bbclass will add the dependency on it automagically
PACKAGES =+ "freedesktop-mime-info"
FILES_freedesktop-mime-info = "${datadir}/mime/packages/freedesktop.org.xml"
RDEPENDS_freedesktop-mime-info = "shared-mime-info"

SRC_URI[md5sum] = "01d72161f7d88123fbccd378871f02f0"
SRC_URI[sha256sum] = "1c247e03418d6b90bcbc0da6c1abe6ac9cd5bacf9c3a2f3b6105376cf7b0eed8"


require recipes-images/angstrom/extended-console-image.bb

IMAGE_INSTALL += " \
	kernel-headers \
	kernel-modules \
	linux-firmware \
	usbutils \
	libusbg \
	iw \
        systemd-analyze \
        vim vim-vimrc \
        procps \
        screen minicom \
        cronie-systemd ntpdate \
        tar \
        packagegroup-sdk-target \
	gcc \
        gdb gdbserver \
        iproute2 \
	lighttpd \
        lighttpd-module-cgi \
	atlas-soc-lighttpd-conf \
	atlas-soc-101 \
	atlas-soc-usb-gadget \
	gator \
	fftdriver-mod \
	gnuplot \
"
export IMAGE_BASENAME = "atlas-soc-console-image"

Update image to include fftsw-apps

require recipes-images/angstrom/extended-console-image.bb

IMAGE_INSTALL += " \
	kernel-headers \
	kernel-modules \
	linux-firmware \
	usbutils \
	libusbg \
	iw \
        systemd-analyze \
        vim vim-vimrc \
        procps \
        screen minicom \
        cronie-systemd ntpdate \
        tar \
        packagegroup-sdk-target \
	gcc \
        gdb gdbserver \
        iproute2 \
	lighttpd \
        lighttpd-module-cgi \
	atlas-soc-lighttpd-conf \
	atlas-soc-101 \
	atlas-soc-usb-gadget \
	fftdriver-mod \
	fftsw-apps \
	gnuplot \
"
export IMAGE_BASENAME = "atlas-soc-console-image"


DESCRIPTION = "Python 3 compatible Python 2 `random` Module"
HOMEPAGE = "https://pypi.org/project/random2/"
LICENSE = "PSFv2"

LIC_FILES_CHKSUM = "file://setup.py;beginline=13;endline=13;md5=7767ca95316ceeac60eda07a2f2245ca"

SRC_URI = "https://files.pythonhosted.org/packages/ee/b5/5aca5217501fbd06b1e5aed6d5986baa0da5380880e6bb6f421ed18e3a32/random2-${PV}.zip"
SRC_URI[sha256sum] = "34ad30aac341039872401595df9ab2c9dc36d0b7c077db1cea9ade430ed1c007"
S = "${WORKDIR}/random2-${PV}"

inherit setuptools3

BBCLASSEXTEND = "native"

Define PIP_INSTALL_PACKAGE to fix wheel install

DESCRIPTION = "Python 3 compatible Python 2 `random` Module"
HOMEPAGE = "https://pypi.org/project/random2/"
LICENSE = "PSFv2"

LIC_FILES_CHKSUM = "file://setup.py;beginline=13;endline=13;md5=7767ca95316ceeac60eda07a2f2245ca"

SRC_URI = "https://files.pythonhosted.org/packages/ee/b5/5aca5217501fbd06b1e5aed6d5986baa0da5380880e6bb6f421ed18e3a32/random2-${PV}.zip"
SRC_URI[sha256sum] = "34ad30aac341039872401595df9ab2c9dc36d0b7c077db1cea9ade430ed1c007"
S = "${WORKDIR}/random2-${PV}"

inherit setuptools3

PIP_INSTALL_PACKAGE = "random2"

BBCLASSEXTEND = "native"


DESCRIPTION = "luaposix is a POSIX binding for Lua."
LICENSE = "MIT"
HOMEPAGE = "https://github.com/luaposix/luaposix"
LIC_FILES_CHKSUM = "file://LICENSE;md5=f81069e00c0cad249f20efe958276db1"

DEPENDS += "lua-native lua virtual/crypt"

SRC_URI = "git://github.com/luaposix/luaposix.git;branch=release-v${PV};protocol=https \
"
SRCREV = "14043c5086ae738823a5dfbc9170d9e14193fbef"
S = "${WORKDIR}/git"
LUA_VERSION = "5.4"

B = "${S}"

inherit pkgconfig

do_compile() {
    ${S}/build-aux/luke
}

do_install() {
    ${S}/build-aux/luke PREFIX=${D}${prefix} install
}

FILES:${PN} = "${datadir}/lua/${LUA_VERSION} \
               ${libdir}/lua/${LUA_VERSION}"

Fix INST_LIBDIR to honor libdir var

DESCRIPTION = "luaposix is a POSIX binding for Lua."
LICENSE = "MIT"
HOMEPAGE = "https://github.com/luaposix/luaposix"
LIC_FILES_CHKSUM = "file://LICENSE;md5=f81069e00c0cad249f20efe958276db1"

DEPENDS += "lua-native lua virtual/crypt"

SRC_URI = "git://github.com/luaposix/luaposix.git;branch=release-v${PV};protocol=https \
"
SRCREV = "14043c5086ae738823a5dfbc9170d9e14193fbef"
S = "${WORKDIR}/git"
LUA_VERSION = "5.4"

B = "${S}"

inherit pkgconfig

do_compile() {
    ${S}/build-aux/luke
}

do_install() {
    ${S}/build-aux/luke PREFIX=${D}${prefix} INST_LIBDIR=${D}${libdir}/lua/${LUA_VERSION} install
}

FILES:${PN} = "${datadir}/lua/${LUA_VERSION} \
               ${libdir}/lua/${LUA_VERSION}"


require recipes-graphics/xorg-app/xorg-app-common.inc
SUMMARY = "A program to compile XKB keyboard description"
DESCRIPTION = "The  xkbevd event daemon listens for specified XKB \
events and executes requested commands if they occur. "

LIC_FILES_CHKSUM = "file://COPYING;md5=208668fa9004709ba22c2b748140956c"

DEPENDS += "libxkbfile"

BBCLASSEXTEND = "native"

SRC_URI[md5sum] = "c747faf1f78f5a5962419f8bdd066501"
SRC_URI[sha256sum] = "2430a2e5302a4cb4a5530c1df8cb3721a149bbf8eb377a2898921a145197f96a"

Add bison-native to build deps

require recipes-graphics/xorg-app/xorg-app-common.inc
SUMMARY = "A program to compile XKB keyboard description"
DESCRIPTION = "The  xkbevd event daemon listens for specified XKB \
events and executes requested commands if they occur. "

LIC_FILES_CHKSUM = "file://COPYING;md5=208668fa9004709ba22c2b748140956c"

DEPENDS += "libxkbfile bison-native"

BBCLASSEXTEND = "native"

SRC_URI[md5sum] = "c747faf1f78f5a5962419f8bdd066501"
SRC_URI[sha256sum] = "2430a2e5302a4cb4a5530c1df8cb3721a149bbf8eb377a2898921a145197f96a"


DESCRIPTION = "Enlightenment Window Mananger Library"
DEPENDS = "freetype eet evas-x11 ecore-x11 embryo imlib2-x11 edje-native"
LICENSE = "MIT"
CVSDATE = "${PV}"
PR = "r0"

inherit efl

SRC_URI = "cvs://anonymous@cvs.sourceforge.net/cvsroot/enlightenment;module=e17/apps/e \
           file://fix-configure.patch;patch=1"
S = "${WORKDIR}/e"

PROFILE = "LORES_PDA"
PROFILE_c7x0 = "HIRES_PDA"
PROFILE_tosa = "HIRES_PDA"
PROFILE_spitz = "HIRES_PDA"
PROFILE_akita = "HIRES_PDA"

EXTRA_OECONF = "--with-profile=${PROFILE} \
                --with-edje-cc=${STAGING_BINDIR}/edje_cc \
                --x-includes=${STAGING_INCDIR}/X11 \
                --x-libraries=${STAGING_LIBDIR}"

do_compile() {
	oe_runmake -C src/lib
}

headers = "E_Lib.h"

do_install() {
	oe_runmake -C src/lib install DESTDIR=${D}
}

Add edje to e depends

DESCRIPTION = "Enlightenment Window Mananger Library"
DEPENDS = "freetype eet evas-x11 ecore-x11 embryo imlib2-x11 edje-native edje"
LICENSE = "MIT"
CVSDATE = "${PV}"
PR = "r0"

inherit efl

SRC_URI = "cvs://anonymous@cvs.sourceforge.net/cvsroot/enlightenment;module=e17/apps/e \
           file://fix-configure.patch;patch=1"
S = "${WORKDIR}/e"

PROFILE = "LORES_PDA"
PROFILE_c7x0 = "HIRES_PDA"
PROFILE_tosa = "HIRES_PDA"
PROFILE_spitz = "HIRES_PDA"
PROFILE_akita = "HIRES_PDA"

EXTRA_OECONF = "--with-profile=${PROFILE} \
                --with-edje-cc=${STAGING_BINDIR}/edje_cc \
                --x-includes=${STAGING_INCDIR}/X11 \
                --x-libraries=${STAGING_LIBDIR}"

do_compile() {
	oe_runmake -C src/lib
}

headers = "E_Lib.h"

do_install() {
	oe_runmake -C src/lib install DESTDIR=${D}
}


require u-boot.inc

# This is needs to be validated among supported BSP's before we can
# make it default
DEFAULT_PREFERENCE = "-1"

# To build u-boot for your machine, provide the following lines in
# your machine config, replacing the assignments as appropriate for
# your machine.
# UBOOT_MACHINE = "omap3_beagle_config"
# UBOOT_ENTRYPOINT = "0x80008000"
# UBOOT_LOADADDRESS = "0x80008000"

LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb"

PV = "v2013.01.01+git${SRCPV}"
PR = "r5"

SRCREV = "14c8f0753662a7b4802340279e62e4e6b9a6d612"
SRC_URI = "git://git.denx.de/u-boot-sh.git;branch=renesas/bsp/rcar-gen2-5.3;protocol=git"

S = "${WORKDIR}/git"

PACKAGE_ARCH = "${MACHINE_ARCH}"

Update BSP to version 0.5.4

require u-boot.inc

# This is needs to be validated among supported BSP's before we can
# make it default
DEFAULT_PREFERENCE = "-1"

# To build u-boot for your machine, provide the following lines in
# your machine config, replacing the assignments as appropriate for
# your machine.
# UBOOT_MACHINE = "omap3_beagle_config"
# UBOOT_ENTRYPOINT = "0x80008000"
# UBOOT_LOADADDRESS = "0x80008000"

LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb"

PV = "v2013.01.01+git${SRCPV}"
PR = "r6"

SRCREV = "fb213ade2bdd7a20a74b34ef4effdfcaa74ae96c"
SRC_URI = "git://git.denx.de/u-boot-sh.git;branch=renesas/bsp/rcar-gen2-5.4;protocol=git"

S = "${WORKDIR}/git"

PACKAGE_ARCH = "${MACHINE_ARCH}"


require libav.inc

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

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

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

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

S = "${WORKDIR}/git"

Update git version to 2012-10-04 snapshot

require libav.inc

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

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

DEFAULT_PREFERENCE = "-1"

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

S = "${WORKDIR}/git"

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


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

DESCRIPTION = "C library implementing OAuth Core RFC 5849"
HOMEPAGE = "http://liboauth.sourceforge.net"
LICENSE = "MIT|GPL-2.0"
LIC_FILES_CHKSUM = "file://COPYING.MIT;md5=6266718a5241c045c8099d9be48817df \
                    file://COPYING.GPL;md5=0636e73ff0215e8d672dc4c32c317bb3"
SECTION = "libs"
DEPENDS = "curl"

SRC_URI = "${SOURCEFORGE_MIRROR}/project/${BPN}/${BP}.tar.gz"
SRC_URI[md5sum] = "689b46c2b3ab1a39735ac33f714c4f7f"
SRC_URI[sha256sum] = "0df60157b052f0e774ade8a8bac59d6e8d4b464058cc55f9208d72e41156811f"

inherit autotools pkgconfig

Add missing OpenSSL build dependency

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

DESCRIPTION = "C library implementing OAuth Core RFC 5849"
HOMEPAGE = "http://liboauth.sourceforge.net"
LICENSE = "MIT|GPL-2.0"
LIC_FILES_CHKSUM = "file://COPYING.MIT;md5=6266718a5241c045c8099d9be48817df \
                    file://COPYING.GPL;md5=0636e73ff0215e8d672dc4c32c317bb3"
SECTION = "libs"
DEPENDS = "curl openssl"

SRC_URI = "${SOURCEFORGE_MIRROR}/project/${BPN}/${BP}.tar.gz"
SRC_URI[md5sum] = "689b46c2b3ab1a39735ac33f714c4f7f"
SRC_URI[sha256sum] = "0df60157b052f0e774ade8a8bac59d6e8d4b464058cc55f9208d72e41156811f"

inherit autotools pkgconfig


LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=72d977d697c3c05830fdff00a7448931"
SRCREV = "b31bce98d65f894aad6427bcf6f3f7822e261a59"
PV = "1.0+git${SRCPV}"

SRC_URI = "git://github.com/hartkopp/can-isotp.git;protocol=https"

S = "${WORKDIR}/git"

inherit module

EXTRA_OEMAKE += "KERNELDIR=${STAGING_KERNEL_DIR}"

PNBLACKLIST[can-isotp] ?= "Kernel module Needs forward porting to kernel 5.2+"

Upgrade to latest on master

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=72d977d697c3c05830fdff00a7448931"
SRCREV = "beb4650660179963a8ed5b5cbf2085cc1b34f608"
PV = "1.0+git${SRCPV}"

SRC_URI = "git://github.com/hartkopp/can-isotp.git;protocol=https"

S = "${WORKDIR}/git"

inherit module

EXTRA_OEMAKE += "KERNELDIR=${STAGING_KERNEL_DIR}"

do_install_append() {
    install -Dm 644 ${S}/include/uapi/linux/can/isotp.h ${D}${includedir}/linux/can/isotp.h
}


SUMMARY = "Microchip WILC devices firmware files for use with Linux kernel"
SECTION = "kernel"
LICENSE = "MICROCHIP_FW"

LIC_FILES_CHKSUM = "file://LICENCE.wilc_fw;beginline=6;md5=e1a0446d046c966a27276cf8e728f687"

SRCREV = "wilc_linux_15_2"
SRC_URI = "git://github.com/linux4wilc/firmware.git;protocol=https"
S = "${WORKDIR}/git"

inherit allarch

do_install() {
	install -d ${D}/lib/firmware/mchp/
	cp -r ${S}/* ${D}/lib/firmware/mchp/

	# remove unneeded file
	rm -f ${D}/lib/firmware/mchp/README.md
	rm -rf ${D}/lib/firmware/mchp/LICENCE.wilc_fw
	chmod -x ${D}/lib/firmware/mchp/*
}

FILES_${PN} += " \
	${base_libdir}/firmware/mchp/wilc*.bin \
	"

# TODO: use ALTERNATIVE like in "linux-firmware" package

Use nonarch_base_libdir instead of hardcoding firmware path prefix

SUMMARY = "Microchip WILC devices firmware files for use with Linux kernel"
SECTION = "kernel"
LICENSE = "MICROCHIP_FW"

LIC_FILES_CHKSUM = "file://LICENCE.wilc_fw;beginline=6;md5=e1a0446d046c966a27276cf8e728f687"

SRCREV = "wilc_linux_15_2"
SRC_URI = "git://github.com/linux4wilc/firmware.git;protocol=https"
S = "${WORKDIR}/git"

inherit allarch

do_install() {
	install -d ${D}${nonarch_base_libdir}/firmware/mchp/
	cp -r ${S}/* ${D}${nonarch_base_libdir}/firmware/mchp/

	# remove unneeded file
	rm -f ${D}${nonarch_base_libdir}/firmware/mchp/README.md
	rm -rf ${D}${nonarch_base_libdir}/firmware/mchp/LICENCE.wilc_fw
	chmod -x ${D}${nonarch_base_libdir}/firmware/mchp/*
}

FILES_${PN} += " \
	${nonarch_base_libdir}/firmware/mchp/wilc*.bin \
	"

# TODO: use ALTERNATIVE like in "linux-firmware" package


require linux.inc
require linux-dtb.inc

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

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

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

S = "${WORKDIR}/git"

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

KERNEL_DEFCONFIG = "koelsch_defconfig"

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

Enable creating bootz image and uImage with DTB

require linux.inc
require linux-dtb.inc
require linux-dtb-append.inc

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

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

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

S = "${WORKDIR}/git"

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

KERNEL_DEFCONFIG = "koelsch_defconfig"

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


DESCRIPTION = "A small image just capable of allowing a device to boot."

IMAGE_INSTALL = "packagegroup-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP} ${CORE_IMAGE_EXTRA_INSTALL}"

IMAGE_LINGUAS = " "

LICENSE = "GPLv2"

inherit core-image

IMAGE_FSTYPES = "${INITRAMFS_TYPES}"
IMAGE_ROOTFS_SIZE = "2048"
EXTRA_IMAGECMD_append_ext2 = " -N 2000"

IMAGE_FEATURES += "package-management"
IMAGE_FEATURES += "ssh-server-dropbear"
#ROOTFS_POSTPROCESS_COMMAND += "remove_packaging_data_files ; "

IMAGE_INSTALL += "kernel-modules"
IMAGE_INSTALL += "ethtool"
IMAGE_INSTALL += "strace"
IMAGE_INSTALL += "ppp"
IMAGE_INSTALL += "linuxptp"
IMAGE_INSTALL += "libstdc++"

EXTRA_IMAGEDEPENDS = "grub-conf"

IMAGE_DEV_INSTALL += "openssh"
IMAGE_DEV_INSTALL += "wireless-tools"
IMAGE_DEV_INSTALL += "wpa-supplicant"
IMAGE_DEV_INSTALL += "linux-firmware-iwlwifi-6000g2a-6"
IMAGE_DEV_INSTALL += "linux-firmware-iwlwifi-135-6"

# uncomment to add dev packages
IMAGE_DEV_INSTALL = ""

IMAGE_INSTALL += "${IMAGE_DEV_INSTALL}"

Add jffs2 and ext2 support

DESCRIPTION = "A small image just capable of allowing a device to boot."

IMAGE_INSTALL = "packagegroup-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP} ${CORE_IMAGE_EXTRA_INSTALL}"

IMAGE_LINGUAS = " "

LICENSE = "GPLv2"

inherit core-image

IMAGE_FSTYPES = "${INITRAMFS_TYPES}"
IMAGE_FSTYPES += "jffs2"
IMAGE_FSTYPES += "ext2"
IMAGE_ROOTFS_SIZE = "2048"
EXTRA_IMAGECMD_append_ext2 = " -N 2000"

IMAGE_FEATURES += "package-management"
IMAGE_FEATURES += "ssh-server-dropbear"
#ROOTFS_POSTPROCESS_COMMAND += "remove_packaging_data_files ; "

IMAGE_INSTALL += "kernel-modules"
IMAGE_INSTALL += "ethtool"
IMAGE_INSTALL += "strace"
IMAGE_INSTALL += "ppp"
IMAGE_INSTALL += "linuxptp"
IMAGE_INSTALL += "libstdc++"

EXTRA_IMAGEDEPENDS = "grub-conf"

IMAGE_DEV_INSTALL += "openssh"
IMAGE_DEV_INSTALL += "wireless-tools"
IMAGE_DEV_INSTALL += "wpa-supplicant"
IMAGE_DEV_INSTALL += "linux-firmware-iwlwifi-6000g2a-6"
IMAGE_DEV_INSTALL += "linux-firmware-iwlwifi-135-6"

# uncomment to add dev packages
IMAGE_DEV_INSTALL = ""

IMAGE_INSTALL += "${IMAGE_DEV_INSTALL}"


#
# Base recipe: meta/recipes-support/mpfr/mpfr_3.1.5.bb
# Base branch: master
# Base commit: d886fa118c930d0e551f2a0ed02b35d08617f746
#
SUMMARY = "C library for multiple-precision floating-point computations with exact rounding"
HOMEPAGE = "http://www.mpfr.org/"
LICENSE = "GPLv3+ & LGPLv3+"

inherit debian-package
require recipes-debian/sources/mpfr4.inc
BPN = "mpfr4"
DEBIAN_UNPACK_DIR = "${WORKDIR}/mpfr-4.0.2-rc1"

LIC_FILES_CHKSUM = " \
file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464 \
file://COPYING.LESSER;md5=3000208d539ec061b899bce1d9ce9404 \
"

inherit autotools
DEPENDS += "gmp autoconf-archive"

BBCLASSEXTEND = "native nativesdk"

Remove harcoded version in DEBIAN_UNPACK_DIR

#
# Base recipe: meta/recipes-support/mpfr/mpfr_3.1.5.bb
# Base branch: master
# Base commit: d886fa118c930d0e551f2a0ed02b35d08617f746
#
SUMMARY = "C library for multiple-precision floating-point computations with exact rounding"
HOMEPAGE = "http://www.mpfr.org/"
LICENSE = "GPLv3+ & LGPLv3+"

inherit debian-package
require recipes-debian/sources/mpfr4.inc
BPN = "mpfr4"
DEBIAN_UNPACK_DIR = "${WORKDIR}/mpfr-${@d.getVar('PV', True).replace('~','-')}"

LIC_FILES_CHKSUM = " \
file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464 \
file://COPYING.LESSER;md5=3000208d539ec061b899bce1d9ce9404 \
"

inherit autotools
DEPENDS += "gmp autoconf-archive"

BBCLASSEXTEND = "native nativesdk"


DESCRIPTION = "neon is an HTTP and WebDAV client library, with a C interface."
HOMEPAGE = "http://www.webdav.org/neon"
SECTION = "libs"
LICENSE = "LGPL"
DEPENDS = "zlib libxml2 expat time gnutls"

PR = "r4"

SRC_URI = "http://www.webdav.org/${PN}/${P}.tar.gz \
           file://gnutls-force-and-detect.patch \
           file://gnutls-2.patch"

inherit autotools binconfig lib_package pkgconfig

EXTRA_OECONF = "--with-ssl=gnutls --with-libxml2 --with-expat --enable-shared --without-gssapi"
EXTRA_AUTORECONF=" -I ${S}/macros "

SRC_URI[md5sum] = "b5fdb71dd407f0a3de0f267d27c9ab17"
SRC_URI[sha256sum] = "b5513f88cb54c5f11e4c8348ee6c7ace9767b45c263c3a3ba8a5ce4e2b40a07a"

Update LICENSE field version to LGPLv2

DESCRIPTION = "neon is an HTTP and WebDAV client library, with a C interface."
HOMEPAGE = "http://www.webdav.org/neon"
SECTION = "libs"
LICENSE = "LGPLv2+"
DEPENDS = "zlib libxml2 expat time gnutls"

PR = "r5"

SRC_URI = "http://www.webdav.org/${PN}/${P}.tar.gz \
           file://gnutls-force-and-detect.patch \
           file://gnutls-2.patch"

inherit autotools binconfig lib_package pkgconfig

EXTRA_OECONF = "--with-ssl=gnutls --with-libxml2 --with-expat --enable-shared --without-gssapi"
EXTRA_AUTORECONF=" -I ${S}/macros "

SRC_URI[md5sum] = "b5fdb71dd407f0a3de0f267d27c9ab17"
SRC_URI[sha256sum] = "b5513f88cb54c5f11e4c8348ee6c7ace9767b45c263c3a3ba8a5ce4e2b40a07a"


SECTION = "base"
require gnu-config_${PV}.bb

inherit native

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

do_stage () {
	install -d ${STAGING_DATADIR}/gnu-config
	cat ${WORKDIR}/gnu-configize.in | \
		sed -e 's,@gnu-configdir@,${STAGING_DATADIR}/gnu-config,' \
		    -e 's,@autom4te_perllibdir@,${STAGING_DATADIR}/autoconf,' > ${STAGING_BINDIR}/gnu-configize
	chmod 755 ${STAGING_BINDIR}/gnu-configize
	install -m 0644 config.guess config.sub ${STAGING_DATADIR}/gnu-config/
}

Add missing install -d (from packaged-staging)

SECTION = "base"
require gnu-config_${PV}.bb

inherit native

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

do_stage () {
	install -d ${STAGING_DATADIR}/gnu-config/
	install -d ${STAGING_BINDIR}/
	cat ${WORKDIR}/gnu-configize.in | \
		sed -e 's,@gnu-configdir@,${STAGING_DATADIR}/gnu-config,' \
		    -e 's,@autom4te_perllibdir@,${STAGING_DATADIR}/autoconf,' > ${STAGING_BINDIR}/gnu-configize
	chmod 755 ${STAGING_BINDIR}/gnu-configize
	install -m 0644 config.guess config.sub ${STAGING_DATADIR}/gnu-config/
}


DESCRIPTION = "ACPI data gathering library."
SECTION = "base"
HOMEPAGE = "http://www.ngolde.de/libacpi.html"
LICENSE = "MIT"
PR = "r1"

SRC_URI = "http://www.ngolde.de/download/libacpi-${PV}.tar.gz \
	   file://makefile-fix.patch;patch=1 "

PACKAGES += "${PN}-bin"

FILES_${PN} = "${libdir}/libacpi.so.*"
FILES_${PN}-bin = "${bindir}"

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

do_stage() {
	install -m 0644 libacpi.h ${STAGING_INCDIR}
	oe_libinstall -so libacpi ${STAGING_LIBDIR}
}

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

Drop undeeded custom staging function

DESCRIPTION = "ACPI data gathering library."
SECTION = "base"
HOMEPAGE = "http://www.ngolde.de/libacpi.html"
LICENSE = "MIT"
PR = "r1"

SRC_URI = "http://www.ngolde.de/download/libacpi-${PV}.tar.gz \
	   file://makefile-fix.patch;patch=1 "

PACKAGES += "${PN}-bin"

FILES_${PN} = "${libdir}/libacpi.so.*"
FILES_${PN}-bin = "${bindir}"

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

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


LICENSE = "GPL/LGPL"
DEPENDS = "librsvg libwnck totem-pl-parser libgtop gnome-panel gnome-desktop eds-dbus python-pygtk"

PR = "r1"

inherit gnome distutils-base

SRC_URI += "file://acinclude.m4"

EXTRA_OECONF += "--with-python-includes=${STAGING_INCDIR}/../"

do_configure_prepend() {
        install -m 0644 ${WORKDIR}/acinclude.m4 ${S}/
}

do_configure_prepend() {
	sed -i -e s:'`$PKG_CONFIG --variable=defsdir pygtk-2.0`':\"${STAGING_DATADIR}/pygtk/2.0/defs\":g ${S}/configure.ac
}

AUTOTOOLS_STAGE_PKGCONFIG = "1"
do_stage() {
	autotools_stage_all
}

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

Add DEPENDS for gnome-python and libgnomeprint*, needed for gnome-games.

LICENSE = "GPL/LGPL"
DEPENDS = "librsvg libwnck totem-pl-parser libgtop gnome-panel gnome-desktop eds-dbus python-pygtk gnome-python libgnomeprint libgnomeprintui"

PR = "r2"

inherit gnome distutils-base

SRC_URI += "file://acinclude.m4"

EXTRA_OECONF += "--with-python-includes=${STAGING_INCDIR}/../"

do_configure_prepend() {
        install -m 0644 ${WORKDIR}/acinclude.m4 ${S}/
}

do_configure_prepend() {
	sed -i -e s:'`$PKG_CONFIG --variable=defsdir pygtk-2.0`':\"${STAGING_DATADIR}/pygtk/2.0/defs\":g ${S}/configure.ac
}

AUTOTOOLS_STAGE_PKGCONFIG = "1"
do_stage() {
	autotools_stage_all
}

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


require gst-plugins.inc

SRC_URI = "http://gstreamer.freedesktop.org/src/${PN}/pre/${PN}-${PV}.tar.bz2;name=archive"
#SRC_URI_append_sifteam = " file://dvdsubdec-addproperty-singlebuffer.patch"

PR = "${INC_PR}.0"

DEPENDS += "gst-plugins-base libsidplay"
DEPENDS_sifteam += "gst-plugins-base libsidplay opencore-amr"

python() {
	# Don't build, if we are building an ENTERPRISE distro
	enterprise = bb.data.getVar("ENTERPRISE_DISTRO", d, 1)
	if enterprise == "1":
		raise bb.parse.SkipPackage("gst-plugins-ugly will only build if ENTERPRISE_DISTRO != 1")
}

PACKAGES_DYNAMIC = "\
gst-plugin-a52dec.* \
gst-plugin-asf.* \
gst-plugin-cdio.* \
gst-plugin-dvdlpcmdec.* \
gst-plugin-dvdread.* \
gst-plugin-dvdsub.* \
gst-plugin-iec958.* \
gst-plugin-lame.* \
gst-plugin-mad.* \
gst-plugin-mpeg2dec.* \
gst-plugin-mpegaudioparse.* \
gst-plugin-mpegstream.* \
gst-plugin-rmdemux.* \
gst-plugin-sid.* \
gst-plugin-x264.* \
"

Fix gst-plugins-ugly for amr coded

require gst-plugins.inc

SRC_URI = "http://gstreamer.freedesktop.org/src/${PN}/pre/${PN}-${PV}.tar.bz2;name=archive"
#SRC_URI_append_sifteam = " file://dvdsubdec-addproperty-singlebuffer.patch"

PR = "${INC_PR}.0"

DEPENDS += "gst-plugins-base libsidplay"
DEPENDS_sifteam += "gst-plugins-base libsidplay opencore-amr"

python() {
	# Don't build, if we are building an ENTERPRISE distro
	enterprise = bb.data.getVar("ENTERPRISE_DISTRO", d, 1)
	if enterprise == "1":
		raise bb.parse.SkipPackage("gst-plugins-ugly will only build if ENTERPRISE_DISTRO != 1")
}

PACKAGES_DYNAMIC = "\
gst-plugin-a52dec.* \
gst-plugin-asf.* \
gst-plugin-cdio.* \
gst-plugin-dvdlpcmdec.* \
gst-plugin-dvdread.* \
gst-plugin-dvdsub.* \
gst-plugin-iec958.* \
gst-plugin-lame.* \
gst-plugin-mad.* \
gst-plugin-mpeg2dec.* \
gst-plugin-mpegaudioparse.* \
gst-plugin-mpegstream.* \
gst-plugin-rmdemux.* \
gst-plugin-sid.* \
gst-plugin-x264.* \
gst-plugin-amrnb.* \
gst-plugin-amrwbdec.* \
"


DESCRIPTION = "This package contains the Parser.pm module with friends."

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

LIC_FILES_CHKSUM = "file://README;md5=b0459e4426b94753b9a9b8a15f1223b8"

DEPENDS += "perl"

SRC_URI = "http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/HTML-Parser-${PV}.tar.gz"

SRC_URI[md5sum] = "eb7505e5f626913350df9dd4a03d54a8"
SRC_URI[sha256sum] = "ec28c7e1d9e67c45eca197077f7cdc41ead1bb4c538c7f02a3296a4bb92f608b"

S = "${WORKDIR}/HTML-Parser-${PV}"

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

inherit cpan

do_compile() {
    export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')"
    cpan_do_compile
}
BBCLASSEXTEND = "native"

Add HOMEPAGE info into recipe file.

DESCRIPTION = "This package contains the Parser.pm module with friends."
HOMEPAGE = "https://metacpan.org/release/HTML-Parser"
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0+"

LIC_FILES_CHKSUM = "file://README;md5=b0459e4426b94753b9a9b8a15f1223b8"

DEPENDS += "perl"

SRC_URI = "http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/HTML-Parser-${PV}.tar.gz"

SRC_URI[md5sum] = "eb7505e5f626913350df9dd4a03d54a8"
SRC_URI[sha256sum] = "ec28c7e1d9e67c45eca197077f7cdc41ead1bb4c538c7f02a3296a4bb92f608b"

S = "${WORKDIR}/HTML-Parser-${PV}"

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

inherit cpan

do_compile() {
    export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')"
    cpan_do_compile
}
BBCLASSEXTEND = "native"


require xorg-data-common.inc

DESCRIPTION = "Common X11 Bitmaps"
LICENSE = "MIT"
DEPENDS += "libxmu"

SRC_URI[archive.md5sum] = "7444bbbd999b53bec6a60608a5301f4c"
SRC_URI[archive.sha256sum] = "3671b034356bbc4d32d052808cf646c940ec8b2d1913adac51b1453e41aa1e9d"
#PR = "${INC_PR}.0"
#
# Meta-debian
#
PR = "r0"
LIC_FILES_CHKSUM = "file://COPYING;md5=dbd075aaffa4a60a8d00696f2e4b9a8f"
FILES_${PN} = "${includedir}/X11"
DEBIAN_PATCH_TYPE = "nopatch"

Fix error can not install xbitmaps

require xorg-data-common.inc

DESCRIPTION = "Common X11 Bitmaps"
LICENSE = "MIT"
DEPENDS += "libxmu"

SRC_URI[archive.md5sum] = "7444bbbd999b53bec6a60608a5301f4c"
SRC_URI[archive.sha256sum] = "3671b034356bbc4d32d052808cf646c940ec8b2d1913adac51b1453e41aa1e9d"
#PR = "${INC_PR}.0"
#
# Meta-debian
#
PR = "r0"
LIC_FILES_CHKSUM = "file://COPYING;md5=dbd075aaffa4a60a8d00696f2e4b9a8f"
FILES_${PN} = "\
	${includedir}/X11 \
	/usr/share/"
DEBIAN_PATCH_TYPE = "nopatch"

PACKAGES = "${PN}"


Include the /usr/bin/awk symlink in the gawk package. Should probably use update-alternatives for that at some point.

LICENSE = "GPL"
SECTION = "interpreters"
DESCRIPTION = "A program that you can use to select particular records in a \
file and perform operations upon them."
PR = "r1"
PACKAGES += "gawk-common pgawk"
FILES_${PN} = "${bindir}/gawk* ${bindir}/igawk ${bindir}/awk*"
FILES_gawk-common += "${datadir}/awk ${libexecdir}/awk"
FILES_pgawk = "${bindir}/pgawk*"
RDEPENDS_gawk += "gawk-common"
RDEPENDS_pgawk += "gawk-common"

SRC_URI = "${GNU_MIRROR}/gawk/gawk-${PV}.tar.gz"

inherit autotools

do_configure_prepend () {
	grep -E '^AC_DEFUN' m4/*.m4|grep -E '\(\[?(AM|AC)_'|xargs rm -f
}


DESCRIPTION = "Firmware loader for m-audio devices"
LICENSE = "GPL"
PR = "r1"

SRC_URI = "http://heanet.dl.sourceforge.net/sourceforge/usb-midi-fw/madfuload-1.2.tar.gz \
	   file://autofoo.patch;patch=1"
inherit autotools

S = ${WORKDIR}/madfuload-1.2

#EXTRA_OECONF = "--without-udev"
FILES_${PN} += "${libdir}/firmware/"

do_configure() {
	oe_runconf
}

do_compile() {
	oe_runmake
}

do_install() {
	install -d ${D}/${sbindir}
	install -m 755 ${S}/madfuload ${D}/${sbindir}
	install -d ${D}/${libdir}/firmware
	install -m 644 ${S}/*.bin ${D}/${libdir}/firmware
	install -d ${D}/${sysconfdir}/udev/rules
	install -m 644 ${S}/42-madfuload.rules ${D}/${sysconfdir}/udev/rules
}

Clean up so it matches oe style guide

DESCRIPTION = "Firmware loader for m-audio devices"
LICENSE = "GPL"
PR = "r1"

SRC_URI = "http://heanet.dl.sourceforge.net/sourceforge/usb-midi-fw/madfuload-1.2.tar.gz \
           file://autofoo.patch;patch=1"

S = "${WORKDIR}/madfuload-1.2"

inherit autotools

do_configure() {
        oe_runconf
}
do_compile() {
        oe_runmake
}
do_install() {
        install -d ${D}/${sbindir}
        install -m 755 ${S}/madfuload ${D}/${sbindir}
        install -d ${D}/${libdir}/firmware
        install -m 644 ${S}/*.bin ${D}/${libdir}/firmware
        install -d ${D}/${sysconfdir}/udev/rules
        install -m 644 ${S}/42-madfuload.rules ${D}/${sysconfdir}/udev/rules
}

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


LICENSE = "LGPL"
SECTION = "x11"
DEPENDS = "glib-2.0 gtk+ libglade eds-dbus"
MAINTAINER = "Chris Lord <chris@openedhand.com>"
DESCRIPTION = "Dates is a calendar application."

PR = "r4"

PV = "0.0+svn${SRCDATE}"
S = "${WORKDIR}/${PN}"

SRC_URI = "svn://svn.o-hand.com/repos/;module=${PN};proto=http"

inherit autotools pkgconfig

CFLAGS_prepend = " -DFRAMES=5 "

Update SRC_URI (Sync from poky)

LICENSE = "LGPL"
SECTION = "x11"
DEPENDS = "glib-2.0 gtk+ libglade eds-dbus"
MAINTAINER = "Chris Lord <chris@openedhand.com>"
DESCRIPTION = "Dates is a calendar application."

PR = "r5"

PV = "0.0+svn${SRCDATE}"
S = "${WORKDIR}/trunk"

SRC_URI = "svn://svn.o-hand.com/repos/${PN};module=trunk;proto=http"

inherit autotools pkgconfig

CFLAGS_prepend = " -DFRAMES=3 "


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

SUMMARY = "A console-only image that fully supports the target device \
hardware."

LICENSE = "MIT"

IMAGE_INSTALL += "python"

Use python3 and install pyliblo by defaut for future needs

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

SUMMARY = "A console-only image that fully supports the target device \
hardware."

LICENSE = "MIT"

IMAGE_INSTALL += "\
python3 \
python3-pyliblo \
"


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

Update linux rt to 08.00.00.004 release

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 = "0701a5b58c943909a38be9df38a3b4bdd8234340"
PV = "5.10.41+git${SRCPV}"


require qt5.inc
require qt5-git.inc

LICENSE = "GFDL-1.3 & BSD & ( GPL-3.0 & The-Qt-Company-GPL-Exception-1.0 | The-Qt-Company-Commercial ) & ( GPL-2.0+ | LGPL-3.0 | The-Qt-Company-Commercial )"
LIC_FILES_CHKSUM = " \
    file://LICENSE.LGPLv21;md5=4bfd28363f541b10d9f024181b8df516 \
    file://LICENSE.LGPLv3;md5=e0459b45c5c4840b353141a8bbed91f0 \
    file://LICENSE.GPLv3;md5=88e2b9117e6be406b5ed6ee4ca99a705 \
    file://LGPL_EXCEPTION.txt;md5=9625233da42f9e0ce9d63651a9d97654 \
    file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \
"

DEPENDS += "qtbase"

SRCREV = "0fcd0160662941a9ba800b36671e88d82790bd95"

Add HOMEPAGE info into recipe file.

require qt5.inc
require qt5-git.inc

HOMEPAGE = "http://www.qt.io"
LICENSE = "GFDL-1.3 & BSD & ( GPL-3.0 & The-Qt-Company-GPL-Exception-1.0 | The-Qt-Company-Commercial ) & ( GPL-2.0+ | LGPL-3.0 | The-Qt-Company-Commercial )"
LIC_FILES_CHKSUM = " \
    file://LICENSE.LGPLv21;md5=4bfd28363f541b10d9f024181b8df516 \
    file://LICENSE.LGPLv3;md5=e0459b45c5c4840b353141a8bbed91f0 \
    file://LICENSE.GPLv3;md5=88e2b9117e6be406b5ed6ee4ca99a705 \
    file://LGPL_EXCEPTION.txt;md5=9625233da42f9e0ce9d63651a9d97654 \
    file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \
"

DEPENDS += "qtbase"

SRCREV = "0fcd0160662941a9ba800b36671e88d82790bd95"


DESCRIPTION = "Debug Sub-System (DebugSS) driver for Keystone and DRA7xx devices"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING.txt;md5=9d4316fe434ba450dca4da25348ca5a3"

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

S = "${WORKDIR}/git/debugss_module/debugss-mod"

inherit module

PLATFORM = ""
PLATFORM_dra7xx = "DRA7xx_PLATFORM"
PLATFORM_keystone = "KEYSTONE_PLATFORM"

EXTRA_OEMAKE = "'PLATFORM=${PLATFORM}'"

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

include dsptop.inc

Fix build issue with fido

DESCRIPTION = "Debug Sub-System (DebugSS) driver for Keystone and DRA7xx devices"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING.txt;md5=9d4316fe434ba450dca4da25348ca5a3"

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

S = "${WORKDIR}/git/debugss_module/debugss-mod"

inherit module

PLATFORM = ""
PLATFORM_dra7xx = "DRA7xx_PLATFORM"
PLATFORM_keystone = "KEYSTONE_PLATFORM"

EXTRA_OEMAKE = "'PLATFORM=${PLATFORM}' KVERSION=${KERNEL_VERSION} KERNEL_SRC=${STAGING_KERNEL_DIR}"

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

include dsptop.inc


#
# base recipe: meta/recipes-extended/logrotate/logrotate_3.8.7.bb
# base branch: daisy
#

PR = "r0"

inherit debian-package

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=18810669f13b87348459e611d31ab760"

DEPENDS="coreutils popt"

# Avoid error:
#	"logrotate.c:2180:40: error: 'VERSION' undeclared (first use in this function)"
# "-e" from EXTRA_OEMAKE makes the CFLAGS from the env overrides CFLAGS from logrotate/Makefile.
EXTRA_OEMAKE = ""

do_install(){
	oe_runmake PREFIX=${D} MANDIR=${mandir} install

	install -d ${D}${sysconfdir}/cron.daily
	install -m 0644 ${S}/debian/logrotate.conf ${D}${sysconfdir}
	install -m 0644 ${S}/debian/cron.daily ${D}${sysconfdir}/cron.daily/logrotate
}

Create local state directory create /var/lib/logrotate directory to storage information state of logrotate

#
# base recipe: meta/recipes-extended/logrotate/logrotate_3.8.7.bb
# base branch: daisy
#

PR = "r0"

inherit debian-package

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=18810669f13b87348459e611d31ab760"

DEPENDS="coreutils popt"

# Avoid error:
#	"logrotate.c:2180:40: error: 'VERSION' undeclared (first use in this function)"
# "-e" from EXTRA_OEMAKE makes the CFLAGS from the env overrides CFLAGS from logrotate/Makefile.
EXTRA_OEMAKE = ""

do_install(){
	oe_runmake PREFIX=${D} MANDIR=${mandir} install

	install -d ${D}${sysconfdir}/cron.daily
	install -m 0644 ${S}/debian/logrotate.conf ${D}${sysconfdir}
	install -m 0644 ${S}/debian/cron.daily ${D}${sysconfdir}/cron.daily/logrotate
	install -d ${D}${localstatedir}/lib/logrotate
}


SUMMARY = "Resin Package Groups"
LICENSE = "Apache-2.0"

PR = "r1"

inherit packagegroup

RESIN_INIT_PACKAGE ?= "resin-init"

RDEPENDS_${PN} = "\
	${@bb.utils.contains('DISTRO_FEATURES', 'resin-staging', 'nano', '', d)} \
	${RESIN_INIT_PACKAGE} \
	linux-firmware-ath9k \
	linux-firmware-ralink \
	linux-firmware-rtl8192cu \
	kernel-modules \
	wireless-tools \
	parted \
	lvm2 \
	openssl \
	dosfstools \
	e2fsprogs \
	connman \
	connman-client \
	btrfs-tools \
	apt \
	rce \
	tar \
	util-linux \
	socat \
	jq curl \
	resin-device-register \
	resin-device-progress \
	resin-device-update \
	resin-btrfs-balance \
	supervisor-init \
	vpn-init \
	bridge-utils \
	"

Add iozone to staging build

SUMMARY = "Resin Package Groups"
LICENSE = "Apache-2.0"

PR = "r1"

inherit packagegroup

RESIN_INIT_PACKAGE ?= "resin-init"
RESIN_STAGING_ADDONS = "iozone3 nano"

RDEPENDS_${PN} = "\
	${@bb.utils.contains('DISTRO_FEATURES', 'resin-staging', '${RESIN_STAGING_ADDONS}', '', d)} \
	${RESIN_INIT_PACKAGE} \
	linux-firmware-ath9k \
	linux-firmware-ralink \
	linux-firmware-rtl8192cu \
	kernel-modules \
	wireless-tools \
	parted \
	lvm2 \
	openssl \
	dosfstools \
	e2fsprogs \
	connman \
	connman-client \
	btrfs-tools \
	apt \
	rce \
	tar \
	util-linux \
	socat \
	jq curl \
	resin-device-register \
	resin-device-progress \
	resin-device-update \
	resin-btrfs-balance \
	supervisor-init \
	vpn-init \
	bridge-utils \
	"


require recipes-devtools/bison/${PN}_2.7.1.bb
FILESEXTRAPATHS_prepend = "${THISDIR}/files:${COREBASE}/meta/recipes-devtools/bison/bison:"

inherit debian-package
DEBIAN_SECTION = "devel"
DPR = "0"

LICENSE = "GPL-3.0"
LIC_FILES_CHKSUM = " \
file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
"

# Exclude following patches because they were tried to apply on
# doc/Makefile.am but there is no such file:
# fix_cross_manpage_building.patch
# dont-depend-on-help2man.patch
# FIXME: file doc/bison.texi is missing, temporarily build without document
# and examples for minimal implementation with
# remove-document-examples-target.patch

BASE_SRC_URI = " \
file://m4.patch \
file://remove-document-examples-target.patch \
"

SRC_URI_class-native = " \
${DEBIAN_SRC_URI} \
${BASE_SRC_URI} \
"

SRC_URI += " \
${BASE_SRC_URI} \
"

# avoid a parallel build problem in src/yacc
PARALLEL_MAKE = ""

Fix error gettext infrastructure mismatch

require recipes-devtools/bison/${PN}_2.7.1.bb
FILESEXTRAPATHS_prepend = "${THISDIR}/files:${COREBASE}/meta/recipes-devtools/bison/bison:"

inherit debian-package
DEBIAN_SECTION = "devel"
DPR = "0"

LICENSE = "GPL-3.0"
LIC_FILES_CHKSUM = " \
file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
"

# Exclude following patches because they were tried to apply on
# doc/Makefile.am but there is no such file:
# fix_cross_manpage_building.patch
# dont-depend-on-help2man.patch
# FIXME: file doc/bison.texi is missing, temporarily build without document
# and examples for minimal implementation with
# remove-document-examples-target.patch

BASE_SRC_URI = " \
file://m4.patch \
file://remove-document-examples-target.patch \
"

SRC_URI_class-native = " \
${DEBIAN_SRC_URI} \
${BASE_SRC_URI} \
"

SRC_URI += " \
${BASE_SRC_URI} \
"

# avoid a parallel build problem in src/yacc
PARALLEL_MAKE = ""

do_configure_prepend(){
	# Fix error gettext infrastructure mismatch
	cp ${STAGING_DATADIR_NATIVE}/gettext/po/Makefile.in.in ${S}/runtime-po/
}


SUMMARY = "A multi-platform support library with a focus on asynchronous I/O"
HOMEPAGE = "https://github.com/libuv/libuv"
BUGTRACKER = "https://github.com/libuv/libuv/issues"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=a68902a430e32200263d182d44924d47"

SRC_URI = "https://github.com/libuv/libuv/archive/v${PV}.tar.gz"
SRC_URI[md5sum] = "cc2cf259442fbe85404e75691e8244e1"
SRC_URI[sha256sum] = "4afcdc84cd315b77c8e532e7b3fde43d536af0e2e835eafbd0e75518ed26dbed"

inherit autotools

do_configure() {
    ${S}/autogen.sh || bbnote "${PN} failed to autogen.sh"
    oe_runconf
}

BBCLASSEXTEND = "native"

Switch to using git fetcher

SUMMARY = "A multi-platform support library with a focus on asynchronous I/O"
HOMEPAGE = "https://github.com/libuv/libuv"
BUGTRACKER = "https://github.com/libuv/libuv/issues"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=a68902a430e32200263d182d44924d47"

SRCREV = "a4fc9a66cc35256dbc4dcd67c910174f05b6daa6"
SRC_URI = "git://github.com/libuv/libuv"
S = "${WORKDIR}/git"

inherit autotools

do_configure() {
    ${S}/autogen.sh || bbnote "${PN} failed to autogen.sh"
    oe_runconf
}

BBCLASSEXTEND = "native"


#
# base recipe: meta/recipes-devtools/chrpath/chrpath_0.16.bb
# base branch: daisy
#

PR = "r0"

inherit debian-package

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"

SRC_URI += " \
file://standarddoc.patch \
"

inherit autotools

DEBIAN_PATCH_TYPE = "nopatch"

# We don't have a staged chrpath-native for ensuring our binary is
# relocatable, so use the one we've just built
CHRPATH_BIN_class-native = "${B}/chrpath"

PROVIDES_append_class-native = " chrpath-replacement-native"
NATIVE_PACKAGE_PATH_SUFFIX = "/${PN}"

BBCLASSEXTEND = "native nativesdk"

Update recipe for chrpath package

#
# base recipe: meta/recipes-devtools/chrpath/chrpath_0.16.bb
# base branch: daisy
#

PR = "r0"

inherit debian-package

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"

SRC_URI += " \
file://standarddoc.patch \
"

inherit autotools

# There is no debian patch
DEBIAN_PATCH_TYPE = "nopatch"

# We don't have a staged chrpath-native for ensuring our binary is
# relocatable, so use the one we've just built
CHRPATH_BIN_class-native = "${B}/chrpath"

PROVIDES_append_class-native = " chrpath-replacement-native"
NATIVE_PACKAGE_PATH_SUFFIX = "/${PN}"

BBCLASSEXTEND = "native nativesdk"


require recipes-browser/wpewebkit/wpewebkit.inc

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:../meta-webkit/recipes-browser/wpewebkit/wpewebkit:"
SRC_URI = "https://wpewebkit.org/releases/${PN}-${PV}.tar.xz \
           file://0001-REGRESSION-r217927-WPE-2.22-GSTREAMER_GL-Video-appea.patch \
          "

SRC_URI[md5sum] = "7b768bfae1295ebbc9a9038bf8fb6e6c"
SRC_URI[sha256sum] = "d5e7b23e4f9e9f1b9d369faa4d527cdb59aef56b3e6a50a16dad243df5f699f3"

DEPENDS += " libwpe"
RCONFLICTS_${PN} = "wpebackend (< 1.0) wpebackend-fdo (< 1.0)"

Fix relative patch to meta-webkit

require recipes-browser/wpewebkit/wpewebkit.inc

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:${THISDIR}/../../../meta-webkit/recipes-browser/wpewebkit/wpewebkit:"
SRC_URI = "https://wpewebkit.org/releases/${PN}-${PV}.tar.xz \
           file://0001-REGRESSION-r217927-WPE-2.22-GSTREAMER_GL-Video-appea.patch \
          "

SRC_URI[md5sum] = "7b768bfae1295ebbc9a9038bf8fb6e6c"
SRC_URI[sha256sum] = "d5e7b23e4f9e9f1b9d369faa4d527cdb59aef56b3e6a50a16dad243df5f699f3"

DEPENDS += " libwpe"
RCONFLICTS_${PN} = "wpebackend (< 1.0) wpebackend-fdo (< 1.0)"


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

DEPENDS += "farsight2"

SRC_URI = "\
  ${SOURCEFORGE_MIRROR}/pidgin/pidgin-${PV}.tar.bz2 \
  file://sanitize-configure.ac.patch;patch=1 \
  file://pidgin.desktop-set-icon.patch;patch=1 \
  file://purple-OE-branding-25.patch;patch=1 \
  file://pidgin-cross-python.patch;patch=1 \
  file://status-icon-theme-crash.patch;patch=1 \
"

EXTRA_OECONF += "\
  --disable-gtkspell \
  --disable-meanwhile \
  --disable-nm \
  --disable-screensaver \
"

Add libidn to DEPENDS, bump INC_PR

require pidgin.inc
PR = "${INC_PR}.1"

DEPENDS += "farsight2 libidn"

SRC_URI = "\
  ${SOURCEFORGE_MIRROR}/pidgin/pidgin-${PV}.tar.bz2 \
  file://sanitize-configure.ac.patch;patch=1 \
  file://pidgin.desktop-set-icon.patch;patch=1 \
  file://purple-OE-branding-25.patch;patch=1 \
  file://pidgin-cross-python.patch;patch=1 \
  file://status-icon-theme-crash.patch;patch=1 \
"

EXTRA_OECONF += "\
  --disable-gtkspell \
  --disable-meanwhile \
  --disable-nm \
  --disable-screensaver \
"


DESCRIPTION = "Library to implement a well-behaved Unix daemon process"
HOMEPAGE = "http://pypi.python.org/pypi/python-daemon/"
SECTION = "devel/python"
PRIORITY = "optional"
LICENSE = "PSF"
SRCNAME = "daemon"
PR = "ml1"

SRC_URI = "http://pypi.python.org/packages/source/p/python-daemon/python-daemon-${PV}.tar.gz"
S = "${WORKDIR}/python-daemon-${PV}"

inherit setuptools

RDEPENDS_${PN} = "\
  python-core \
"

SRC_URI[md5sum] = "1f6cd41473c2e201021a0aeef395b2b1"
SRC_URI[sha256sum] = "1406962e48ce03642c6057f40f9ffd49493792a7b34357fe9e264708748c83c0"

Fix rev on Python daemon recipe

DESCRIPTION = "Library to implement a well-behaved Unix daemon process"
HOMEPAGE = "http://pypi.python.org/pypi/python-daemon/"
SECTION = "devel/python"
PRIORITY = "optional"
LICENSE = "PSF"
SRCNAME = "daemon"
PR = "r0"

SRC_URI = "http://pypi.python.org/packages/source/p/python-daemon/python-daemon-${PV}.tar.gz"
S = "${WORKDIR}/python-daemon-${PV}"

inherit setuptools

RDEPENDS_${PN} = "\
  python-core \
"

SRC_URI[md5sum] = "1f6cd41473c2e201021a0aeef395b2b1"
SRC_URI[sha256sum] = "1406962e48ce03642c6057f40f9ffd49493792a7b34357fe9e264708748c83c0"


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

SRC_URI = "http://www.balabit.com/downloads/libol/0.3/${PN}-${PV}.tar.gz"

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

do_stage() {
	install -d ${STAGING_INCDIR}/libol
	install -m 0644 ${S}/libol-config ${STAGING_BINDIR}
	install -m 0644 ${S}/src/.libs/libol.so.0.0.0 ${STAGING_LIBDIR}
	ln -fs ${STAGING_LIBDIR}/libol.so.0.0.0 ${STAGING_LIBDIR}/libol.so.0
	install ${S}/src/*.h ${STAGING_INCDIR}/libol/
}

Remove libol-native dependency, since it's not needed (and don't exist either)

PR = "r3"
MAINTAINER = "Oyvind Repvik <nail@nslu2-linux.org"

SRC_URI = "http://www.balabit.com/downloads/libol/0.3/${PN}-${PV}.tar.gz"

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

do_stage() {
	install -d ${STAGING_INCDIR}/libol
	install -m 0644 ${S}/libol-config ${STAGING_BINDIR}
	install -m 0644 ${S}/src/.libs/libol.so.0.0.0 ${STAGING_LIBDIR}
	ln -fs ${STAGING_LIBDIR}/libol.so.0.0.0 ${STAGING_LIBDIR}/libol.so.0
	install ${S}/src/*.h ${STAGING_INCDIR}/libol/
}