DESCRIPTION = "Remove cpp '#ifdef' lines from files \
 The unifdef utility selectively processes conditional cpp(1) directives. \
 It removes from a file both the directives and any additional text that \
 they specify should be removed, while otherwise leaving the file alone."
HOMEPAGE = "http://dotat.at/prog/unifdef/"

PR = "r0"

inherit debian-package
PV = "2.10"

# source format is 3.0 but there is no patch
DEBIAN_QUILT_PATCHES = ""

LICENSE = "BSD-2-Clause"
LIC_FILES_CHKSUM = "file://COPYING;md5=4da83e7128fb3e762bd4678e7e2f358d"

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

BBCLASSEXTEND = "native"

Upgrade from 2.10-1 to 2.10-1.1

SUMMARY = "Selectively remove #ifdef statements from sources"
DESCRIPTION = "Remove cpp '#ifdef' lines from files \
 The unifdef utility selectively processes conditional cpp(1) directives. \
 It removes from a file both the directives and any additional text that \
 they specify should be removed, while otherwise leaving the file alone."
HOMEPAGE = "http://dotat.at/prog/unifdef/"

inherit debian-package
PV = "2.10"
DPR = "-1.1"
DSC_URI = "${DEBIAN_MIRROR}/main/u/${BPN}/${BPN}_${PV}${DPR}.dsc;md5sum=09957432c20fc52cbf380b7d6d3f6e14"

# source format is 3.0 but there is no patch
DEBIAN_QUILT_PATCHES = ""

LICENSE = "BSD-2-Clause & BSD-3-Clause"
LIC_FILES_CHKSUM = "file://COPYING;md5=4da83e7128fb3e762bd4678e7e2f358d"

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

BBCLASSEXTEND = "native"


SUMMARY = "Pure-JavaScript CSS selector engine"
LICENSE = "GPL-2.0 & MIT & AFL-2.1"
LIC_FILES_CHKSUM = "file://MIT-LICENSE.txt;md5=e43aa437a6a1ba421653bd5034333bf9"

SRC_URI = "http://kr.archive.ubuntu.com/ubuntu/pool/universe/s/sizzle/sizzle_1.10.18.orig.tar.gz"
SRC_URI[md5sum] = "91477c1edeef9f8100ffd6c4d31725b5"
SRC_URI[sha256sum] = "8e04ab84bb74b2e338dffc63cd2e52b007f1d8af01b3d25da4d2e07f2b5890f8"

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

SIZZLEDIR = "${S}/dist"

