DESCRIPTION = "SWIG - Simplified Wrapper and Interface Generator"

PR = "r0"

inherit debian-package

LICENSE = "GPLv3+"
LIC_FILES_CHKSUM = " \
file://LICENSE;md5=e7807a6282784a7dde4c846626b08fc6 \
"

DEPENDS = "python libpcre"
EXTRA_OECONF += " --program-suffix=2.0"

inherit autotools

BBCLASSEXTEND = "native"

do_configure_prepend() {
	sed -i "s:swig/\${PACKAGE_VERSION}:swig2.0:" ${S}/configure.ac
}

do_configure() {
	oe_runconf
}
do_install_append() {
	ln -sf ccache-swig2.0 ${D}${bindir}/ccache-swig
	ln -sf swig2.0 ${D}${bindir}/swig
}
DPN = "swig2.0"
PACKAGES += "swig2.0"
FILES_swig2.0 = "${datadir} ${bindir}/swig2.0 ${bindir}/ccache-swig2.0"
FILES_${PN} = "${bindir}/ccache-swig ${bindir}/swig"

Correct path to tclConfig.sh and disable ruby, pike

DESCRIPTION = "SWIG - Simplified Wrapper and Interface Generator"

PR = "r1"

inherit debian-package

LICENSE = "GPLv3+"
LIC_FILES_CHKSUM = " \
file://LICENSE;md5=e7807a6282784a7dde4c846626b08fc6 \
"

DEPENDS = "python libpcre tcl"

# Path to find tclConfig.sh
EXTRA_OECONF_class-target = " --with-tclconfig=${STAGING_BINDIR_CROSS}"
EXTRA_OECONF_class-native = " --with-tclconfig=${STAGING_LIBDIR_NATIVE}/tcl8.6"

EXTRA_OECONF_append = " \
    --with-swiglibdir=${datadir}/swig2.0 \
    --without-mzscheme \
    --program-suffix=2.0 \
"

# Currently, meta-debian doesn't provide ruby and pike,
# disable them to avoid swig looking for them in host system
EXTRA_OECONF_append = " \
    --without-ruby \
    --without-pike \
"

inherit autotools

BBCLASSEXTEND = "native"

do_configure_prepend() {
	sed -i "s:swig/\${PACKAGE_VERSION}:swig2.0:" ${S}/configure.ac
}

do_configure() {
	oe_runconf
}
do_install_append() {
	ln -sf ccache-swig2.0 ${D}${bindir}/ccache-swig
	ln -sf swig2.0 ${D}${bindir}/swig
}
DPN = "swig2.0"
PACKAGES += "swig2.0"
FILES_swig2.0 = "${datadir} ${bindir}/swig2.0 ${bindir}/ccache-swig2.0"
FILES_${PN} = "${bindir}/ccache-swig ${bindir}/swig"


DESCRIPTION = "A tool to make device nodes"
LICENSE = "GPL"
SECTION = "base"
PRIORITY = "required"
PR = "r10"

SRC_URI = "file://makedevs.c"
S = "${WORKDIR}/makedevs-${PV}"

inherit update-alternatives

do_configure() {
	install -m 0644 ${WORKDIR}/makedevs.c ${S}/
}

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

do_install_virtclass-native() {
        install -d ${D}${bindir}/
        install -m 0755 ${S}/makedevs ${D}${bindir}/
}

do_install() {
	install -d ${D}${base_sbindir}
	install -m 0755 ${S}/makedevs ${D}${base_sbindir}/makedevs.makedevs
}

ALTERNATIVE_PATH = "${base_sbindir}/makedevs.makedevs"
ALTERNATIVE_NAME = "makedevs"
ALTERNATIVE_LINK = "${base_sbindir}/makedevs"
ALTERNATIVE_PRIORITY = "100"

BBCLASSEXTEND = "native"

NATIVE_INSTALL_WORKS = "1"

Update LICENSE field version to GPLv2

DESCRIPTION = "A tool to make device nodes"
LICENSE = "GPLv2"
SECTION = "base"
PRIORITY = "required"
PR = "r11"

SRC_URI = "file://makedevs.c"
S = "${WORKDIR}/makedevs-${PV}"

inherit update-alternatives

do_configure() {
	install -m 0644 ${WORKDIR}/makedevs.c ${S}/
}

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

do_install_virtclass-native() {
        install -d ${D}${bindir}/
        install -m 0755 ${S}/makedevs ${D}${bindir}/
}

do_install() {
	install -d ${D}${base_sbindir}
	install -m 0755 ${S}/makedevs ${D}${base_sbindir}/makedevs.makedevs
}

ALTERNATIVE_PATH = "${base_sbindir}/makedevs.makedevs"
ALTERNATIVE_NAME = "makedevs"
ALTERNATIVE_LINK = "${base_sbindir}/makedevs"
ALTERNATIVE_PRIORITY = "100"

BBCLASSEXTEND = "native"

NATIVE_INSTALL_WORKS = "1"


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

SRC_URI =+ "\
  ${DEBIAN_MIRROR}/main/f/fakeroot/fakeroot_${PV}.orig.tar.bz2 \
  file://quiet-getopt-check.patch \
"

SRC_URI[md5sum] = "659a1f3a36554abfc2a3eaad2fdc0604"
SRC_URI[sha256] = "b035c834944bf9482027f48c388de8492e96609825265ac03f05408d0b3aae68"

Update URI to a functioning one

require fakeroot.inc
PE = "1"
PR = "${INC_PR}.0"

SRC_URI =+ "\
  http://snapshot.debian.org/archive/debian/20110301/pool/main/f/fakeroot/fakeroot_1.14.5.orig.tar.bz2 \
  file://quiet-getopt-check.patch \
"

SRC_URI[md5sum] = "659a1f3a36554abfc2a3eaad2fdc0604"
SRC_URI[sha256] = "b035c834944bf9482027f48c388de8492e96609825265ac03f05408d0b3aae68"


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

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

PV = "1.0.0+git${SRCPV}"

SRCREV = "d732aaf9a315415ae8fd7eb11e3a4c1f80e42a48"

UPSTREAM_CHECK_COMMITS = "1"

S = "${WORKDIR}/git"

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

RDEPENDS:${PN}-dev = ""

BBCLASSEXTEND = "native nativesdk"

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

Disable cpp11 shuffle with clang/libc++

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

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

PV = "1.0.0+git${SRCPV}"

SRCREV = "d732aaf9a315415ae8fd7eb11e3a4c1f80e42a48"

UPSTREAM_CHECK_COMMITS = "1"

S = "${WORKDIR}/git"

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

RDEPENDS:${PN}-dev = ""

BBCLASSEXTEND = "native nativesdk"

# See https://github.com/SOCI/soci/issues/984
CXXFLAGS:append:toolchain-clang:runtime-llvm = " -DCATCH_CONFIG_CPP11_NO_SHUFFLE"

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


SUMMARY = "Duktape embeddable Javascript engine"
DESCRIPTION = "Duktape is an embeddable Javascript engine, with a focus on portability and compact footprint."
HOMEPAGE = "https://duktape.org"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3b7825df97b52f926fc71300f7880408"

SRC_URI = "https://duktape.org/duktape-${PV}.tar.xz"
SRC_URI[sha256sum] = "90f8d2fa8b5567c6899830ddef2c03f3c27960b11aca222fa17aa7ac613c2890"

EXTRA_OEMAKE = "INSTALL_PREFIX='${prefix}' DESTDIR='${D}' LIBDIR=${base_libdir}"

do_compile () {
    oe_runmake -f Makefile.sharedlibrary INSTALL_PREFIX="${prefix}" DESTDIR="${D}"
}

do_install () {
    oe_runmake -f Makefile.sharedlibrary INSTALL_PREFIX="${prefix}" DESTDIR="${D}" install
    # libduktaped is identical to libduktape but has an hard-coded -g build flags, remove it
    rm -f ${D}${libdir}/libduktaped.so*
}

Use baselib to construct LIBDIR

SUMMARY = "Duktape embeddable Javascript engine"
DESCRIPTION = "Duktape is an embeddable Javascript engine, with a focus on portability and compact footprint."
HOMEPAGE = "https://duktape.org"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3b7825df97b52f926fc71300f7880408"

SRC_URI = "https://duktape.org/duktape-${PV}.tar.xz"
SRC_URI[sha256sum] = "90f8d2fa8b5567c6899830ddef2c03f3c27960b11aca222fa17aa7ac613c2890"

EXTRA_OEMAKE = "INSTALL_PREFIX='${prefix}' DESTDIR='${D}' LIBDIR='/${baselib}'"

do_compile () {
    oe_runmake -f Makefile.sharedlibrary INSTALL_PREFIX="${prefix}" DESTDIR="${D}"
}

do_install () {
    oe_runmake -f Makefile.sharedlibrary INSTALL_PREFIX="${prefix}" DESTDIR="${D}" install
    # libduktaped is identical to libduktape but has an hard-coded -g build flags, remove it
    rm -f ${D}${libdir}/libduktaped.so*
}


DESCRIPTION = "The Audio File Library provides a uniform and elegant \
API for accessing a variety of audio file formats, such as AIFF/AIFF-C, \
WAVE, NeXT/Sun .snd/.au, Berkeley/IRCAM/CARL Sound File, Audio Visual \
Research, Amiga IFF/8SVX, and NIST SPHERE."
SECTION = "libs"
LICENSE = "LGPL GPL"
RPROVIDES_${PN} += "audiofile"
PR = "r8"

SRC_URI = "http://www.68k.org/~michael/audiofile/audiofile-${PV}.tar.gz \
	   file://audiofile-m4_quote_fix.diff;striplevel=0 \
	   file://audiofile-oldstyle.patch;striplevel=0 \
	   file://audiofile-0.2.6.patch;striplevel=0 \
	   file://CVE-2008-5824.patch \
"

inherit autotools lib_package binconfig

SRC_URI[md5sum] = "9c1049876cd51c0f1b12c2886cce4d42"
SRC_URI[sha256sum] = "4b6167b56e21556fb07c9ef06962fe32817064c62181ba47afd3322e0d0f22a9"

Update LICENSE field version to GPLv2 and LGPLv2

DESCRIPTION = "The Audio File Library provides a uniform and elegant \
API for accessing a variety of audio file formats, such as AIFF/AIFF-C, \
WAVE, NeXT/Sun .snd/.au, Berkeley/IRCAM/CARL Sound File, Audio Visual \
Research, Amiga IFF/8SVX, and NIST SPHERE."
SECTION = "libs"
LICENSE = "LGPLv2 GPLv2"
RPROVIDES_${PN} += "audiofile"
PR = "r9"

SRC_URI = "http://www.68k.org/~michael/audiofile/audiofile-${PV}.tar.gz \
	   file://audiofile-m4_quote_fix.diff;striplevel=0 \
	   file://audiofile-oldstyle.patch;striplevel=0 \
	   file://audiofile-0.2.6.patch;striplevel=0 \
	   file://CVE-2008-5824.patch \
"

inherit autotools lib_package binconfig

SRC_URI[md5sum] = "9c1049876cd51c0f1b12c2886cce4d42"
SRC_URI[sha256sum] = "4b6167b56e21556fb07c9ef06962fe32817064c62181ba47afd3322e0d0f22a9"


inherit esw deploy

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

DEPENDS += "xilffs xiltimer"

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

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

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

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

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

Add REQURIED_DISTRO_FEATURES to match dependency xilffs

inherit esw deploy

# Requires by dependency xilffs
REQUIRED_DISTRO_FEATURES = "sdps"

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

DEPENDS += "xilffs xiltimer"

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

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

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

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

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


SUMMARY = "Diagnostic Log and Trace"
DESCRIPTION = "This component provides a standardised log and trace interface, based on \
		thestandardised protocol specified in the AUTOSAR standard 4.0 DLT.This \
		component can be used by GENIVI components and other applications aslogging \
		facility providing \
		- the DLT shared library \
		- the DLT daemon, including startup scripts \
		- the DLT daemon adaptors- the DLT client console utilities \
		- the DLT test applications \
		"
HOMEPAGE = "https://www.genivi.org/"
SECTION = "console/utils"

PR = "r0"

inherit gzipnative

LICENSE = "MPLv2"
LIC_FILES_CHKSUM = " \
    file://LICENSE.txt;md5=99ba60c3fad7eaf8c56bca6dd75cba09 \
    file://MPL.txt;md5=ccdb2761cef70c8b2612624c323f89dc \
    "

SRC_URI = "git://git.projects.genivi.org/${PN}.git;protocol=git;tag=v${PV}"

S = "${WORKDIR}/git"

inherit autotools gettext cmake

FILES_${PN}-doc += "/usr/share/*"
FILES_${PN}-systemd += "${systemd_unitdir}/system/"

PACKAGES =+ "${PN}-systemd"

EXTRA_OECMAKE = "-DWITH_SYSTEMD=ON"

Remove User option from systemd services

SUMMARY = "Diagnostic Log and Trace"
DESCRIPTION = "This component provides a standardised log and trace interface, based on \
		thestandardised protocol specified in the AUTOSAR standard 4.0 DLT.This \
		component can be used by GENIVI components and other applications aslogging \
		facility providing \
		- the DLT shared library \
		- the DLT daemon, including startup scripts \
		- the DLT daemon adaptors- the DLT client console utilities \
		- the DLT test applications \
		"
HOMEPAGE = "https://www.genivi.org/"
SECTION = "console/utils"