do_install() {
    install -d -m 0755 ${D}/${datadir}/javascript/sizzle/
    install -m 0644 ${SIZZLEDIR}/*.js ${D}/${datadir}/javascript/sizzle/
}

FILES_${PN} = "${datadir}/javascript/sizzle/"

Add HOMEPAGE info into recipe file.

SUMMARY = "Pure-JavaScript CSS selector engine"
HOMEPAGE = "https://github.com/jquery/sizzle/wiki"
LICENSE = "GPL-2.0 & MIT & AFL-2.1"
LIC_FILES_CHKSUM = "file://MIT-LICENSE.txt;md5=e43aa437a6a1ba421653bd5034333bf9"

SRC_URI = "http://kr.archive.ubuntu.com/ubuntu/pool/universe/s/sizzle/sizzle_1.10.18.orig.tar.gz"
SRC_URI[md5sum] = "91477c1edeef9f8100ffd6c4d31725b5"
SRC_URI[sha256sum] = "8e04ab84bb74b2e338dffc63cd2e52b007f1d8af01b3d25da4d2e07f2b5890f8"

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

SIZZLEDIR = "${S}/dist"

do_install() {
    install -d -m 0755 ${D}/${datadir}/javascript/sizzle/
    install -m 0644 ${SIZZLEDIR}/*.js ${D}/${datadir}/javascript/sizzle/
}

FILES_${PN} = "${datadir}/javascript/sizzle/"


DESCRIPTION = "rostopic contains the rostopic command-line tool for displaying debug information about \
ROS Topics, including publishers, subscribers, publishing rate, and ROS Messages."
SECTION = "devel"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://package.xml;beginline=17;endline=17;md5=d566ef916e9dedc494f5f793a6690ba5"

DEPENDS = "rostest-native"

require ros-comm.inc

S = "${WORKDIR}/ros_comm-${PV}/tools/${ROS_BPN}"

Add roscpp to package depends

DESCRIPTION = "rostopic contains the rostopic command-line tool for displaying debug information about \
ROS Topics, including publishers, subscribers, publishing rate, and ROS Messages."
SECTION = "devel"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://package.xml;beginline=17;endline=17;md5=d566ef916e9dedc494f5f793a6690ba5"

DEPENDS = "rostest-native roscpp"

require ros-comm.inc

S = "${WORKDIR}/ros_comm-${PV}/tools/${ROS_BPN}"


SUMMARY = "Unicode Mingti (printed) TrueType Font"
HOMEPAGE = "http://www.freedesktop.org/wiki/Software/CJKUnifonts"
LICENSE = "Arphic-Public-License"
LIC_FILES_CHKSUM = "file://README;md5=62be011094b7865ddc4d1a648444d31a"
SRC_DISTRIBUTE_LICENSES += "${PN}"
RPROVIDES_${PN} = "virtual-chinese-font"
PR = "r6"

FONT_PACKAGES = "${PN}"

SRC_URI = "http://archive.ubuntu.com/ubuntu/pool/main/t/ttf-arphic-uming/ttf-arphic-uming_0.2.${PV}.1.orig.tar.gz"
S = "${WORKDIR}"

require ttf.inc

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

SRC_URI[md5sum] = "d219fcaf953f3eb1889399955a00379f"
SRC_URI[sha256sum] = "8038a6db9e832456d5da5559aff8d15130243be1091bf24f3243503a6f1bda98"

Use license file instead of README for license checksums

SUMMARY = "Unicode Mingti (printed) TrueType Font"
HOMEPAGE = "http://www.freedesktop.org/wiki/Software/CJKUnifonts"
LICENSE = "Arphic-Public-License"
LIC_FILES_CHKSUM = "file://license/english/ARPHICPL.TXT;md5=4555ed88e9a72fc9562af379d07c3350"
SRC_DISTRIBUTE_LICENSES += "${PN}"
RPROVIDES_${PN} = "virtual-chinese-font"
PR = "r6"

FONT_PACKAGES = "${PN}"

SRC_URI = "http://archive.ubuntu.com/ubuntu/pool/main/t/ttf-arphic-uming/ttf-arphic-uming_0.2.${PV}.1.orig.tar.gz"
S = "${WORKDIR}"

require ttf.inc

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

SRC_URI[md5sum] = "d219fcaf953f3eb1889399955a00379f"
SRC_URI[sha256sum] = "8038a6db9e832456d5da5559aff8d15130243be1091bf24f3243503a6f1bda98"


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

PR = "r0"

inherit debian-package

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

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

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

Correct license and fix error "debian/patches not found"

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

PR = "r0"

inherit debian-package

LICENSE = "PHP-3.0 & BSD-3-Clause"
LIC_FILES_CHKSUM = " \
    file://Auth-1.6.4/Auth.php;beginline=9;endline=13;md5=6863d257d87ab97c7e821ca3fe49a316 \
    file://Auth-1.6.4/Auth/Frontend/md5.js;endline=8;md5=915fa4679c019c47741472ce7ce6afd1 \
"

# source format is 3.0 (quilt) but there is no debian patch
DEBIAN_QUILT_PATCHES = ""

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

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


SECTION = "base"
PR = "r0"
require fakeroot_${PV}.bb
inherit native

SRC_URI += "file://fix-prefix.patch;patch=1"
S = "${WORKDIR}/fakeroot-${PV}"

EXTRA_OECONF = " --program-prefix="

# Compatability for the rare systems not using or having SYSV
python () {
    if bb.data.getVar('HOST_NONSYSV', d, True) and bb.data.getVar('HOST_NONSYSV', d, True) != '0':
        bb.data.setVar('EXTRA_OECONF', ' --with-ipc=tcp --program-prefix= ', d)
}

do_stage_append () {
    oe_libinstall -so libfakeroot ${STAGING_LIBDIR}/libfakeroot/
}

Remove bogus RDEPENDS on util-linux, replacing with util-linux-native

SECTION = "base"
PR = "r0"
require fakeroot_${PV}.bb
inherit native
RDEPENDS="util-linux-native"

SRC_URI += "file://fix-prefix.patch;patch=1"
S = "${WORKDIR}/fakeroot-${PV}"

EXTRA_OECONF = " --program-prefix="

# Compatability for the rare systems not using or having SYSV
python () {
    if bb.data.getVar('HOST_NONSYSV', d, True) and bb.data.getVar('HOST_NONSYSV', d, True) != '0':
        bb.data.setVar('EXTRA_OECONF', ' --with-ipc=tcp --program-prefix= ', d)
}

do_stage_append () {
    oe_libinstall -so libfakeroot ${STAGING_LIBDIR}/libfakeroot/
}


SUMMARY = "Fast Artificial Neural Network (FANN) Library"
DESCRIPTION = "Fast Artificial Neural Network (FANN) Library is a free open source neural network library, which implements multilayer artificial neural networks in C with support for both fully connected and sparsely connected networks."
HOMEPAGE = "https://github.com/libfann/fann"
SECTION = "libs/devel"

LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://LICENSE.md;md5=f14599a2f089f6ff8c97e2baa4e3d575"

inherit cmake

SRCREV ?= "7ec1fc7e5bd734f1d3c89b095e630e83c86b9be1"
SRC_URI = "git://github.com/libfann/fann.git;branch=master \
          "

PV = "2.2.0+git${SRCPV}"

S = "${WORKDIR}/git"

Define LIB_SUFFIX suitable for OE multilib needs

SUMMARY = "Fast Artificial Neural Network (FANN) Library"
DESCRIPTION = "Fast Artificial Neural Network (FANN) Library is a free open source neural network library, which implements multilayer artificial neural networks in C with support for both fully connected and sparsely connected networks."
HOMEPAGE = "https://github.com/libfann/fann"
SECTION = "libs/devel"

LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://LICENSE.md;md5=f14599a2f089f6ff8c97e2baa4e3d575"

inherit cmake

SRCREV ?= "7ec1fc7e5bd734f1d3c89b095e630e83c86b9be1"
SRC_URI = "git://github.com/libfann/fann.git;branch=master \
          "

PV = "2.2.0+git${SRCPV}"

S = "${WORKDIR}/git"

EXTRA_OECMAKE = "-DLIB_SUFFIX=${@d.getVar('baselib').replace('lib', '')}"


SUMMARY = "IPSec Manager libraries"
DESCRIPTION = "Provides library to offload IPSec security policy & associated security association to NETCP for crypto operations"

LIC_FILES_CHKSUM = "file://../ipsecmgr_snoop.h;beginline=1;endline=33;md5=f7eadca4fb5599f508dc11fa1e752919"

include ipsecmgr.inc

DEPENDS = "libnl-xfrm"

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

S = "${WORKDIR}/git/build"
LIB_INC_DIR = "${WORKDIR}/git"
UTILS_LIB_INC_DIR = "${WORKDIR}/git/utils/iface/"

do_compile() {
# Compile the library
	make clean
	make all
}
do_install() {
# Install libraries
	install -d ${D}${libdir}/
	install -c -m 666 libipsecmgr_snoop.a ${D}${libdir}/
	install -c -m 666 libipsecmgr_ipc.a ${D}${libdir}/
	install -c -m 666 libipsecmgr_syslog.a ${D}${libdir}/
	install -d ${D}${includedir}/
	install -c -m 666 ${LIB_INC_DIR}/*.h ${D}${includedir}/
	install -c -m 666 ${UTILS_LIB_INC_DIR}/*.h ${D}${includedir}/
}

Add ALLOW_EMPTY to be set to 1

SUMMARY = "IPSec Manager libraries"
DESCRIPTION = "Provides library to offload IPSec security policy & associated security association to NETCP for crypto operations"

LIC_FILES_CHKSUM = "file://../ipsecmgr_snoop.h;beginline=1;endline=33;md5=f7eadca4fb5599f508dc11fa1e752919"

include ipsecmgr.inc

DEPENDS = "libnl-xfrm"

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

S = "${WORKDIR}/git/build"
LIB_INC_DIR = "${WORKDIR}/git"
UTILS_LIB_INC_DIR = "${WORKDIR}/git/utils/iface/"

ALLOW_EMPTY_${PN} = "1"

do_compile() {
# Compile the library
	make clean
	make all
}
do_install() {
# Install libraries
	install -d ${D}${libdir}/
	install -c -m 666 libipsecmgr_snoop.a ${D}${libdir}/
	install -c -m 666 libipsecmgr_ipc.a ${D}${libdir}/
	install -c -m 666 libipsecmgr_syslog.a ${D}${libdir}/
	install -d ${D}${includedir}/
	install -c -m 666 ${LIB_INC_DIR}/*.h ${D}${includedir}/
	install -c -m 666 ${UTILS_LIB_INC_DIR}/*.h ${D}${includedir}/
}


SUMMARY = "Example application for Atlas SoC FPGA FFT Benchmarking"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "${WORKDIR}/git/COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e"

PR = "r0"

SRCREV = "${AUTOREV}"

SRC_URI = " \
	git://github.com/dwesterg/atlas-soc-fftsw-apps.git \
"

S = "${WORKDIR}/git"

do_compile () {
	source ${S}/build_ne10.sh
	source ${S}/build_all.sh
	source ${S}/archive_for_target.sh
}

do_install () {

}

Update path to lic file

SUMMARY = "Example application for Atlas SoC FPGA FFT Benchmarking"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e"

PR = "r0"

SRCREV = "${AUTOREV}"

SRC_URI = " \
	git://github.com/dwesterg/atlas-soc-fftsw-apps.git \
"

S = "${WORKDIR}/git"

do_compile () {
	source ${S}/build_ne10.sh
	source ${S}/build_all.sh
	source ${S}/archive_for_target.sh
}

do_install () {

}


# cdparanoia OE build file
# Copyright (C) 2005, Advanced Micro Devices, Inc.  All Rights Reserved
# Released under the MIT license (see packages/COPYING)

PR ="r2"
LICENSE="GPL"

SRC_URI="http://downloads.xiph.org/releases/cdparanoia/cdparanoia-III-alpha9.8.src.tgz \
	 file://fixes.patch;patch=1 \
	 file://Makefile.patch;patch=1"

S="${WORKDIR}/cdparanoia-III-alpha9.8"

inherit autotools

do_install() {
	oe_runmake BINDIR="${D}/usr/bin" MANDIR="${D}/usr/share/man/" \
		   INCLUDEDIR="${D}/usr/include/" LIBDIR="${D}/usr/lib" install
}

do_stage() {
	install -d ${STAGING_INCDIR} ${STAGING_LIBDIR}

	install -m 0644 paranoia/cdda_paranoia.h ${STAGING_INCDIR}
	install -m 0644 interface/cdda_interface.h ${STAGING_INCDIR}

	oe_libinstall -C interface libcdda_interface ${STAGING_LIBDIR}
	oe_libinstall -C paranoia libcdda_paranoia ${STAGING_LIBDIR}
}

Disable parallel make for this package

# cdparanoia OE build file
# Copyright (C) 2005, Advanced Micro Devices, Inc.  All Rights Reserved
# Released under the MIT license (see packages/COPYING)

PR ="r2"
LICENSE="GPL"

SRC_URI="http://downloads.xiph.org/releases/cdparanoia/cdparanoia-III-alpha9.8.src.tgz \
	 file://fixes.patch;patch=1 \
	 file://Makefile.patch;patch=1"

S="${WORKDIR}/cdparanoia-III-alpha9.8"

PARALLEL_MAKE = ""

inherit autotools

do_install() {
	oe_runmake BINDIR="${D}/usr/bin" MANDIR="${D}/usr/share/man/" \
		   INCLUDEDIR="${D}/usr/include/" LIBDIR="${D}/usr/lib" install
}

do_stage() {
	install -d ${STAGING_INCDIR} ${STAGING_LIBDIR}

	install -m 0644 paranoia/cdda_paranoia.h ${STAGING_INCDIR}
	install -m 0644 interface/cdda_interface.h ${STAGING_INCDIR}

	oe_libinstall -C interface libcdda_interface ${STAGING_LIBDIR}
	oe_libinstall -C paranoia libcdda_paranoia ${STAGING_LIBDIR}
}


require gst-plugins.inc

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

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

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

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

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

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

Revert "gst-plugins-bad: DEPENDS on gst-plugins-base>=0.10.30"

require gst-plugins.inc

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

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

DEPENDS += "gst-plugins-base"

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

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

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


SUMMARY = "Real-time file compressor"
DESCRIPTION = "lzop is a compression utility which is designed to be a companion to gzip. \
It is based on the LZO data compression library and its main advantages over \
gzip are much higher compression and decompression speed at the cost of some \
compression ratio. The lzop compression utility was designed with the goals \
of reliability, speed, portability and with reasonable drop-in compatibility \
to gzip."
HOMEPAGE = "http://www.lzop.org/"

PR = "r0"
inherit debian-package

DEPENDS += "lzo"

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

#acinclude.m4:
#	Need to run autoconf
SRC_URI += "file://acinclude.m4 \
"
inherit autotools

do_configure () {
	ln -sf  ../acinclude.m4 ${S}/acinclude.m4
	autotools_do_configure
}

Add recipe for lzop-native package

SUMMARY = "Real-time file compressor"
DESCRIPTION = "lzop is a compression utility which is designed to be a companion to gzip. \
It is based on the LZO data compression library and its main advantages over \
gzip are much higher compression and decompression speed at the cost of some \
compression ratio. The lzop compression utility was designed with the goals \
of reliability, speed, portability and with reasonable drop-in compatibility \
to gzip."
HOMEPAGE = "http://www.lzop.org/"

PR = "r0"
inherit debian-package

DEPENDS += "lzo"

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

#acinclude.m4:
#	Need to run autoconf
SRC_URI += "file://acinclude.m4 \
"
inherit autotools

do_configure () {
	ln -sf  ../acinclude.m4 ${S}/acinclude.m4
	autotools_do_configure
}

BBCLASSEXTEND += "native nativesdk"


LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://LICENSE.LGPL-2.1;md5=4fbd65380cdd255951079008b364516c"

DEPENDS = "kdelibs4 libkactivities4"

inherit kde_cmake

# This tag is very odd, it will cause bitbake to create a directory in the workdir of this recipe with the name 2.0+${SRCREV}
# But other than that no misbehaviour has been spotted
SRC_URI = "git://anongit.kde.org/share-like-connect.git;tag=Active/2.0"
SRCREV = "ab39e67ebdb8f67da447fe13bb0cd952d24a2df9"

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

S = "${WORKDIR}/git"

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

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

Switch to fixed revision instead of tags.

LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://LICENSE.LGPL-2.1;md5=4fbd65380cdd255951079008b364516c"

DEPENDS = "kdelibs4 libkactivities4"

inherit kde_cmake

# This tag is very odd, it will cause bitbake to create a directory in the workdir of this recipe with the name 2.0+${SRCREV}
# But other than that no misbehaviour has been spotted
SRC_URI = "git://anongit.kde.org/share-like-connect.git;branch=master"

## Tag Active/2.0
SRCREV = "9ed8128284ab9fcab806455bccf0344dd21afbd1"

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

S = "${WORKDIR}/git"

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

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


DESCRIPTION = "Unicode Mingti (printed) TrueType Font"
HOMEPAGE = "http://www.freedesktop.org/wiki/Software/CJKUnifonts"
LICENSE = "${PN}"
SRC_DISTRIBUTE_LICENSES += "${PN}"
RPROVIDES_${PN} = "virtual-chinese-font"
PR = "r2"

SRC_URI = \
"http://archive.ubuntu.com/ubuntu/pool/main/t/ttf-arphic-uming/ttf-arphic-uming_0.2.${PV}.1.orig.tar.gz"
S = "${WORKDIR}"

require ttf.inc

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

SRC_URI[md5sum] = "d219fcaf953f3eb1889399955a00379f"
SRC_URI[sha256sum] = "8038a6db9e832456d5da5559aff8d15130243be1091bf24f3243503a6f1bda98"

Switch to subdir= in SRC_URI

DESCRIPTION = "Unicode Mingti (printed) TrueType Font"
HOMEPAGE = "http://www.freedesktop.org/wiki/Software/CJKUnifonts"
LICENSE = "${PN}"
SRC_DISTRIBUTE_LICENSES += "${PN}"
RPROVIDES_${PN} = "virtual-chinese-font"
PR = "r2"

SRC_URI = \
"http://archive.ubuntu.com/ubuntu/pool/main/t/ttf-arphic-uming/ttf-arphic-uming_0.2.${PV}.1.orig.tar.gz;subdir=${BPN}-${PV}"

require ttf.inc

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

SRC_URI[md5sum] = "d219fcaf953f3eb1889399955a00379f"
SRC_URI[sha256sum] = "8038a6db9e832456d5da5559aff8d15130243be1091bf24f3243503a6f1bda98"


require linux.inc
require linux-dtb.inc

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

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

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

S = "${WORKDIR}/git"

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

Update BSP to version 0.5.3

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


# Add DSP and gstreamer packages to console image

require tvp5151-console-image.bb

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

IMAGE_INSTALL += " \
    ${DSP_INSTALL} \
 "

export IMAGE_BASENAME = "tvp5151-dsp-image"

Add Qt embedded to dsp image

# Add DSP and gstreamer packages to console image

require tvp5151-console-image.bb

PR = "1"

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

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

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

export IMAGE_BASENAME = "tvp5151-dsp-image"


SUMMARY = "An image that builds a Docker image of the environment \
for GNSS-SDR testing purposes."

EXTRA_IMAGE_FEATURES += "tools-debug tools-profile tools-sdk dev-pkgs"
LICENSE = "MIT"

require core-image-container.bb
require gnuradio-dev-image.bb

RDEPENDS_packagegroup-sdr-base-python += " python3-six"

SDK_EXTRA_TOOLS += "nativesdk-python3-six"

IMAGE_INSTALL = " \
                 packagegroup-core-container \
                 packagegroup-gnss-sdr-base \
                "

CORE_IMAGE_EXTRA_INSTALL += " \
    packagegroup-gnss-sdr-base \
"

IMAGE_CLASSES += "image_type_docker"
IMAGE_FSTYPES = "docker"

inherit core-image

# set a meaningful name  and tag for the docker output image
DOCKER_IMAGE_TAG = "latest"
DOCKER_IMAGE_NAME_EXPORT = "gnsssdr-dev-arm32v7:${DOCKER_IMAGE_TAG}"

Add build tools to docker image

SUMMARY = "An image that builds a Docker image of the environment \
for GNSS-SDR testing purposes."

EXTRA_IMAGE_FEATURES += "tools-debug tools-profile tools-sdk dev-pkgs"
LICENSE = "MIT"

require core-image-container.bb
require gnuradio-dev-image.bb

RDEPENDS_packagegroup-sdr-base-python += " python3-six"

SDK_EXTRA_TOOLS += "nativesdk-python3-six"

IMAGE_INSTALL = " \
                 packagegroup-core-container \
                 packagegroup-gnss-sdr-buildessential \
                 packagegroup-gnss-sdr-base \
                 packagegroup-gnss-sdr-base-extended \
                "

CORE_IMAGE_EXTRA_INSTALL += " \
    packagegroup-gnss-sdr-base \
"

IMAGE_CLASSES += "image_type_docker"
IMAGE_FSTYPES = "docker"

inherit core-image

# set a meaningful name  and tag for the docker output image
DOCKER_IMAGE_TAG = "latest"
DOCKER_IMAGE_NAME_EXPORT = "gnsssdr-dev-arm32v7:${DOCKER_IMAGE_TAG}"


DESCRIPTION = "Firmware files for use with Linux kernel"

PR = "r2"
PR_append = "+gitr${SRCREV}"
SRCREV = "dbb6a54ba8c8d6e6673a3b86ea4c4aac78c808f0"

SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git;protocol=git"

S = "${WORKDIR}/git"

do_compile() {
	:
}

do_install() {
	install -d  ${D}/lib/firmware/
	cp -RpP * ${D}/lib/firmware/

	# fixup wl12xx location
	( cd ${D}/lib/firmware
	ln -sf ti-connectivity/* . )
}

PACKAGES =+ "${PN}-wl12xx"
FILES_${PN}-wl12xx = "/lib/firmware/wl12* /lib/firmware/TI* /lib/firmware/ti-connectivity"

FILES_${PN} += "/lib/firmware/*"
PACKAGE_ARCH = "all"

Use AUTOREV for most recent firmware

DESCRIPTION = "Firmware files for use with Linux kernel"

PR = "r2"
PR_append = "+gitr${SRCREV}"
SRCREV = ${AUTOREV}

SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git;protocol=git"

S = "${WORKDIR}/git"

do_compile() {
	:
}

do_install() {
	install -d  ${D}/lib/firmware/
	cp -RpP * ${D}/lib/firmware/

	# fixup wl12xx location
	( cd ${D}/lib/firmware
	ln -sf ti-connectivity/* . )
}

PACKAGES =+ "${PN}-wl12xx"
FILES_${PN}-wl12xx = "/lib/firmware/wl12* /lib/firmware/TI* /lib/firmware/ti-connectivity"

FILES_${PN} += "/lib/firmware/*"
PACKAGE_ARCH = "all"


LICENSE = GPL
DESCRIPTION = "Gtk+ WebCore - reference browser"
HOMEPAGE = "http://gtk-webcore.sourceforge.net/"
PRIORITY = "optional"
MAINTAINER = "Rene Wagner <rw@handhelds.org>"
DEPENDS = "osb-nrcit gtk+ glib-2.0 libglade"
SECTION = "gpe"

SRC_URI = "${SOURCEFORGE_MIRROR}/gtk-webcore/osb-browser-${PV}.tar.gz \
           file://no-pedantic.patch;patch=1"

inherit autotools


DESCRIPTION = "Gives a fake root environment"
SECTION = "base"
LICENSE = "GPL"
# fakeroot needs getopt which is provided by the util-linux package
RDEPENDS = "util-linux"
PR = "r1"

SRC_URI = "ftp://ftp.debian.org/debian/pool/main/f/fakeroot/fakeroot_${PV}.tar.gz"

inherit autotools

do_stage() {
        install -d ${STAGING_INCDIR}/fakeroot
        install -m 644 *.h ${STAGING_INCDIR}/fakeroot
        autotools_stage_all
}

Apply patch for fakeroot-native to fakeroot too.

DESCRIPTION = "Gives a fake root environment"
SECTION = "base"
LICENSE = "GPL"
# fakeroot needs getopt which is provided by the util-linux package
RDEPENDS = "util-linux"
PR = "r2"

SRC_URI = "ftp://ftp.debian.org/debian/pool/main/f/fakeroot/fakeroot_${PV}.tar.gz \
           file://work-with-older-libtool.patch;patch=1"

inherit autotools

do_stage() {
        install -d ${STAGING_INCDIR}/fakeroot
        install -m 644 *.h ${STAGING_INCDIR}/fakeroot
        autotools_stage_all
}


# Image for Beagleboard-based robots

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

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

IMAGE_INSTALL += " \
	     linux-firmware-rt2x00 \
	     kernel-module-rt2x00usb \
	     kernel-module-rt2800usb \
	     alsa-utils-amixer \
	     alsa-utils-aplay \
	     connman-plugin-ntpd \
	     gst-plugins-base-audioconvert \
	     gst-plugins-base-audioresample \
	     gst-plugins-base-alsa \
	     gst-plugins-ugly-mad \
	     minicom \
	     avrdude \
	     espeak \
	     ntp \
	    "

export IMAGE_BASENAME = "robot-image"

Tweak included packages and fix for latest Angstrom

# Image for Beagleboard-based robots

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

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

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

export IMAGE_BASENAME = "robot-image"


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

inherit task

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

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

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

Add gpicview to our images.

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

inherit task

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

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

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


DESCRIPTION = "cross-linkage sets up symlinks between cross and staging so the compiler can find things"
SECTION = "devel"
PACKAGES = ""

INHIBIT_DEFAULT_DEPS = "1"
PR = "r0"

SRC_URI = ""

do_configure() {
	:
}

do_compile () {
	:
}

do_install() {
	:
}

do_stage () {
	install -d ${CROSS_DIR}/${TARGET_SYS}/
	rm -rf ${CROSS_DIR}/${TARGET_SYS}/include
	ln -s  ${STAGING_INCDIR}/ ${CROSS_DIR}/${TARGET_SYS}/include
	rm -rf ${CROSS_DIR}/${TARGET_SYS}/lib
	ln -s  ${STAGING_LIBDIR} ${CROSS_DIR}/${TARGET_SYS}/lib
}

Make it less destructive and safer

DESCRIPTION = "cross-linkage sets up symlinks between cross and staging so the compiler can find things"
SECTION = "devel"
PACKAGES = ""

INHIBIT_DEFAULT_DEPS = "1"
PR = "r0"

SRC_URI = ""

do_configure() {
	:
}

do_compile () {
	:
}

do_install() {
	:
}

do_stage () {
	install -d ${CROSS_DIR}/${TARGET_SYS}/
	if [ -e ${CROSS_DIR}/${TARGET_SYS}/include ]; then
		cp -pPRr ${CROSS_DIR}/${TARGET_SYS}/include/* ${STAGING_INCDIR}
		mv ${CROSS_DIR}/${TARGET_SYS}/include/ ${CROSS_DIR}/${TARGET_SYS}/include-oldbackup
	fi
	ln -s  ${STAGING_INCDIR}/ ${CROSS_DIR}/${TARGET_SYS}/include
	if [ -e ${CROSS_DIR}/${TARGET_SYS}/lib ]; then
		cp -pPRr ${CROSS_DIR}/${TARGET_SYS}/lib/* ${STAGING_LIBDIR}
		mv ${CROSS_DIR}/${TARGET_SYS}/lib/ ${CROSS_DIR}/${TARGET_SYS}/lib-oldbackup
	fi
	ln -s  ${STAGING_LIBDIR} ${CROSS_DIR}/${TARGET_SYS}/lib
}


DESCRIPTION = "This program used for copy primary framebuffer to secondary \
framebuffer (eg. FBTFT)"
LICENSE = "CLOSED"

COMPATIBLE_MACHINE = "raspberrypi"

SRCBRANCH = "master"
SRCREV = "8087a71d0330a078d91aa78656684ab5313616c6"

SRC_URI = "\
    git://github.com/tasanakorn/rpi-fbcp.git;protocol=git;branch=${SRCBRANCH} \
    file://0001-Use-system-lib-directory.patch \
"
S = "${WORKDIR}/git"

inherit cmake

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

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

Update to latest version of fbcp

DESCRIPTION = "This program used for copy primary framebuffer to secondary \
framebuffer (eg. FBTFT)"
LICENSE = "CLOSED"

COMPATIBLE_MACHINE = "raspberrypi"

SRCBRANCH = "master"
SRCREV = "af8d32246c23cb23e4030e6588668a14341f5ddc"

SRC_URI = "\
    git://github.com/tasanakorn/rpi-fbcp.git;protocol=git;branch=${SRCBRANCH} \
    file://0001-Use-system-lib-directory.patch \
"
S = "${WORKDIR}/git"

inherit cmake

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

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


SUMMARY = "Linux Kernel Crypto API User Space Interface Library"
HOMEPAGE = "http://www.chronox.de/libkcapi.html"
LICENSE = "BSD | GPL-2.0"
LIC_FILES_CHKSUM = "file://COPYING;md5=d0421cf231423bda10cea691b613e866"

DEPENDS = "libtool"

S = "${WORKDIR}/git"
# Use v1.1.3 with changes on top for building in OE
SRCREV = "1c736c43eb71fbb5640d00efaf34a1edf1972c49"
PV = "1.1.3+git${SRCPV}"
SRC_URI = " \
    git://github.com/smuellerDD/libkcapi.git \
"

inherit autotools

PACKAGECONFIG ??= ""
PACKAGECONFIG[testapp] = "--enable-kcapi-test,,,"
PACKAGECONFIG[apps] = "--enable-kcapi-speed --enable-kcapi-hasher --enable-kcapi-rngapp --enable-kcapi-encapp --enable-kcapi-dgstapp,,,"

do_install_append() {
    # bindir contains testapp and apps.  However it is always created, even
    # when no binaries are installed (empty bin_PROGRAMS in Makefile.am),
    rmdir --ignore-fail-on-non-empty ${D}${bindir}
}

Disable Wsign-compare warning with clang/musl

SUMMARY = "Linux Kernel Crypto API User Space Interface Library"
HOMEPAGE = "http://www.chronox.de/libkcapi.html"
LICENSE = "BSD | GPL-2.0"
LIC_FILES_CHKSUM = "file://COPYING;md5=d0421cf231423bda10cea691b613e866"

DEPENDS = "libtool"

S = "${WORKDIR}/git"
# Use v1.1.3 with changes on top for building in OE
SRCREV = "1c736c43eb71fbb5640d00efaf34a1edf1972c49"
PV = "1.1.3+git${SRCPV}"
SRC_URI = " \
    git://github.com/smuellerDD/libkcapi.git \
"

inherit autotools

PACKAGECONFIG ??= ""
PACKAGECONFIG[testapp] = "--enable-kcapi-test,,,"
PACKAGECONFIG[apps] = "--enable-kcapi-speed --enable-kcapi-hasher --enable-kcapi-rngapp --enable-kcapi-encapp --enable-kcapi-dgstapp,,,"

do_install_append() {
    # bindir contains testapp and apps.  However it is always created, even
    # when no binaries are installed (empty bin_PROGRAMS in Makefile.am),
    rmdir --ignore-fail-on-non-empty ${D}${bindir}
}

CPPFLAGS_append_libc-musl_toolchain-clang = " -Wno-error=sign-compare"


#
# 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 \
		python-dev \
		bison flex \
		git \
		"

Add perl-XML-Parser to devel image

#
# 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 \
		python-dev \
		bison flex \
		git \
		libxml-parser-perl \
		"


DESCRIPTION = "Valgrind memory debugger"
HOMEPAGE = "http://valgrind.org/"
BUGTRACKER = "http://valgrind.org/support/bug_reports.html"
LICENSE = "GPLv2+ & BSD & FDLv1.2"

inherit autotools

DEPENDS += "${HOST_ARCH}/sysroot-librt"
RDEPENDS_${PN} += "${HOST_ARCH}/sysroot-librt ${HOST_ARCH}/sysroot-dbg"

SRC_URI = "http://www.valgrind.org/downloads/valgrind-${PV}.tar.bz2"
SRC_URI += "file://vg-ppc-feature.patch"

EXTRA_OECONF = "--enable-tls"

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

Split out ekstra scripts into their own packages

DESCRIPTION = "Valgrind memory debugger"
HOMEPAGE = "http://valgrind.org/"
BUGTRACKER = "http://valgrind.org/support/bug_reports.html"
LICENSE = "GPLv2+ & BSD & FDLv1.2"

inherit autotools auto-package-utils

DEPENDS += "${HOST_ARCH}/sysroot-librt"
RDEPENDS_${PN} += "${HOST_ARCH}/sysroot-librt ${HOST_ARCH}/sysroot-dbg"

SRC_URI = "http://www.valgrind.org/downloads/valgrind-${PV}.tar.bz2"
SRC_URI += "file://vg-ppc-feature.patch"

EXTRA_OECONF = "--enable-tls"

AUTO_PACKAGE_UTILS = "callgrind_annotate callgrind_control cg_annotate \
                      cg_diff cg_merge ms_print valgrind-listener \
                      no_op_client_for_valgrind"

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


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

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

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

# replace qemu with qemu-xilinx
DEPENDS_remove = "qemu-native"
DEPENDS_append = " qemu-xilinx-native"

Clean up preferred provider message

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

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

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

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

# replace qemu with qemu-xilinx
DEPENDS_remove = "qemu-native"
DEPENDS_append = " qemu-xilinx-native"


DESCRIPTION = "Tornado is an open source version of the scalable, non-blocking web server and tools that power FriendFeed."
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"

PV = "4.5.3"

SRCREV = "8e9e75502ff910629663c4cdd7779d43ea2dd150"
SRC_URI = "git://github.com/tornadoweb/tornado.git;branch=branch4.5"

S = "${WORKDIR}/git"

inherit setuptools

DEPENDS = "python-certifi"

RDEPENDS_${PN} = "python-certifi"
RCONFLICTS_${PN} = "python-tornado"
RCONFLICTS_${PN} = "python-tornado40"
RCONFLICTS_${PN} = "python-tornado50"

Append to RCONFLICTS instead of overwriting

DESCRIPTION = "Tornado is an open source version of the scalable, non-blocking web server and tools that power FriendFeed."
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"

PV = "4.5.3"

SRCREV = "8e9e75502ff910629663c4cdd7779d43ea2dd150"
SRC_URI = "git://github.com/tornadoweb/tornado.git;branch=branch4.5"

S = "${WORKDIR}/git"

inherit setuptools

DEPENDS = "python-certifi"

RDEPENDS_${PN} = "python-certifi"
RCONFLICTS_${PN} = "python-tornado"
RCONFLICTS_${PN} += "python-tornado40"
RCONFLICTS_${PN} += "python-tornado50"


DESCRIPTION = "trajectory_msgs"
SECTION = "devel"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://package.xml;beginline=8;endline=8;md5=d566ef916e9dedc494f5f793a6690ba5"

require common-msgs.inc

Add missing dependency on geometry-msgs

DESCRIPTION = "trajectory_msgs"
SECTION = "devel"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://package.xml;beginline=8;endline=8;md5=d566ef916e9dedc494f5f793a6690ba5"

require common-msgs.inc

DEPENDS += "geometry-msgs"


SUMMARY = "RADIUS tools"
SECTION = "devel/python"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=e910b35b0ef4e1f665b9a75d6afb7709"

PYPI_PACKAGE = "pyrad"
SRC_URI[sha256sum] = "057de4b7e89d8da57ba782c1bde45c63ebee720ae2c0b0a69beaff15c47e30d9"

inherit pypi poetry_core

Change poetry bbclass inherit to match oe-core

SUMMARY = "RADIUS tools"
SECTION = "devel/python"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=e910b35b0ef4e1f665b9a75d6afb7709"

PYPI_PACKAGE = "pyrad"
SRC_URI[sha256sum] = "057de4b7e89d8da57ba782c1bde45c63ebee720ae2c0b0a69beaff15c47e30d9"

inherit pypi python_poetry_core


DESCRIPTION = "Java XML parser and transformer APIs (DOM, SAX, JAXP, TrAX)"
LICENSES = "AL2.0 W3C Public Domain"
AUTHOR = "Apache Software Foundation"

SRC_URI = "http://archive.apache.org/dist/xml/commons/source/xml-commons-external-${PV}-src.tar.gz"

inherit java-library

S = "${WORKDIR}"

DEPENDS = "fastjar-native"

JARFILENAME = "jaxp-1.3.jar"
ALTJARFILENAMES = "xml-apis.jar"

do_compile() {
  mkdir -p build/license
  javac -d build `find javax org -name \*.java`

  cp LICENSE.*.txt README.*.txt build/license

  fastjar -c -m manifest.commons -f ${JARFILENAME} -C build .
}

SRC_URI[md5sum] = "5536f87a816c766f4999ed60593a8701"
SRC_URI[sha256sum] = "8e8a412aeb95644eaf14ec1a5cfd04833e38cac4a01b83d73d7de2368a35a597"

NATIVE_INSTALL_WORKS = "1"
BBCLASSEXTEND = "native"

Switch to subdir= in SRC_URI

DESCRIPTION = "Java XML parser and transformer APIs (DOM, SAX, JAXP, TrAX)"
LICENSES = "AL2.0 W3C Public Domain"
AUTHOR = "Apache Software Foundation"

SRC_URI = "http://archive.apache.org/dist/xml/commons/source/xml-commons-external-${PV}-src.tar.gz;subdir=${BPN}-${PV}"

inherit java-library

DEPENDS = "fastjar-native"

JARFILENAME = "jaxp-1.3.jar"
ALTJARFILENAMES = "xml-apis.jar"

do_compile() {
  mkdir -p build/license
  javac -d build `find javax org -name \*.java`

  cp LICENSE.*.txt README.*.txt build/license

  fastjar -c -m manifest.commons -f ${JARFILENAME} -C build .
}

SRC_URI[md5sum] = "5536f87a816c766f4999ed60593a8701"
SRC_URI[sha256sum] = "8e8a412aeb95644eaf14ec1a5cfd04833e38cac4a01b83d73d7de2368a35a597"

NATIVE_INSTALL_WORKS = "1"
BBCLASSEXTEND = "native"


DESCRIPTION = "Python3 interface to the wxWidgets Cross-platform C++ GUI toolkit."
HOMEPAGE = "http://www.wxpython.org"

LICENSE = "WXwindows"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=fce1d18e2d633d41786c0a8dfbc80917"

DEPENDS = "wxwidgets-native wxwidgets"

PYPI_PACKAGE = "wxPython"

SRC_URI += "file://add-back-option-build-base.patch \
            file://wxgtk-fixup-build-scripts.patch \
            file://sip-fix-override-functions.patch \
            "
SRC_URI[sha256sum] = "00e5e3180ac7f2852f342ad341d57c44e7e4326de0b550b9a5c4a8361b6c3528"

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

inherit pypi setuptools3 pkgconfig

export WX_CONFIG = "${RECIPE_SYSROOT_NATIVE}${bindir}/wx-config"

RDEPENDS:${PN} = "\
    python3-difflib \
    python3-image \
    python3-numpy \
    python3-pillow \
    python3-pprint \
    python3-pycairo \
    python3-six \
    python3-xml \
"

Use cross prefix with native wx-config

DESCRIPTION = "Python3 interface to the wxWidgets Cross-platform C++ GUI toolkit."
HOMEPAGE = "http://www.wxpython.org"

LICENSE = "WXwindows"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=fce1d18e2d633d41786c0a8dfbc80917"

DEPENDS = "wxwidgets-native wxwidgets"

PYPI_PACKAGE = "wxPython"

SRC_URI += "file://add-back-option-build-base.patch \
            file://wxgtk-fixup-build-scripts.patch \
            file://sip-fix-override-functions.patch \
            "
SRC_URI[sha256sum] = "00e5e3180ac7f2852f342ad341d57c44e7e4326de0b550b9a5c4a8361b6c3528"

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

inherit pypi setuptools3 pkgconfig

export WX_CONFIG = "'${RECIPE_SYSROOT_NATIVE}${bindir}/wx-config --prefix=${STAGING_EXECPREFIXDIR}'"

RDEPENDS:${PN} = "\
    python3-difflib \
    python3-image \
    python3-numpy \
    python3-pillow \
    python3-pprint \
    python3-pycairo \
    python3-six \
    python3-xml \
"


SUMMARY = "Replacement syslog API"
DESCRIPTION = "The EventLog library aims to be a replacement of the \
              simple syslog() API provided on UNIX systems. The \
              major difference between EventLog and syslog is that \
              EventLog tries to add structure to messages. EventLog \
              provides an interface to build, format and output an \
              event record. The exact format and output method can \
              be customized by the administrator via a configuration \
              file. his package is the runtime part of the library. \
"

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

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

inherit autotools pkgconfig

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

Add HOMEPAGE info into recipe file.

SUMMARY = "Replacement syslog API"
HOMEPAGE = "http://www.balabit.com/network-security/syslog-ng/opensource-logging-system"
DESCRIPTION = "The EventLog library aims to be a replacement of the \
              simple syslog() API provided on UNIX systems. The \
              major difference between EventLog and syslog is that \
              EventLog tries to add structure to messages. EventLog \
              provides an interface to build, format and output an \
              event record. The exact format and output method can \
              be customized by the administrator via a configuration \
              file. his package is the runtime part of the library. \
"

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

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

inherit autotools pkgconfig

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


SUMMARY = "Python module to control the Raspberry Pi Sense HAT used in the Astro Pi mission"
HOMEPAGE = "https://github.com/RPi-Distro/python-sense-hat"
SECTION = "devel/python"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://LICENCE.txt;md5=d80fe312e1ff5fbd97369b093bf21cda"

inherit setuptools3 pypi

PYPI_PACKAGE = "sense-hat"

SRC_URI[md5sum] = "69929250cb72349a8a82edf2584b1d83"
SRC_URI[sha256sum] = "f000998d042d96ed722d459312e1bebd0107f9f3015cd34b3e4fabcab9c800af"

DEPENDS += " \
    jpeg \
    zlib \
    freetype \
    "

RDEPENDS_${PN} += " \
    ${PYTHON_PN}-numpy \
    ${PYTHON_PN}-rtimu \
    ${PYTHON_PN}-imaging \
    "

Switch to using pillow instead of imaging module

SUMMARY = "Python module to control the Raspberry Pi Sense HAT used in the Astro Pi mission"
HOMEPAGE = "https://github.com/RPi-Distro/python-sense-hat"
SECTION = "devel/python"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://LICENCE.txt;md5=d80fe312e1ff5fbd97369b093bf21cda"

inherit setuptools3 pypi

PYPI_PACKAGE = "sense-hat"

SRC_URI[md5sum] = "69929250cb72349a8a82edf2584b1d83"
SRC_URI[sha256sum] = "f000998d042d96ed722d459312e1bebd0107f9f3015cd34b3e4fabcab9c800af"

DEPENDS += " \
    jpeg \
    zlib \
    freetype \
    "

RDEPENDS_${PN} += " \
    ${PYTHON_PN}-numpy \
    ${PYTHON_PN}-rtimu \
    ${PYTHON_PN}-pillow \
    "


DESCRIPTION = "Minimal ptest image for NI Linux Real-Time x64 and ARM targets"
LICENSE = "MIT"

require minimal-nilrt-image.bb

IMAGE_INSTALL += "\
	packagegroup-ni-ptest \
"

IMAGE_ROOTFS_EXTRA_SPACE = "1000000"

rm_feed_configs () {
    ${ROOTFS_PKGMANAGE} -o ${IMAGE_ROOTFS} remove --force-depends distro-feed-configs
}

IMAGE_PREPROCESS_COMMAND =+ "rm_feed_configs; "

Enable .cpio.gz image output for ptest image

DESCRIPTION = "Minimal ptest image for NI Linux Real-Time x64 and ARM targets"
LICENSE = "MIT"

require minimal-nilrt-image.bb

IMAGE_FSTYPES += " cpio.gz"

IMAGE_INSTALL += "\
	packagegroup-ni-ptest \
"

IMAGE_ROOTFS_EXTRA_SPACE = "1000000"

rm_feed_configs () {
    ${ROOTFS_PKGMANAGE} -o ${IMAGE_ROOTFS} remove --force-depends distro-feed-configs
}

IMAGE_PREPROCESS_COMMAND =+ "rm_feed_configs; "


SUMMARY = "log4cplus provides a simple C++ logging API for log management"
SECTION = "libs"
HOMEPAGE = "http://sourceforge.net/projects/log4cplus/"
BUGTRACKER = "http://sourceforge.net/p/log4cplus/bugs/"

LICENSE = "Apache-2.0 BSD-2-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=65053a46f707ee2b93f09ad22f692170"

SRC_URI = "${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}-stable/${PV}/${BP}.tar.gz"
SRC_URI[md5sum] = "104bd6dd07ee71bc52ee9adca4d4d5fc"
SRC_URI[sha256sum] = "96905e763fc6f1e3a854c3d1964c21e877de909bdddd0aed99806c62a68be838"

inherit autotools pkgconfig

BBCLASSEXTEND += "native"

Fix license format QA error

SUMMARY = "log4cplus provides a simple C++ logging API for log management"
SECTION = "libs"
HOMEPAGE = "http://sourceforge.net/projects/log4cplus/"
BUGTRACKER = "http://sourceforge.net/p/log4cplus/bugs/"

LICENSE = "Apache-2.0 & BSD-2-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=65053a46f707ee2b93f09ad22f692170"

SRC_URI = "${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}-stable/${PV}/${BP}.tar.gz"
SRC_URI[md5sum] = "104bd6dd07ee71bc52ee9adca4d4d5fc"
SRC_URI[sha256sum] = "96905e763fc6f1e3a854c3d1964c21e877de909bdddd0aed99806c62a68be838"

inherit autotools pkgconfig

BBCLASSEXTEND += "native"


DESCRIPTION = "Python interface to Bluetooth LE on Linux"
HOMEPAGE = "https://github.com/IanHarvey/bluepy"
SECTION = "devel/python"

DEPENDS = "${PYTHON_PN} glib-2.0"
RDEPENDS_${PN} = "bluez5"

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

inherit setuptools3 pkgconfig

SRC_URI = "git://github.com/IanHarvey/bluepy.git;protocol=https;rev=7ad565231a97c304c0eff45f2649cd005e69db09"
S = "${WORKDIR}/git"

TARGET_CC_ARCH += "${LDFLAGS}"

Set PV and correct syntax for RDEPENDS

DESCRIPTION = "Python interface to Bluetooth LE on Linux"
HOMEPAGE = "https://github.com/IanHarvey/bluepy"
SECTION = "devel/python"
LICENSE = "GPLv2 & PD"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=59e0d45ea684dda215889aa1b5acd001"
DEPENDS = "glib-2.0"
SRCREV = "7ad565231a97c304c0eff45f2649cd005e69db09"
PV = "1.3.0+git${SRCPV}"

SRC_URI = "git://github.com/IanHarvey/bluepy.git;protocol=https"

S = "${WORKDIR}/git"

inherit setuptools3 pkgconfig

RDEPENDS:${PN} = "bluez5"

TARGET_CC_ARCH += "${LDFLAGS}"


SUMMARY = "GUsb is a GObject wrapper for libusb1"
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=2d5025d4aa3495befef8f17206a5b0a1"

DEPENDS = "glib-2.0 libusb"

inherit meson gobject-introspection gtk-doc gettext vala

PACKAGECONFIG ??= "${@bb.utils.contains('GI_DATA_ENABLED', 'True', 'vapi', '', d)}"
PACKAGECONFIG[vapi] = "-Dvapi=true,-Dvapi=false"

SRC_URI = "git://github.com/hughsie/libgusb.git;branch=main;protocol=https"
SRCREV = "db9edbd8b45662d551194a0985173732f8f557a5"
S = "${WORKDIR}/git"

Use the correct args to disable vala support

SUMMARY = "GUsb is a GObject wrapper for libusb1"
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=2d5025d4aa3495befef8f17206a5b0a1"

DEPENDS = "glib-2.0 libusb"

inherit meson gobject-introspection gtk-doc gettext vala

PACKAGECONFIG ??= "${@bb.utils.contains('GI_DATA_ENABLED', 'True', 'vapi', '', d)}"
PACKAGECONFIG[vapi] = "-Dvapi=true,-Dvapi=false"

SRC_URI = "git://github.com/hughsie/libgusb.git;branch=main;protocol=https"
SRCREV = "db9edbd8b45662d551194a0985173732f8f557a5"
S = "${WORKDIR}/git"

PACKAGECONFIG[vala]  = "-Dvapi=true,-Dvapi=false"


require mender.inc

MENDER_BRANCH ?= "master"

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

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

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

# DO NOT change the checksum here without make sure that ALL licenses (including
# dependencies) are included in the LICENSE variable below.
LIC_FILES_CHKSUM = "file://LIC_FILES_CHKSUM.sha256;md5=ec8e15a3ea20289732cca4a7ef643ef8"
LICENSE = "Apache-2.0 & BSD-2-Clause & BSD-3-Clause & MIT & OLDAP-2.8"

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

Update checksum for Mender client to match UBI changes.

require mender.inc

MENDER_BRANCH ?= "master"

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

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

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

# DO NOT change the checksum here without make sure that ALL licenses (including
# dependencies) are included in the LICENSE variable below.
LIC_FILES_CHKSUM = "file://LIC_FILES_CHKSUM.sha256;md5=ab273c82f23a11ee5ac246ad04db8b9e"
LICENSE = "Apache-2.0 & BSD-2-Clause & BSD-3-Clause & MIT & OLDAP-2.8"

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


SUMMARY = "Simple DirectMedia Layer truetype font library"
SECTION = "libs"
DEPENDS = "virtual/libsdl freetype"
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=27818cd7fd83877a8e3ef82b82798ef4"

PR = "r1"

SRC_URI = "http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-${PV}.tar.gz \
           file://configure.patch \
"

S = "${WORKDIR}/SDL_ttf-${PV}"
EXTRA_OECONF += "SDL_CONFIG=${STAGING_BINDIR_CROSS}/sdl-config "

inherit autotools

TARGET_CC_ARCH += "${LDFLAGS}"

do_configure_prepend() {

    MACROS="libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4"

    for i in ${MACROS}; do
     rm acinclude/$i
    done

}

SRC_URI[md5sum] = "814e6e17e8879254208d23b3b7e0354b"
SRC_URI[sha256sum] = "7d38704bcc7c34029c2dcb73b2d4857e8ad76341c6e0faed279eb9f743c66c6a"

Fix build with separate builddir

SUMMARY = "Simple DirectMedia Layer truetype font library"
SECTION = "libs"
DEPENDS = "virtual/libsdl freetype"
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=27818cd7fd83877a8e3ef82b82798ef4"

PR = "r2"

SRC_URI = "http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-${PV}.tar.gz \
           file://configure.patch \
"

S = "${WORKDIR}/SDL_ttf-${PV}"
EXTRA_OECONF += "SDL_CONFIG=${STAGING_BINDIR_CROSS}/sdl-config "

inherit autotools

TARGET_CC_ARCH += "${LDFLAGS}"

do_configure_prepend() {

    # Removing these files fixes a libtool version mismatch.
    MACROS="libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4"

    for i in ${MACROS}; do
      rm ${S}/acinclude/$i
    done

}

SRC_URI[md5sum] = "814e6e17e8879254208d23b3b7e0354b"
SRC_URI[sha256sum] = "7d38704bcc7c34029c2dcb73b2d4857e8ad76341c6e0faed279eb9f743c66c6a"


DESCRIPTION = "Advanced GPIO for the Raspberry Pi. Extends RPi.GPIO with PWM, \
GPIO interrups, TCP socket interrupts, command line tools and more"
HOMEPAGE = "https://github.com/metachris/RPIO"
SECTION = "devel/python"
LICENSE = "LGPLv3+"
LIC_FILES_CHKSUM = "file://README.rst;beginline=41;endline=53;md5=d5d95d7486a4d98c999675c23196b25a"

SRCNAME = "RPIO"

SRC_URI = "http://pypi.python.org/packages/source/R/RPIO/${SRCNAME}-${PV}.tar.gz \
           file://0001-include-sys-types.h-explicitly-for-getting-caddr_t-d.patch \
           "
S = "${WORKDIR}/${SRCNAME}-${PV}"

inherit setuptools

COMPATIBLE_MACHINE = "raspberrypi"

SRC_URI[md5sum] = "cefc45422833dcafcd59b78dffc540f4"
SRC_URI[sha256sum] = "b89f75dec9de354681209ebfaedfe22b7c178aacd91a604a7bd6d92024e4cf7e"

Add RDEPENDS For python-logging & python-threading

DESCRIPTION = "Advanced GPIO for the Raspberry Pi. Extends RPi.GPIO with PWM, \
GPIO interrups, TCP socket interrupts, command line tools and more"
HOMEPAGE = "https://github.com/metachris/RPIO"
SECTION = "devel/python"
LICENSE = "LGPLv3+"
LIC_FILES_CHKSUM = "file://README.rst;beginline=41;endline=53;md5=d5d95d7486a4d98c999675c23196b25a"

SRCNAME = "RPIO"

SRC_URI = "http://pypi.python.org/packages/source/R/RPIO/${SRCNAME}-${PV}.tar.gz \
           file://0001-include-sys-types.h-explicitly-for-getting-caddr_t-d.patch \
           "
S = "${WORKDIR}/${SRCNAME}-${PV}"

inherit setuptools

COMPATIBLE_MACHINE = "raspberrypi"

RDEPENDS_${PN} = "\
    python-logging \
    python-threading \
"

SRC_URI[md5sum] = "cefc45422833dcafcd59b78dffc540f4"
SRC_URI[sha256sum] = "b89f75dec9de354681209ebfaedfe22b7c178aacd91a604a7bd6d92024e4cf7e"


require python-kconfiglib.inc
inherit pypi setuptools3

Consolidate in a single file

DESCRIPTION = "Kconfiglib is a Kconfig implementation in Python"
LICENSE = "ISC"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=712177a72a3937909543eda3ad1bfb7c"

SRC_URI[md5sum] = "4ad68618824d4bad1d1de1d7eb838bba"
SRC_URI[sha256sum] = "bed2cc2216f538eca4255a83a4588d8823563cdd50114f86cf1a2674e602c93c"

inherit pypi setuptools3

BBCLASSEXTEND = "native nativesdk"


SUMMARY = "backport of Python 3.4's enum package"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://enum/LICENSE;md5=0a97a53a514564c20efd7b2e8976c87e"

SRC_URI[md5sum] = "5f13a0841a61f7fc295c514490d120d0"
SRC_URI[sha256sum] = "8ad8c4783bf61ded74527bffb48ed9b54166685e4230386a9ed9b1279e2df5b1"

inherit pypi setuptools

BBCLASSEXTEND = "native nativesdk"

Add HOMEPAGE info into recipe file.

SUMMARY = "backport of Python 3.4's enum package"
HOMEPAGE = "https://bitbucket.org/stoneleaf/enum34"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://enum/LICENSE;md5=0a97a53a514564c20efd7b2e8976c87e"

SRC_URI[md5sum] = "5f13a0841a61f7fc295c514490d120d0"
SRC_URI[sha256sum] = "8ad8c4783bf61ded74527bffb48ed9b54166685e4230386a9ed9b1279e2df5b1"

inherit pypi setuptools

BBCLASSEXTEND = "native nativesdk"


require pango.inc

PR = "${INC_PR}.1"

SRC_URI += "file://CVE-2010-0421.patch"

SRC_URI[archive.md5sum] = "f2eeaf183930e00ed28fca3a6ed1deb0"
SRC_URI[archive.sha256sum] = "adbd11f182ec63939d6364cbb59e86991a48582e7d3641cda80529b40b399559"

Update LICENSE field version to LGPLv2

require pango.inc

LICENSE = "LGPLv2+"

PR = "${INC_PR}.2"

SRC_URI += "file://CVE-2010-0421.patch"

SRC_URI[archive.md5sum] = "f2eeaf183930e00ed28fca3a6ed1deb0"
SRC_URI[archive.sha256sum] = "adbd11f182ec63939d6364cbb59e86991a48582e7d3641cda80529b40b399559"


DESCRIPTION = "A Calculator for Openmoko"
SECTION = "openmoko/tools"
DEPENDS = "libmokoui2"
PV = "0.1.0+svnr${SRCREV}"
PR = "r1"

inherit openmoko2
SRC_URI += " file://openmoko-calculator.png "

do_install_append_openmoko() {
        install -d ${D}/${datadir}/pixmaps/
        install ${WORKDIR}//openmoko-calculator.png ${D}/${datadir}/pixmaps/openmoko-calculator.png
}

PKG_TAGS_${PN} = "group::unknown alias::Om_Calculator"

Add license as band-aid to get it build

DESCRIPTION = "A Calculator for Openmoko"
SECTION = "openmoko/tools"
DEPENDS = "libmokoui2"
PV = "0.1.0+svnr${SRCREV}"
PR = "r1"

inherit openmoko2
LICENSE = "GPL"
SRC_URI += " file://openmoko-calculator.png "

do_install_append_openmoko() {
        install -d ${D}/${datadir}/pixmaps/
        install ${WORKDIR}//openmoko-calculator.png ${D}/${datadir}/pixmaps/openmoko-calculator.png
}

PKG_TAGS_${PN} = "group::unknown alias::Om_Calculator"


DESCRIPTION = "TI High performance libraries"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://${WORKDIR}/git/ti/runtime/hplib/src/COPYING.txt;md5=b7982a377c680ad71ca2fbb735982462"

DEPENDS = "common-csl-ip rm-lld qmss-lld sa-lld pktlib"

include hplib.inc

CHOICELIST = "yes no"

S = "${WORKDIR}/git/ti/runtime/hplib"

EXTRA_OEMAKE += "-f makefile_armv7 PDK_INSTALL_PATH=${STAGING_INCDIR}"

do_compile () {
	for device in ${DEVICELIST}
	do
		for choice in ${CHOICELIST}
		do
			oe_runmake lib HPLIB_SRC_DIR=${S} USEDYNAMIC_LIB=$choice DEVICE="$device"
		done
	done
}

do_install () {
	for device in ${DEVICELIST}
	do
		oe_runmake install INSTALL_INC_BASE_DIR=${D}${includedir} INSTALL_LIB_BASE_DIR=${D}${libdir} INSTALL_BIN_BASE_DIR=${D}${bindir} DEVICE="$device"
	done
}

Add Run time dependency on hplib-mod

DESCRIPTION = "TI High performance libraries"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://${WORKDIR}/git/ti/runtime/hplib/src/COPYING.txt;md5=b7982a377c680ad71ca2fbb735982462"

DEPENDS = "common-csl-ip rm-lld qmss-lld sa-lld pktlib"
RDEPENDS_${PN} = "hplib-mod"

include hplib.inc

CHOICELIST = "yes no"

S = "${WORKDIR}/git/ti/runtime/hplib"

EXTRA_OEMAKE += "-f makefile_armv7 PDK_INSTALL_PATH=${STAGING_INCDIR}"

do_compile () {
	for device in ${DEVICELIST}
	do
		for choice in ${CHOICELIST}
		do
			oe_runmake lib HPLIB_SRC_DIR=${S} USEDYNAMIC_LIB=$choice DEVICE="$device"
		done
	done
}

do_install () {
	for device in ${DEVICELIST}
	do
		oe_runmake install INSTALL_INC_BASE_DIR=${D}${includedir} INSTALL_LIB_BASE_DIR=${D}${libdir} INSTALL_BIN_BASE_DIR=${D}${bindir} DEVICE="$device"
	done
}


COMPATIBLE_MACHINE = "raspberrypi"

require linux.inc

DESCRIPTION = "Linux kernel for the RaspberryPi board"

PR = "r1"

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

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

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

S = "${WORKDIR}/git"

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

KERNEL_DEFCONFIG = "bcmrpi_defconfig"

PARALLEL_MAKEINST = ""

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

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

Update kernel to latest upstream

COMPATIBLE_MACHINE = "raspberrypi"

require linux.inc

DESCRIPTION = "Linux kernel for the RaspberryPi board"

PR = "r2"

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

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

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

S = "${WORKDIR}/git"

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

KERNEL_DEFCONFIG = "bcmrpi_defconfig"

PARALLEL_MAKEINST = ""

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

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


DESCRIPTION = "Extended task to get System Test specific apps"
LICENSE = "MIT"
PR = "r8"

inherit packagegroup

PACKAGE_ARCH = "${MACHINE_ARCH}"

ARAGO_TEST = "\
    bonnie++ \
    hdparm \
    iozone3 \
    iperf \
    lmbench \
    rt-tests \
    evtest \
    bc \
    memtester \
    "

ARAGO_TI_TEST = "\
    ltp-ddt \
    "

ARAGO_TI_TEST_append_omap-a15 = " \
    omapconf \
    libdrm-tests \
    "

RDEPENDS_${PN} = "\
    ${ARAGO_TEST} \
    ${ARAGO_TI_TEST} \
    "

Add input-utils to test packages

DESCRIPTION = "Extended task to get System Test specific apps"
LICENSE = "MIT"
PR = "r9"

inherit packagegroup

PACKAGE_ARCH = "${MACHINE_ARCH}"

ARAGO_TEST = "\
    bonnie++ \
    hdparm \
    iozone3 \
    iperf \
    lmbench \
    rt-tests \
    evtest \
    bc \
    memtester \
    "

ARAGO_TI_TEST = "\
    ltp-ddt \
    input-utils \
    "

ARAGO_TI_TEST_append_omap-a15 = " \
    omapconf \
    libdrm-tests \
    "

RDEPENDS_${PN} = "\
    ${ARAGO_TEST} \
    ${ARAGO_TI_TEST} \
    "


SUMMMARY = "PLOS Base System"
LICENSE = "MIT"
PR = "r1"

inherit packagegroup

# For backwards compatibility after rename
RPROVIDES_packagegroup-base-plos = "packagegroup-plos-base"
RREPLACES_packagegroup-base-plos = "packagegroup-plos-base"
RCONFLICTS_packagegroup-base-plos = "packagegroup-plos-base"

RDEPENDS_${PN} = " \
    formfactor \
    timestamp-service \
    matchbox-wm \
    plos-x-session \
    pointercal-xinput \
    apache2 \
    webmin \
    firefox \
"

Remove match-box and firefox packages

SUMMMARY = "PLOS Base System"
LICENSE = "MIT"
PR = "r1"

inherit packagegroup

# For backwards compatibility after rename
RPROVIDES_packagegroup-base-plos = "packagegroup-plos-base"
RREPLACES_packagegroup-base-plos = "packagegroup-plos-base"
RCONFLICTS_packagegroup-base-plos = "packagegroup-plos-base"

RDEPENDS_${PN} = " \
    formfactor \
    timestamp-service \
    plos-x-session \
    pointercal-xinput \
    apache2 \
    webmin \
"


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

LICENSE = "MIT"

inherit packagegroup

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

PROVIDES = "${PACKAGES}"

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

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

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

Add libiio and gr-iio to target

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

LICENSE = "MIT"

inherit packagegroup

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

PROVIDES = "${PACKAGES}"

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

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

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


DESCRIPTION = "Packages for Microsoft Azure IoT."
LICENSE = "MIT"

inherit packagegroup

PR = "r0"

RDEPENDS_${PN} = "\
	azure-iot-sdk-c \
	azure-iot-sdk-c-dev \
	python-azure-iot-sdk \
	node-red-contrib-azureiothubnode \
	node-iothub-explorer \
	azure-iot-gateway-sdk \
	azure-iot-gateway-sdk-dev \
	azure-iot-gateway-sdk-modules \
	azure-iot-gateway-sdk-samples \
	python-azure-cli \
"

PACKAGES = "${PN}"

PACKAGECONFIG ??= "java"
PACKAGECONFIG[java] = "\
	, \
	, \
	, \
	azure-iot-sdk-java \
	azure-iot-gateway-sdk-java \
	azure-iot-device-sdk-java \
"

Add missing package to package group

DESCRIPTION = "Packages for Microsoft Azure IoT."
LICENSE = "MIT"

inherit packagegroup

PR = "r1"

RDEPENDS_${PN} = "\
	azure-iot-sdk-c \
	azure-iot-sdk-c-dev \
	python-azure-iot-sdk \
	node-red-contrib-azureiothubnode \
	node-iothub-explorer \
	azure-iot-gateway-sdk \
	azure-iot-gateway-sdk-dev \
	azure-iot-gateway-sdk-modules \
	azure-iot-gateway-sdk-samples \
	python-azure-cli \
"

PACKAGES = "${PN}"

PACKAGECONFIG ??= "java"
PACKAGECONFIG[java] = "\
	, \
	, \
	, \
	azure-iot-sdk-java \
	azure-iot-gateway-sdk-java \
	azure-iot-device-sdk-java \
	azure-iot-device-sdk-java-samples \
"


DESCRIPTION = "A library for replaying C64 SID music"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "GPL"
PR = "r1"

SRC_URI = "\
  ftp://ftp.uni-frankfurt.de/pub/Mirrors2/gentoo.org/distfiles/libsidplay-1.36.59.tgz;name=archive \
  http://ftp.debian.org/debian/pool/main/libs/libsidplay/libsidplay_1.36.59-5.diff.gz;name=patch \
"

inherit autotools

SRC_URI[archive.md5sum] = "37c51ba4bd57164b1b0bb7b43b9adece"
SRC_URI[archive.sha256sum] = "3da9b38d4eb5bf9e936b9604ba92da0594ef38047d50cf806a8e11c400008024"
SRC_URI[patch.md5sum] = "c2945a19ebfc94cb3a04b394ba2e07ed"
SRC_URI[patch.sha256sum] = "a6b13f25e5e6b91ad490fe9e8afac22c484f372e4e245d397a813ea6563abdb3"

Update LICENSE field version to GPLv2

DESCRIPTION = "A library for replaying C64 SID music"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "GPLv2"
PR = "r2"

SRC_URI = "\
  ftp://ftp.uni-frankfurt.de/pub/Mirrors2/gentoo.org/distfiles/libsidplay-1.36.59.tgz;name=archive \
  http://ftp.debian.org/debian/pool/main/libs/libsidplay/libsidplay_1.36.59-5.diff.gz;name=patch \
"

inherit autotools

SRC_URI[archive.md5sum] = "37c51ba4bd57164b1b0bb7b43b9adece"
SRC_URI[archive.sha256sum] = "3da9b38d4eb5bf9e936b9604ba92da0594ef38047d50cf806a8e11c400008024"
SRC_URI[patch.md5sum] = "c2945a19ebfc94cb3a04b394ba2e07ed"
SRC_URI[patch.sha256sum] = "a6b13f25e5e6b91ad490fe9e8afac22c484f372e4e245d397a813ea6563abdb3"


SUMMARY = "MagOS image for development"

require magos-image-prod.bb

IMAGE_FEATURES += "dev-pkgs tools-debug tools-profile tools-testapps debug-tweaks"

IMAGE_INSTALL += "kernel-dev packagegroup-magos-buildtools"

Add gstreamer to the devel image

SUMMARY = "MagOS image for development"

require magos-image-prod.bb

IMAGE_FEATURES += "dev-pkgs tools-debug tools-profile tools-testapps debug-tweaks"

IMAGE_INSTALL += "kernel-dev \
    packagegroup-magos-buildtools \
    packagegroup-fsl-gstreamer \
    packagegroup-fsl-gstreamer-full \
    packagegroup-fslc-gstreamer1.0-full \
    gstreamer1.0-rtsp-server \
"


SUMMARY = "Python Library for Tom's Obvious, Minimal Language"
HOMEPAGE = "https://github.com/uiri/toml"
LICENSE = "MIT"
SECTION = "devel/python"
LIC_FILES_CHKSUM = "file://LICENSE;md5=6d6012eea477117abf51c31262a152f8"

SRC_URI[md5sum] = "63fffbe2d632865ec29cd69bfdf36682"
SRC_URI[sha256sum] = "229f81c57791a41d65e399fc06bf0848bab550a9dfd5ed66df18ce5f05e73d5c"

inherit pypi setuptools3

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

Extend with native build variants

SUMMARY = "Python Library for Tom's Obvious, Minimal Language"
HOMEPAGE = "https://github.com/uiri/toml"
LICENSE = "MIT"
SECTION = "devel/python"
LIC_FILES_CHKSUM = "file://LICENSE;md5=6d6012eea477117abf51c31262a152f8"

SRC_URI[md5sum] = "63fffbe2d632865ec29cd69bfdf36682"
SRC_URI[sha256sum] = "229f81c57791a41d65e399fc06bf0848bab550a9dfd5ed66df18ce5f05e73d5c"

inherit pypi setuptools3

BBCLASSEXTEND = "native nativesdk"

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


require atlas-soc-console-image.bb

IMAGE_INSTALL += " \
	angstrom-gdm-xfce-hack \
	packagegroup-xfce-base \
	xterm \
	angstrom-x11vnc-xinit \
	x11vnc \
	xserver-xorg-xvfb \
	xkbcomp \
        packagegroup-core-x11-xserver \
        xserver-nodm-init \
        xserver-common \
        gimp abiword gedit midori epiphany \
        imagemagick \
"

export IMAGE_BASENAME = "atlas-soc-image"

Add x11vnc systemd initscript to image

require atlas-soc-console-image.bb

IMAGE_INSTALL += " \
	angstrom-gdm-xfce-hack \
	packagegroup-xfce-base \
	xterm \
	angstrom-x11vnc-xinit \
	x11vnc \
	xserver-xorg-xvfb \
	xkbcomp \
        packagegroup-core-x11-xserver \
        xserver-nodm-init \
        xserver-common \
        gimp abiword gedit midori epiphany \
        imagemagick \
	atlas-soc-x11vnc \
"

export IMAGE_BASENAME = "atlas-soc-image"


#
#   Copyright (C) 2015 Pelagicore AB

DESCRIPTION = "Lightweight media scanner meant to be used in not-so-powerful devices, like embedded systems or old machines."
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343"
HOMEPAGE = "https://github.com/profusion/lightmediascanner"

inherit autotools pkgconfig gettext

DEPENDS = "sqlite3"

PR = "r0"

EXTRA_OECONF += "--program-prefix=lms-"

SRCREV = "454be49d1fd22c82d78bddd91f61e478c50b8aa0"
SRC_URI = "git://github.com/profusion/lightmediascanner.git \
	   file://0001-Install-binaries-in-bin-directory.patch"

S = "${WORKDIR}/git"

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

Package .la files to fix build failure

#
#   Copyright (C) 2015 Pelagicore AB

DESCRIPTION = "Lightweight media scanner meant to be used in not-so-powerful devices, like embedded systems or old machines."
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343"
HOMEPAGE = "https://github.com/profusion/lightmediascanner"

inherit autotools pkgconfig gettext

DEPENDS = "sqlite3"

PR = "r0"

EXTRA_OECONF += "--program-prefix=lms-"

SRCREV = "454be49d1fd22c82d78bddd91f61e478c50b8aa0"
SRC_URI = "git://github.com/profusion/lightmediascanner.git \
	   file://0001-Install-binaries-in-bin-directory.patch"

S = "${WORKDIR}/git"

FILES_${PN} += "${libdir}/lightmediascanner/plugins/*.so"
FILES_${PN}-dev += "${libdir}/lightmediascanner/plugins/*.la"


HOMEPAGE = "https://www.balena.io/"
SUMMARY = "Utility to mount container filesystems"
DESCRIPTION = "Utility to mount container filesystems"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"

inherit go

RDEPENDS_${PN} = "util-linux"

GO_IMPORT = "github.com/balena-os/mobynit"
SRC_URI = "git://${GO_IMPORT};nobranch=1"
SRCREV="e6092f412d9187efd5bc0e94c9023a9f37f747d9"

S = "${WORKDIR}/${BPN}/src/${GO_IMPORT}"

do_compile() {
    cd ${S}
    unset GO_LDFLAGS
    unset GOPATH GOROOT
    export GOCACHE="${B}/.cache"
    oe_runmake
}

do_install() {
	install -d ${D}/boot
        install -m 0755 ${S}/mobynit ${D}/boot/init
}

FILES_${PN} += " \
    /boot/init \
"

INHIBIT_PACKAGE_STRIP = "1"
INSANE_SKIP_${PN} += "already-stripped"

Update to correctly mount data partition

HOMEPAGE = "https://www.balena.io/"
SUMMARY = "Utility to mount container filesystems"
DESCRIPTION = "Utility to mount container filesystems"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"

inherit go

RDEPENDS_${PN} = "util-linux"

GO_IMPORT = "github.com/balena-os/mobynit"
SRC_URI = "git://${GO_IMPORT};nobranch=1"
SRCREV="021887a5619405604eb0ef6ef981ea4969c69616"

S = "${WORKDIR}/${BPN}/src/${GO_IMPORT}"

do_compile() {
    cd ${S}
    unset GO_LDFLAGS
    unset GOPATH GOROOT
    export GOCACHE="${B}/.cache"
    oe_runmake
}

do_install() {
	install -d ${D}/boot
        install -m 0755 ${S}/mobynit ${D}/boot/init
}

FILES_${PN} += " \
    /boot/init \
"

INHIBIT_PACKAGE_STRIP = "1"
INSANE_SKIP_${PN} += "already-stripped"


# Copyright (C) 2015 Igor Santos <igor.santos@aker.com.br>
# Released under the MIT license (see COPYING.MIT for the terms)

SUMMARY = "Universal Ctags"
DESCRIPTION = "Universal Ctags is a multilanguage reimplementation of the \
               Unix ctags utility. Ctags generates an index of source code \
               definitions which is used by numerous editors and utilities \
               to instantly locate the definitions."

HOMEPAGE = "https://ctags.io/"

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"

inherit autotools-brokensep pkgconfig manpages

DEPENDS += "libxml2 jansson libyaml python3-docutils-native"
SRCREV = "6df08b82d4845d1b9420d9268f24d5db16ee4480"
SRC_URI = "git://github.com/universal-ctags/ctags"

S = "${WORKDIR}/git"

#do_install() {
#    install -Dm 755 ${B}/ctags ${D}${bindir}/ctags
#}

Use PACKAGECONFIG for build options

# Copyright (C) 2015 Igor Santos <igor.santos@aker.com.br>
# Released under the MIT license (see COPYING.MIT for the terms)

SUMMARY = "Universal Ctags"
DESCRIPTION = "Universal Ctags is a multilanguage reimplementation of the \
               Unix ctags utility. Ctags generates an index of source code \
               definitions which is used by numerous editors and utilities \
               to instantly locate the definitions."

HOMEPAGE = "https://ctags.io/"

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"

inherit autotools-brokensep pkgconfig manpages

SRCREV = "6df08b82d4845d1b9420d9268f24d5db16ee4480"
SRC_URI = "git://github.com/universal-ctags/ctags"

S = "${WORKDIR}/git"

PACKAGECONFIG ??= " \
    readcmd \
    xml \
    json \
    yaml \
"
PACKAGECONFIG[readcmd] = "--enable-readcmd,--disable-readcmd"
PACKAGECONFIG[etags] = "--enable-etags,--disable-etags"
PACKAGECONFIG[xml] = "--enable-xml,--disable-xml,libxml2"
PACKAGECONFIG[json] = "--enable-json,--disable-json,jansson"
PACKAGECONFIG[seccomp] = "--enable-seccomp,--disable-seccomp,libseccomp"
PACKAGECONFIG[yaml] = "--enable-yaml,--disable-yaml,libyaml"
PACKAGECONFIG[manpages] = ",,python3-docutils-native"


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

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

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

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

S = "${WORKDIR}/git"

inherit setuptools

Add missing dep on python-six-native

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

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

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

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

S = "${WORKDIR}/git"

inherit setuptools


DESCRIPTION = "Required packges for running jupyter notebook with python3 "

inherit packagegroup

START_JUPYTER_PKG ?= "start-jupyter"
#START_JUPYTER_PKG_k26 = "start-jupyterlab"

JUPYTER_NOTEBOOK_PACKAGES = " \
	packagegroup-python3-jupyter \
	python3-core \
	python3-ipywidgets \
	python3-pydot \
	liberation-fonts \
	ttf-bitstream-vera \
	${START_JUPYTER_PKG} \
	"

RDEPENDS_${PN} = "${JUPYTER_NOTEBOOK_PACKAGES}"

Revert "Revert "Revert "**TEMPORARY** Disable start-jupyterlab"""

DESCRIPTION = "Required packges for running jupyter notebook with python3 "

inherit packagegroup

START_JUPYTER_PKG ?= "start-jupyter"
START_JUPYTER_PKG_k26 = "start-jupyterlab"

JUPYTER_NOTEBOOK_PACKAGES = " \
	packagegroup-python3-jupyter \
	python3-core \
	python3-ipywidgets \
	python3-pydot \
	liberation-fonts \
	ttf-bitstream-vera \
	${START_JUPYTER_PKG} \
	"

RDEPENDS_${PN} = "${JUPYTER_NOTEBOOK_PACKAGES}"


SUMMARY = "Kernel drivers for the IMG VXE384 MP2 and D5520 encoder/decoder found in TI SoCs"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://common/dq.c;beginline=1;endline=16;md5=e015e28ff5e88576dab9fdf641e3dbfe"

inherit module

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

COMPATIBLE_MACHINE = "j7-evm"

SRCREV = "1f85a7fb3b78c82b44038aaf29bfdb229aeb6bc8"

EXTRA_OEMAKE = "KPATH=${STAGING_KERNEL_DIR} KCONF=${STAGING_KERNEL_BUILDDIR}"
TARGET_CC_ARCH += "${LDFLAGS}"

BRANCH = "master"
SRC_URI = "git://git.ti.com/jacinto7_multimedia/ti-img-encode-decode.git;protocol=git;branch=${BRANCH}"

S = "${WORKDIR}/git"

do_install() {
	install -d ${D}/${base_libdir}/modules/${KERNEL_VERSION}/extra
	install -m 644 ${S}/vxd-dec.ko ${D}/${base_libdir}/modules/${KERNEL_VERSION}/extra
}

Update SRCREV and build encoder

SUMMARY = "Kernel drivers for the IMG VXE384 MP2 and D5520 encoder/decoder found in TI SoCs"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://driver/common/dq.c;beginline=1;endline=16;md5=e015e28ff5e88576dab9fdf641e3dbfe"

inherit module

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

COMPATIBLE_MACHINE = "j7-evm"

SRCREV = "c7657d2ead0ca211ab307dd2f403621de5b3e80d"

EXTRA_OEMAKE = "KPATH=${STAGING_KERNEL_DIR} KCONF=${STAGING_KERNEL_BUILDDIR}"
TARGET_CC_ARCH += "${LDFLAGS}"

BRANCH = "master"
SRC_URI = "git://git.ti.com/jacinto7_multimedia/ti-img-encode-decode.git;protocol=git;branch=${BRANCH}"

S = "${WORKDIR}/git"

do_compile() {
	oe_runmake all -C ${S}/linux/decoder
	oe_runmake all -C ${S}/linux/encoder
}

do_install() {
	install -d ${D}/${base_libdir}/modules/${KERNEL_VERSION}/extra
	install -m 644 ${S}/linux/decoder/vxd-dec.ko ${D}/${base_libdir}/modules/${KERNEL_VERSION}/extra
	install -m 644 ${S}/linux/encoder/vxe-enc.ko ${D}/${base_libdir}/modules/${KERNEL_VERSION}/extra
}


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

IMAGE_INSTALL += " \
	kernel-modules \
	kernel-dev \
	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 \
	atlas-soc-fftdriver-mod \
	atlas-soc-fftsw-apps \
	atlas-soc-fftsw-apps-src \
	atlas-soc-gpio-apps \
	atlas-soc-adxl-apps \
	gnuplot \
	cmake \
"
export IMAGE_BASENAME = "atlas-soc-console-image"

#overload timestamp function in image.bbclass

rootfs_update_timestamp () {
        date -u +%4Y%2m%2d%2H%2M >${IMAGE_ROOTFS}/etc/timestamp
}

EXPORT_FUNCTIONS rootfs_update_timestamp

Add one day to timestamp

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

IMAGE_INSTALL += " \
	kernel-modules \
	kernel-dev \
	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 \
	atlas-soc-fftdriver-mod \
	atlas-soc-fftsw-apps \
	atlas-soc-fftsw-apps-src \
	atlas-soc-gpio-apps \
	atlas-soc-adxl-apps \
	gnuplot \
	cmake \
"
export IMAGE_BASENAME = "atlas-soc-console-image"

#overload timestamp function in image.bbclass

rootfs_update_timestamp () {
        date -u +%4Y%2m%2d%2H%2M -d "+1 day">${IMAGE_ROOTFS}/etc/timestamp
}

EXPORT_FUNCTIONS rootfs_update_timestamp


require xorg-app-common.inc
DESCRIPTION = "X Window System initializer"
DEPENDS += "util-linux-ng"
PE = "1"
PR = "${INC_PR}.0"

SRC_URI[archive.md5sum] = "bc4e8b7d1919597cc37a0d24aa149dda"
SRC_URI[archive.sha256sum] = "ba76e36e1a42a7cf76505b7e6fc4777f5d14f45ddff74341abfb7dd10d5fe04c"

FILES_${PN} += "${libdir}X11/xinit"

Fix mcookie / util-linux-ng dependency

require xorg-app-common.inc
DESCRIPTION = "X Window System initializer"
RDEPENDS_${PN} += "util-linux-ng"
PE = "1"
PR = "${INC_PR}.1"

EXTRA_OECONF = "ac_cv_path_MCOOKIE=${bindir}/mcookie"
SRC_URI[archive.md5sum] = "bc4e8b7d1919597cc37a0d24aa149dda"
SRC_URI[archive.sha256sum] = "ba76e36e1a42a7cf76505b7e6fc4777f5d14f45ddff74341abfb7dd10d5fe04c"

FILES_${PN} += "${libdir}X11/xinit"


DESCRIPTION = "Small utility to restart a crashing application"
LICENSE = "GPL"

SRC_URI="svn://svn.openmoko.org/developers/zecke/;module=app_restarter;proto=http"
S = "${WORKDIR}/app_restarter"
PV = "1.0+svn${SRCREV}"
PE = "1"

inherit pkgconfig

do_compile() {
    cd ${S}
    oe_runmake
}

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

Add X11 to the dependencies.

DESCRIPTION = "Small utility to restart a crashing application"
LICENSE = "GPL"
DEPENDS = "virtual/libx11"

SRC_URI="svn://svn.openmoko.org/developers/zecke/;module=app_restarter;proto=http"
S = "${WORKDIR}/app_restarter"
PV = "1.0+svn${SRCREV}"
PE = "1"

inherit pkgconfig

do_compile() {
    cd ${S}
    oe_runmake
}

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


SUMMARY  = "Host API C++ bindings"
DESCRIPTION = "OpenCL compute API headers C++ bindings from Khronos Group"
LICENSE  = "Khronos"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=7e4a01f0c56b39419aa287361a82df00"
SECTION = "base"

SRC_URI = "git://github.com/KhronosGroup/OpenCL-CLHPP.git;protocol=https"

PV = "2.0.10+git${SRCPV}"
SRCREV = "acd6972bc65845aa28bd9f670dec84cbf8b760f3"

S = "${WORKDIR}/git"

do_configure () {
:
}

# Only cl2.hpp is necessary.
# Base on the repo, Directly input_cl2.hpp copied as cl2.hpp
do_compile () {
:
}

do_install () {
	install -d ${D}${includedir}/CL/
	install -m 0644 ${S}/input_cl2.hpp ${D}${includedir}/CL/cl2.hpp
}

Allow empty packages to be built

SUMMARY  = "Host API C++ bindings"
DESCRIPTION = "OpenCL compute API headers C++ bindings from Khronos Group"
LICENSE  = "Khronos"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=7e4a01f0c56b39419aa287361a82df00"
SECTION = "base"

SRC_URI = "git://github.com/KhronosGroup/OpenCL-CLHPP.git;protocol=https"

PV = "2.0.10+git${SRCPV}"
SRCREV = "acd6972bc65845aa28bd9f670dec84cbf8b760f3"

S = "${WORKDIR}/git"

do_configure () {
:
}

# Only cl2.hpp is necessary.
# Base on the repo, Directly input_cl2.hpp copied as cl2.hpp
do_compile () {
:
}

do_install () {
	install -d ${D}${includedir}/CL/
	install -m 0644 ${S}/input_cl2.hpp ${D}${includedir}/CL/cl2.hpp
}

ALLOW_EMPTY_${PN} = "1"


inherit esw deploy

ESW_COMPONENT_SRC = "/lib/sw_apps/zynqmp_pmufw/src"

DEPENDS += " xilstandalone xilfpga xilskey"

do_install() {
    :
}

PMU_FIRMWARE_BASE_NAME ?= "${BPN}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}"
PMU_FIRMWARE_BASE_NAME[vardepsexclude] = "DATETIME"

do_deploy() {
    install -Dm 0644 ${WORKDIR}/build/pmufw ${DEPLOYDIR}/${PMU_FIRMWARE_BASE_NAME}.elf
    ln -sf ${PMU_FIRMWARE_BASE_NAME}.elf ${DEPLOYDIR}/${BPN}-${MACHINE}.elf
    ${OBJCOPY} -O binary ${WORKDIR}/build/pmufw ${WORKDIR}/build/pmufw.bin
    install -m 0644 ${WORKDIR}/build/pmufw.bin ${DEPLOYDIR}/${PMU_FIRMWARE_BASE_NAME}.bin
    ln -sf ${PMU_FIRMWARE_BASE_NAME}.bin ${DEPLOYDIR}/${BPN}-${MACHINE}.bin
}

addtask deploy before do_build after do_install

Install and hence package and strip the pmufw elf file

inherit esw deploy

ESW_COMPONENT_SRC = "/lib/sw_apps/zynqmp_pmufw/src"

DEPENDS += " xilstandalone xilfpga xilskey"

do_install() {
    install -d ${D}/${base_libdir}/firmware
    # Note that we have to make the ELF executable for it to be stripped
    install -m 0755  ${WORKDIR}/build/pmufw* ${D}/${base_libdir}/firmware
}

PMU_FIRMWARE_BASE_NAME ?= "${BPN}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}"
PMU_FIRMWARE_BASE_NAME[vardepsexclude] = "DATETIME"

do_deploy() {

    # Not a huge fan of deploying from package but we want the stripped elf to be deployed.
    # We could, technically create another task that runs after do_install that strips it but it
    # seems unnecessarily convoluted, unless there's an objection on performing do_install we
    # should do it this way since it easier to keep up with changes in oe-core.

    install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/pmufw ${DEPLOYDIR}/${PMU_FIRMWARE_BASE_NAME}.elf
    ln -sf ${PMU_FIRMWARE_BASE_NAME}.elf ${DEPLOYDIR}/${BPN}-${MACHINE}.elf
    ${OBJCOPY} -O binary ${WORKDIR}/package/${base_libdir}/firmware/pmufw ${WORKDIR}/package/${base_libdir}/firmware/pmufw.bin
    install -m 0644 ${WORKDIR}/package/${base_libdir}/firmware/pmufw.bin ${DEPLOYDIR}/${PMU_FIRMWARE_BASE_NAME}.bin
    ln -sf ${PMU_FIRMWARE_BASE_NAME}.bin ${DEPLOYDIR}/${BPN}-${MACHINE}.bin
}

addtask deploy before do_build after do_install

FILES_${PN} = "${base_libdir}/firmware/pmufw*"


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

IMAGE_FEATURES += "ssh-server-dropbear splash package-management"
VIDEO_CAMERA = "1"
IMAGE_INSTALL_append = "linux-firmware-ath9k linux-firmware-ralink linux-firmware-rtl8192cu wireless-tools parted lvm2 openssl dosfstools e2fsprogs connman connman-client btrfs-tools apt docker-arm rpi-init tar supervisor-init-resin-dev"
IMAGE_FSTYPES_forcevariable = "resin-noobs-dev"

Include nano in the default developer build for Page

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

IMAGE_FEATURES += "ssh-server-dropbear splash package-management"
VIDEO_CAMERA = "1"
IMAGE_INSTALL_append = "linux-firmware-ath9k linux-firmware-ralink linux-firmware-rtl8192cu wireless-tools parted lvm2 openssl dosfstools e2fsprogs connman connman-client btrfs-tools apt docker-arm rpi-init tar nano supervisor-init-resin-dev"
IMAGE_FSTYPES_forcevariable = "resin-noobs-dev"


DESCRIPTION = "Task to install additional scripts and applications into the SDK"
LICENSE = "MIT"
PR = "r14"

inherit packagegroup

PACKAGE_ARCH = "${MACHINE_ARCH}"

# Choose the kernel and u-boot recipe sources to use

U-BOOT_SRC = "${PREFERRED_PROVIDER_virtual/bootloader}-src"
KERNEL_SRC = "${PREFERRED_PROVIDER_virtual/kernel}-src"

TOOLS = "pinmux-utility"
TOOLS_omap-a15 = ""
TOOLS_ti43x = ""
TOOLS_append_am37x-evm = " flash-utility"
TOOLS_append_am3517-evm = " flash-utility"

EXTRA_FILES = ""
EXTRA_FILES_omap-a15 = "tisdk-readme tisdk-uenv"
EXTRA_FILES_ti33x = "${@base_contains('ARAGO_BRAND','amsdk','','tisdk-readme tisdk-uenv',d)}"
EXTRA_FILES_ti43x = "${@base_contains('ARAGO_BRAND','amsdk','','tisdk-readme tisdk-uenv',d)}"

RDEPENDS_${PN} = "\
    ${TOOLS} \
    ti-tisdk-setup \
    ${EXTRA_FILES} \
    board-port-labs-u-boot-src \
    board-port-labs-linux-src \
    ti-tisdk-makefile \
    ${U-BOOT_SRC} \
    ${KERNEL_SRC} \
    tisdk-install \
"

Add oe-layersetup to the SDK

DESCRIPTION = "Task to install additional scripts and applications into the SDK"
LICENSE = "MIT"
PR = "r15"

inherit packagegroup

PACKAGE_ARCH = "${MACHINE_ARCH}"

# Choose the kernel and u-boot recipe sources to use

U-BOOT_SRC = "${PREFERRED_PROVIDER_virtual/bootloader}-src"
KERNEL_SRC = "${PREFERRED_PROVIDER_virtual/kernel}-src"

TOOLS = "pinmux-utility"
TOOLS_omap-a15 = ""
TOOLS_ti43x = ""
TOOLS_append_am37x-evm = " flash-utility"
TOOLS_append_am3517-evm = " flash-utility"

EXTRA_FILES = ""
EXTRA_FILES_omap-a15 = "tisdk-readme tisdk-uenv"
EXTRA_FILES_ti33x = "${@base_contains('ARAGO_BRAND','amsdk','','tisdk-readme tisdk-uenv',d)}"
EXTRA_FILES_ti43x = "${@base_contains('ARAGO_BRAND','amsdk','','tisdk-readme tisdk-uenv',d)}"

RDEPENDS_${PN} = "\
    ${TOOLS} \
    ti-tisdk-setup \
    ${EXTRA_FILES} \
    board-port-labs-u-boot-src \
    board-port-labs-linux-src \
    oe-layersetup-src \
    ti-tisdk-makefile \
    ${U-BOOT_SRC} \
    ${KERNEL_SRC} \
    tisdk-install \
"


SUMMARY = "GENIVI AudioManager Demo"
DESCRIPTION = "Demo of the GENIVI AudioManager"

LICENSE = "MPLv2"
LIC_FILES_CHKSUM = "file://AudioManagerPoC/README;md5=be0fe05c89ff7a2632eb080f72e8c129"

DEPENDS = "qtbase qtdeclarative qtwebkit"

BRANCH = "Intreprid_stable_branch"
VERSION = "6.1"

SRC_URI = "\
    git://github.com/GENIVI/AudioManager.git;branch=${BRANCH};tag=${VERSION};protocol=http \
    file://0001-AudioManagerPoC-GENIVI-Alliance-Audio-Manager-proof-.patch \
    file://0002-AudioManagerPoC-add-support-for-Wayland-ivi-shell.patch \
    file://AudioManager_PoC.service \
    "

S = "${WORKDIR}/git"

PATCHTOOL = "git"

QMAKE_PROFILES = "${S}/AudioManagerPoC"

inherit qmake5

do_install_append() {
    mkdir -p ${D}/etc/systemd/user
    cp ${WORKDIR}/AudioManager_PoC.service ${D}/etc/systemd/user
}

FILES_${PN} += "/opt/audiomanager-poc/*"
FILES_${PN}-dbg += "/usr/bin/am-poc/.debug/*"

Use SRCREV instead of tag tracking

SUMMARY = "GENIVI AudioManager Demo"
DESCRIPTION = "Demo of the GENIVI AudioManager"

LICENSE = "MPLv2"
LIC_FILES_CHKSUM = "file://AudioManagerPoC/README;md5=be0fe05c89ff7a2632eb080f72e8c129"

DEPENDS = "qtbase qtdeclarative qtwebkit"

SRCREV = "daf851ee7a41d1b0572c0c95e15f61e427ce97f1"

SRC_URI = "\
    git://github.com/GENIVI/AudioManager.git;protocol=http \
    file://0001-AudioManagerPoC-GENIVI-Alliance-Audio-Manager-proof-.patch \
    file://0002-AudioManagerPoC-add-support-for-Wayland-ivi-shell.patch \
    file://AudioManager_PoC.service \
    "

S = "${WORKDIR}/git"

PATCHTOOL = "git"

QMAKE_PROFILES = "${S}/AudioManagerPoC"

inherit qmake5

do_install_append() {
    mkdir -p ${D}/etc/systemd/user
    cp ${WORKDIR}/AudioManager_PoC.service ${D}/etc/systemd/user
}

FILES_${PN} += "/opt/audiomanager-poc/*"
FILES_${PN}-dbg += "/usr/bin/am-poc/.debug/*"


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

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

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

do_configure_prepend() {
	find -type f | xargs sed -i 's:share/icons/%s/48x48/apps:share/pixmaps:'
	find -type f | xargs sed -i 's:share/icons/hicolor/48x48/apps:share/pixmaps:'
}

inherit autotools

Update license, package still not working correctly

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

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

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

do_configure_prepend() {
	find -type f | xargs sed -i 's:share/icons/%s/48x48/apps:share/pixmaps:'
	find -type f | xargs sed -i 's:share/icons/hicolor/48x48/apps:share/pixmaps:'
	find -type f | xargs sed -i 's:%s/share/pixmaps", GNOME_PREFIX, theme:%s/share/pixmaps", GNOME_PREFIX:'
}

inherit autotools


DESCRIPTION = "XFS Filesystem Dump Utility"
HOMEPAGE = "http://oss.sgi.com/projects/xfs"
LICENSE = "GPL"
SECTION = "base"
DEPENDS = "xfsprogs"

SRC_URI = "ftp://oss.sgi.com/projects/xfs/cmd_tars/${P}.tar.gz"
SRC_URI[md5sum] = "af6932cfcd95ce64dc583128a190ffd7"
SRC_URI[sha256sum] = "d3932f0d482f6f77ec8519ce24c00edbe006262751bfb4ad4b4bc3e219d807d1"

PARALLEL_MAKE = ""
inherit autotools
EXTRA_OECONF = "--enable-gettext=no"
TARGET_CC_ARCH += "${LDFLAGS}"

do_configure () {
	export LIBTOOL="${STAGING_BINDIR_NATIVE}/${HOST_SYS}-libtool"
	export DEBUG="-DNDEBUG"
	oe_runconf
}

do_install () {
	export DIST_ROOT=${D}
	oe_runmake install
}

Switch to getting libtool from PATH

DESCRIPTION = "XFS Filesystem Dump Utility"
HOMEPAGE = "http://oss.sgi.com/projects/xfs"
LICENSE = "GPL"
SECTION = "base"
DEPENDS = "xfsprogs"
PR = "r1"

SRC_URI = "ftp://oss.sgi.com/projects/xfs/cmd_tars/${P}.tar.gz"
SRC_URI[md5sum] = "af6932cfcd95ce64dc583128a190ffd7"
SRC_URI[sha256sum] = "d3932f0d482f6f77ec8519ce24c00edbe006262751bfb4ad4b4bc3e219d807d1"

PARALLEL_MAKE = ""
inherit autotools
EXTRA_OECONF = "--enable-gettext=no"
TARGET_CC_ARCH += "${LDFLAGS}"

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

do_configure () {
	export DEBUG="-DNDEBUG"
	oe_runconf
}

do_install () {
	export DIST_ROOT=${D}
	oe_runmake install
}


DESCRIPTION = "Library for rendering SVG files"
SECTION = "x11/utils"
MAINTAINER = "Phil Blundell <pb@handhelds.org>"
DEPENDS = "gtk+ libcroco libart-lgpl libxml2 popt"
LICENSE = "LGPL"
PR = "r1"

inherit autotools pkgconfig gnome

PACKAGES =+ "librsvg-gtk librsvg-gtk-dev rsvg"
FILES_${PN} = "${libdir}/*.so.*"
FILES_rsvg = "${bindir}/rsvg ${bindir}/rsvg-view ${datadir}/pixmaps/svg-viewer.svg"
FILES_librsvg-gtk = "${libdir}/gtk-2.0/*/*/*.so"
FILES_librsvg-gtk-dev = "${libdir}/gtk-2.0"

EXTRA_OECONF = "--disable-mozilla-plugin"

do_stage() {
	autotools_stage_all
}

Disable mozilla plugins as otherwise their presence on the build system can confuse configure

DESCRIPTION = "Library for rendering SVG files"
SECTION = "x11/utils"
MAINTAINER = "Phil Blundell <pb@handhelds.org>"
DEPENDS = "gtk+ libcroco libart-lgpl libxml2 popt"
LICENSE = "LGPL"
PR = "r1"

EXTRA_OECONF = "--disable-mozilla-plugin"

inherit autotools pkgconfig gnome

PACKAGES =+ "librsvg-gtk librsvg-gtk-dev rsvg"
FILES_${PN} = "${libdir}/*.so.*"
FILES_rsvg = "${bindir}/rsvg ${bindir}/rsvg-view ${datadir}/pixmaps/svg-viewer.svg"
FILES_librsvg-gtk = "${libdir}/gtk-2.0/*/*/*.so"
FILES_librsvg-gtk-dev = "${libdir}/gtk-2.0"

EXTRA_OECONF = "--disable-mozilla-plugin"

do_stage() {
	autotools_stage_all
}


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

inherit kde_cmake kde_rdepends

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

RDEPENDS_${PN} = "kde-runtime shared-desktop-ontologies soprano libkactivities4"

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

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

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

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

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

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

Set the RDEPENDS according to other packages and reorder alphabetical

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

inherit kde_cmake kde_rdepends

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

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

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

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

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

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

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

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


SUMMARY = "A fast and thorough lazy object proxy"
HOMEPAGE = "https://python-lazy-object-proxy.readthedocs.io/"
LICENSE = "BSD-2-Clause"
SECTION = "devel/python"
LIC_FILES_CHKSUM = "file://LICENSE;md5=9c5c2c74370826468065c5702b8a1fcf"

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

SRC_URI[sha256sum] = "489000d368377571c6f982fba6497f2aa13c6d1facc40660963da62f5c379726"

inherit pypi setuptools3

Add missing dep on pip

SUMMARY = "A fast and thorough lazy object proxy"
HOMEPAGE = "https://python-lazy-object-proxy.readthedocs.io/"
LICENSE = "BSD-2-Clause"
SECTION = "devel/python"
LIC_FILES_CHKSUM = "file://LICENSE;md5=9c5c2c74370826468065c5702b8a1fcf"

DEPENDS += "${PYTHON_PN}-setuptools-scm-native ${PYTHON_PN}-pip-native"

SRC_URI[sha256sum] = "489000d368377571c6f982fba6497f2aa13c6d1facc40660963da62f5c379726"

inherit pypi setuptools3


require ${PN}_${PV}.inc

DEPENDS += "mariadb-native"

PROVIDES += "mysql5"

RPROVIDES_${PN}-client = "mysql5-client"
RREPLACES_${PN}-client = "mysql5-client"
RCONFLICTS_${PN}-client = "mysql5-client"

RPROVIDES_${PN}-server = "mysql5-server"
RREPLACES_${PN}-server = "mysql5-server"
RCONFLICTS_${PN}-server = "mysql5-server"

Add mysql5 to RPROVIDES for backwards compatibility

require ${PN}_${PV}.inc

DEPENDS += "mariadb-native"

PROVIDES += "mysql5"

RPROVIDES_${PN} += "mysql5"
RREPLACES_${PN} += "mysql5"
RCONFLICTS_${PN} += "mysql5"

RPROVIDES_${PN}-dbg += "mysql5-dbg"
RREPLACES_${PN}-dbg += "mysql5-dbg"
RCONFLICTS_${PN}-dbg += "mysql5-dbg"

RPROVIDES_${PN}-leftovers += "mysql5-leftovers"
RREPLACES_${PN}-leftovers += "mysql5-leftovers"
RCONFLICTS_${PN}-leftovers += "mysql5-leftovers"

RPROVIDES_${PN}-client += "mysql5-client"
RREPLACES_${PN}-client += "mysql5-client"
RCONFLICTS_${PN}-client += "mysql5-client"

RPROVIDES_${PN}-server += "mysql5-server"
RREPLACES_${PN}-server += "mysql5-server"
RCONFLICTS_${PN}-server += "mysql5-server"


DESCRIPTION = "microcom is a small minicom-like serial terminal emulator with \
scripting support."
LICENSE = "GPL"
MAINTAINER = "Chris Larson <kergoth@handhelds.org>"

SRC_URI = "http://microcom.port5.com/m102.tar.gz \
	   file://make.patch;patch=1"
S = "${WORKDIR}"

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

Fix the microcom source download by using oesources directly - the mirror will not cut in because the port5.com source path does not match any mirror pattern (it is missing a path).

DESCRIPTION = "microcom is a small minicom-like serial terminal emulator with \
scripting support."
LICENSE = "GPL"
MAINTAINER = "Chris Larson <kergoth@handhelds.org>"

# http://microcom.port5.com/m102.tar.gz is no longer available
SRC_URI = "http://www.oesources.org/source/current/m102.tar.gz \
	   file://make.patch;patch=1"
S = "${WORKDIR}"

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