PR = "r1"

inherit gzipnative

LICENSE = "MPLv2"
LIC_FILES_CHKSUM = " \
    file://LICENSE.txt;md5=99ba60c3fad7eaf8c56bca6dd75cba09 \
    file://MPL.txt;md5=ccdb2761cef70c8b2612624c323f89dc \
    "

SRC_URI = "git://git.projects.genivi.org/${PN}.git;protocol=git;tag=v${PV}"

S = "${WORKDIR}/git"

inherit autotools gettext cmake

FILES_${PN}-doc += "/usr/share/*"
FILES_${PN}-systemd += "${systemd_unitdir}/system/"

PACKAGES =+ "${PN}-systemd"

EXTRA_OECMAKE = "-DWITH_SYSTEMD=ON"

# Remove "User=genivi" option from systemd services
# as there is no such username
do_install_append() {
    sed -i '/User/d' ${D}/${systemd_unitdir}/system/*.service
}


DESCRIPTION = "Media controller control application"
LICENSE = "LGPLv2+"
LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=d749e86a105281d7a44c2328acebc4b0"

SRC_URI = "git://git.ideasonboard.org/media-ctl.git;protocol=git"
SRCREV = "a6ec4a37028952ffd6e62eb52648cf66248eb519"

PV = "0.0.1"
PR = "r3"
S = "${WORKDIR}/git"

inherit autotools

# It needs some kernel definitions only for v4l2, so it isn't machine specific
EXTRA_OECONF = "--with-kernel-headers=${STAGING_KERNEL_DIR}"

PACKAGES =+ "libmediactl libv4l2subdev"
FILES_libmediactl = "${libdir}/libmediactl${SOLIBS}"
FILES_libv4l2subdev = "${libdir}/libv4l2subdev${SOLIBS}"

Use linux-libc-headers instead of linux kernel sources

DESCRIPTION = "Media controller control application"
LICENSE = "LGPLv2+"
LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=d749e86a105281d7a44c2328acebc4b0"

DEPENDS = "linux-libc-headers"

SRC_URI = "git://git.ideasonboard.org/media-ctl.git;protocol=git"
SRCREV = "a6ec4a37028952ffd6e62eb52648cf66248eb519"

PV = "0.0.1"
PR = "r4"
S = "${WORKDIR}/git"

inherit autotools

EXTRA_OECONF = "--with-kernel-headers=${STAGING_EXECPREFIXDIR}"

PACKAGES =+ "libmediactl libv4l2subdev"
FILES_libmediactl = "${libdir}/libmediactl${SOLIBS}"
FILES_libv4l2subdev = "${libdir}/libv4l2subdev${SOLIBS}"


inherit image

IMAGE_PREPROCESS_COMMAND = "create_etc_timestamp"

ANGSTROM_EXTRA_INSTALL ?= ""

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

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

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

Add gdb to the image, that includes the host executable needed for remote debugging

inherit image

IMAGE_PREPROCESS_COMMAND = "create_etc_timestamp"

ANGSTROM_EXTRA_INSTALL ?= ""

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

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

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


DESCRIPTION = "The NTFS-3G driver is an open source, freely available NTFS driver for Linux with read and write support."
HOMEPAGE = "http://www.ntfs-3g.org/"
LICENSE = "GPLv2"
DEPENDS = "fuse"
RDEPENDS_${PN} = "fuse"
PR = "r0"

SRC_URI = http://tuxera.com/opensource/ntfs-3g_ntfsprogs-${PV}.tgz
S = "${WORKDIR}/ntfs-3g_ntfsprogs-${PV}"

inherit autotools

EXTRA_OEMAKE = "LDCONFIG=echo"

Exclude ntfsprogs to save some flash

DESCRIPTION = "The NTFS-3G driver is an open source, freely available NTFS driver for Linux with read and write support."
HOMEPAGE = "http://www.ntfs-3g.org/"
LICENSE = "GPLv2"
DEPENDS = "fuse"
RDEPENDS_${PN} = "fuse"
PR = "r1"

SRC_URI = http://tuxera.com/opensource/ntfs-3g_ntfsprogs-${PV}.tgz
S = "${WORKDIR}/ntfs-3g_ntfsprogs-${PV}"

inherit autotools

EXTRA_OECONF = "--disable-ntfsprogs"
EXTRA_OEMAKE = "LDCONFIG=echo"


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

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

S = "${WORKDIR}/assassin"

inherit autotools pkgconfig

EXTRA_OECONF = ""

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

Remove curl in DEPENDS of assassin

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

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

S = "${WORKDIR}/assassin"

inherit autotools pkgconfig

EXTRA_OECONF = ""

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


DESCRIPTION = "A a package of utilities for doing and managing mounts of the Linux CIFS filesystem."
HOMEPAGE = "http://wiki.samba.org/index.php/LinuxCIFS_utils"

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

PV = "5.9"

SRCREV = "353d491dcb5d69d31434abeb962c8e9a49c36867"
SRC_URI = "git://git.samba.org/cifs-utils.git"

S = "${WORKDIR}/git"

PACKAGECONFIG ??= ""
PACKAGECONFIG[cap] = "--with-libcap,--without-libcap,libcap"

inherit autotools pkgconfig

do_install_append() {
    # Remove empty /usr/bin and /usr/sbin directories since the mount helper
    # is installed to /sbin
    rmdir ${D}${bindir} ${D}${sbindir}
}

Add PACKAGECONFIG for cifscreds, cifsupcall

DESCRIPTION = "A a package of utilities for doing and managing mounts of the Linux CIFS filesystem."
HOMEPAGE = "http://wiki.samba.org/index.php/LinuxCIFS_utils"

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

PV = "5.9"

SRCREV = "353d491dcb5d69d31434abeb962c8e9a49c36867"
SRC_URI = "git://git.samba.org/cifs-utils.git"

S = "${WORKDIR}/git"

PACKAGECONFIG ??= ""
PACKAGECONFIG[cap] = "--with-libcap,--without-libcap,libcap"
# when enabled, it creates ${bindir}/cifscreds and --ignore-fail-on-non-empty in do_install_append is needed
PACKAGECONFIG[cifscreds] = "--enable-cifscreds,--disable-cifscreds,keyutils"
# when enabled, it creates ${sbindir}/cifs.upcall and --ignore-fail-on-non-empty in do_install_append is needed
PACKAGECONFIG[cifsupcall] = "--enable-cifsupcall,--disable-cifsupcall,krb5 talloc keyutils"

inherit autotools pkgconfig

do_install_append() {
    # Remove empty /usr/bin and /usr/sbin directories since the mount helper
    # is installed to /sbin
    rmdir ${D}${bindir} ${D}${sbindir}
}


DESCRIPTION = "Full-featured IRC chat client with scripting support"
LICENSE = "GPL"
HOMEPAGE = "http://www.xchat.org"
SECTION = "x11/network"
DEPENDS = "libgcrypt zlib gtk+"
PR = "r2"

SRC_URI = "http://www.xchat.org/files/source/2.6/xchat-${PV}.tar.bz2"

inherit autotools
EXTRA_OECONF = " --disable-perl --disable-python    "

Fix QA error over .debug directry in /usr/lib/xchat/

DESCRIPTION = "Full-featured IRC chat client with scripting support"
LICENSE = "GPL"
HOMEPAGE = "http://www.xchat.org"
SECTION = "x11/network"
DEPENDS = "libgcrypt zlib gtk+"
PR = "r3"

SRC_URI = "http://www.xchat.org/files/source/2.6/xchat-${PV}.tar.bz2"

inherit autotools
EXTRA_OECONF = " --disable-perl --disable-python    "

FILES_${PN}-dbg += " /usr/lib/xchat/plugins/.debug"


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

DEFAULT_PREFERENCE = "-1"

inherit gpephone pkgconfig autotools

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

S = "${WORKDIR}/immanager"

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

do_stage () {
    autotools_stage_all
}

Make install more flexible agains gtk versions.

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

DEFAULT_PREFERENCE = "-1"

inherit gpephone pkgconfig autotools

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

S = "${WORKDIR}/immanager"

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

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

do_stage () {
    autotools_stage_all
}


require emlog.inc

inherit module

EXTRA_OEMAKE += " \
    KDIR=${STAGING_KERNEL_DIR} \
    KVER=${KERNEL_VERSION} \
"

do_compile() {
    oe_runmake modules
}

Use compile task from module bbclass

require emlog.inc

inherit module

EXTRA_OEMAKE += " \
    KDIR=${STAGING_KERNEL_DIR} \
    KVER=${KERNEL_VERSION} \
"

MAKE_TARGETS = "modules"


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

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

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

# Hacks to work around broken debian.bbclass
RPROVIDES = "libfontconfig-utils"
PKG_fontconfig-utils = "fontconfig-utils"

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

inherit autotools pkgconfig

export HASDOCBOOK="no"

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

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

do_install () {
	autotools_do_install
}

Fix handling of fontconfig-utils properly, once and for all

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

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

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

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

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

inherit autotools pkgconfig

export HASDOCBOOK="no"

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

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

do_install () {
	autotools_do_install
}


SRCBRANCH ?= "master-rel-2021.1"
SRCREV = "84041fa84d9bc524357b030ebe9a5174b01377bd"
BRANCH = "master-rel-2021.1"
LIC_FILES_CHKSUM ?= "file://LICENSE.md;md5=0e6d7bfe689fe5b0d0a89b2ccbe053fa"
PV = "${SRCBRANCH}+git${SRCPV}"

include open-amp.inc

Update branch for 2021.1 release

SRCBRANCH ?= "xlnx_rel_v2021.1"
SRCREV = "84041fa84d9bc524357b030ebe9a5174b01377bd"
BRANCH = "xlnx_rel_v2021.1"
LIC_FILES_CHKSUM ?= "file://LICENSE.md;md5=0e6d7bfe689fe5b0d0a89b2ccbe053fa"
PV = "${SRCBRANCH}+git${SRCPV}"

include open-amp.inc


DESCRIPTION = "GEGL (Generic Graphics Library) is a graph based image processing framework."
LICENSE = "LGPL-3.0"
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
DEPENDS = "babl librsvg glib-2.0 gtk+ pango cairo expat zlib libpng jpeg virtual/libsdl"

inherit gnome

EXTRA_OECONF = "--disable-docs "

SRC_URI = "ftp://ftp.gimp.org/pub/${PN}/0.2/${PN}-${PV}.tar.bz2"
SRC_URI[md5sum] = "32b00002f1f1e316115c4ed922e1dec8"
SRC_URI[sha256sum] = "df2e6a0d9499afcbc4f9029c18d9d1e0dd5e8710a75e17c9b1d9a6480dd8d426"

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

Add PACKAGECONFIG for jasper, avformat

DESCRIPTION = "GEGL (Generic Graphics Library) is a graph based image processing framework."
LICENSE = "LGPL-3.0"
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
DEPENDS = "babl librsvg glib-2.0 gtk+ pango cairo expat zlib libpng jpeg virtual/libsdl"

inherit gnome

EXTRA_OECONF = "--disable-docs "

PACKAGECONFIG ??= ""
PACKAGECONFIG[jasper] = "--with-jasper,--without-jasper,jasper"
PACKAGECONFIG[avformat] = "--with-libavformat,--without-libavformat,libav"

SRC_URI = "ftp://ftp.gimp.org/pub/${PN}/0.2/${PN}-${PV}.tar.bz2"
SRC_URI[md5sum] = "32b00002f1f1e316115c4ed922e1dec8"
SRC_URI[sha256sum] = "df2e6a0d9499afcbc4f9029c18d9d1e0dd5e8710a75e17c9b1d9a6480dd8d426"

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


LINUX_VERSION = "4.14.78"
LINUX_VERSION_SUFFIX = "-ltsi"

SRCREV = "f460e9d5cd820666b7dfbb28349b99976410e4fb"

include linux-altera.inc

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

SRC_URI_append_cyclone5 = " file://config_lbdaf.cfg "
SRC_URI_append_arria5 = " file://config_lbdaf.cfg "
SRC_URI_append_arria10 = " file://config_lbdaf.cfg "

Fix typo in 4.14.73 kernel

LINUX_VERSION = "4.14.73"
LINUX_VERSION_SUFFIX = "-ltsi"

SRCREV = "f460e9d5cd820666b7dfbb28349b99976410e4fb"

include linux-altera.inc

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

SRC_URI_append_cyclone5 = " file://config_lbdaf.cfg "
SRC_URI_append_arria5 = " file://config_lbdaf.cfg "
SRC_URI_append_arria10 = " file://config_lbdaf.cfg "


SUMMARY = "versatile resource statics tool"
DESCRIPTION = "Dstat is a versatile replacement for vmstat, iostat, netstat and ifstat. \
Dstat overcomes some of their limitations and adds some extra features, more counters \
and flexibility. Dstat is handy for monitoring systems during performance tuning tests, \
benchmarks or troubleshooting."
HOMEPAGE = "http://dag.wiee.rs/home-made/dstat"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"

DEPENDS += "asciidoc-native xmlto-native"

SRC_URI = "git://github.com/dagwieers/dstat.git \
           file://0001-change-dstat-to-python3.patch \
          "

SRCREV = "6f5db0aed26bf8cf2700d4ffe90a9bd3436ac728"

S = "${WORKDIR}/git"

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

RDEPENDS_${PN} += "python3-core python3-misc python3-resource python3-shell python3-unixadmin"

Add missing python-six runtime dependency

SUMMARY = "versatile resource statics tool"
DESCRIPTION = "Dstat is a versatile replacement for vmstat, iostat, netstat and ifstat. \
Dstat overcomes some of their limitations and adds some extra features, more counters \
and flexibility. Dstat is handy for monitoring systems during performance tuning tests, \
benchmarks or troubleshooting."
HOMEPAGE = "http://dag.wiee.rs/home-made/dstat"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"

DEPENDS += "asciidoc-native xmlto-native"

SRC_URI = "git://github.com/dagwieers/dstat.git \
           file://0001-change-dstat-to-python3.patch \
          "

SRCREV = "6f5db0aed26bf8cf2700d4ffe90a9bd3436ac728"

S = "${WORKDIR}/git"

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

RDEPENDS_${PN} += "python3-core python3-misc python3-resource python3-shell python3-six python3-unixadmin"


DESCRIPTION = "Boost.URL is a library for manipulating Uniform Resource Identifiers (URI) and Locators (URL)"
HOMEPAGE = "https://github.com/CPPAlliance/url"
SECTION = "libs"
LICENSE = "BSL-1.0"
LIC_FILES_CHKSUM = "file://LICENSE_1_0.txt;md5=e4224ccaecb14d942c71d31bef20d78c"

SRC_URI = "git://github.com/CPPAlliance/url.git;branch=develop;protocol=https"

SRCREV = "4f712ed69a04a344957d22efa5dc111b415b3aff"

S = "${WORKDIR}/git"

DEPENDS = "boost"

BBCLASSEXTEND = "native nativesdk"

do_install() {
    mkdir -p ${D}/${includedir}
    cp -r ${S}/include/** ${D}/${includedir}/
}

Update to new version of boost-uri

DESCRIPTION = "Boost.URL is a library for manipulating Uniform Resource Identifiers (URI) and Locators (URL)"
HOMEPAGE = "https://github.com/CPPAlliance/url"
SECTION = "libs"
LICENSE = "BSL-1.0"
LIC_FILES_CHKSUM = "file://LICENSE_1_0.txt;md5=e4224ccaecb14d942c71d31bef20d78c"

SRC_URI = "git://github.com/CPPAlliance/url.git;branch=develop;protocol=https"

SRCREV = "d740a92d38e3a8f4d5b2153f53b82f1c98e312ab"

S = "${WORKDIR}/git"

DEPENDS = "boost"

BBCLASSEXTEND = "native nativesdk"

do_install() {
    mkdir -p ${D}/${includedir}
    cp -r ${S}/include/** ${D}/${includedir}/
}


DESCRIPTION = "Atmel SAM-BA In-system Programmer"
SECTION = "devel"
LICENSE = "ATMEL_LLA_SAM-BA"

LIC_FILES_CHKSUM = "file://doc/license.txt;md5=1d90164463a7334a802991ec50f5d2f2"

SRC_URI = "http://www.atmel.com/Images/sam-ba_${PV}_linux.zip"
SRC_URI[md5sum] = "a9cf0fc282fda1b02ba7f6da3cc347f4"
SRC_URI[sha256sum] = "302734f53e471b5d1a292c9af937262f4fd766ec47ebfea62439761e7c1cd9d7"

S = "${WORKDIR}/sam-ba_cdc_linux"

do_install () {
    install -d ${D}${bindir}/sam-ba_cdc_linux
    cp -R --no-dereference --preserve=mode,links ${S}/* ${D}${bindir}/sam-ba_cdc_linux
}

INSANE_SKIP_${PN} += "already-stripped"
BBCLASSEXTEND = "native nativesdk"

Delete precompiled sam-ba x86 binaries

DESCRIPTION = "Atmel SAM-BA In-system Programmer"
SECTION = "devel"
LICENSE = "ATMEL_LLA_SAM-BA"

LIC_FILES_CHKSUM = "file://doc/license.txt;md5=1d90164463a7334a802991ec50f5d2f2"

SRC_URI = "http://www.atmel.com/Images/sam-ba_${PV}_linux.zip"
SRC_URI[md5sum] = "a9cf0fc282fda1b02ba7f6da3cc347f4"
SRC_URI[sha256sum] = "302734f53e471b5d1a292c9af937262f4fd766ec47ebfea62439761e7c1cd9d7"

S = "${WORKDIR}/sam-ba_cdc_linux"

do_install () {
    install -d ${D}${bindir}/sam-ba_cdc_linux
    cp -R --no-dereference --preserve=mode,links ${S}/* ${D}${bindir}/sam-ba_cdc_linux
}

do_install_append_class-target() {
    rm -rf ${D}${bindir}/sam-ba_cdc_linux/sam-ba_64
    rm -rf ${D}${bindir}/sam-ba_cdc_linux/sam-ba
}

INSANE_SKIP_${PN} += "already-stripped"
BBCLASSEXTEND = "native nativesdk"


SUMMARY = "HMI demo for electronic vehicle charging station (EVSE) using QT QWidget tools"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://main.cpp;beginline=1;endline=33;md5=a9cde3921a8be42ed79ab74661799104"

inherit qt-provider

PV = "1.0"
PR = "r0"

BRANCH = "master"
SRC_URI = "git://git.ti.com/sitara-linux/evse-hmi.git;protocol=git;branch=${BRANCH}"

SRCREV = "ce093e76faddce78dbaa3e22af6d252f57d5f700"

S = "${WORKDIR}/git"

CREATE_SRCIPK = "1"
SRCIPK_INSTALL_DIR = "example-applications/${PN}-${PV}"

do_install() {
    install -d ${D}${bindir}
    install -m 755 evse_hmi ${D}${bindir}
}

Revert "evse-hmi : SRCREV update"

SUMMARY = "HMI demo for electronic vehicle charging station (EVSE) using QT QWidget tools"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://main.cpp;beginline=1;endline=33;md5=a9cde3921a8be42ed79ab74661799104"

inherit qt-provider

PV = "1.0"
PR = "r0"

BRANCH = "master"
SRC_URI = "git://git.ti.com/sitara-linux/evse-hmi.git;protocol=git;branch=${BRANCH}"

SRCREV = "a257dfc05db311c74cb50838ff5b9e2cfb87dbfe"

S = "${WORKDIR}/git"

CREATE_SRCIPK = "1"
SRCIPK_INSTALL_DIR = "example-applications/${PN}-${PV}"

do_install() {
    install -d ${D}${bindir}
    install -m 755 evse_hmi ${D}${bindir}
}


DESCRIPTION = "Tool to edit the Redboot FIS partition layout from userspace"
PR = "r1"
DEPENDS = "boost"

SRC_URI = "http://svn.chezphil.org/utils/trunk/fis.cc \
	   svn://svn.chezphil.org/;module=libpbe;proto=http"

PACKAGES =+ "fis-static"
FILES_${PN}-static = "${sbindir}/fis-static"
FILES_${PN} = "${sbindir}/fis"

do_compile() {
	${CXX} -Os -W -I${STAGING_INCDIR} -I${WORKDIR}/libpbe/trunk/include -o fis ${WORKDIR}/fis.cc \
	${WORKDIR}/libpbe/trunk/src/Exception.cc ${WORKDIR}/libpbe/trunk/src/utils.cc

	# Work around boost threading issue when compiling static
	# We're singlethreading anyway

	echo "#define BOOST_SP_DISABLE_THREADS" > ${WORKDIR}/tmpfile
	cat ${WORKDIR}/tmpfile ${WORKDIR}/fis.cc > ${WORKDIR}/fis.new
	mv ${WORKDIR}/fis.new ${WORKDIR}/fis.cc
	rm ${WORKDIR}/tmpfile

	${CXX} -Os -W -static -I${STAGING_INCDIR} -I${WORKDIR}/libpbe/trunk/include -o fis-static ${WORKDIR}/fis.cc \
	${WORKDIR}/libpbe/trunk/src/Exception.cc ${WORKDIR}/libpbe/trunk/src/utils.cc
}

do_install() {
	${STRIP} ${WORKDIR}/fis-${PV}/fis-static
	${STRIP} ${WORKDIR}/fis-${PV}/fis

	install -d ${D}/${sbindir}
	install -m 755 ${WORKDIR}/fis-${PV}/fis-static ${D}/${sbindir}
	install -m 755 ${WORKDIR}/fis-${PV}/fis ${D}/${sbindir}
}

Remove fis-static, update shared fis

DESCRIPTION = "Tool to edit the Redboot FIS partition layout from userspace"
PR = "r1"
DEPENDS = "boost"

SRC_URI = "http://svn.chezphil.org/utils/trunk/fis.cc \
	   svn://svn.chezphil.org/;module=libpbe;proto=http"

do_compile() {
	${CXX} -Os -W -I${STAGING_INCDIR} -I${WORKDIR}/libpbe/trunk/include -o fis ${WORKDIR}/fis.cc \
	${WORKDIR}/libpbe/trunk/src/Exception.cc ${WORKDIR}/libpbe/trunk/src/utils.cc
}

do_install() {
	${STRIP} ${WORKDIR}/fis-${PV}/fis

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


SUMMARY = "A very basic Wayland image with a terminal"

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

LICENSE = "MIT"

inherit core-image distro_features_check

REQUIRED_DISTRO_FEATURES = "wayland pam"

CORE_IMAGE_BASE_INSTALL += "weston weston-init weston-examples clutter-1.0-examples"

DESCRIPTION = "A weston image with Tizen common."

DEPENDS += " tar-replacement-native "

CORE_IMAGE_BASE_INSTALL += "connman"
CORE_IMAGE_BASE_INSTALL += "weston-common"
CORE_IMAGE_BASE_INSTALL += "mesa-megadriver"
CORE_IMAGE_BASE_INSTALL += "meta-common"
CORE_IMAGE_BASE_INSTALL += "pam"
CORE_IMAGE_BASE_INSTALL += "weston-common-tz-launcher"
CORE_IMAGE_BASE_INSTALL += "weston-common-config"
CORE_IMAGE_BASE_INSTALL += "user-session-units"
CORE_IMAGE_BASE_INSTALL += "default-ac-domains"
CORE_IMAGE_BASE_INSTALL += "desktop-skin"
CORE_IMAGE_BASE_INSTALL += "rpm-security-plugin"

export SYSROOT = "${IMAGE_ROOTFS}"

Add new conf file to imagze.

SUMMARY = "A very basic Wayland image with a terminal"

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

LICENSE = "MIT"

inherit core-image distro_features_check

REQUIRED_DISTRO_FEATURES = "wayland pam"

CORE_IMAGE_BASE_INSTALL += "weston weston-init weston-examples clutter-1.0-examples"

DESCRIPTION = "A weston image with Tizen common."

DEPENDS += " tar-replacement-native "

CORE_IMAGE_BASE_INSTALL += "connman"
CORE_IMAGE_BASE_INSTALL += "weston-common"
CORE_IMAGE_BASE_INSTALL += "mesa-megadriver"
CORE_IMAGE_BASE_INSTALL += "meta-common"
CORE_IMAGE_BASE_INSTALL += "pam"
CORE_IMAGE_BASE_INSTALL += "weston-common-tz-launcher"
CORE_IMAGE_BASE_INSTALL += "weston-common-config"
CORE_IMAGE_BASE_INSTALL += "user-session-units"
CORE_IMAGE_BASE_INSTALL += "default-ac-domains"
CORE_IMAGE_BASE_INSTALL += "desktop-skin"
CORE_IMAGE_BASE_INSTALL += "rpm-security-plugin"
CORE_IMAGE_EXTRA_INSTALL += "config-image"

export SYSROOT = "${IMAGE_ROOTFS}"


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

SRC_URI[md5sum] = "d99f1b31da0eb33271464bee15cec701"
SRC_URI[sha256sum] = "1a0517438a573a68ab73e8ed75d194086d55d75883542ab1d5ae1080bbddd492"

Extend target recipe to native recipe using BBCLASSEXTEND

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

DEPENDS_virtclass-native = "readline-native ncurses-native"

SRC_URI[md5sum] = "d99f1b31da0eb33271464bee15cec701"
SRC_URI[sha256sum] = "1a0517438a573a68ab73e8ed75d194086d55d75883542ab1d5ae1080bbddd492"

BBCLASSEXTEND = "native"


DESCRIPTION = "Linux Kernel"
SECTION = "kernel"
LICENSE = "GPL"
PR = "r3"

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

SRC_URI_append_progear = " \
           file://progear_bl-r6.patch;patch=1 \
	   "
SRC_URI_append_simpad = "\
           file://linux-2.6.20.SIMpad.mq200.patch;patch=1 \
           file://linux-2.6.20.SIMpad.ucb1x00-switches.patch;patch=1 \
	   "
SRC_URI_append_n2100 = "\
	   file://n2100-r8169-parity.patch;patch=1 \
	   file://rtc-rs5c372-n2100.patch;patch=1 \
	   "

inherit kernel

KERNEL_IMAGETYPE = "bzImage"
KERNEL_IMAGETYPE_simpad = "zImage"
KERNEL_IMAGETYPE_n2100 = "zImage"

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

Make sure to copy the finished kernel to deploy

DESCRIPTION = "Linux Kernel"
SECTION = "kernel"
LICENSE = "GPL"
PR = "r3"

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

SRC_URI_append_progear = " \
           file://progear_bl-r6.patch;patch=1 \
	   "
SRC_URI_append_simpad = "\
           file://linux-2.6.20.SIMpad.mq200.patch;patch=1 \
           file://linux-2.6.20.SIMpad.ucb1x00-switches.patch;patch=1 \
	   "
SRC_URI_append_n2100 = "\
	   file://n2100-r8169-parity.patch;patch=1 \
	   file://rtc-rs5c372-n2100.patch;patch=1 \
	   "

inherit kernel

KERNEL_IMAGETYPE = "bzImage"
KERNEL_IMAGETYPE_simpad = "zImage"
KERNEL_IMAGETYPE_n2100 = "zImage"

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

do_install_append_n2100() {
	install -m 0644 ${S}/arch/${ARCH}/boot/${KERNEL_IMAGETYPE} ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${PV}-${MACHINE}-${DATETIME}
}


VIMVER = "72"

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

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

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

require vim.inc

PR = "${INC_PR}.3"

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

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

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

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

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

Switch to patchdir rather than applying in do_configure

VIMVER = "72"

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

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

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

require vim.inc

PR = "${INC_PR}.3"

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

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

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

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


DESCRIPTION = "Tools to help hacking Allwinner A10"

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

PV = "1.0+git${SRCPV}"
PKGV = "1.0+git${GITPKGV}"
PR = "r1"
SRCREV = "1f5056275a6c026f308ac6f7ae52125c390d1d7c"

SRC_URI = "git://github.com/amery/sunxi-tools.git;protocol=git"

S = "${WORKDIR}/git"

FILES_${PN} = "${bindir}/*"

do_compile() {
    cd ${S}
    ${CC} -I./include nand-part.c -o nand-part
}

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

Update sunxi-tools repository, and install all tools

DESCRIPTION = "Tools to help hacking Allwinner A10"

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

PV = "1.0+git${SRCPV}"
PKGV = "1.0+git${GITPKGV}"
PR = "r2"
SRCREV = "ed6f7969d80b91048b0ed95ccb61cc98f46fead7"

DEPENDS += "libusb"

SRC_URI = "git://github.com/linux-sunxi/sunxi-tools;protocol=git"

S = "${WORKDIR}/git"

BBCLASSEXTEND = "native nativesdk"

FILES_${PN} = "${bindir}/*"

CFLAGS = "-std=c99 -D_POSIX_C_SOURCE=200112L -I./include"

do_install() {
    install -d ${D}/${bindir}
    install -m 755 ${S}/bootinfo ${D}/${bindir}
    install -m 755 ${S}/bin2fex ${D}/${bindir}
    install -m 755 ${S}/fel ${D}/${bindir}
    install -m 755 ${S}/fel-gpio ${D}/${bindir}
    install -m 755 ${S}/fex2bin ${D}/${bindir}
    install -m 755 ${S}/fexc ${D}/${bindir}
    install -m 755 ${S}/nand-part ${D}/${bindir}
    install -m 755 ${S}/pio ${D}/${bindir}
    install -m 755 ${S}/usb-boot ${D}/${bindir}
}


SUMMARY = "Default display timings and resolutions for fbset"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"

PV = "0.1.0"
PR = "r6"

SRC_URI = "file://fb.modes"
S = "${WORKDIR}"

do_install() {
    install -d ${D}${sysconfdir}
    install -m 0644 ${WORKDIR}/fb.modes ${D}${sysconfdir}
}

inherit allarch

# fb.modes file is MACHINE_ARCH, base.bbclass correctly changes it to MACHINE_ARCH, but too late for allarch.bbclass
# to disable "all" behavior (found when comparing qemuarm and qemux86 signatures)
PACKAGE_ARCH = "${MACHINE_ARCH}"

CONFFILES_${PN} = "${sysconfdir}/fb.modes"

Add HOMEPAGE info into recipe file.

SUMMARY = "Default display timings and resolutions for fbset"
HOMEPAGE = "http://users.telenet.be/geertu/Linux/fbdev/"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"

PV = "0.1.0"
PR = "r6"

SRC_URI = "file://fb.modes"
S = "${WORKDIR}"

do_install() {
    install -d ${D}${sysconfdir}
    install -m 0644 ${WORKDIR}/fb.modes ${D}${sysconfdir}
}

inherit allarch

# fb.modes file is MACHINE_ARCH, base.bbclass correctly changes it to MACHINE_ARCH, but too late for allarch.bbclass
# to disable "all" behavior (found when comparing qemuarm and qemux86 signatures)
PACKAGE_ARCH = "${MACHINE_ARCH}"

CONFFILES_${PN} = "${sysconfdir}/fb.modes"


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"


DESCRIPTION = "IBM Internet of Things Foundation Client for Python"
HOMEPAGE = "https://github.com/ibm-messaging/iot-python"
LICENSE = "ECL-1.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=8e63150e06ca345cebdd9a63642ac49d"

inherit setuptools

RDEPENDS_${PN} = "\
	${PYTHON_PN}-requests \
	${PYTHON_PN}-paho-mqtt \
	${PYTHON_PN}-iso8601 \
	${PYTHON_PN}-pytz \
	${PYTHON_PN}-json \
	${PYTHON_PN}-datetime \
	${PYTHON_PN}-threading \
	${PYTHON_PN}-netclient\
"

SRC_NAME = "ibmiotf"

SRC_URI = "https://pypi.python.org/packages/source/i/${SRC_NAME}/${SRC_NAME}-${PV}.zip"

SRC_URI[md5sum] = "fb29e562fc9ed22fc926c0ed34e383be"
SRC_URI[sha256sum] = "330fca8e9b98f85620f0fa09e6e4b36deca92c14d34ace1bd586bcfe7391da3a"

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

Fix missing dependency for IBM Python SDK.

DESCRIPTION = "IBM Internet of Things Foundation Client for Python"
HOMEPAGE = "https://github.com/ibm-messaging/iot-python"
LICENSE = "ECL-1.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=8e63150e06ca345cebdd9a63642ac49d"

inherit setuptools

RDEPENDS_${PN} = "\
	${PYTHON_PN}-requests \
	${PYTHON_PN}-paho-mqtt \
	${PYTHON_PN}-iso8601 \
	${PYTHON_PN}-pytz \
	${PYTHON_PN}-json \
	${PYTHON_PN}-datetime \
	${PYTHON_PN}-threading \
	${PYTHON_PN}-netclient \
	${PYTHON_PN}-distribute \
"

SRC_NAME = "ibmiotf"

SRC_URI = "https://pypi.python.org/packages/source/i/${SRC_NAME}/${SRC_NAME}-${PV}.zip"

SRC_URI[md5sum] = "fb29e562fc9ed22fc926c0ed34e383be"
SRC_URI[sha256sum] = "330fca8e9b98f85620f0fa09e6e4b36deca92c14d34ace1bd586bcfe7391da3a"

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


require u-boot-ti.inc

LIC_FILES_CHKSUM = "file://Licenses/README;md5=5a7450c57ffe5ae63fd732446b988025"

PR = "r27"

BRANCH = "ti-u-boot-2021.01"

SRCREV = "74fc69c8897f67628ee9517744c720a3dc201f53"

Bump to verison that supports j721s2-hs-evm

require u-boot-ti.inc

LIC_FILES_CHKSUM = "file://Licenses/README;md5=5a7450c57ffe5ae63fd732446b988025"

PR = "r27"

BRANCH = "ti-u-boot-2021.01"

SRCREV = "d588b4b55d2240c13c3cce507683853fd6d6ac00"


SUMMARY = "A top utility for I/O"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://LICENSE;md5=48e7be78bd2671d08c9c3bad71f1cfaa"

DEPENDS = "ncurses"

SRC_URI = "https://github.com/Tomas-M/iotop/releases/download/v1.20/iotop-1.20.tar.xz"
SRC_URI[sha256sum] = "e0227dd4b71ce3ffe50225b85cf9abb38a99c1d2dff69e3f1db7d059d7490d51"
UPSTREAM_CHECK_URI = "https://github.com/Tomas-M/iotop/releases"

inherit pkgconfig

EXTRA_OEMAKE = "V=1 STRIP=true"

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

Use lld with clang on arm

SUMMARY = "A top utility for I/O"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://LICENSE;md5=48e7be78bd2671d08c9c3bad71f1cfaa"

DEPENDS = "ncurses"

SRC_URI = "https://github.com/Tomas-M/iotop/releases/download/v1.20/iotop-1.20.tar.xz"
SRC_URI[sha256sum] = "e0227dd4b71ce3ffe50225b85cf9abb38a99c1d2dff69e3f1db7d059d7490d51"
UPSTREAM_CHECK_URI = "https://github.com/Tomas-M/iotop/releases"

inherit pkgconfig

EXTRA_OEMAKE = "V=1 STRIP=true"

# Workaround BFD linker crash with clang on arm
# revisit when upgrading binutils and see if its fixed
LDFLAGS:append:toolchain-clang:arm = " -fuse-ld=lld"

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


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

Remove plos-x-session and pointercal-xinput from plos-base packagegroup

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 \
    apache2 \
    webmin \
"


require linux.inc

DESCRIPTION = "Generic 96boards kernel"

PV = "4.4.0+git${SRCPV}"
SRCREV = "1a35563f4affa5bfe9e6ca30802e7aebf0a072d7"

SRC_URI = "git://github.com/96boards/linux.git;protocol=https;branch=96b/releases/2016.03 \
          "
S = "${WORKDIR}/git"

COMPATIBLE_MACHINE = "96boards-64|hikey"
KERNEL_IMAGETYPE ?= "Image"
# make[3]: *** [scripts/extract-cert] Error 1
DEPENDS += "openssl-native"
HOSTCFLAGS += "-I${STAGING_INCDIR_NATIVE}"

do_configure() {
    cp ${S}/arch/arm64/configs/distro.config ${B}/.config
    yes '' | oe_runmake -C ${S} O=${B} oldconfig
}

Add native includedir to HOST_EXTRACFLAGS

require linux.inc

DESCRIPTION = "Generic 96boards kernel"

PV = "4.4.0+git${SRCPV}"
SRCREV = "1a35563f4affa5bfe9e6ca30802e7aebf0a072d7"

SRC_URI = "git://github.com/96boards/linux.git;protocol=https;branch=96b/releases/2016.03 \
          "
S = "${WORKDIR}/git"

COMPATIBLE_MACHINE = "96boards-64|hikey"
KERNEL_IMAGETYPE ?= "Image"
# make[3]: *** [scripts/extract-cert] Error 1
DEPENDS += "openssl-native"
HOST_EXTRACFLAGS += "-I${STAGING_INCDIR_NATIVE}"

do_configure() {
    cp ${S}/arch/arm64/configs/distro.config ${B}/.config
    yes '' | oe_runmake -C ${S} O=${B} oldconfig
}


DESCRIPTION = "Atmel SAM-BA In-system Programmer"
SECTION = "devel"
LICENSE = "ATMEL_LLA_SAM-BA"

LIC_FILES_CHKSUM = "file://doc/license.txt;md5=1d90164463a7334a802991ec50f5d2f2"

SRC_URI = "http://www.atmel.com/Images/sam-ba_${PV}_linux.zip"
SRC_URI[md5sum] = "a9cf0fc282fda1b02ba7f6da3cc347f4"
SRC_URI[sha256sum] = "302734f53e471b5d1a292c9af937262f4fd766ec47ebfea62439761e7c1cd9d7"

S = "${WORKDIR}/sam-ba_cdc_linux"

do_install () {
    install -d ${D}${bindir}/sam-ba_cdc_linux
    cp -pPrf ${S}/* ${D}${bindir}/sam-ba_cdc_linux
}

INSANE_SKIP_${PN} += "already-stripped"
BBCLASSEXTEND = "native nativesdk"

Add options to cp cmd to fix QA errors

DESCRIPTION = "Atmel SAM-BA In-system Programmer"
SECTION = "devel"
LICENSE = "ATMEL_LLA_SAM-BA"

LIC_FILES_CHKSUM = "file://doc/license.txt;md5=1d90164463a7334a802991ec50f5d2f2"

SRC_URI = "http://www.atmel.com/Images/sam-ba_${PV}_linux.zip"
SRC_URI[md5sum] = "a9cf0fc282fda1b02ba7f6da3cc347f4"
SRC_URI[sha256sum] = "302734f53e471b5d1a292c9af937262f4fd766ec47ebfea62439761e7c1cd9d7"

S = "${WORKDIR}/sam-ba_cdc_linux"

do_install () {
    install -d ${D}${bindir}/sam-ba_cdc_linux
    cp -R --no-dereference --preserve=mode,links ${S}/* ${D}${bindir}/sam-ba_cdc_linux
}

INSANE_SKIP_${PN} += "already-stripped"
BBCLASSEXTEND = "native nativesdk"


SUMMARY = "X10 Deamon manager"
HOMEPAGE = "freefr.dl.sourceforge.net"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
DEPENDS = " libusb1 "
SRC_URI = "http://freefr.dl.sourceforge.net/mochad/mochad-${PV}.tar.gz \
		   file://FixInstallUdevRules.patch \
		  "
inherit autotools
SRC_URI[md5sum] = "e1de0c9e62e10236542e70c2f33aacc2"
SRC_URI[sha256sum] = "a329ddcd7e95c169e7e37f9d37bb1146da6617be2f7325e7b6ffd0314962036f"

autotools_do_install_prepend() {
mkdir -p ${D}/etc/udev/rules.d
mkdir -p ${D}/etc/hotplug.d/usb

}

Fix Installation Error during rootfs step

SUMMARY = "X10 Deamon manager"
HOMEPAGE = "freefr.dl.sourceforge.net"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
DEPENDS = " libusb1 "
SRC_URI = "http://freefr.dl.sourceforge.net/mochad/mochad-${PV}.tar.gz \
		   file://FixInstallUdevRules.patch \
		  "
inherit autotools update-rc.d
SRC_URI[md5sum] = "e1de0c9e62e10236542e70c2f33aacc2"
SRC_URI[sha256sum] = "a329ddcd7e95c169e7e37f9d37bb1146da6617be2f7325e7b6ffd0314962036f"

INITSCRIPT_NAME = "mochad"

autotools_do_install_prepend() {
mkdir -p ${D}/etc/init.d
mkdir -p ${D}/etc/udev/rules.d
mkdir -p ${D}/etc/hotplug.d/usb

}


SUMMARY = "Tepl library eases the development of GtkSourceView-based projects"
LICENSE = "LGPL-3.0-or-later"
LIC_FILES_CHKSUM = "file://LICENSES/LGPL-3.0-or-later.txt;md5=c51d3eef3be114124d11349ca0d7e117"

DEPENDS = " \
    glib-2.0-native \
    gtk+3 \
    gtksourceview4 \
    amtk \
    libxml2 \
    uchardet \
"

GNOMEBASEBUILDCLASS = "meson"

inherit gnomebase gobject-introspection gettext features_check

SRC_URI[archive.sha256sum] = "a86397a895dca9c0de7a5ccb063bda8f7ef691cccb950ce2cfdee367903e7a63"

# gobject-introspection is mandatory and cannot be configured
REQUIRED_DISTRO_FEATURES = "gobject-introspection-data"
GIR_MESON_OPTION = ""

GTKDOC_MESON_OPTION = "gtk_doc"

Check for x11 in distro features

SUMMARY = "Tepl library eases the development of GtkSourceView-based projects"
LICENSE = "LGPL-3.0-or-later"
LIC_FILES_CHKSUM = "file://LICENSES/LGPL-3.0-or-later.txt;md5=c51d3eef3be114124d11349ca0d7e117"

DEPENDS = " \
    glib-2.0-native \
    gtk+3 \
    gtksourceview4 \
    amtk \
    libxml2 \
    uchardet \
"

GNOMEBASEBUILDCLASS = "meson"

inherit gnomebase gobject-introspection gettext features_check

# for gtksourceview4
REQUIRED_DISTRO_FEATURES += "x11"

SRC_URI[archive.sha256sum] = "a86397a895dca9c0de7a5ccb063bda8f7ef691cccb950ce2cfdee367903e7a63"

# gobject-introspection is mandatory and cannot be configured
REQUIRED_DISTRO_FEATURES += "gobject-introspection-data"
GIR_MESON_OPTION = ""

GTKDOC_MESON_OPTION = "gtk_doc"


require openssl.inc

inherit pkgconfig native

SRC_URI[src.md5sum] = "40b6ea380cc8a5bf9734c2f8bf7e701e"
SRC_URI[src.sha256sum] = "92511d1f0caaa298dba250426f8e7d5d00b271847886d1adc62422778d6320db"
PR = "${INC_PR}.0"

DEFAULT_PREFERENCE = "-1"

export DIRS = "crypto ssl apps engines"

# This flag can contain target options (e.g -mfpu=neon for armv7-a systems)
export FULL_OPTIMIZATION = " "
export BUILD_OPTIMIZATION = " "

SRC_URI += "file://configure-targets.patch \
            file://shared-libs.patch \
            file://debian.patch \
	    file://libdeps-first.patch \
	   "

PARALLEL_MAKE = ""

CFLAG += " -Wa,--noexecstack "

NATIVE_INSTALL_WORKS = "1"

Remove patch that prevented OpenSSL from building on Ubuntu 11.10

require openssl.inc

inherit pkgconfig native

SRC_URI[src.md5sum] = "40b6ea380cc8a5bf9734c2f8bf7e701e"
SRC_URI[src.sha256sum] = "92511d1f0caaa298dba250426f8e7d5d00b271847886d1adc62422778d6320db"
PR = "${INC_PR}.0"

DEFAULT_PREFERENCE = "-1"

export DIRS = "crypto ssl apps engines"

# This flag can contain target options (e.g -mfpu=neon for armv7-a systems)
export FULL_OPTIMIZATION = " "
export BUILD_OPTIMIZATION = " "

SRC_URI += "file://configure-targets.patch \
            file://shared-libs.patch \
            file://debian.patch \
#	    file://libdeps-first.patch \
	   "

PARALLEL_MAKE = ""

CFLAG += " -Wa,--noexecstack "

NATIVE_INSTALL_WORKS = "1"


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

include libmetal.inc

Update commit ids for 2021 release

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

include libmetal.inc


# Start with the minial image as a base
require minimal-nilrt-image.bb

# Change description
DESCRIPTION = " \
    Fully-featured run-mode image for LabVIEW Comms. Includes drivers, \
    daemons, and other utilities required for RT targets to interact \
    with Comms. \
"

# Append additional software
IMAGE_INSTALL_NODEPS += " \
    lvrt \
    ni-datacomms-lvinterface \
    nitaglv \
    ni-nwstreams \
    ni-flexrio \
    ni-service-locator \
    ni-usrp-rio \
    mt \
"

IMAGE_INSTALL_NODEPS_remove_armv7a = " \
    ni-flexrio \
    ni-usrp-rio \
    mt \
"

IMAGE_INSTALL_NODEPS_append_x64 = " \
    ni-pxiplatformservices \
    ni-sync \
    ni-p2p \
    ni-watchdog \
"

Clean up the NXG image install list

# Start with the minial image as a base
require minimal-nilrt-image.bb

# Change description
DESCRIPTION = " \
    Fully-featured run-mode image for LabVIEW Comms. Includes drivers, \
    daemons, and other utilities required for RT targets to interact \
    with Comms. \
"

# Append additional software
IMAGE_INSTALL_NODEPS += " \
    lvrt \
    ni-datacomms-lvinterface \
    ni-nwstreams \
    nisvcloc \
    nitaglv \
"

IMAGE_INSTALL_NODEPS_append_x64 = " \
    mt \
    ni-flexrio \
    ni-p2p \
    ni-pxiplatformservices \
    ni-sync \
    ni-usrp-rio \
    ni-watchdog \
"


DESCRIPTION = "An audio Sample Rate Conversion library"
SECTION = "libs"
LICENSE = "GPL libsamplerate"

PR = "r1"

SRC_URI = "http://www.mega-nerd.com/SRC/libsamplerate-${PV}.tar.gz \
           file://libsamplerate-0.1.7-macro-quoting.patch;striplevel=0 \
           file://libsamplerate-0.1.7-tests.patch "
S = "${WORKDIR}/libsamplerate-${PV}"

inherit autotools pkgconfig

SRC_URI[md5sum] = "ad093e60ec44f0a60de8e29983ddbc0f"
SRC_URI[sha256sum] = "e0a646224a0323ac63f56ef009b2d7fee11452a7b8af139b19ae71d2890dbc9c"

Fix checksums to match downloaded file

DESCRIPTION = "An audio Sample Rate Conversion library"
SECTION = "libs"
LICENSE = "GPL libsamplerate"

PR = "r2"

SRC_URI = "http://www.mega-nerd.com/SRC/libsamplerate-${PV}.tar.gz \
           file://libsamplerate-0.1.7-macro-quoting.patch;striplevel=0 \
           file://libsamplerate-0.1.7-tests.patch "
S = "${WORKDIR}/libsamplerate-${PV}"

inherit autotools pkgconfig

SRC_URI[md5sum] = "6731a81cb0c622c483b28c0d7f90867d"
SRC_URI[sha256sum] = "78ed5d9ff1bf162c4a078f6a3e7432a537dd2f22dc58872b081fb01156027fcc"


require ${BPN}.inc

SRC_URI += "file://${BPN}.initd"

SRC_URI_append_libc-musl = " file://Drop-use-of-error-h.patch"

inherit update-rc.d

INITSCRIPT_NAME = "${BPN}"

do_compile() {
    oe_runmake nbcat
    oe_runmake mkemlog
}

do_install() {
   install -Dm 0755 ${WORKDIR}/${BPN}.initd ${D}${sysconfdir}/init.d/${BPN}
   install -Dm 0755 ${S}/nbcat ${D}${bindir}/nbcat
   install -Dm 0755 ${S}/mkemlog ${D}${bindir}/mkemlog
}

RDEPENDS_${PN} += "kernel-module-emlog"

Use RRECOMMEND instead of RDEPEND

require ${BPN}.inc

SRC_URI += "file://${BPN}.initd"

SRC_URI_append_libc-musl = " file://Drop-use-of-error-h.patch"

inherit update-rc.d

INITSCRIPT_NAME = "${BPN}"

do_compile() {
    oe_runmake nbcat
    oe_runmake mkemlog
}

do_install() {
   install -Dm 0755 ${WORKDIR}/${BPN}.initd ${D}${sysconfdir}/init.d/${BPN}
   install -Dm 0755 ${S}/nbcat ${D}${bindir}/nbcat
   install -Dm 0755 ${S}/mkemlog ${D}${bindir}/mkemlog
}

RRECOMMENDS_${PN} += "kernel-module-emlog"


DESCRIPTION = "Fast Library for Approximate Nearest Neighbors"
AUTHOR = "Marius Muja and David G. Lowe"
HOMEPAGE = "http://www.cs.ubc.ca/~mariusm/index.php/FLANN/FLANN"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://COPYING;md5=395adad2339bd9ce5fef13d564a9681c"

SRC_URI = "https://github.com/mariusmuja/flann/archive/${PV}.tar.gz"
SRC_URI[md5sum] = "73adef1c7bf8e8b978987e7860926ea6"
SRC_URI[sha256sum] = "b23b5f4e71139faa3bcb39e6bbcc76967fbaf308c4ee9d4f5bfbeceaa76cc5d3"

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

inherit cmake

SRC_URI += "file://0001-Use-object-libraries-instead-of-empty-file-list-in-C.patch"

Add downloadfilename parameter to SRC_URI

DESCRIPTION = "Fast Library for Approximate Nearest Neighbors"
AUTHOR = "Marius Muja and David G. Lowe"
HOMEPAGE = "http://www.cs.ubc.ca/~mariusm/index.php/FLANN/FLANN"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://COPYING;md5=395adad2339bd9ce5fef13d564a9681c"

SRC_URI = "https://github.com/mariusmuja/flann/archive/${PV}.tar.gz;downloadfilename=${BP}.tar.gz"
SRC_URI[md5sum] = "73adef1c7bf8e8b978987e7860926ea6"
SRC_URI[sha256sum] = "b23b5f4e71139faa3bcb39e6bbcc76967fbaf308c4ee9d4f5bfbeceaa76cc5d3"

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

inherit cmake

SRC_URI += "file://0001-Use-object-libraries-instead-of-empty-file-list-in-C.patch"


SUMMARY = "Xilinx HDMI Linux Kernel module"
DESCRIPTION = "Out-of-tree HDMI kernel modules provider for MPSoC EG/EV devices"
SECTION = "kernel/modules"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://LICENSE.md;md5=570506b747d768e7802376f932dff926"

XLNX_HDMI_VERSION = "5.4.0"
PV = "${XLNX_HDMI_VERSION}"

S = "${WORKDIR}/git"

BRANCH ?= "master"
REPO   ?= "git://github.com/Xilinx/hdmi-modules.git;protocol=https"
SRCREV = "007af0d54fdccd7fdd93095511b5a5a886aea30b"

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

inherit module

EXTRA_OEMAKE += "O=${STAGING_KERNEL_BUILDDIR}"
COMPATIBLE_MACHINE = "^$"
COMPATIBLE_MACHINE_zynqmp = "zynqmp"
COMPATIBLE_MACHINE_versal = "versal"

Update commit id for 2021.1

SUMMARY = "Xilinx HDMI Linux Kernel module"
DESCRIPTION = "Out-of-tree HDMI kernel modules provider for MPSoC EG/EV devices"
SECTION = "kernel/modules"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://LICENSE.md;md5=570506b747d768e7802376f932dff926"

XLNX_HDMI_VERSION = "5.4.0"
PV = "${XLNX_HDMI_VERSION}"

S = "${WORKDIR}/git"

BRANCH ?= "master"
REPO   ?= "git://github.com/Xilinx/hdmi-modules.git;protocol=https"
SRCREV = "24697db95e9b173333e17c4e31c03068e69a9102"

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

inherit module

EXTRA_OEMAKE += "O=${STAGING_KERNEL_BUILDDIR}"
COMPATIBLE_MACHINE = "^$"
COMPATIBLE_MACHINE_zynqmp = "zynqmp"
COMPATIBLE_MACHINE_versal = "versal"


COMPATIBLE_MACHINE = "raspberrypi"

require linux.inc

DESCRIPTION = "Linux kernel for the RaspberryPi board"

PR = "r1"

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

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

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

S = "${WORKDIR}/git"

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

KERNEL_DEFCONFIG = "bcmrpi_defconfig"

PARALLEL_MAKEINST = ""

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

Fix build issue with make 3.82

COMPATIBLE_MACHINE = "raspberrypi"

require linux.inc

DESCRIPTION = "Linux kernel for the RaspberryPi board"

PR = "r1"

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

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

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

S = "${WORKDIR}/git"

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

KERNEL_DEFCONFIG = "bcmrpi_defconfig"

PARALLEL_MAKEINST = ""

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

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


DESCRIPTION = "Miscellaneous files for the base system."
SECTION = "base"
PRIORITY = "optional"
PR = "r0"
LICENSE = "BSD"
PACKAGE_ARCH = "all"

SRC_URI = "http://ftp.de.debian.org/debian/pool/main/l/lsb/lsb_3.2-23.tar.gz"

FILES_${PN} = "/lib/lsb"

S = "${WORKDIR}/lsb-3.2"

do_compile () {
}

do_install () {
	install -d ${D}/lib/lsb
	install -m 755 init-functions ${D}/lib/lsb/
}

Move to a newer, fetchable source. Add checksums

DESCRIPTION = "Miscellaneous files for the base system."
SECTION = "base"
PRIORITY = "optional"
PR = "r0"
LICENSE = "BSD"
PACKAGE_ARCH = "all"

SRC_URI = "http://ftp.de.debian.org/debian/pool/main/l/lsb/lsb_3.2-27.tar.gz"

FILES_${PN} = "/lib/lsb"

S = "${WORKDIR}/lsb-3.2"

do_compile () {
}

do_install () {
	install -d ${D}/lib/lsb
	install -m 755 init-functions ${D}/lib/lsb/
}

SRC_URI[md5sum] = "eb22ef00c02d60e7cd5b9070c8fadd98"
SRC_URI[sha256sum] = "15d7e2ba0a54c809442952c676f7b30d00a9a0207a3ddcc4ae7aaea830eccc08"


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

Change to the OpenWRT mirror so that oesources has something to pull from (perhaps openwrt is pulling from oesources too...)

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
#NOTE: this should probably be converted to pull from sourceforge
# CVS, because openwrt is just another mirror of a file which no
# longer seems to exist outside mirrors.  mirror magic.
SRC_URI = "http://downloads.openwrt.org/sources/m102.tar.gz \
	   file://make.patch;patch=1"
S = "${WORKDIR}"

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


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

DEPENDS = "kdelibs4 libkactivities4"

inherit kde_cmake

SRC_URI = "git://anongit.kde.org/share-like-connect.git;branch=master"
SRCREV = "2d19bb9d148a3293b18355bb8fd8d777d680a1b1"

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

S = "${WORKDIR}/git"

# RECIPE IS CURRENTLY BROKEN

Set git revision to the tag Active/2.0

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


SUMMARY = "multiple-precision integer library"

DESCRIPTION = "LibTomMath is a C language library that provides a vast array \
of highly optimized functions for number theory."

LICENSE = "PD"
LIC_FILES_CHKSUM = "file://debian/copyright;\
md5=98bc0cb525cb6dc43f4375836db2f87c"

inherit debian-package autotools
DEBIAN_SECTON = "libs"
DPR = "0"

SRC_URI += "\
        file://replace-group-wheel.patch \
"

Correct recipe to have same packages as Debian

SUMMARY = "multiple-precision integer library"
DESCRIPTION = "LibTomMath is a C language library that provides a vast array \
of highly optimized functions for number theory."

inherit debian-package autotools
PR = "r0"

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

SRC_URI += "\
        file://replace-group-wheel.patch \
"

EXTRA_OEMAKE += " LIBTOOL=${HOST_SYS}-libtool GCC=${HOST_SYS}-gcc"

do_compile() {
	# Modify makefile.shared to add cross-compile options
	sed -i -e "s/libtool/\$\{LIBTOOL}/" ${S}/makefile.shared
	sed -i -e "s/--mode=link/--mode=link --tag=CC/" ${S}/makefile.shared
	sed -i -e "s/gcc/\$\{GCC}/" ${S}/makefile.shared

	oe_runmake -f makefile.shared
}

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

	# Ship libtommath dynamic library to correct directory
	install -m 0755 ${S}/.libs/libtommath.so.0.0.42 ${D}${libdir}

	ln -sf ${D}${libdir}/libtommath.so.0.0.42 ${D}${libdir}/libtommath.so.0
	ln -sf ${D}${libdir}/libtommath.so.0.0.42 ${D}${libdir}/libtommath.so
}

# Correct name of libtommath-dev package
DEBIANNAME_${PN}-dev = "libtommath-dev"

# Move static lib into same package as Debian
FILES_${PN}-dev = "${includedir} ${libdir}/libtommath.a ${libdir}/libtommath.so"

# Override files in package staticdev
FILES_${PN}-staticdev = ""

# Skip QA issue related to .a file not in static dev package
INSANE_SKIP_libtommath-dev = "staticdev"


DESCRIPTION = "Cryptography demo descriptions for Matrix v2"

require matrix-gui-apps-git.inc

PR = "${INC_PR}.12"

PACKAGE_ARCH = "${MACHINE_ARCH}"

S = "${WORKDIR}/git/cryptos_apps_scripts"
S:ti33x = "${WORKDIR}/git/cryptos_apps_program"
S:ti43x = "${WORKDIR}/git/cryptos_apps_program"
S:dra7xx = "${WORKDIR}/git/cryptos_apps_program"

FILES:${PN} += "${MATRIX_BASE_DIR}/*"

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

Use crypto_apps_script instead of crypto_apps_program

DESCRIPTION = "Cryptography demo descriptions for Matrix v2"

require matrix-gui-apps-git.inc

PR = "${INC_PR}.12"

PACKAGE_ARCH = "${MACHINE_ARCH}"

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

FILES:${PN} += "${MATRIX_BASE_DIR}/*"

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


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

inherit autotools-brokensep gettext gitpkgv pkgconfig

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

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

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

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

S = "${WORKDIR}/git"

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

Update to tip of master

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

inherit autotools-brokensep gettext gitpkgv pkgconfig

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

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

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

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

S = "${WORKDIR}/git"

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


SUMMARY = "Build extra packages for the package repository"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690"

inherit packagegroup

PACKAGES = "packagegroup-gumstix"

RDEPENDS_packagegroup-gumstix = " \
    ${ROS_INSTALL} \
    boost \
    devmem2 \
    git \
    i2c-tools \
    mavlink-socket \
    nano \
    opencv \
    packagegroup-core-qt-demoapps \
    packagegroup-core-qt4e \
    packagegroup-core-sdk \
    packagegroup-core-standalone-sdk-target \
    packagegroup-core-tools-debug \
    packagegroup-core-tools-testapps \
    python \
    robovero-examples \
    robovero-python \
    screen \
    sshd \
"

ROS_INSTALL = " \
    packagegroup-ros-comm \
    python-wstool \
    python-email \
    python-distutils \
    git \
    git-perltools \
    python-rosinstall \
    rospy-tutorials \
    roscpp-tutorials \
"

Add python-pyserial to the Gumstix package group

SUMMARY = "Build extra packages for the package repository"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690"

inherit packagegroup

PACKAGES = "packagegroup-gumstix"

RDEPENDS_packagegroup-gumstix = " \
    ${ROS_INSTALL} \
    boost \
    devmem2 \
    git \
    i2c-tools \
    mavlink-socket \
    nano \
    opencv \
    packagegroup-core-qt-demoapps \
    packagegroup-core-qt4e \
    packagegroup-core-sdk \
    packagegroup-core-standalone-sdk-target \
    packagegroup-core-tools-debug \
    packagegroup-core-tools-testapps \
    python \
    python-pyserial \
    robovero-examples \
    robovero-python \
    screen \
    sshd \
"

ROS_INSTALL = " \
    packagegroup-ros-comm \
    python-wstool \
    python-email \
    python-distutils \
    git \
    git-perltools \
    python-rosinstall \
    rospy-tutorials \
    roscpp-tutorials \
"


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

SUMMARY = "Xfce desktop environment packages for NI Linux Realtime distribution"
LICENSE = "MIT"
PR = "r1"

inherit packagegroup

PACKAGE_ARCH = "${MACHINE_ARCH}"

RDEPENDS_${PN} = "\
	packagegroup-xfce-base \
	xf86-video-vesa \
	xfce4-xkb-plugin \
	xserver-xfce-init \
	xrdb \
	xfce-nilrt-settings \
	xorg-fonts-misc \
	xorg-fonts-100dpi \
	xfontsel \
	fontconfig-overrides \
	pt-sans \
	gnome-icon-theme-minimal \
"

Add the Mousepad text editor to the NI XFCE package group

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

SUMMARY = "Xfce desktop environment packages for NI Linux Realtime distribution"
LICENSE = "MIT"
PR = "r1"

inherit packagegroup

PACKAGE_ARCH = "${MACHINE_ARCH}"

RDEPENDS_${PN} = "\
	packagegroup-xfce-base \
	xf86-video-vesa \
	xfce4-xkb-plugin \
	xserver-xfce-init \
	xrdb \
	xfce-nilrt-settings \
	xorg-fonts-misc \
	xorg-fonts-100dpi \
	xfontsel \
	fontconfig-overrides \
	pt-sans \
	gnome-icon-theme-minimal \
	mousepad \
"


LICENSE = "GPL"
DESCRIPTION = "procfs tools"
SECTION = "base"
PRIORITY = "required"
MAINTAINER = "Greg Gilbert <greg@treke.net>"
DEPENDS = "ncurses"
PR = "r2"

SRC_URI = "${SOURCEFORGE_MIRROR}/psmisc/psmisc-${PV}.tar.gz \
	   file://gettext.patch;patch=1"
S = "${WORKDIR}/psmisc-${PV}"

inherit autotools gettext

ALLOW_EMPTY = "1"

PACKAGES = "${PN} fuser fuser-doc \
	    killall killall-doc \
	    pstree pstree-doc"

FILES_${PN} = ""
RDEPENDS_${PN} = "fuser killall pstree"

FILES_fuser = "${bindir}/fuser"
FILES_fuser-doc = "${mandir}/man1/fuser*"

FILES_killall = "${bindir}/killall"
FILES_killall-doc = "${mandir}/man1/killall*"

FILES_pstree = "${bindir}/pstree"
FILES_pstree-doc = "${mandir}/man1/pstree*"

Add update-alternatives for killall, conflicts with busybox

LICENSE = "GPL"
DESCRIPTION = "procfs tools"
SECTION = "base"
PRIORITY = "required"
MAINTAINER = "Greg Gilbert <greg@treke.net>"
DEPENDS = "ncurses"
PR = "r3"

SRC_URI = "${SOURCEFORGE_MIRROR}/psmisc/psmisc-${PV}.tar.gz \
	   file://gettext.patch;patch=1"
S = "${WORKDIR}/psmisc-${PV}"

inherit autotools gettext

ALLOW_EMPTY = "1"

PACKAGES = "${PN} fuser fuser-doc \
	    killall killall-doc \
	    pstree pstree-doc"

FILES_${PN} = ""
RDEPENDS_${PN} = "fuser killall pstree"

FILES_fuser = "${bindir}/fuser"
FILES_fuser-doc = "${mandir}/man1/fuser*"

FILES_killall = "${bindir}/killall.${PN}"
FILES_killall-doc = "${mandir}/man1/killall*"

FILES_pstree = "${bindir}/pstree"
FILES_pstree-doc = "${mandir}/man1/pstree*"

do_install_append() {
	mv ${D}${bindir}/killall ${D}${bindir}/killall.${PN}
}

pkg_postinst_killall() {
	update-alternatives --install ${bindir}/killall killall killall.${PN} 90
}

pkg_postrm_killall() {
	update-alternatives --remove ${bindir}/killall killall.${PN}
}


require recipes/images/minimal-image.bb

IMAGE_INSTALL += "\
        ack \
        avahi-daemon \
        binutils \
        control-freak \
        cpp \
        cpp-symlinks \
        curl \
        gcc \
        gcc-symlinks \
        git \
        htop \
        i2c-tools \
        iotop \
        iperf \
        libgcc-dev \
        libxml2 \
        make \
        mtr \
        nano \
        nginx \
        ntpdate \
        openssh \
        perl \
        perl-modules \
        python \
        python-daemon \
        python-flask \
        python-jinja2 \
        python-misc \
        python-modules \
        python-pyserial \
        python-pytronics \
        python-werkzeug \
        ruby \
        sysstat \
        usbutils \
        usb-gadget-mode \
        uwsgi \
        vim \
        vim-vimrc \
    "

export IMAGE_BASENAME = "rascal-image"

Add avahi-autoipd so link-local fallback works

require recipes/images/minimal-image.bb

IMAGE_INSTALL += "\
        ack \
        avahi-autoipd \
        avahi-daemon \
        binutils \
        control-freak \
        cpp \
        cpp-symlinks \
        curl \
        gcc \
        gcc-symlinks \
        git \
        htop \
        i2c-tools \
        iotop \
        iperf \
        libgcc-dev \
        libxml2 \
        make \
        mtr \
        nano \
        nginx \
        ntpdate \
        openssh \
        perl \
        perl-modules \
        python \
        python-daemon \
        python-flask \
        python-jinja2 \
        python-misc \
        python-modules \
        python-pyserial \
        python-pytronics \
        python-werkzeug \
        ruby \
        sysstat \
        usbutils \
        usb-gadget-mode \
        uwsgi \
        vim \
        vim-vimrc \
    "

export IMAGE_BASENAME = "rascal-image"


require schroedinger.inc

PR = "${INC_PR}.0"

inherit autotools

SRC_URI[schroedingertargz.md5sum] = "d67ec48b7c506db8c8b49156bf409e60"
SRC_URI[schroedingertargz.sha256sum] = "345abcaa72ff0f2e9c1075e22f7141475ee4e6eea23a7f568b69ffc13cc1c723"

PACKAGES =+ "gst-plugin-schroedinger-dbg gst-plugin-schroedinger-dev gst-plugin-schroedinger"
FILES_gst-plugin-schroedinger = "${libdir}/gstreamer-0.10/*.so"
FILES_gst-plugin-schroedinger-dbg = "${libdir}/gstreamer-0.10/.debug"
FILES_gst-plugin-schroedinger-dev = "${libdir}/gstreamer-0.10/*.*a"

Update LICENSE field version to GPLv2 and LPGLv2

require schroedinger.inc

LICENSE = "MPL-1.1 | LGPLv2 | GPLv2 | MIT"

PR = "${INC_PR}.1"

inherit autotools

SRC_URI[schroedingertargz.md5sum] = "d67ec48b7c506db8c8b49156bf409e60"
SRC_URI[schroedingertargz.sha256sum] = "345abcaa72ff0f2e9c1075e22f7141475ee4e6eea23a7f568b69ffc13cc1c723"

PACKAGES =+ "gst-plugin-schroedinger-dbg gst-plugin-schroedinger-dev gst-plugin-schroedinger"
FILES_gst-plugin-schroedinger = "${libdir}/gstreamer-0.10/*.so"
FILES_gst-plugin-schroedinger-dbg = "${libdir}/gstreamer-0.10/.debug"
FILES_gst-plugin-schroedinger-dev = "${libdir}/gstreamer-0.10/*.*a"


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"

Revert "libgusb: Use the correct args to disable vala support"


SUMMARY = "Font rendering capabilities for complex non-Roman writing systems"
HOMEPAGE = "http://sourceforge.net/projects/silgraphite"
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=acba2ba259d936c324b90ab679e6b901"

inherit cmake

DEPENDS += "freetype"

SRC_URI = "${SOURCEFORGE_MIRROR}/project/silgraphite/${BPN}/${BPN}-${PV}.tgz"
SRC_URI[md5sum] = "29616d4f9651706036ca25c111508272"
SRC_URI[sha256sum] = "dd63e169b0d3cf954b397c122551ab9343e0696fb2045e1b326db0202d875f06"

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

BBCLASSEXTEND = "native"

Fix license checksum - copyright year has changed

SUMMARY = "Font rendering capabilities for complex non-Roman writing systems"
HOMEPAGE = "http://sourceforge.net/projects/silgraphite"
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=b0452d508cc4eb104de0226a5b0c8786"

inherit cmake

DEPENDS += "freetype"

SRC_URI = "${SOURCEFORGE_MIRROR}/project/silgraphite/${BPN}/${BPN}-${PV}.tgz"
SRC_URI[md5sum] = "29616d4f9651706036ca25c111508272"
SRC_URI[sha256sum] = "dd63e169b0d3cf954b397c122551ab9343e0696fb2045e1b326db0202d875f06"

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

BBCLASSEXTEND = "native"


SUMMARY = "Library for using PKCS"
DESCRIPTION = "\
Libp11 is a library implementing a small layer on top of PKCS \
make using PKCS"
HOMEPAGE = "http://www.opensc-project.org/libp11"
SECTION = "Development/Libraries"
LICENSE = "LGPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=fad9b3332be894bab9bc501572864b29"
DEPENDS = "libtool openssl"

SRC_URI = "git://github.com/OpenSC/libp11.git"
SRCREV = "64569a391897bd29c5060b19fa4613e619e59277"

S = "${WORKDIR}/git"

inherit autotools pkgconfig

EXTRA_OECONF = "--disable-static"

do_install_append () {
    rm -rf ${D}${libdir}/*.la
    rm -rf ${D}${docdir}/${BPN}
}

FILES_${PN} += "${libdir}/engines/pkcs11.so"
FILES_${PN}-dev += "${libdir}/engines/libpkcs11${SOLIBSDEV}"

Fix build with openssl 1.1+

SUMMARY = "Library for using PKCS"
DESCRIPTION = "\
Libp11 is a library implementing a small layer on top of PKCS \
make using PKCS"
HOMEPAGE = "http://www.opensc-project.org/libp11"
SECTION = "Development/Libraries"
LICENSE = "LGPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=fad9b3332be894bab9bc501572864b29"
DEPENDS = "libtool openssl"

SRC_URI = "git://github.com/OpenSC/libp11.git"
SRCREV = "64569a391897bd29c5060b19fa4613e619e59277"

S = "${WORKDIR}/git"

inherit autotools pkgconfig

EXTRA_OECONF = "--disable-static"

do_install_append () {
    rm -rf ${D}${libdir}/*.la
    rm -rf ${D}${docdir}/${BPN}
}

FILES_${PN} += "${libdir}/engines*/pkcs11.so"
FILES_${PN}-dev += "${libdir}/engines*/libpkcs11${SOLIBSDEV}"


SECTION = "base"
DESCRIPTION = "Script to manage module configuration files"
LICENSE = "GPLv2"
PACKAGE_ARCH = "all"
RDEPENDS = "${@base_contains("MACHINE_FEATURES", "kernel26",  "module-init-tools-depmod","modutils-depmod",d)} "
PR = "r5"

SRC_URI = "file://update-modules"

pkg_postinst() {
if [ "x$D" != "x" ]; then
	exit 1
fi
update-modules
}

do_install() {
	install -d ${D}${sbindir}
	install ${WORKDIR}/update-modules ${D}${sbindir}
}

Insert special case work-around for a legacy corner case of a machine which supports a 2.6 kernel but is used in a distro which must use a 2.4 kernel. It's ugly, just look away now. It has the blessing of RP and hrw, however.

SECTION = "base"
DESCRIPTION = "Script to manage module configuration files"
LICENSE = "GPLv2"
PACKAGE_ARCH = "all"
RDEPENDS = "${@base_contains("MACHINE_FEATURES", "kernel26",  "module-init-tools-depmod","modutils-depmod",d)} "
PR = "r6"

SRC_URI = "file://update-modules"

pkg_postinst() {
if [ "x$D" != "x" ]; then
	exit 1
fi
update-modules
}

do_install() {
	install -d ${D}${sbindir}
	install ${WORKDIR}/update-modules ${D}${sbindir}
}

# The Unslung distro uses a 2.4 kernel for a machine (the NSLU2) which
# supports both 2.4 and 2.6 kernels.  Rather than forcing OE to have
# to deal with that unique legacy corner case, we just nullify the
# RDEPENDS here and handle it in the Unslung image recipe. I know this
# is ugly.  Please don't remove it unless you first make the RDEPENDS
# line at the top of this file understand that a machine can be used
# in both a 2.4 kernel distro and a 2.6 kernel distro.  Really, it's
# not worth the effort to do that, so just overlook the next line.
RDEPENDS_unslung = ""


inherit pypi setuptools3
require python-cryptography.inc

SRC_URI += " \
    file://run-ptest \
"

Add -pthread to link flags

inherit pypi setuptools3
require python-cryptography.inc

LDSHARED += "-pthread"

SRC_URI += " \
    file://run-ptest \
"


DESCRIPTION = "Target package for Android SDK"
ALLOW_EMPTY = "1"

LIBC_PKGS_android = "bionic bionic-dev bionic-thread-db"

RDEPENDS_${PN} += "\
    task-sdk-bare \
    bionic-dev \
    zlib-dev \
    gdbserver \
    "

Remove zlib-dev - it duplicates (and conflicts with) the zlib.h headers in bionic-dev

DESCRIPTION = "Target package for Android SDK"
ALLOW_EMPTY = "1"

LIBC_PKGS_android = "bionic bionic-dev bionic-thread-db"

RDEPENDS_${PN} += "\
    task-sdk-bare \
    bionic-dev \
    gdbserver \
    "


require libnl.inc
PE = "1"
PR = "${INC_PR}.0"

DEPENDS = "flex-native bison-native"

SRC_URI = "\
  http://www.infradead.org/~tgr/libnl/files/libnl-${PV}.tar.gz \
  file://fix-pc-file.patch \
  file://fix-pktloc-dep-race.patch \
"

SRC_URI[md5sum] = "6aaf1e9802a17a7d702bb0638044ffa7"
SRC_URI[sha256sum] = "5a40dc903d3ca1074da7424b908bec8ff16936484798c7e46e53e9db8bc87a9c"

PACKAGES =+ "${PN}-route ${PN}-nf ${PN}-genl ${PN}-cli"
FILES_${PN}-route = "${libdir}/libnl-route.so.*"
FILES_${PN}-nf    = "${libdir}/libnl-nf.so.*"
FILES_${PN}-genl  = "${libdir}/libnl-genl.so.*"
FILES_${PN}-cli   = "${libdir}/libnl-cli.so.*"

Update LICENSE field version to LGPLv2.1

require libnl.inc

LICENSE = "LGPLv2.1"

PE = "1"
PR = "${INC_PR}.1"

DEPENDS = "flex-native bison-native"

SRC_URI = "\
  http://www.infradead.org/~tgr/libnl/files/libnl-${PV}.tar.gz \
  file://fix-pc-file.patch \
  file://fix-pktloc-dep-race.patch \
"

SRC_URI[md5sum] = "6aaf1e9802a17a7d702bb0638044ffa7"
SRC_URI[sha256sum] = "5a40dc903d3ca1074da7424b908bec8ff16936484798c7e46e53e9db8bc87a9c"

PACKAGES =+ "${PN}-route ${PN}-nf ${PN}-genl ${PN}-cli"
FILES_${PN}-route = "${libdir}/libnl-route.so.*"
FILES_${PN}-nf    = "${libdir}/libnl-nf.so.*"
FILES_${PN}-genl  = "${libdir}/libnl-genl.so.*"
FILES_${PN}-cli   = "${libdir}/libnl-cli.so.*"


DESCRIPTION = "Nginx is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server."
HOMEPAGE = "http://wiki.nginx.org"
SECTION = "net"
PRIORITY = "optional"
LICENSE = "BSD"
SRCNAME = "nginx"
PR = "r28"

SRC_URI = "http://nginx.org/download/nginx-${PV}.tar.gz \
           file://allow-cross.patch"

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

do_configure() {
    export cross_compiling="yes"
    ${S}/configure --with-cc=${HOST_PREFIX}gcc --without-http_rewrite_module --sbin-path=${S}${sbindir} --error-log-path=${localstatedir}/log/nginx/error --conf-path=${sysconfdir}/nginx/nginx.conf
}

do_install() {
    make DESTDIR=${S} install
}

do_package() {

}

SRC_URI[md5sum] = "5751c920c266ea5bb5fc38af77e9c71c"
SRC_URI[sha256sum] = "3de3d6caeed56751c24ebc5cfb03475620b9eb0fa999c766a01d44dca674c001"

Fix packaging, but (working) binary is still generated in wrong place

DESCRIPTION = "Nginx is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server."
HOMEPAGE = "http://wiki.nginx.org"
SECTION = "net"
PRIORITY = "optional"
LICENSE = "BSD"
SRCNAME = "nginx"
PR = "r0"

SRC_URI = "http://nginx.org/download/nginx-${PV}.tar.gz \
           file://allow-cross.patch"
S = "${WORKDIR}/${PN}-${PV}"

DEPENDS = "libpcre"

do_configure() {
    export cross_compiling="yes"
    ${S}/configure --with-cc=${HOST_PREFIX}gcc --sbin-path=${S}${sbindir} --error-log-path=${localstatedir}/log/nginx/error --conf-path=${sysconfdir}/nginx/nginx.conf
}

do_install() {
    make DESTDIR=${S}/../image install
}

SRC_URI[md5sum] = "5751c920c266ea5bb5fc38af77e9c71c"
SRC_URI[sha256sum] = "3de3d6caeed56751c24ebc5cfb03475620b9eb0fa999c766a01d44dca674c001"


SUMMARY = "User-space tools for LinuxPPS"

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

PV = "0.0.0+git${SRCPV}"
SRCREV = "0deb9c7e135e9380a6d09e9d2e938a146bb698c8"
SRC_URI = "git://github.com/ago/pps-tools.git"

S = "${WORKDIR}/git"

do_install() {
        install -d ${D}${bindir} ${D}${includedir} \
                   ${D}${includedir}/sys
        oe_runmake 'DESTDIR=${D}' install
}

Add HOMEPAGE info into recipe file.

SUMMARY = "User-space tools for LinuxPPS"
HOMEPAGE = "http://linuxpps.org"

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

PV = "0.0.0+git${SRCPV}"
SRCREV = "0deb9c7e135e9380a6d09e9d2e938a146bb698c8"
SRC_URI = "git://github.com/ago/pps-tools.git"

S = "${WORKDIR}/git"

do_install() {
        install -d ${D}${bindir} ${D}${includedir} \
                   ${D}${includedir}/sys
        oe_runmake 'DESTDIR=${D}' install
}


SUMMARY = "Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design."
SECTION = "libs/network"
HOMEPAGE = "https://github.com/Microsoft/cpprestsdk/"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${S}/license.txt;md5=a2e15b954769218ff912468eecd6a02f"
DEPENDS = "openssl websocketpp zlib boost brotli"

EXTRA_OECMAKE = "-DCPPREST_EXPORT_DIR=cmake -DCPPREST_EXCLUDE_BROTLI=OFF"

SRC_URI = "git://github.com/Microsoft/cpprestsdk.git;protocol=https;branch=master \
           file://disable-float-tests.patch \
           file://disable-outside-tests.patch "

# tag 2.10.13
SRCREV= "9d8f544001cb74544de6dc8c565592f7e2626d6e"

S = "${WORKDIR}/git"

inherit cmake pkgconfig

# Temporary until https://github.com/Microsoft/cpprestsdk/issues/1099
# is fixed properly
CXXFLAGS += "-Wno-error=deprecated-copy -Wno-error=redundant-move"

Fix build failure with gcc 8

SUMMARY = "Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design."
SECTION = "libs/network"
HOMEPAGE = "https://github.com/Microsoft/cpprestsdk/"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${S}/license.txt;md5=a2e15b954769218ff912468eecd6a02f"
DEPENDS = "openssl websocketpp zlib boost brotli"

EXTRA_OECMAKE = "-DCPPREST_EXPORT_DIR=cmake -DCPPREST_EXCLUDE_BROTLI=OFF"

SRC_URI = "git://github.com/Microsoft/cpprestsdk.git;protocol=https;branch=master \
           file://disable-float-tests.patch \
           file://disable-outside-tests.patch "

# tag 2.10.13
SRCREV= "9d8f544001cb74544de6dc8c565592f7e2626d6e"

S = "${WORKDIR}/git"

inherit cmake pkgconfig

CXXFLAGS += "-Wno-error"


DESCRIPTION = "iCal and scheduling (RFC 2445, 2446, 2447) library"
HOMEPAGE = "http://www.softwarestudio.org/softwarestudio/app.php/libical"
SECTION = "libs"
LICENSE = "LGPL / MPL"
PR = "r0"

SRC_URI = "${SOURCEFORGE_MIRROR}/freeassociation/${P}.tar.gz \
	  "

inherit autotools

SRC_URI[md5sum] = "e0403c31e1ed82569325685f8c15959c"
SRC_URI[sha256sum] = "20a4750df8f4dedd718b55117b8351989e0dfa4ad2c966a383550ed43e6a72d8"

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

DESCRIPTION = "iCal and scheduling (RFC 2445, 2446, 2447) library"
HOMEPAGE = "http://www.softwarestudio.org/softwarestudio/app.php/libical"
SECTION = "libs"
LICENSE = "LGPLv2.1 | MPL-1"
PR = "r1"

SRC_URI = "${SOURCEFORGE_MIRROR}/freeassociation/${P}.tar.gz \
	  "

inherit autotools

SRC_URI[md5sum] = "e0403c31e1ed82569325685f8c15959c"
SRC_URI[sha256sum] = "20a4750df8f4dedd718b55117b8351989e0dfa4ad2c966a383550ed43e6a72d8"


SUMMARY = "GLib-based library for accessing online service APIs using the GData protocol"
HOMEPAGE = "http://live.gnome.org/libgdata"
BUGTRACKER = "https://bugzilla.gnome.org/"

LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24 \
                    file://gdata/gdata.h;endline=20;md5=079a554efcf65d46f96a515806e7e99a \
                    file://gdata/gdata-types.h;endline=20;md5=7399b111aac8718da13888fc634be6ef"

DEPENDS = "libxml2 glib-2.0 libsoup-2.4"

inherit gnomebase pkgconfig autotools gettext

SRC_URI[archive.md5sum] = "ec5262cbcb07b63b58d45aa3ac636096"
SRC_URI[archive.sha256sum] = "fb244138276a5ce98510b0e2408bbf6f9ce0fd8cdcf86f07cd4be38afbb7c2bc"

Fix build when S != B

SUMMARY = "GLib-based library for accessing online service APIs using the GData protocol"
HOMEPAGE = "http://live.gnome.org/libgdata"
BUGTRACKER = "https://bugzilla.gnome.org/"

LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24 \
                    file://gdata/gdata.h;endline=20;md5=079a554efcf65d46f96a515806e7e99a \
                    file://gdata/gdata-types.h;endline=20;md5=7399b111aac8718da13888fc634be6ef"

DEPENDS = "libxml2 glib-2.0 libsoup-2.4"

inherit gnomebase pkgconfig autotools-brokensep gettext

SRC_URI[archive.md5sum] = "ec5262cbcb07b63b58d45aa3ac636096"
SRC_URI[archive.sha256sum] = "fb244138276a5ce98510b0e2408bbf6f9ce0fd8cdcf86f07cd4be38afbb7c2bc"


SECTION = "base"
PR = "r0"
HOMEPAGE = "http://www.freedesktop.org/Software/dbus"
DESCRIPTION = "message bus system for applications to talk to one another"
LICENSE = "GPL"
DEPENDS = "expat glib-2.0 virtual/libintl dbus-glib-native dbus"

SRC_URI = "http://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-${PV}.tar.gz \
	   file://no-examples.patch;patch=1 \
	   file://no-introspect.patch;patch=1"

inherit autotools pkgconfig gettext

FILES_${PN} = "${libdir}/lib*.so.*"
FILES_${PN}-dev += "${libdir}/dbus-1.0/include ${bindir}/dbus-glib-tool"

do_configure_prepend() {
	install -m 0644 ${STAGING_DIR}/${BUILD_SYS}/share/dbus/dbus-bus-introspect.xml ${S}/tools/
	install -m 0644 ${STAGING_DIR}/${BUILD_SYS}/share/dbus/dbus-glib-bindings.h ${S}/tools/
}

do_stage () {
	oe_libinstall -so -C dbus libdbus-glib-1 ${STAGING_LIBDIR}

	autotools_stage_includes
}

FILES_${PN}-dev += "${bindir}/dbus-binding-tool"

Fix harcoded staging paths (from Poky)

SECTION = "base"
PR = "r0"
HOMEPAGE = "http://www.freedesktop.org/Software/dbus"
DESCRIPTION = "message bus system for applications to talk to one another"
LICENSE = "GPL"
DEPENDS = "expat glib-2.0 virtual/libintl dbus-glib-native dbus"

SRC_URI = "http://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-${PV}.tar.gz \
	   file://no-examples.patch;patch=1 \
	   file://no-introspect.patch;patch=1"

inherit autotools pkgconfig gettext

FILES_${PN} = "${libdir}/lib*.so.*"
FILES_${PN}-dev += "${libdir}/dbus-1.0/include ${bindir}/dbus-glib-tool"

do_configure_prepend() {
	install -m 0644 ${STAGING_DATADIR_NATIVE}/dbus/dbus-bus-introspect.xml ${S}/tools/
	install -m 0644 ${STAGING_DATADIR_NATIVE}/dbus/dbus-glib-bindings.h ${S}/tools/
}

do_stage () {
	oe_libinstall -so -C dbus libdbus-glib-1 ${STAGING_LIBDIR}

	autotools_stage_includes
}

FILES_${PN}-dev += "${bindir}/dbus-binding-tool"


SUMMARY = "Dhrystone CPU benchmark"
LICENSE = "PD"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/PD;md5=b3597d12946881e13cb3b548d1173851"

SRC_URI = "http://www.netlib.org/benchmark/dhry-c;downloadfilename=dhry-c.shar \
           file://dhrystone.patch"
SRC_URI[md5sum] = "75aa5909c174eed98c134be2f56307da"
SRC_URI[sha256sum] = "038a7e9169787125c3451a6c941f3aca5db2d2f3863871afcdce154ef17f4e3e"

# Need to override Makefile variables
EXTRA_OEMAKE = "-e MAKEFLAGS="

do_unpack() {
    [ -d ${S} ] || mkdir -p ${S}
    cd ${S}
    sh ${DL_DIR}/dhry-c.shar
}
do_install() {
    install -d ${D}${bindir}
    install -m 0755 ${S}/dhry ${D}${bindir}
}

# Prevent procedure merging as required by dhrystone.c:
CFLAGS += "-fno-lto"

LDFLAGS += "-fno-lto"

Disable warnings as errors with clang

SUMMARY = "Dhrystone CPU benchmark"
LICENSE = "PD"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/PD;md5=b3597d12946881e13cb3b548d1173851"

SRC_URI = "http://www.netlib.org/benchmark/dhry-c;downloadfilename=dhry-c.shar \
           file://dhrystone.patch"
SRC_URI[md5sum] = "75aa5909c174eed98c134be2f56307da"
SRC_URI[sha256sum] = "038a7e9169787125c3451a6c941f3aca5db2d2f3863871afcdce154ef17f4e3e"

# Need to override Makefile variables
EXTRA_OEMAKE = "-e MAKEFLAGS="

do_unpack() {
    [ -d ${S} ] || mkdir -p ${S}
    cd ${S}
    sh ${DL_DIR}/dhry-c.shar
}
do_install() {
    install -d ${D}${bindir}
    install -m 0755 ${S}/dhry ${D}${bindir}
}

# Prevent procedure merging as required by dhrystone.c:
CFLAGS += "-fno-lto"
CFLAGS:append:toolchain-clang = " -Wno-error=implicit-function-declaration -Wno-error=deprecated-non-prototype -Wno-error=implicit-int"

LDFLAGS += "-fno-lto"


SUMMARY = "Library and tools for Soft66ADD and related SDR radio receivers"
LICENSE = "GPLv3 LGPLv3+"
LIC_FILES_CHKSUM = "file://COPYING;md5=f27defe1e96c2e1ecd4e0c9be8967949 \
                    file://COPYING.LESSER;md5=e6a600fd5e1d9cbde2d983680233ad02 "

PNBLACKLIST[soft66] ?= "BROKEN: depends on broken libftdi"

DEPENDS = "libftdi"

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

SRCREV = "a1dab25e73896c90c98227ac8055f227b830d512"
SRC_URI = "git://home.horsten.com/soft66 \
file://fix-ar.patch"

S = "${WORKDIR}/git"

inherit autotools pkgconfig

Fix license format QA error

SUMMARY = "Library and tools for Soft66ADD and related SDR radio receivers"
LICENSE = "GPLv3 & LGPLv3+"
LIC_FILES_CHKSUM = "file://COPYING;md5=f27defe1e96c2e1ecd4e0c9be8967949 \
                    file://COPYING.LESSER;md5=e6a600fd5e1d9cbde2d983680233ad02 "

PNBLACKLIST[soft66] ?= "BROKEN: depends on broken libftdi"

DEPENDS = "libftdi"

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

SRCREV = "a1dab25e73896c90c98227ac8055f227b830d512"
SRC_URI = "git://home.horsten.com/soft66 \
file://fix-ar.patch"

S = "${WORKDIR}/git"

inherit autotools pkgconfig


DESCRIPTION = "Google's framework for writing C++ tests"
HOMEPAGE = "https://github.com/google/googletest"
SECTION = "libs"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://googlemock/LICENSE;md5=cbbd27594afd089daa160d3a16dd515a \
                    file://googletest/LICENSE;md5=cbbd27594afd089daa160d3a16dd515a"

PROVIDES += "gmock gtest"

S = "${WORKDIR}/git"
SRCREV = "703bd9caab50b139428cea1aaff9974ebee5742e"
SRC_URI = "git://github.com/google/googletest.git"

inherit cmake

ALLOW_EMPTY_${PN} = "1"
ALLOW_EMPTY_${PN}-dbg = "1"

RDEPENDS_${PN}-dev += "${PN}-staticdev"

BBCLASSEXTEND = "native nativesdk"

Add PV and set to 1.10.0

DESCRIPTION = "Google's framework for writing C++ tests"
HOMEPAGE = "https://github.com/google/googletest"
SECTION = "libs"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://googlemock/LICENSE;md5=cbbd27594afd089daa160d3a16dd515a \
                    file://googletest/LICENSE;md5=cbbd27594afd089daa160d3a16dd515a"

PV = "1.10.0"

PROVIDES += "gmock gtest"

S = "${WORKDIR}/git"
SRCREV = "703bd9caab50b139428cea1aaff9974ebee5742e"
SRC_URI = "git://github.com/google/googletest.git"

inherit cmake

ALLOW_EMPTY_${PN} = "1"
ALLOW_EMPTY_${PN}-dbg = "1"

RDEPENDS_${PN}-dev += "${PN}-staticdev"

BBCLASSEXTEND = "native nativesdk"


SUMMARY = "Python interface for Remember The Milk API"
AUTHOR = "Sridhar Ratnakumar / srid"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=a53cbc7cb75660694e138ba973c148df"

PYPI_PACKAGE_EXT = "tar.bz2"

SRC_URI[md5sum] = "7c87da94656b620dfe532ca63d642eb8"
SRC_URI[sha256sum] = "b2d701b25ad3f9a1542057f3eb492c5c1d7dbe2b8d1e8f763043dcc14ee1d933"

inherit pypi setuptools

Add RDEPENDS to the package

SUMMARY = "Python interface for Remember The Milk API"
AUTHOR = "Sridhar Ratnakumar / srid"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=a53cbc7cb75660694e138ba973c148df"

PYPI_PACKAGE_EXT = "tar.bz2"

SRC_URI[md5sum] = "7c87da94656b620dfe532ca63d642eb8"
SRC_URI[sha256sum] = "b2d701b25ad3f9a1542057f3eb492c5c1d7dbe2b8d1e8f763043dcc14ee1d933"

inherit pypi setuptools

RDEPENDS_${PN} += "\
    ${PYTHON_PN}-json \
    ${PYTHON_PN}-netclient \
    "