mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-04-02 02:49:12 +00:00
recipes,classes: import a lot of recipes from meta-shr
* tested on shr-lite-image for om-gta02 and nokia900 (with meta-shr layer)
This commit is contained in:
parent
e66079da37
commit
89500c583e
84
meta-oe/classes/gitpkgv.bbclass
Normal file
84
meta-oe/classes/gitpkgv.bbclass
Normal file
@ -0,0 +1,84 @@
|
||||
# gitpkgv.bbclass provides a GITPKGV and GITPKGVTAG variables to be
|
||||
# used in PKGV, as described bellow:
|
||||
#
|
||||
# - GITPKGV which is a sortable version with the format NN+GITHASH, to
|
||||
# be used in PKGV, where
|
||||
#
|
||||
# NN equals the total number of revs up to SRCREV
|
||||
# GITHASH is SRCREV's (full) hash
|
||||
#
|
||||
# - GITPKGVTAG which is the output of 'git describe' allowing for
|
||||
# automatic versioning
|
||||
#
|
||||
# gitpkgv.bbclass assumes the git repository has been cloned, and
|
||||
# contains SRCREV. So ${GITPKGV} and ${GITPKGVTAG} should never be
|
||||
# used in PV, only in PKGV. It can handle SRCREV = ${AUTOREV}, as
|
||||
# well as SRCREV = "<some fixed git hash>".
|
||||
#
|
||||
# WARNING: if upstream repository is always using consistent and
|
||||
# sortable tag name scheme you can get sortable version including tag
|
||||
# name with ${GITPKGVTAG}, but be aware that ie tag sequence "v1.0,
|
||||
# v1.2, xtest, v2.0" will force you to increment PE to get upgradeable
|
||||
# path to v2.0 revisions
|
||||
#
|
||||
# use example:
|
||||
#
|
||||
# inherit gitpkgv
|
||||
#
|
||||
# PV = "1.0+gitr${SRCPV}" # expands to something like 1.0+gitr3+4c1c21d7dbbf93b0df336994524313dfe0d4963b
|
||||
# PKGV = "1.0+gitr${GITPKGV}" # expands also to something like 1.0+gitr31337+4c1c21d7d
|
||||
#
|
||||
# or
|
||||
#
|
||||
# inherit gitpkgv
|
||||
#
|
||||
# PV = "1.0+gitr${SRCPV}" # expands to something like 1.0+gitr3+4c1c21d7dbbf93b0df336994524313dfe0d4963b
|
||||
# PKGV = "${GITPKGVTAG}" # expands to something like 1.0-31337+g4c1c21d
|
||||
# if there is tag v1.0 before this revision or
|
||||
# ver1.0-31337+g4c1c21d if there is tag ver1.0
|
||||
|
||||
GITPKGV = "${@get_git_pkgv(d, False)}"
|
||||
GITPKGVTAG = "${@get_git_pkgv(d, True)}"
|
||||
|
||||
def gitpkgv_drop_tag_prefix(version):
|
||||
import re
|
||||
if re.match("v\d", version):
|
||||
return version[1:]
|
||||
else:
|
||||
return version
|
||||
|
||||
def get_git_pkgv(d, use_tags):
|
||||
import os
|
||||
import bb
|
||||
|
||||
urls = bb.data.getVar('SRC_URI', d, 1).split()
|
||||
|
||||
for url in urls:
|
||||
(type, host, path, user, pswd, parm) = bb.decodeurl(bb.data.expand(url, d))
|
||||
if type in ['git']:
|
||||
|
||||
gitsrcname = '%s%s' % (host, path.replace('/', '.'))
|
||||
repodir = os.path.join(bb.data.expand('${GITDIR}', d), gitsrcname)
|
||||
if not os.path.exists(repodir):
|
||||
return None
|
||||
|
||||
rev = bb.fetch.get_srcrev(d).split('+')[1]
|
||||
|
||||
cwd = os.getcwd()
|
||||
os.chdir(repodir)
|
||||
|
||||
commits = bb.fetch.runfetchcmd("git rev-list %s -- 2> /dev/null | wc -l" % rev, d, quiet=True).strip()
|
||||
|
||||
if use_tags:
|
||||
try:
|
||||
ver = gitpkgv_drop_tag_prefix(bb.fetch.runfetchcmd("git describe %s 2>/dev/null" % rev, d, quiet=True).strip())
|
||||
except Exception:
|
||||
ver = "0.0-%s-g%s" % (commits, rev[:7])
|
||||
else:
|
||||
ver = "%s+%s" % (commits, rev[:7])
|
||||
|
||||
os.chdir(cwd)
|
||||
|
||||
return ver
|
||||
|
||||
return "0+0"
|
||||
80
meta-oe/classes/gitver.bbclass
Normal file
80
meta-oe/classes/gitver.bbclass
Normal file
@ -0,0 +1,80 @@
|
||||
# Copyright (C) 2009 Chris Larson <clarson@kergoth.com>
|
||||
# Released under the MIT license (see COPYING.MIT for the terms)
|
||||
#
|
||||
# gitver.bbclass provides a GITVER variable which is a (fairly) sane version,
|
||||
# for use in ${PV}, extracted from the ${S} git checkout, assuming it is one.
|
||||
# This is most useful in concert with srctree.bbclass.
|
||||
|
||||
def git_drop_tag_prefix(version):
|
||||
import re
|
||||
if re.match("v\d", version):
|
||||
return version[1:]
|
||||
else:
|
||||
return version
|
||||
|
||||
GIT_TAGADJUST = "git_drop_tag_prefix(version)"
|
||||
GITVER = "${@get_git_pv('${S}', d, tagadjust=lambda version:${GIT_TAGADJUST})}"
|
||||
GITSHA = "${@get_git_hash('${S}', d)}"
|
||||
|
||||
def get_git_hash(path, d):
|
||||
return oe_run(d, ["git", "rev-parse", "--short", "HEAD"], cwd=path).rstrip()
|
||||
|
||||
def get_git_pv(path, d, tagadjust=None):
|
||||
import os
|
||||
import oe.process
|
||||
|
||||
gitdir = os.path.abspath(os.path.join(d.getVar("S", True), ".git"))
|
||||
def git(cmd):
|
||||
try:
|
||||
return oe_run(d, ["git"] + cmd, cwd=gitdir).rstrip()
|
||||
except oe.process.CmdError, exc:
|
||||
bb.fatal(str(exc))
|
||||
|
||||
try:
|
||||
ver = oe_run(d, ["git", "describe", "--tags"], cwd=gitdir).rstrip()
|
||||
except Exception, exc:
|
||||
bb.fatal(str(exc))
|
||||
|
||||
if not ver:
|
||||
try:
|
||||
ver = get_git_hash(gitdir, d)
|
||||
except Exception, exc:
|
||||
bb.fatal(str(exc))
|
||||
|
||||
if ver:
|
||||
return "0.0+%s" % ver
|
||||
else:
|
||||
return "0.0"
|
||||
else:
|
||||
if tagadjust:
|
||||
ver = tagadjust(ver)
|
||||
return ver
|
||||
|
||||
def mark_recipe_dependencies(path, d):
|
||||
from bb.parse import mark_dependency
|
||||
|
||||
gitdir = os.path.join(path, ".git")
|
||||
|
||||
# Force the recipe to be reparsed so the version gets bumped
|
||||
# if the active branch is switched, or if the branch changes.
|
||||
mark_dependency(d, os.path.join(gitdir, "HEAD"))
|
||||
|
||||
# Force a reparse if anything in the index changes.
|
||||
mark_dependency(d, os.path.join(gitdir, "index"))
|
||||
|
||||
try:
|
||||
ref = oe_run(d, ["git", "symbolic-ref", "-q", "HEAD"], cwd=gitdir).rstrip()
|
||||
except oe.process.CmdError:
|
||||
pass
|
||||
else:
|
||||
if ref:
|
||||
mark_dependency(d, os.path.join(gitdir, ref))
|
||||
|
||||
# Catch new tags.
|
||||
tagdir = os.path.join(gitdir, "refs", "tags")
|
||||
if os.path.exists(tagdir):
|
||||
mark_dependency(d, tagdir)
|
||||
|
||||
python () {
|
||||
mark_recipe_dependencies(d.getVar("S", True), d)
|
||||
}
|
||||
7
meta-oe/classes/glx-use-tls.bbclass
Normal file
7
meta-oe/classes/glx-use-tls.bbclass
Normal file
@ -0,0 +1,7 @@
|
||||
def get_tls_setting(bb, d):
|
||||
# until we have no prober TLS support in uclibc disable it
|
||||
if bb.data.getVar('TARGET_OS', d, 1).find('uclibc') >= 0 :
|
||||
return ""
|
||||
return "--enable-glx-tls"
|
||||
|
||||
EXTRA_OECONF += "${@get_tls_setting(bb, d)}"
|
||||
17
meta-oe/classes/gpe.bbclass
Normal file
17
meta-oe/classes/gpe.bbclass
Normal file
@ -0,0 +1,17 @@
|
||||
DEPENDS_prepend = "virtual/libintl intltool-native "
|
||||
GPE_TARBALL_SUFFIX ?= "gz"
|
||||
SRC_URI = "${GPE_MIRROR}/${PN}-${PV}.tar.${GPE_TARBALL_SUFFIX}"
|
||||
FILES_${PN} += "${datadir}/gpe ${datadir}/application-registry"
|
||||
SECTION ?= "gpe"
|
||||
|
||||
inherit gettext
|
||||
|
||||
gpe_do_compile() {
|
||||
oe_runmake PREFIX=${prefix}
|
||||
}
|
||||
|
||||
gpe_do_install() {
|
||||
oe_runmake PREFIX=${prefix} DESTDIR=${D} install
|
||||
}
|
||||
|
||||
EXPORT_FUNCTIONS do_compile do_install
|
||||
123
meta-oe/classes/srctree.bbclass
Normal file
123
meta-oe/classes/srctree.bbclass
Normal file
@ -0,0 +1,123 @@
|
||||
# Copyright (C) 2009 Chris Larson <clarson@kergoth.com>
|
||||
# Released under the MIT license (see COPYING.MIT for the terms)
|
||||
#
|
||||
# srctree.bbclass enables operation inside of an existing source tree for a
|
||||
# project, rather than using the fetch/unpack/patch idiom.
|
||||
#
|
||||
# By default, it expects that you're keeping the recipe(s) inside the
|
||||
# aforementioned source tree, but you could override S to point at an external
|
||||
# directory and place the recipes in a normal collection/overlay, if you so
|
||||
# chose.
|
||||
#
|
||||
# It also provides some convenience python functions for assembling your
|
||||
# do_clean, if you want to leverage things like 'git clean' to simplify the
|
||||
# operation.
|
||||
|
||||
|
||||
# Grab convenience methods & sane default for do_clean
|
||||
inherit clean
|
||||
|
||||
# Build here
|
||||
S = "${FILE_DIRNAME}"
|
||||
SRC_URI = ""
|
||||
|
||||
def remove_tasks(deltasks, d):
|
||||
for task in filter(lambda k: d.getVarFlag(k, "task"), d.keys()):
|
||||
deps = d.getVarFlag(task, "deps")
|
||||
for preptask in deltasks:
|
||||
if preptask in deps:
|
||||
deps.remove(preptask)
|
||||
d.setVarFlag(task, "deps", deps)
|
||||
|
||||
addtask configure after do_setscene
|
||||
|
||||
def merge_tasks(d):
|
||||
"""
|
||||
Merges all of the operations that occur prior to do_populate_sysroot
|
||||
into do_populate_sysroot.
|
||||
|
||||
This is necessary because of recipe variants (normal, native, cross,
|
||||
sdk). If a bitbake run happens to want to build more than one of
|
||||
these variants in a single run, it's possible for them to step on one
|
||||
another's toes, due to the shared ${S}. Interleaved
|
||||
configure/compile/install amongst variants will break things badly.
|
||||
"""
|
||||
from itertools import chain
|
||||
from bb import note
|
||||
|
||||
def __gather_taskdeps(task, seen):
|
||||
for dep in d.getVarFlag(task, "deps"):
|
||||
if not dep in seen:
|
||||
__gather_taskdeps(dep, seen)
|
||||
if not task in seen:
|
||||
seen.append(task)
|
||||
|
||||
def gather_taskdeps(task):
|
||||
items = []
|
||||
__gather_taskdeps(task, items)
|
||||
return items
|
||||
|
||||
newtask = "do_populate_sysroot_post"
|
||||
mergedtasks = gather_taskdeps(newtask)
|
||||
mergedtasks.pop()
|
||||
|
||||
for task in (key for key in d.keys()
|
||||
if d.getVarFlag(key, "task") and
|
||||
not key in mergedtasks):
|
||||
deps = d.getVarFlag(task, "deps")
|
||||
for mergetask in mergedtasks:
|
||||
if mergetask in (d.getVarFlag(task, "recrdeptask"),
|
||||
d.getVarFlag(task, "recdeptask"),
|
||||
d.getVarFlag(task, "deptask")):
|
||||
continue
|
||||
|
||||
if mergetask in deps:
|
||||
deps.remove(mergetask)
|
||||
#note("removing dep on %s from %s" % (mergetask, task))
|
||||
|
||||
if not newtask in deps:
|
||||
#note("adding dep on %s to %s" % (newtask, task))
|
||||
deps.append(newtask)
|
||||
d.setVarFlag(task, "deps", deps)
|
||||
|
||||
# Pull cross recipe task deps over
|
||||
depends = []
|
||||
deptask = []
|
||||
for task in mergedtasks[:-1]:
|
||||
depends.append(d.getVarFlag(task, "depends") or "")
|
||||
deptask.append(d.getVarFlag(task, "deptask") or "")
|
||||
|
||||
d.setVarFlag("do_populate_sysroot_post", "depends", " ".join(depends))
|
||||
d.setVarFlag("do_populate_sysroot_post", "deptask", " ".join(deptask))
|
||||
|
||||
python () {
|
||||
remove_tasks(["do_patch", "do_unpack", "do_fetch"], d)
|
||||
b = d.getVar("B", True)
|
||||
if not b or b == d.getVar("S", True):
|
||||
merge_tasks(d)
|
||||
}
|
||||
|
||||
# Manually run do_install & all of its deps
|
||||
python do_populate_sysroot_post () {
|
||||
from os.path import exists
|
||||
from bb.build import exec_func, make_stamp
|
||||
from bb import note
|
||||
|
||||
stamp = d.getVar("STAMP", True)
|
||||
|
||||
def rec_exec_task(task, seen):
|
||||
for dep in d.getVarFlag(task, "deps"):
|
||||
if not dep in seen:
|
||||
rec_exec_task(dep, seen)
|
||||
seen.add(task)
|
||||
if not exists("%s.%s" % (stamp, task)):
|
||||
note("%s: executing task %s" % (d.getVar("PF", True), task))
|
||||
exec_func(task, d)
|
||||
flags = d.getVarFlags(task)
|
||||
if not flags.get('nostamp') and not flags.get('selfstamp'):
|
||||
make_stamp(task, d)
|
||||
|
||||
rec_exec_task("do_populate_sysroot", set())
|
||||
}
|
||||
addtask populate_sysroot_post after do_populate_sysroot
|
||||
do_populate_sysroot_post[lockfiles] += "${S}/.lock"
|
||||
71
meta-oe/recipes-connectivity/bluez/bluez4.inc
Normal file
71
meta-oe/recipes-connectivity/bluez/bluez4.inc
Normal file
@ -0,0 +1,71 @@
|
||||
DESCRIPTION = "Linux Bluetooth Stack Userland V4"
|
||||
HOMEPAGE = "http://www.bluez.org"
|
||||
SECTION = "libs"
|
||||
PRIORITY = "optional"
|
||||
LICENSE = "GPLv2/LGPLv2.1"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e \
|
||||
file://COPYING.LIB;md5=fb504b67c50331fc78734fed90fb0e09 \
|
||||
"
|
||||
DEPENDS = "gst-plugins-base alsa-lib virtual/libusb0 dbus-glib"
|
||||
INC_PR = "r8"
|
||||
|
||||
# temporary solution until bug 5176 is properly fixed
|
||||
PROVIDES += "bluez-utils bluez-libs bluez-utils-dbus"
|
||||
RPROVIDES_bluez4 += "bluez-utils bluez-libs bluez-utils-dbus"
|
||||
RPROVIDES_bluez4-dev = "bluez-libs-dev"
|
||||
|
||||
SRC_URI = "\
|
||||
http://www.kernel.org/pub/linux/bluetooth/bluez-${PV}.tar.gz \
|
||||
file://fix-dfutool-usb-declaration-mismatch.patch \
|
||||
file://bluetooth.conf \
|
||||
"
|
||||
S = "${WORKDIR}/bluez-${PV}"
|
||||
|
||||
inherit autotools update-rc.d
|
||||
|
||||
EXTRA_OECONF = "\
|
||||
--enable-gstreamer \
|
||||
--enable-alsa \
|
||||
--enable-usb \
|
||||
--enable-netlink \
|
||||
--enable-tools \
|
||||
--enable-bccmd \
|
||||
--enable-hid2hci \
|
||||
--enable-dfutool \
|
||||
--enable-hidd \
|
||||
--enable-pand \
|
||||
--enable-dund \
|
||||
--disable-cups \
|
||||
--enable-test \
|
||||
--enable-manpages \
|
||||
--enable-configfiles \
|
||||
--enable-initscripts \
|
||||
--disable-pcmciarules \
|
||||
"
|
||||
|
||||
do_install_append() {
|
||||
install -m 0644 ${S}/audio/audio.conf ${D}/${sysconfdir}/bluetooth/
|
||||
install -m 0644 ${S}/network/network.conf ${D}/${sysconfdir}/bluetooth/
|
||||
install -m 0644 ${S}/input/input.conf ${D}/${sysconfdir}/bluetooth/
|
||||
# at_console doesn't really work with the current state of OE, so punch some more holes so people can actually use BT
|
||||
install -m 0644 ${WORKDIR}/bluetooth.conf ${D}/${sysconfdir}/dbus-1/system.d/
|
||||
}
|
||||
|
||||
INITSCRIPT_NAME = "bluetooth"
|
||||
INITSCRIPT_PARAMS = "defaults 23 19"
|
||||
|
||||
PACKAGES =+ "gst-plugin-bluez libasound-module-bluez"
|
||||
|
||||
FILES_gst-plugin-bluez = "${libdir}/gstreamer-0.10/lib*.so"
|
||||
FILES_libasound-module-bluez = "${libdir}/alsa-lib/lib*.so ${datadir}/alsa/bluetooth.conf"
|
||||
FILES_${PN} += "${libdir}/bluetooth/plugins/*.so ${base_libdir}/udev"
|
||||
FILES_${PN}-dev += "\
|
||||
${libdir}/bluetooth/plugins/*.la \
|
||||
${libdir}/alsa-lib/*.la \
|
||||
${libdir}/gstreamer-0.10/*.la \
|
||||
"
|
||||
|
||||
FILES_${PN}-dbg += "\
|
||||
${libdir}/bluetooth/plugins/.debug \
|
||||
${libdir}/*/.debug \
|
||||
"
|
||||
16
meta-oe/recipes-connectivity/bluez/bluez4/bluetooth.conf
Normal file
16
meta-oe/recipes-connectivity/bluez/bluez4/bluetooth.conf
Normal file
@ -0,0 +1,16 @@
|
||||
<!-- This configuration file specifies the required security policies
|
||||
for Bluetooth core daemon to work. -->
|
||||
|
||||
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
|
||||
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
|
||||
<busconfig>
|
||||
|
||||
<!-- ../system.conf have denied everything, so we just punch some holes -->
|
||||
|
||||
<policy context="default">
|
||||
<allow own="org.bluez"/>
|
||||
<allow send_destination="org.bluez"/>
|
||||
<allow send_interface="org.bluez.Agent"/>
|
||||
</policy>
|
||||
|
||||
</busconfig>
|
||||
@ -0,0 +1,13 @@
|
||||
Index: bluez-4.27/tools/dfutool.c
|
||||
===================================================================
|
||||
--- bluez-4.27.orig/tools/dfutool.c
|
||||
+++ bluez-4.27/tools/dfutool.c
|
||||
@@ -59,7 +59,7 @@
|
||||
#endif
|
||||
|
||||
#ifdef NEED_USB_GET_BUSSES
|
||||
-static inline struct usb_bus *usb_get_busses(void)
|
||||
+inline struct usb_bus *usb_get_busses(void)
|
||||
{
|
||||
return usb_busses;
|
||||
}
|
||||
@ -0,0 +1,33 @@
|
||||
# Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
#
|
||||
# Use the new usb1 API for usb_init() and check for fails from
|
||||
# usb_init (). Currently we see a crash on a system which does
|
||||
# not have USB because usb_init() fails and it cleans up all initialized
|
||||
# data (e.g. ctx) which is used in subsequent calls to libusb
|
||||
# We return immediately if usb_init() fails for some reason.
|
||||
|
||||
Index: bluez-4.24/tools/hid2hci.c
|
||||
===================================================================
|
||||
--- bluez-4.24.orig/tools/hid2hci.c 2008-10-25 23:40:34.000000000 -0700
|
||||
+++ bluez-4.24/tools/hid2hci.c 2008-12-29 22:06:04.000000000 -0800
|
||||
@@ -337,7 +337,7 @@
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
struct device_info dev[16];
|
||||
- int i, opt, num, quiet = 0, mode = HCI;
|
||||
+ int i, ret, opt, num, quiet = 0, mode = HCI;
|
||||
|
||||
while ((opt = getopt_long(argc, argv, "+01qh", main_options, NULL)) != -1) {
|
||||
switch (opt) {
|
||||
@@ -361,8 +361,9 @@
|
||||
argc -= optind;
|
||||
argv += optind;
|
||||
optind = 0;
|
||||
-
|
||||
- usb_init();
|
||||
+ ret = libusb_init();
|
||||
+ if (ret < 0)
|
||||
+ return ret;
|
||||
|
||||
num = find_devices(mode, dev, sizeof(dev) / sizeof(dev[0]));
|
||||
if (num <= 0) {
|
||||
11
meta-oe/recipes-connectivity/bluez/bluez4/sbc-thumb.patch
Normal file
11
meta-oe/recipes-connectivity/bluez/bluez4/sbc-thumb.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- bluez/sbc/sbc_math.h~ 2008-03-05 20:18:03.000000000 +0000
|
||||
+++ bluez/sbc/sbc_math.h 2008-10-27 13:39:27.000000000 +0000
|
||||
@@ -59,7 +59,7 @@
|
||||
|
||||
#define SBC_FIXED_0(val) { val = 0; }
|
||||
#define MUL(a, b) ((a) * (b))
|
||||
-#ifdef __arm__
|
||||
+#if defined(__arm__) && !defined(__thumb__)
|
||||
#define MULA(a, b, res) ({ \
|
||||
int tmp = res; \
|
||||
__asm__( \
|
||||
15
meta-oe/recipes-connectivity/bluez/bluez4_4.91.bb
Normal file
15
meta-oe/recipes-connectivity/bluez/bluez4_4.91.bb
Normal file
@ -0,0 +1,15 @@
|
||||
require bluez4.inc
|
||||
|
||||
SRC_URI[md5sum] = "3059b7ef5168c84cd0c6a67034ce79f9"
|
||||
SRC_URI[sha256sum] = "11e9279e2669db996afd464b96d2c68f41f157f6eb9b8842a0bbcad8a4eac18d"
|
||||
|
||||
DEPENDS += "libsndfile1"
|
||||
|
||||
PR = "${INC_PR}.0"
|
||||
|
||||
# Not all distros have a recent enough udev
|
||||
BTUDEV = " --disable-udevrules"
|
||||
BTUDEV_angstrom = " --enable-udevrules"
|
||||
BTUDEV_shr = " --enable-udevrules"
|
||||
|
||||
EXTRA_OECONF += "${BTUDEV}"
|
||||
79
meta-oe/recipes-connectivity/connman/connman.inc
Normal file
79
meta-oe/recipes-connectivity/connman/connman.inc
Normal file
@ -0,0 +1,79 @@
|
||||
SUMMARY = "A daemon for managing internet connections within embedded devices"
|
||||
DESCRIPTION = "The ConnMan project provides a daemon for managing \
|
||||
internet connections within embedded devices running the Linux \
|
||||
operating system. The Connection Manager is designed to be slim and \
|
||||
to use as few resources as possible, so it can be easily integrated. \
|
||||
It is a fully modular system that can be extended, through plug-ins, \
|
||||
to support all kinds of wired or wireless technologies. Also, \
|
||||
configuration methods, like DHCP and domain name resolving, are \
|
||||
implemented using plug-ins."
|
||||
HOMEPAGE = "http://connman.net/"
|
||||
BUGTRACKER = "http://bugs.meego.com/buglist.cgi?quicksearch=connman"
|
||||
LICENSE = "GPLv2"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e \
|
||||
file://src/main.c;beginline=1;endline=20;md5=4b55b550fa6b33cc2055ef30dd262b3e"
|
||||
|
||||
# we need to define the depends here, the dynamic stuff is too late
|
||||
DEPENDS = "libnl wpa-supplicant dbus glib-2.0 ppp busybox dhcp resolvconf bluez4"
|
||||
|
||||
EXTRA_OECONF += "\
|
||||
ac_cv_path_WPASUPPLICANT=/usr/sbin/wpa_supplicant \
|
||||
ac_cv_path_DHCLIENT=/sbin/dhclient \
|
||||
ac_cv_path_UDHCPC=/sbin/udhcpc \
|
||||
ac_cv_path_RESOLVCONF=/sbin/resolvconf \
|
||||
ac_cv_path_PPPD=/usr/sbin/pppd \
|
||||
"
|
||||
|
||||
INITSCRIPT_NAME = "connman"
|
||||
INITSCRIPT_PARAMS = "start 05 5 2 . stop 22 0 1 6 ."
|
||||
|
||||
PARALLEL_MAKE = ""
|
||||
|
||||
inherit autotools pkgconfig update-rc.d
|
||||
|
||||
do_configure_append() {
|
||||
ln -sf . include/connman
|
||||
}
|
||||
|
||||
do_compile_append() {
|
||||
sed -i -e s:deny:allow:g src/connman-dbus.conf
|
||||
}
|
||||
|
||||
do_install_append() {
|
||||
install -d ${D}${sysconfdir}/init.d
|
||||
install -m 0755 ${WORKDIR}/connman ${D}${sysconfdir}/init.d/connman
|
||||
}
|
||||
|
||||
python populate_packages_prepend() {
|
||||
depmap = dict( pppd="ppp", udhcp="busybox connman-scripts", dhclient="dhcp-client", wifi="wpa-supplicant", resolvconf="resolvconf", bluetooth="bluez4" )
|
||||
packages = []
|
||||
hook = lambda file,pkg,b,c,d:packages.append((file,pkg))
|
||||
plugin_dir = bb.data.expand('${libdir}/connman/plugins/', d)
|
||||
plugin_name = bb.data.expand('${PN}-plugin-%s', d)
|
||||
do_split_packages(d, plugin_dir, '^(.*).so$', plugin_name, '${PN} plugin for %s', extra_depends='', hook=hook )
|
||||
for (file, package) in packages:
|
||||
plugintype = package.split( '-' )[-1]
|
||||
if plugintype in depmap:
|
||||
rdepends = bb.data.getVar( "RDEPENDS_%s" % package, d )
|
||||
bb.note( "Adding rdependency on %s to package %s" % ( depmap[plugintype], package ) )
|
||||
bb.data.setVar("RDEPENDS_%s" % package, depmap[plugintype], d)
|
||||
}
|
||||
|
||||
PACKAGES_DYNAMIC = "${PN}-plugin-*"
|
||||
|
||||
PACKAGES += "${PN}-scripts ${PN}-test-utils"
|
||||
|
||||
FILES_${PN} = "${bindir}/* ${sbindir}/* ${libexecdir}/* ${libdir}/lib*.so.* \
|
||||
${sysconfdir} ${sharedstatedir} ${localstatedir} \
|
||||
${base_bindir}/* ${base_sbindir}/* ${base_libdir}/*.so* ${datadir}/${PN} \
|
||||
${datadir}/pixmaps ${datadir}/applications \
|
||||
${datadir}/idl ${datadir}/omf ${datadir}/sounds \
|
||||
${libdir}/bonobo/servers \
|
||||
${datadir}/dbus-1/system-services/*"
|
||||
|
||||
FILES_${PN}-test-utils += "${libdir}/connman/test/*"
|
||||
|
||||
FILES_${PN}-scripts += "${libdir}/connman/scripts"
|
||||
FILES_${PN}-dbg += "${libdir}/connman/*/.debug"
|
||||
FILES_${PN}-dev += "${libdir}/connman/*/*.la"
|
||||
|
||||
42
meta-oe/recipes-connectivity/connman/connman/connman
Executable file
42
meta-oe/recipes-connectivity/connman/connman/connman
Executable file
@ -0,0 +1,42 @@
|
||||
#!/bin/sh
|
||||
|
||||
DAEMON=/usr/sbin/connmand
|
||||
PIDFILE=/var/run/connmand.pid
|
||||
DESC="Connection Manager"
|
||||
|
||||
if [ -f /etc/default/connman ] ; then
|
||||
. /etc/default/connman
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
do_start() {
|
||||
$DAEMON
|
||||
}
|
||||
|
||||
do_stop() {
|
||||
start-stop-daemon --stop --name connmand --quiet
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo "Starting $DESC"
|
||||
do_start
|
||||
;;
|
||||
stop)
|
||||
echo "Stopping $DESC"
|
||||
do_stop
|
||||
;;
|
||||
restart|force-reload)
|
||||
echo "Restarting $DESC"
|
||||
do_stop
|
||||
sleep 1
|
||||
do_start
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart|force-reload}" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
@ -0,0 +1,13 @@
|
||||
Index: connman-0.46/configure.ac
|
||||
===================================================================
|
||||
--- connman-0.46.orig/configure.ac
|
||||
+++ connman-0.46/configure.ac
|
||||
@@ -326,7 +326,7 @@
|
||||
AC_ARG_ENABLE(tools, AC_HELP_STRING([--enable-tools],
|
||||
[enable testing tools]), [enable_tools=${enableval}])
|
||||
if (test "${enable_tools}" = "yes"); then
|
||||
- PKG_CHECK_MODULES(NETLINK, libnl-1, dummy=yes,
|
||||
+ PKG_CHECK_MODULES(NETLINK, libnl-2.0, dummy=yes,
|
||||
AC_MSG_ERROR(Netlink library is required))
|
||||
AC_SUBST(NETLINK_CFLAGS)
|
||||
AC_SUBST(NETLINK_LIBS)
|
||||
42
meta-oe/recipes-connectivity/connman/connman/shr/connman
Executable file
42
meta-oe/recipes-connectivity/connman/connman/shr/connman
Executable file
@ -0,0 +1,42 @@
|
||||
#!/bin/sh
|
||||
|
||||
DAEMON="/usr/sbin/connmand -I usb0"
|
||||
PIDFILE=/var/run/connmand.pid
|
||||
DESC="Connection Manager"
|
||||
|
||||
if [ -f /etc/default/connman ] ; then
|
||||
. /etc/default/connman
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
do_start() {
|
||||
$DAEMON
|
||||
}
|
||||
|
||||
do_stop() {
|
||||
start-stop-daemon --stop --name connmand --quiet
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo "Starting $DESC"
|
||||
do_start
|
||||
;;
|
||||
stop)
|
||||
echo "Stopping $DESC"
|
||||
do_stop
|
||||
;;
|
||||
restart|force-reload)
|
||||
echo "Restarting $DESC"
|
||||
do_stop
|
||||
sleep 1
|
||||
do_start
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart|force-reload}" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
31
meta-oe/recipes-connectivity/connman/connman_0.72.bb
Normal file
31
meta-oe/recipes-connectivity/connman/connman_0.72.bb
Normal file
@ -0,0 +1,31 @@
|
||||
require connman.inc
|
||||
# connman requires libXtables now
|
||||
DEPENDS += "iptables"
|
||||
PR = "r0"
|
||||
|
||||
EXTRA_OECONF += "\
|
||||
--disable-gtk-doc \
|
||||
--enable-debug \
|
||||
--enable-threads \
|
||||
--enable-loopback \
|
||||
--enable-ethernet \
|
||||
--enable-wifi \
|
||||
--disable-wimax \
|
||||
--enable-bluetooth \
|
||||
--enable-ofono \
|
||||
--enable-resolvconf \
|
||||
--enable-dnsproxy \
|
||||
--enable-tools \
|
||||
--disable-polkit \
|
||||
--enable-client \
|
||||
--enable-fake \
|
||||
"
|
||||
|
||||
SRC_URI = "\
|
||||
http://www.kernel.org/pub/linux/network/connman/connman-${PV}.tar.gz \
|
||||
file://link-against-libnl2.patch \
|
||||
file://connman \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "800f9356e0471c88819eee7184713a1f"
|
||||
SRC_URI[sha256sum] = "9c8ad312573683fc9f50d5042d4a87ddc8e0700b27ac1b0fb8dc2e8b7424a60f"
|
||||
@ -0,0 +1,18 @@
|
||||
DESCRIPTION = "This small package provides a few command line tools for Linux Phonet"
|
||||
HOMEPAGE = ""
|
||||
LICENSE = "GPLv2"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
|
||||
SRC_URI = "git://gitorious.org/meego-cellular/phonet-utils.git;branch=master;protocol=git"
|
||||
PR = "r0"
|
||||
S = "${WORKDIR}/git"
|
||||
SRCREV = "4acfa720fd37d178a048fc2be17180137d4a70ea"
|
||||
PV = "0.0.0+gitr${SRCPV}"
|
||||
|
||||
do_compile () {
|
||||
make
|
||||
}
|
||||
|
||||
do_install () {
|
||||
DESTDIR=${D} oe_runmake install
|
||||
}
|
||||
|
||||
32
meta-oe/recipes-core/meta/distro-feed-configs.bb
Normal file
32
meta-oe/recipes-core/meta/distro-feed-configs.bb
Normal file
@ -0,0 +1,32 @@
|
||||
DESCRIPTION = "Configuration files for online package repositories aka feeds"
|
||||
PR = "r1"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${TOPDIR}/meta-shr/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
||||
|
||||
DISTRO_FEED_PREFIX ?= "remote"
|
||||
DISTRO_FEED_URI ?= "http://my-distribution.example/remote-feed/"
|
||||
|
||||
do_compile() {
|
||||
mkdir -p ${S}/${sysconfdir}/opkg
|
||||
for feed in all ${PACKAGE_EXTRA_ARCHS} ${MACHINE_ARCH}; do
|
||||
echo "src/gz ${DISTRO_FEED_PREFIX}-${feed} ${DISTRO_FEED_URI}/${feed}" > ${S}/${sysconfdir}/opkg/${feed}-feed.conf
|
||||
done
|
||||
}
|
||||
do_install () {
|
||||
install -d ${D}${sysconfdir}/opkg
|
||||
install -m 0644 ${S}/${sysconfdir}/opkg/* ${D}${sysconfdir}/opkg/
|
||||
}
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
#def distro_feed_configs(d):
|
||||
# import bb
|
||||
# parchs = bb.data.getVar( "PACKAGE_EXTRA_ARCHS", d, 1 ).split()
|
||||
# march = bb.data.getVar( "MACHINE_ARCH", d, 1 ).split()
|
||||
# archs = [ "all" ] + parchs + march
|
||||
# confs = [ ( "${sysconfdir}/opkg/%s-feed.conf" % feed ) for feed in archs ]
|
||||
# return " ".join( confs )
|
||||
#
|
||||
#CONFFILES_${PN} += '${@distro_feed_configs(d)}'
|
||||
|
||||
CONFFILES_${PN} += '${@ " ".join( [ ( "${sysconfdir}/opkg/%s-feed.conf" % feed ) for feed in "all ${PACKAGE_EXTRA_ARCHS} ${MACHINE_ARCH}".split() ] ) }'
|
||||
52
meta-oe/recipes-core/tasks/task-cli-tools.bb
Normal file
52
meta-oe/recipes-core/tasks/task-cli-tools.bb
Normal file
@ -0,0 +1,52 @@
|
||||
DESCRIPTION = "A set of useful command line tools"
|
||||
DESCRIPTION_${PN}-debug = "A set of command line tools useful for debugging"
|
||||
SECTION = "console"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${TOPDIR}/meta-shr/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
||||
PV = "1.0"
|
||||
PR = "r18"
|
||||
|
||||
inherit task
|
||||
|
||||
PACKAGES += "${PN}-debug"
|
||||
|
||||
def get_ltrace(bb, d):
|
||||
if bb.data.getVar('TARGET_ARCH', d, 1) in [ 'sh4', 'sh3' ] :
|
||||
return ""
|
||||
return "ltrace"
|
||||
|
||||
RDEPENDS_${PN} = "\
|
||||
dbus-daemon-proxy \
|
||||
dosfstools \
|
||||
htop \
|
||||
iptables \
|
||||
lsof \
|
||||
mbuffer \
|
||||
mdbus2 \
|
||||
mtd-utils \
|
||||
mterm2 \
|
||||
nano \
|
||||
nfs-utils-client \
|
||||
nmon \
|
||||
powertop \
|
||||
screen \
|
||||
socat \
|
||||
sysstat \
|
||||
"
|
||||
|
||||
RDEPENDS_${PN}-debug = "\
|
||||
evtest \
|
||||
devmem2 \
|
||||
i2c-tools \
|
||||
gdb \
|
||||
${@get_ltrace(bb, d)} \
|
||||
mkdump \
|
||||
mioctl \
|
||||
procps \
|
||||
pxaregs \
|
||||
s3c24xx-gpio \
|
||||
s3c64xx-gpio \
|
||||
serial-forward \
|
||||
strace \
|
||||
tcpdump \
|
||||
"
|
||||
43
meta-oe/recipes-core/tasks/task-x11.bb
Normal file
43
meta-oe/recipes-core/tasks/task-x11.bb
Normal file
@ -0,0 +1,43 @@
|
||||
DESCRIPTION = "The X Window System -- install this task to get a client/server based display multiplexer."
|
||||
SECTION = "x11/server"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${TOPDIR}/meta-shr/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
||||
PV = "1.0"
|
||||
PR = "r7"
|
||||
|
||||
# WORK IN PROGRESS
|
||||
|
||||
inherit task
|
||||
|
||||
PACKAGES += "\
|
||||
${PN}-server \
|
||||
${PN}-utils \
|
||||
"
|
||||
|
||||
RRECOMMENDS_${PN} = "\
|
||||
${PN}-server \
|
||||
${PN}-utils \
|
||||
"
|
||||
|
||||
# Some machines don't set a *runtime* provider for X, so default to Xfbdev here
|
||||
# virtual/xserver won't work, since the kdrive recipes will build multiple xserver packages
|
||||
XSERVER ?= "xserver-kdrive-fbdev"
|
||||
XSERVER_COMMON ?= "xserver-kdrive-common"
|
||||
XSERVER_COMMON_shr = "xserver-common"
|
||||
|
||||
# This is also the reason why we have to make this package machine specific :/
|
||||
PACKAGE_ARCH_${PN}-server = "${MACHINE_ARCH}"
|
||||
|
||||
RDEPENDS_${PN}-server = "\
|
||||
${XSERVER} \
|
||||
"
|
||||
|
||||
RDEPENDS_${PN}-utils = "\
|
||||
${XSERVER_COMMON} \
|
||||
xserver-nodm-init \
|
||||
xauth \
|
||||
xhost \
|
||||
xset \
|
||||
xrandr \
|
||||
"
|
||||
|
||||
@ -0,0 +1,482 @@
|
||||
GNU LIBRARY GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1991 Free Software Foundation, Inc.
|
||||
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
[This is the first released version of the library GPL. It is
|
||||
numbered 2 because it goes with version 2 of the ordinary GPL.]
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
Licenses are intended to guarantee your freedom to share and change
|
||||
free software--to make sure the software is free for all its users.
|
||||
|
||||
This license, the Library General Public License, applies to some
|
||||
specially designated Free Software Foundation software, and to any
|
||||
other libraries whose authors decide to use it. You can use it for
|
||||
your libraries, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if
|
||||
you distribute copies of the library, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of the library, whether gratis
|
||||
or for a fee, you must give the recipients all the rights that we gave
|
||||
you. You must make sure that they, too, receive or can get the source
|
||||
code. If you link a program with the library, you must provide
|
||||
complete object files to the recipients so that they can relink them
|
||||
with the library, after making changes to the library and recompiling
|
||||
it. And you must show them these terms so they know their rights.
|
||||
|
||||
Our method of protecting your rights has two steps: (1) copyright
|
||||
the library, and (2) offer you this license which gives you legal
|
||||
permission to copy, distribute and/or modify the library.
|
||||
|
||||
Also, for each distributor's protection, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
library. If the library is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original
|
||||
version, so that any problems introduced by others will not reflect on
|
||||
the original authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that companies distributing free
|
||||
software will individually obtain patent licenses, thus in effect
|
||||
transforming the program into proprietary software. To prevent this,
|
||||
we have made it clear that any patent must be licensed for everyone's
|
||||
free use or not licensed at all.
|
||||
|
||||
Most GNU software, including some libraries, is covered by the ordinary
|
||||
GNU General Public License, which was designed for utility programs. This
|
||||
license, the GNU Library General Public License, applies to certain
|
||||
designated libraries. This license is quite different from the ordinary
|
||||
one; be sure to read it in full, and don't assume that anything in it is
|
||||
the same as in the ordinary license.
|
||||
|
||||
The reason we have a separate public license for some libraries is that
|
||||
they blur the distinction we usually make between modifying or adding to a
|
||||
program and simply using it. Linking a program with a library, without
|
||||
changing the library, is in some sense simply using the library, and is
|
||||
analogous to running a utility program or application program. However, in
|
||||
a textual and legal sense, the linked executable is a combined work, a
|
||||
derivative of the original library, and the ordinary General Public License
|
||||
treats it as such.
|
||||
|
||||
Because of this blurred distinction, using the ordinary General
|
||||
Public License for libraries did not effectively promote software
|
||||
sharing, because most developers did not use the libraries. We
|
||||
concluded that weaker conditions might promote sharing better.
|
||||
|
||||
However, unrestricted linking of non-free programs would deprive the
|
||||
users of those programs of all benefit from the free status of the
|
||||
libraries themselves. This Library General Public License is intended to
|
||||
permit developers of non-free programs to use free libraries, while
|
||||
preserving your freedom as a user of such programs to change the free
|
||||
libraries that are incorporated in them. (We have not seen how to achieve
|
||||
this as regards changes in header files, but we have achieved it as regards
|
||||
changes in the actual functions of the Library.) The hope is that this
|
||||
will lead to faster development of free libraries.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow. Pay close attention to the difference between a
|
||||
"work based on the library" and a "work that uses the library". The
|
||||
former contains code derived from the library, while the latter only
|
||||
works together with the library.
|
||||
|
||||
Note that it is possible for a library to be covered by the ordinary
|
||||
General Public License rather than by this special one.
|
||||
|
||||
GNU LIBRARY GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License Agreement applies to any software library which
|
||||
contains a notice placed by the copyright holder or other authorized
|
||||
party saying it may be distributed under the terms of this Library
|
||||
General Public License (also called "this License"). Each licensee is
|
||||
addressed as "you".
|
||||
|
||||
A "library" means a collection of software functions and/or data
|
||||
prepared so as to be conveniently linked with application programs
|
||||
(which use some of those functions and data) to form executables.
|
||||
|
||||
The "Library", below, refers to any such software library or work
|
||||
which has been distributed under these terms. A "work based on the
|
||||
Library" means either the Library or any derivative work under
|
||||
copyright law: that is to say, a work containing the Library or a
|
||||
portion of it, either verbatim or with modifications and/or translated
|
||||
straightforwardly into another language. (Hereinafter, translation is
|
||||
included without limitation in the term "modification".)
|
||||
|
||||
"Source code" for a work means the preferred form of the work for
|
||||
making modifications to it. For a library, complete source code means
|
||||
all the source code for all modules it contains, plus any associated
|
||||
interface definition files, plus the scripts used to control compilation
|
||||
and installation of the library.
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running a program using the Library is not restricted, and output from
|
||||
such a program is covered only if its contents constitute a work based
|
||||
on the Library (independent of the use of the Library in a tool for
|
||||
writing it). Whether that is true depends on what the Library does
|
||||
and what the program that uses the Library does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Library's
|
||||
complete source code as you receive it, in any medium, provided that
|
||||
you conspicuously and appropriately publish on each copy an
|
||||
appropriate copyright notice and disclaimer of warranty; keep intact
|
||||
all the notices that refer to this License and to the absence of any
|
||||
warranty; and distribute a copy of this License along with the
|
||||
Library.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy,
|
||||
and you may at your option offer warranty protection in exchange for a
|
||||
fee.
|
||||
|
||||
2. You may modify your copy or copies of the Library or any portion
|
||||
of it, thus forming a work based on the Library, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) The modified work must itself be a software library.
|
||||
|
||||
b) You must cause the files modified to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
c) You must cause the whole of the work to be licensed at no
|
||||
charge to all third parties under the terms of this License.
|
||||
|
||||
d) If a facility in the modified Library refers to a function or a
|
||||
table of data to be supplied by an application program that uses
|
||||
the facility, other than as an argument passed when the facility
|
||||
is invoked, then you must make a good faith effort to ensure that,
|
||||
in the event an application does not supply such function or
|
||||
table, the facility still operates, and performs whatever part of
|
||||
its purpose remains meaningful.
|
||||
|
||||
(For example, a function in a library to compute square roots has
|
||||
a purpose that is entirely well-defined independent of the
|
||||
application. Therefore, Subsection 2d requires that any
|
||||
application-supplied function or table used by this function must
|
||||
be optional: if the application does not supply it, the square
|
||||
root function must still compute square roots.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Library,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Library, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote
|
||||
it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Library.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Library
|
||||
with the Library (or with a work based on the Library) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may opt to apply the terms of the ordinary GNU General Public
|
||||
License instead of this License to a given copy of the Library. To do
|
||||
this, you must alter all the notices that refer to this License, so
|
||||
that they refer to the ordinary GNU General Public License, version 2,
|
||||
instead of to this License. (If a newer version than version 2 of the
|
||||
ordinary GNU General Public License has appeared, then you can specify
|
||||
that version instead if you wish.) Do not make any other change in
|
||||
these notices.
|
||||
|
||||
Once this change is made in a given copy, it is irreversible for
|
||||
that copy, so the ordinary GNU General Public License applies to all
|
||||
subsequent copies and derivative works made from that copy.
|
||||
|
||||
This option is useful when you wish to copy part of the code of
|
||||
the Library into a program that is not a library.
|
||||
|
||||
4. You may copy and distribute the Library (or a portion or
|
||||
derivative of it, under Section 2) in object code or executable form
|
||||
under the terms of Sections 1 and 2 above provided that you accompany
|
||||
it with the complete corresponding machine-readable source code, which
|
||||
must be distributed under the terms of Sections 1 and 2 above on a
|
||||
medium customarily used for software interchange.
|
||||
|
||||
If distribution of object code is made by offering access to copy
|
||||
from a designated place, then offering equivalent access to copy the
|
||||
source code from the same place satisfies the requirement to
|
||||
distribute the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
5. A program that contains no derivative of any portion of the
|
||||
Library, but is designed to work with the Library by being compiled or
|
||||
linked with it, is called a "work that uses the Library". Such a
|
||||
work, in isolation, is not a derivative work of the Library, and
|
||||
therefore falls outside the scope of this License.
|
||||
|
||||
However, linking a "work that uses the Library" with the Library
|
||||
creates an executable that is a derivative of the Library (because it
|
||||
contains portions of the Library), rather than a "work that uses the
|
||||
library". The executable is therefore covered by this License.
|
||||
Section 6 states terms for distribution of such executables.
|
||||
|
||||
When a "work that uses the Library" uses material from a header file
|
||||
that is part of the Library, the object code for the work may be a
|
||||
derivative work of the Library even though the source code is not.
|
||||
Whether this is true is especially significant if the work can be
|
||||
linked without the Library, or if the work is itself a library. The
|
||||
threshold for this to be true is not precisely defined by law.
|
||||
|
||||
If such an object file uses only numerical parameters, data
|
||||
structure layouts and accessors, and small macros and small inline
|
||||
functions (ten lines or less in length), then the use of the object
|
||||
file is unrestricted, regardless of whether it is legally a derivative
|
||||
work. (Executables containing this object code plus portions of the
|
||||
Library will still fall under Section 6.)
|
||||
|
||||
Otherwise, if the work is a derivative of the Library, you may
|
||||
distribute the object code for the work under the terms of Section 6.
|
||||
Any executables containing that work also fall under Section 6,
|
||||
whether or not they are linked directly with the Library itself.
|
||||
|
||||
6. As an exception to the Sections above, you may also compile or
|
||||
link a "work that uses the Library" with the Library to produce a
|
||||
work containing portions of the Library, and distribute that work
|
||||
under terms of your choice, provided that the terms permit
|
||||
modification of the work for the customer's own use and reverse
|
||||
engineering for debugging such modifications.
|
||||
|
||||
You must give prominent notice with each copy of the work that the
|
||||
Library is used in it and that the Library and its use are covered by
|
||||
this License. You must supply a copy of this License. If the work
|
||||
during execution displays copyright notices, you must include the
|
||||
copyright notice for the Library among them, as well as a reference
|
||||
directing the user to the copy of this License. Also, you must do one
|
||||
of these things:
|
||||
|
||||
a) Accompany the work with the complete corresponding
|
||||
machine-readable source code for the Library including whatever
|
||||
changes were used in the work (which must be distributed under
|
||||
Sections 1 and 2 above); and, if the work is an executable linked
|
||||
with the Library, with the complete machine-readable "work that
|
||||
uses the Library", as object code and/or source code, so that the
|
||||
user can modify the Library and then relink to produce a modified
|
||||
executable containing the modified Library. (It is understood
|
||||
that the user who changes the contents of definitions files in the
|
||||
Library will not necessarily be able to recompile the application
|
||||
to use the modified definitions.)
|
||||
|
||||
b) Accompany the work with a written offer, valid for at
|
||||
least three years, to give the same user the materials
|
||||
specified in Subsection 6a, above, for a charge no more
|
||||
than the cost of performing this distribution.
|
||||
|
||||
c) If distribution of the work is made by offering access to copy
|
||||
from a designated place, offer equivalent access to copy the above
|
||||
specified materials from the same place.
|
||||
|
||||
d) Verify that the user has already received a copy of these
|
||||
materials or that you have already sent this user a copy.
|
||||
|
||||
For an executable, the required form of the "work that uses the
|
||||
Library" must include any data and utility programs needed for
|
||||
reproducing the executable from it. However, as a special exception,
|
||||
the source code distributed need not include anything that is normally
|
||||
distributed (in either source or binary form) with the major
|
||||
components (compiler, kernel, and so on) of the operating system on
|
||||
which the executable runs, unless that component itself accompanies
|
||||
the executable.
|
||||
|
||||
It may happen that this requirement contradicts the license
|
||||
restrictions of other proprietary libraries that do not normally
|
||||
accompany the operating system. Such a contradiction means you cannot
|
||||
use both them and the Library together in an executable that you
|
||||
distribute.
|
||||
|
||||
7. You may place library facilities that are a work based on the
|
||||
Library side-by-side in a single library together with other library
|
||||
facilities not covered by this License, and distribute such a combined
|
||||
library, provided that the separate distribution of the work based on
|
||||
the Library and of the other library facilities is otherwise
|
||||
permitted, and provided that you do these two things:
|
||||
|
||||
a) Accompany the combined library with a copy of the same work
|
||||
based on the Library, uncombined with any other library
|
||||
facilities. This must be distributed under the terms of the
|
||||
Sections above.
|
||||
|
||||
b) Give prominent notice with the combined library of the fact
|
||||
that part of it is a work based on the Library, and explaining
|
||||
where to find the accompanying uncombined form of the same work.
|
||||
|
||||
8. You may not copy, modify, sublicense, link with, or distribute
|
||||
the Library except as expressly provided under this License. Any
|
||||
attempt otherwise to copy, modify, sublicense, link with, or
|
||||
distribute the Library is void, and will automatically terminate your
|
||||
rights under this License. However, parties who have received copies,
|
||||
or rights, from you under this License will not have their licenses
|
||||
terminated so long as such parties remain in full compliance.
|
||||
|
||||
9. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Library or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Library (or any work based on the
|
||||
Library), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Library or works based on it.
|
||||
|
||||
10. Each time you redistribute the Library (or any work based on the
|
||||
Library), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute, link with or modify the Library
|
||||
subject to these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
11. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Library at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Library by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Library.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under any
|
||||
particular circumstance, the balance of the section is intended to apply,
|
||||
and the section as a whole is intended to apply in other circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
12. If the distribution and/or use of the Library is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Library under this License may add
|
||||
an explicit geographical distribution limitation excluding those countries,
|
||||
so that distribution is permitted only in or among countries not thus
|
||||
excluded. In such case, this License incorporates the limitation as if
|
||||
written in the body of this License.
|
||||
|
||||
13. The Free Software Foundation may publish revised and/or new
|
||||
versions of the Library General Public License from time to time.
|
||||
Such new versions will be similar in spirit to the present version,
|
||||
but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Library
|
||||
specifies a version number of this License which applies to it and
|
||||
"any later version", you have the option of following the terms and
|
||||
conditions either of that version or of any later version published by
|
||||
the Free Software Foundation. If the Library does not specify a
|
||||
license version number, you may choose any version ever published by
|
||||
the Free Software Foundation.
|
||||
|
||||
14. If you wish to incorporate parts of the Library into other free
|
||||
programs whose distribution conditions are incompatible with these,
|
||||
write to the author to ask for permission. For software which is
|
||||
copyrighted by the Free Software Foundation, write to the Free
|
||||
Software Foundation; we sometimes make exceptions for this. Our
|
||||
decision will be guided by the two goals of preserving the free status
|
||||
of all derivatives of our free software and of promoting the sharing
|
||||
and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
|
||||
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
||||
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
|
||||
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
|
||||
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
|
||||
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
|
||||
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
|
||||
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
|
||||
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
|
||||
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
|
||||
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
|
||||
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
|
||||
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
|
||||
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
|
||||
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
||||
DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Libraries
|
||||
|
||||
If you develop a new library, and you want it to be of the greatest
|
||||
possible use to the public, we recommend making it free software that
|
||||
everyone can redistribute and change. You can do so by permitting
|
||||
redistribution under these terms (or, alternatively, under the terms of the
|
||||
ordinary General Public License).
|
||||
|
||||
To apply these terms, attach the following notices to the library. It is
|
||||
safest to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least the
|
||||
"copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the library's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with this library; if not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307 USA.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the library, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the
|
||||
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1990
|
||||
Ty Coon, President of Vice
|
||||
|
||||
That's all there is to it!
|
||||
@ -0,0 +1,37 @@
|
||||
DESCRIPTION = "gdbus-binding-tool is used to generate C code for interacting with remote objects using D-Bus."
|
||||
DEPENDS = "glib-2.0 gdbus-binding-tool-native"
|
||||
DEPENDS_virtclass-native = "glib-2.0-native"
|
||||
RDEPENDS_${PN} = "glib-2.0-utils"
|
||||
# taken from glib where this is supposed to be moved later
|
||||
LICENSE = "LGPLv2+ & BSD & public domain"
|
||||
LIC_FILES_CHKSUM = "file://${WORKDIR}/COPYING;md5=3bf50002aefd002f49e7bb854063f7e7"
|
||||
|
||||
PR = "r2"
|
||||
|
||||
inherit autotools pkgconfig
|
||||
|
||||
SRC_URI = "git://anongit.freedesktop.org/~david/${BPN};protocol=git;branch=master \
|
||||
file://COPYING"
|
||||
SRCREV = "229fd9adbb6bd9d824b38a3bd092229016540f41"
|
||||
PV = "0.1+gitr${SRCPV}"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
do_configure() {
|
||||
# missing ${topdir}/gtk-doc.make and --disable-gtk-doc* is not enough
|
||||
sed -i '/^doc\/Makefile/d' ${S}/configure.ac
|
||||
sed -i 's/SUBDIRS = src doc/SUBDIRS = src/g' ${S}/Makefile.am
|
||||
|
||||
# cannot execute target binary, so use staged native
|
||||
sed -i "s#\$(top_builddir)/src/gdbus-codegen#${STAGING_BINDIR_NATIVE}/gdbus-codegen#g" ${S}/src/Makefile.am
|
||||
|
||||
autotools_do_configure
|
||||
}
|
||||
do_configure_virtclass-native() {
|
||||
# missing ${topdir}/gtk-doc.make and --disable-gtk-doc* is not enough
|
||||
sed -i '/^doc\/Makefile/d' ${S}/configure.ac
|
||||
sed -i 's/SUBDIRS = src doc/SUBDIRS = src/g' ${S}/Makefile.am
|
||||
|
||||
autotools_do_configure
|
||||
}
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
@ -0,0 +1,20 @@
|
||||
Index: gobject-introspection-0.9.10/tools/g-ir-annotation-tool.in
|
||||
===================================================================
|
||||
--- gobject-introspection-0.9.10.orig/tools/g-ir-annotation-tool.in
|
||||
+++ gobject-introspection-0.9.10/tools/g-ir-annotation-tool.in
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!@PYTHON@
|
||||
+#!/usr/bin/env python
|
||||
# -*- Mode: Python -*-
|
||||
# GObject-Introspection - a framework for introspecting GObject libraries
|
||||
# Copyright (C) 2008 Johan Dahlin
|
||||
Index: gobject-introspection-0.9.10/tools/g-ir-scanner.in
|
||||
===================================================================
|
||||
--- gobject-introspection-0.9.10.orig/tools/g-ir-scanner.in
|
||||
+++ gobject-introspection-0.9.10/tools/g-ir-scanner.in
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!@PYTHON@
|
||||
+#!/usr/bin/env python
|
||||
# -*- Mode: Python -*-
|
||||
# GObject-Introspection - a framework for introspecting GObject libraries
|
||||
# Copyright (C) 2008 Johan Dahlin
|
||||
@ -0,0 +1,32 @@
|
||||
# NOTE: WIP! This recipe does not cross-compile atm., only -native
|
||||
SECTION = "libs"
|
||||
DEPENDS = "glib-2.0 libffi bison-native"
|
||||
BBCLASSEXTEND = "native"
|
||||
PR = "r1"
|
||||
|
||||
LICENSE = "GPLv2+ & LGPLv2+"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=90d577535a3898e1ae5dbf0ae3509a8c \
|
||||
file://COPYING.GPL;md5=94d55d512a9ba36caa9b7df079bae19f \
|
||||
file://COPYING.LGPL;md5=3bf50002aefd002f49e7bb854063f7e7"
|
||||
|
||||
SRC_URI[md5sum] = "e5cd63d6bcc5c105e898e7c33cf42175"
|
||||
SRC_URI[sha256sum] = "4bf244db75df04499dea704e7734376c0fc5a3a17fb59be2123c8d76111e6fb8"
|
||||
|
||||
SRC_URI = "\
|
||||
${GNOME_MIRROR}/gobject-introspection/0.9/${BPN}-${PV}.tar.bz2 \
|
||||
file://use-usr-bin-env-for-python.patch \
|
||||
"
|
||||
S = "${WORKDIR}/${BPN}-${PV}"
|
||||
|
||||
inherit autotools
|
||||
|
||||
do_configure_prepend() {
|
||||
touch -f gtk-doc.make
|
||||
}
|
||||
|
||||
EXTRA_OECONF = "\
|
||||
--disable-gtk-doc \
|
||||
--disable-gtk-doc-html \
|
||||
--disable-gtk-doc-pdf \
|
||||
--disable-tests \
|
||||
"
|
||||
14
meta-oe/recipes-devtools/json-glib/json-glib_0.10.4.bb
Normal file
14
meta-oe/recipes-devtools/json-glib/json-glib_0.10.4.bb
Normal file
@ -0,0 +1,14 @@
|
||||
DESCRIPTION = "JSON-GLib is a library providing serialization and deserialization support for the JavaScript Object Notation (JSON) format"
|
||||
LICENSE = "LGPLv2.1"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=7fbc338309ac38fefcd64b04bb903e34"
|
||||
DEPENDS = "glib-2.0"
|
||||
|
||||
PR = "r1"
|
||||
|
||||
EXTRA_OECONF = "--enable-introspection=no"
|
||||
|
||||
inherit autotools
|
||||
SRC_URI = "http://ftp.gnome.org/pub/GNOME/sources/json-glib/0.10/json-glib-0.10.4.tar.gz"
|
||||
|
||||
SRC_URI[md5sum] = "87677e939a4b3d42e1c56b2a3046b9bb"
|
||||
SRC_URI[sha256sum] = "9561b3c58b350c89333d154f1e8669b8ece611c9c724252aed0e6273cda9cc6f"
|
||||
@ -0,0 +1,13 @@
|
||||
Index: libcanberra-0.14/src/alsa.c
|
||||
===================================================================
|
||||
--- libcanberra-0.14.orig/src/alsa.c
|
||||
+++ libcanberra-0.14/src/alsa.c
|
||||
@@ -272,7 +272,7 @@
|
||||
return translate_error(ret);
|
||||
}
|
||||
|
||||
-#define BUFSIZE (16*1024)
|
||||
+#define BUFSIZE (128*1024)
|
||||
|
||||
static void* thread_func(void *userdata) {
|
||||
struct outstanding *out = userdata;
|
||||
56
meta-oe/recipes-devtools/libcanberra/libcanberra_0.26.bb
Normal file
56
meta-oe/recipes-devtools/libcanberra/libcanberra_0.26.bb
Normal file
@ -0,0 +1,56 @@
|
||||
DESCRIPTION = "Libcanberra is an implementation of the XDG Sound Theme and Name \
|
||||
Specifications, for generating event sounds on free desktops."
|
||||
LICENSE = "LGPLv2.1+"
|
||||
LIC_FILES_CHKSUM = "file://LGPL;md5=2d5025d4aa3495befef8f17206a5b0a1"
|
||||
DEPENDS = "alsa-lib gstreamer gtk+ libtool libvorbis gconf"
|
||||
SECTION = "libs/multimedia"
|
||||
AUTHOR = "Lennart Poettering"
|
||||
HOMEPAGE = "http://0pointer.de/lennart/projects/libcanberra"
|
||||
PR = "r1"
|
||||
|
||||
inherit autotools vala
|
||||
|
||||
SRC_URI = "http://0pointer.de/lennart/projects/libcanberra/libcanberra-${PV}.tar.gz \
|
||||
file://libcanberra-increase-buffer-size.patch"
|
||||
|
||||
SRC_URI[md5sum] = "ee2c66ada7c851a4e7b6eb1682285a24"
|
||||
SRC_URI[sha256sum] = "4b5d8d2c2835133620adbc53745dd107b6e58b9a2963059e8f457143fee00982"
|
||||
|
||||
EXTRA_OECONF = "\
|
||||
--enable-alsa \
|
||||
--enable-gstreamer \
|
||||
--enable-gtk \
|
||||
--enable-multi \
|
||||
--enable-null \
|
||||
--disable-oss \
|
||||
--disable-pulse \
|
||||
--disable-tdb \
|
||||
"
|
||||
# enable pulse again when pulseaudio >= 0.9.11 is the default in OE
|
||||
|
||||
python populate_packages_prepend() {
|
||||
plugindir = bb.data.expand('${libdir}/${P}/', d)
|
||||
do_split_packages(d, plugindir, '^libcanberra-(.*)\.so$', 'libcanberra-%s', '%s support library', extra_depends='' )
|
||||
}
|
||||
|
||||
PACKAGES =+ "${PN}-gtk"
|
||||
|
||||
PACKAGES_DYNAMIC = "libcanberra-*"
|
||||
|
||||
FILES_${PN}-gtk = "\
|
||||
${sysconfdir}/gconf \
|
||||
${bindir}/* \
|
||||
${libdir}/libcanberra-gtk.so.* \
|
||||
${libdir}/gtk-2.0/modules/* \
|
||||
${datadir}/gnome \
|
||||
${datadir}/gdm \
|
||||
"
|
||||
|
||||
FILES_${PN}-dev += "\
|
||||
${libdir}/${P}/*.la \
|
||||
"
|
||||
|
||||
FILES_${PN}-dbg += "\
|
||||
${libdir}/gtk-2.0/modules/.debug \
|
||||
${libdir}/${P}/.debug \
|
||||
"
|
||||
18
meta-oe/recipes-devtools/libgee/libgee.inc
Normal file
18
meta-oe/recipes-devtools/libgee/libgee.inc
Normal file
@ -0,0 +1,18 @@
|
||||
DESCRIPTION = "libgee is a collection library providing GObject-based interfaces \
|
||||
and classes for commonly used data structures."
|
||||
HOMEPAGE = "http://live.gnome.org/Libgee"
|
||||
SECTION = "libs"
|
||||
DEPENDS = "glib-2.0"
|
||||
BBCLASSEXTEND = "native"
|
||||
LICENSE = "LGPLv2.1"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24"
|
||||
INC_PR = "r6"
|
||||
PE = "1"
|
||||
|
||||
inherit autotools vala
|
||||
do_configure_prepend() {
|
||||
MACROS="libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4"
|
||||
for i in ${MACROS}; do
|
||||
rm -f m4/$i
|
||||
done
|
||||
}
|
||||
12
meta-oe/recipes-devtools/libgee/libgee_0.6.0.bb
Normal file
12
meta-oe/recipes-devtools/libgee/libgee_0.6.0.bb
Normal file
@ -0,0 +1,12 @@
|
||||
require libgee.inc
|
||||
PE = "1"
|
||||
PR = "${INC_PR}.1"
|
||||
#autoreconf needs introspection.m4 (staged by gobject-introspection-native) after http://git.gnome.org/browse/libgee/commit/?id=d026a29b38ca1a3388981c6e75a92602212373d8
|
||||
DEPENDS += "gobject-introspection-native"
|
||||
DEPENDS_virtclass-native += "gobject-introspection-native"
|
||||
|
||||
SRC_URI = "http://ftp.gnome.org/pub/GNOME/sources/libgee/0.6/${BPN}-${PV}.tar.bz2"
|
||||
S = "${WORKDIR}/${BPN}-${PV}"
|
||||
|
||||
SRC_URI[md5sum] = "4eb513b23ab6ea78884989518a4acf6f"
|
||||
SRC_URI[sha256sum] = "e586678d0a88637abeaaf850b62231000772e79ea6d9c4b45dc3cea99f778a7a"
|
||||
24
meta-oe/recipes-devtools/python/python-dateutil_1.4.1.bb
Normal file
24
meta-oe/recipes-devtools/python/python-dateutil_1.4.1.bb
Normal file
@ -0,0 +1,24 @@
|
||||
DESCRIPTION = "Extensions to the standard Python date/time support"
|
||||
HOMEPAGE = "http://labix.org/python-dateutil"
|
||||
SECTION = "devel/python"
|
||||
PRIORITY = "optional"
|
||||
LICENSE = "PSF"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=d82268718c68bda0b091006ec6e583c6"
|
||||
SRCNAME = "${PN}"
|
||||
PR = "r1"
|
||||
|
||||
SRC_URI = "http://labix.org/download/python-dateutil/${SRCNAME}-${PV}.tar.gz"
|
||||
S = "${WORKDIR}/${SRCNAME}-${PV}"
|
||||
|
||||
inherit setuptools
|
||||
|
||||
PACKAGES =+ "${PN}-zoneinfo"
|
||||
FILES_${PN}-zoneinfo = "${libdir}/${PYTHON_DIR}/site-packages/dateutil/zoneinfo"
|
||||
|
||||
RDEPENDS_${PN} = "\
|
||||
python-core \
|
||||
python-datetime \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "2a5f25ab12fcefcf0b21348f2d47595a"
|
||||
SRC_URI[sha256sum] = "74b615c6a55b4421187feba1633fc233e7c5ebdd7abe9b092447a32946823357"
|
||||
@ -0,0 +1,33 @@
|
||||
|
||||
#
|
||||
# Patch managed by http://www.holgerschurig.de/patcher.html
|
||||
#
|
||||
|
||||
--- Numeric-23.7/setup.py~nolapack
|
||||
+++ Numeric-23.7/setup.py
|
||||
@@ -32,7 +32,7 @@
|
||||
mathlibs = []
|
||||
|
||||
# delete all but the first one in this list if using your own LAPACK/BLAS
|
||||
-sourcelist = [os.path.join('Src', 'lapack_litemodule.c'),
|
||||
+sourcelist = [
|
||||
#os.path.join('Src', 'blas_lite.c'),
|
||||
#os.path.join('Src', 'f2c_lite.c'),
|
||||
#os.path.join('Src', 'zlapack_lite.c'),
|
||||
@@ -40,12 +40,12 @@
|
||||
]
|
||||
# set these to use your own BLAS;
|
||||
|
||||
-library_dirs_list = ['/usr/lib/atlas']
|
||||
-libraries_list = ['lapack', 'cblas', 'f77blas', 'atlas', 'g2c']
|
||||
+library_dirs_list = []
|
||||
+libraries_list = []
|
||||
|
||||
# set to true (1), if you also want BLAS optimized matrixmultiply/dot/innerproduct
|
||||
-use_dotblas = 1
|
||||
-include_dirs = ['/usr/include/atlas']
|
||||
+use_dotblas = 0
|
||||
+include_dirs = []
|
||||
# You may need to set this to find cblas.h
|
||||
# e.g. on UNIX using ATLAS this should be ['/usr/include/atlas']
|
||||
extra_link_args = []
|
||||
15
meta-oe/recipes-devtools/python/python-numeric_24.2.bb
Normal file
15
meta-oe/recipes-devtools/python/python-numeric_24.2.bb
Normal file
@ -0,0 +1,15 @@
|
||||
DESCRIPTION = "A sophisticated Numeric Processing Package for Python"
|
||||
SECTION = "devel/python"
|
||||
PRIORITY = "optional"
|
||||
LICENSE = "PSF & LLNL"
|
||||
LIC_FILES_CHKSUM = "file://Legal.htm;md5=e3ce75dedd4043918d15979ae43e312e"
|
||||
|
||||
PR = "ml1"
|
||||
|
||||
SRC_URI = "${SOURCEFORGE_MIRROR}/numpy/Numeric-${PV}.tar.gz"
|
||||
S = "${WORKDIR}/Numeric-${PV}"
|
||||
|
||||
inherit distutils
|
||||
|
||||
SRC_URI[md5sum] = "2ae672656e06716a149acb048cca3093"
|
||||
SRC_URI[sha256sum] = "5f72e729eb6ff57442f2a38bfc9931738b59e5077928e2e70d22b4610ff15258"
|
||||
24
meta-oe/recipes-devtools/python/python-pexpect_2.3.bb
Normal file
24
meta-oe/recipes-devtools/python/python-pexpect_2.3.bb
Normal file
@ -0,0 +1,24 @@
|
||||
DESCRIPTION = "A Pure Python Expect like Module for Python"
|
||||
SECTION = "devel/python"
|
||||
PRIORITY = "optional"
|
||||
LICENSE = "PSF"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=04a2bf11b85ce49d4a8c0c413fd34404"
|
||||
SRCNAME = "pexpect"
|
||||
PR = "ml1"
|
||||
|
||||
SRC_URI = "${SOURCEFORGE_MIRROR}/${SRCNAME}/${SRCNAME}-${PV}.tar.gz"
|
||||
S = "${WORKDIR}/${SRCNAME}-${PV}"
|
||||
|
||||
inherit distutils
|
||||
|
||||
RDEPENDS_${PN} = "\
|
||||
python-core \
|
||||
python-io \
|
||||
python-terminal \
|
||||
python-resource \
|
||||
python-fcntl \
|
||||
"
|
||||
|
||||
|
||||
SRC_URI[md5sum] = "bf107cf54e67bc6dec5bea1f3e6a65c3"
|
||||
SRC_URI[sha256sum] = "d315e7f3a8544fd85034d7e17fd7c5854e8f0828f5791f83cf313f8fa5740b75"
|
||||
15
meta-oe/recipes-devtools/python/python-phoneutils_git.bb
Normal file
15
meta-oe/recipes-devtools/python/python-phoneutils_git.bb
Normal file
@ -0,0 +1,15 @@
|
||||
DESCRIPTION = "Python Bindings for libphone-utils"
|
||||
SECTION = "devel/python"
|
||||
DEPENDS = "libphone-utils python-cython-native python-pyrex-native"
|
||||
RDEPENDS_${PN} = "libphone-utils"
|
||||
LICENSE = "LGPLv2.1+"
|
||||
LIC_FILES_CHKSUM = "file://phoneutils/c_phoneutils.pyx;endline=18;md5=ca321e4ec3a30a44469b23ebca782665"
|
||||
|
||||
SRCREV = "8a7c719e0c3f1f8c10f77f17422da02d7177f0dd"
|
||||
PV = "0.0.2+gitr${SRCPV}"
|
||||
PR = "r3"
|
||||
|
||||
SRC_URI = "git://git.shr-project.org/repo/libphone-utils.git;protocol=http;branch=master"
|
||||
S = "${WORKDIR}/git/src/python"
|
||||
|
||||
inherit setuptools
|
||||
16
meta-oe/recipes-devtools/python/python-pyalsaaudio_0.4.bb
Normal file
16
meta-oe/recipes-devtools/python/python-pyalsaaudio_0.4.bb
Normal file
@ -0,0 +1,16 @@
|
||||
DESCRIPTION = "Support for the Linux 2.6.x ALSA Sound System"
|
||||
SECTION = "devel/python"
|
||||
DEPENDS = "alsa-lib"
|
||||
PRIORITY = "optional"
|
||||
LICENSE = "PSF"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=1a3b161aa0fcec32a0c8907a2219ad9d"
|
||||
SRCNAME = "pyalsaaudio"
|
||||
PR = "ml0"
|
||||
|
||||
SRC_URI = "${SOURCEFORGE_MIRROR}/pyalsaaudio/${SRCNAME}-${PV}.tar.gz"
|
||||
S = "${WORKDIR}/${SRCNAME}-${PV}"
|
||||
|
||||
inherit distutils
|
||||
|
||||
SRC_URI[md5sum] = "b312c28efba7db0494836a79f0a49898"
|
||||
SRC_URI[sha256sum] = "07148ce16024724b17cc24c51d0f4fb78af214b09b7dc8dcb7b06e5647f4c582"
|
||||
23
meta-oe/recipes-devtools/python/python-pyserial_2.4.bb
Normal file
23
meta-oe/recipes-devtools/python/python-pyserial_2.4.bb
Normal file
@ -0,0 +1,23 @@
|
||||
DESCRIPTION = "Serial Port Support for Python"
|
||||
SECTION = "devel/python"
|
||||
PRIORITY = "optional"
|
||||
LICENSE = "PSF"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=7424386ffe323e815ee62ee9ad591dd8"
|
||||
SRCNAME = "pyserial"
|
||||
PR = "ml2"
|
||||
|
||||
SRC_URI = "${SOURCEFORGE_MIRROR}/${SRCNAME}/${SRCNAME}-${PV}.tar.gz"
|
||||
S = "${WORKDIR}/${SRCNAME}-${PV}"
|
||||
|
||||
inherit setuptools
|
||||
|
||||
# FIXME might stop packaging serialwin32 and serialjava files
|
||||
|
||||
RDEPENDS_${PN} = "\
|
||||
python-fcntl \
|
||||
python-io \
|
||||
python-stringold \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "eec19df59fd75ba5a136992897f8e468"
|
||||
SRC_URI[sha256sum] = "6b6a9e3d2fd5978c92c843e0109918a4bcac481eecae316254481c0e0f7e73c8"
|
||||
64
meta-oe/recipes-devtools/python/python-pyyaml/setup.py
Normal file
64
meta-oe/recipes-devtools/python/python-pyyaml/setup.py
Normal file
@ -0,0 +1,64 @@
|
||||
NAME = 'PyYAML'
|
||||
VERSION = '3.06'
|
||||
DESCRIPTION = "YAML parser and emitter for Python"
|
||||
LONG_DESCRIPTION = """\
|
||||
YAML is a data serialization format designed for human readability and
|
||||
interaction with scripting languages. PyYAML is a YAML parser and
|
||||
emitter for Python.
|
||||
|
||||
PyYAML features a complete YAML 1.1 parser, Unicode support, pickle
|
||||
support, capable extension API, and sensible error messages. PyYAML
|
||||
supports standard YAML tags and provides Python-specific tags that allow
|
||||
to represent an arbitrary Python object.
|
||||
|
||||
PyYAML is applicable for a broad range of tasks from complex
|
||||
configuration files to object serialization and persistance."""
|
||||
AUTHOR = "Kirill Simonov"
|
||||
AUTHOR_EMAIL = 'xi@resolvent.net'
|
||||
LICENSE = "MIT"
|
||||
PLATFORMS = "Any"
|
||||
URL = "http://pyyaml.org/wiki/PyYAML"
|
||||
DOWNLOAD_URL = "http://pyyaml.org/download/pyyaml/%s-%s.tar.gz" % (NAME, VERSION)
|
||||
CLASSIFIERS = [
|
||||
"Development Status :: 5 - Production/Stable",
|
||||
"Intended Audience :: Developers",
|
||||
"License :: OSI Approved :: MIT License",
|
||||
"Operating System :: OS Independent",
|
||||
"Programming Language :: Python",
|
||||
"Topic :: Software Development :: Libraries :: Python Modules",
|
||||
"Topic :: Text Processing :: Markup",
|
||||
]
|
||||
|
||||
from distutils.core import setup
|
||||
from distutils.extension import Extension
|
||||
from Cython.Distutils import build_ext
|
||||
|
||||
import sys, os.path
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
setup(
|
||||
name=NAME,
|
||||
version=VERSION,
|
||||
description=DESCRIPTION,
|
||||
long_description=LONG_DESCRIPTION,
|
||||
author=AUTHOR,
|
||||
author_email=AUTHOR_EMAIL,
|
||||
license=LICENSE,
|
||||
platforms=PLATFORMS,
|
||||
url=URL,
|
||||
download_url=DOWNLOAD_URL,
|
||||
classifiers=CLASSIFIERS,
|
||||
|
||||
package_dir={'': 'lib'},
|
||||
packages=['yaml'],
|
||||
|
||||
ext_modules = [
|
||||
Extension( "_yaml", ["ext/_yaml.pyx"], libraries = ["yaml"] )
|
||||
],
|
||||
|
||||
cmdclass={
|
||||
'build_ext': build_ext,
|
||||
},
|
||||
)
|
||||
22
meta-oe/recipes-devtools/python/python-pyyaml_svn.bb
Normal file
22
meta-oe/recipes-devtools/python/python-pyyaml_svn.bb
Normal file
@ -0,0 +1,22 @@
|
||||
DESCRIPTION = "Python support for YAML"
|
||||
HOMEPAGE = "http://www.pyyaml.org"
|
||||
SECTION = "devel/python"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=6015f088759b10e0bc2bf64898d4ae17"
|
||||
DEPENDS = "libyaml python-cython-native"
|
||||
SRCREV = "344"
|
||||
PV = "3.08+svnr${SRCPV}"
|
||||
PR = "ml0"
|
||||
|
||||
SRC_URI = "\
|
||||
svn://svn.pyyaml.org/pyyaml;module=trunk;proto=http \
|
||||
file://setup.py \
|
||||
"
|
||||
S = "${WORKDIR}/trunk"
|
||||
|
||||
inherit distutils
|
||||
|
||||
do_configure_prepend() {
|
||||
# upstream setup.py overcomplicated, use ours
|
||||
install -m 0644 ${WORKDIR}/setup.py ${S}
|
||||
}
|
||||
17
meta-oe/recipes-devtools/python/python-vobject_0.8.1c.bb
Normal file
17
meta-oe/recipes-devtools/python/python-vobject_0.8.1c.bb
Normal file
@ -0,0 +1,17 @@
|
||||
DESCRIPTION = "Python package for parsing and generating vCard and vCalendar files"
|
||||
SECTION = "devel/python"
|
||||
PRIORITY = "optional"
|
||||
LICENSE = "Apache License V2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE-2.0.txt;md5=3b83ef96387f14655fc854ddc3c6bd57"
|
||||
HOMEPAGE = "http://vobject.skyhouseconsulting.com/"
|
||||
SRCNAME = "vobject"
|
||||
RDEPENDS_${PN} = "python python-dateutil"
|
||||
PR = "r2"
|
||||
|
||||
SRC_URI = "http://vobject.skyhouseconsulting.com/${SRCNAME}-${PV}.tar.gz"
|
||||
S = "${WORKDIR}/${SRCNAME}-${PV}"
|
||||
|
||||
inherit setuptools
|
||||
|
||||
SRC_URI[md5sum] = "c9686dd74d39fdae140890d9c694c076"
|
||||
SRC_URI[sha256sum] = "594113117f2017ed837c8f3ce727616f9053baa5a5463a7420c8249b8fc556f5"
|
||||
@ -0,0 +1,16 @@
|
||||
DESCRIPTION = "Vala DBus Binding Tool"
|
||||
SECTION = "devel"
|
||||
DEPENDS = "vala libgee libxml2 intltool-native"
|
||||
HOMEPAGE = "http://wiki.freesmartphone.org/index.php/Implementations/vala-dbus-binding-tool"
|
||||
LICENSE = "GPLv3"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
|
||||
PE = "1"
|
||||
INC_PR = "r3"
|
||||
|
||||
export XDG_DATA_DIRS = "${STAGING_DATADIR}"
|
||||
|
||||
SRC_URI = "http://downloads.freesmartphone.org/sources/vala-dbus-binding-tool-${PV}.tar.bz2;name=archive"
|
||||
|
||||
inherit autotools
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
@ -0,0 +1,6 @@
|
||||
require vala-dbus-binding-tool.inc
|
||||
SRCREV = "fd89af4941d6478575900128d09029fa5549e0db"
|
||||
PV = "0.3.2+gitr${SRCPV}"
|
||||
|
||||
SRC_URI = "${FREESMARTPHONE_GIT}/vala-dbus-binding-tool.git;protocol=git;branch=master"
|
||||
S = "${WORKDIR}/git"
|
||||
25
meta-oe/recipes-devtools/vala/vala.inc
Normal file
25
meta-oe/recipes-devtools/vala/vala.inc
Normal file
@ -0,0 +1,25 @@
|
||||
DESCRIPTION = "Vala is a C#-like language dedicated to ease GObject programming. \
|
||||
Vala compiles to plain C and has no runtime environment nor penalities whatsoever."
|
||||
SECTION = "devel"
|
||||
DEPENDS = "glib-2.0 dbus"
|
||||
BBCLASSEXTEND = "native"
|
||||
DEPENDS_virtclass-native = "glib-2.0-native dbus-native"
|
||||
HOMEPAGE = "http://vala-project.org"
|
||||
LICENSE = "LGPLv2.1"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24"
|
||||
INC_PR = "r0"
|
||||
|
||||
#
|
||||
# WARNING: This source release has specifically been built for OpenEmbedded.
|
||||
# Don't update to any upstream release without consulting the recipe maintainer.
|
||||
#
|
||||
|
||||
SRC_URI = "\
|
||||
http://downloads.freesmartphone.org/sources/vala-${PV}.tar.bz2;name=archive \
|
||||
"
|
||||
|
||||
inherit autotools
|
||||
|
||||
EXTRA_OECONF = "--disable-vapigen"
|
||||
|
||||
FILES_${PN}-doc += ${datadir}/devhelp
|
||||
7
meta-oe/recipes-devtools/vala/vala_0.12.0.bb
Normal file
7
meta-oe/recipes-devtools/vala/vala_0.12.0.bb
Normal file
@ -0,0 +1,7 @@
|
||||
require vala.inc
|
||||
SRC_URI = "ftp://ftp.gnome.org/pub/GNOME/sources/vala/0.12/vala-0.12.0.tar.bz2"
|
||||
|
||||
FILES_${PN} += "${datadir}/vala-0.12/vapi"
|
||||
|
||||
SRC_URI[md5sum] = "b11fafaa705085342156312e356b6ff2"
|
||||
SRC_URI[sha256sum] = "9a398e16fba2c78c9bcadb05e489c9bc318e34901d43451ac5d2ce4bc46b1225"
|
||||
18
meta-oe/recipes-extended/tzcode/tzcode-native.inc
Normal file
18
meta-oe/recipes-extended/tzcode/tzcode-native.inc
Normal file
@ -0,0 +1,18 @@
|
||||
DESCRIPTION = "tzcode, timezone zoneinfo utils -- zic, zdump, tzselect"
|
||||
INC_PR = "r4"
|
||||
|
||||
SRC_URI = " \
|
||||
ftp://elsie.nci.nih.gov/pub/tzcode${PV}.tar.gz;name=tzcode-${PV};subdir=${BPN}-${PV} \
|
||||
ftp://elsie.nci.nih.gov/pub/tzdata${TZDATA_PV}.tar.gz;name=tzdata-${TZDATA_PV};subdir=${BPN}-${PV} \
|
||||
"
|
||||
|
||||
inherit native
|
||||
|
||||
do_install () {
|
||||
install -d ${D}${bindir}
|
||||
install -m 755 zic ${D}${bindir}/
|
||||
install -m 755 zdump ${D}${bindir}/
|
||||
install -m 755 tzselect ${D}${bindir}/
|
||||
}
|
||||
|
||||
NATIVE_INSTALL_WORKS = "1"
|
||||
19
meta-oe/recipes-extended/tzcode/tzcode-native_2011e.bb
Normal file
19
meta-oe/recipes-extended/tzcode/tzcode-native_2011e.bb
Normal file
@ -0,0 +1,19 @@
|
||||
require tzcode-native.inc
|
||||
|
||||
LICENSE = "PD"
|
||||
LIC_FILES_CHKSUM = "file://README;md5=3ae8198f82258417ce29066d3b034035"
|
||||
|
||||
# Note that elsie.nci.nih.gov removes old versions when new is coming out
|
||||
# So if this doesn't build for you because of missing source file, just
|
||||
# bump it to the latest available version, removing old one
|
||||
# Also, tzdata (and it is needed to build tzcode) version can differ from
|
||||
# tzcode version, thus this variable
|
||||
|
||||
TZDATA_PV = "2011e"
|
||||
|
||||
PR = "${INC_PR}.0"
|
||||
|
||||
SRC_URI[tzcode-2011e.md5sum] = "fbfc05dbf9ebcfe7c4bba18549870173"
|
||||
SRC_URI[tzcode-2011e.sha256sum] = "8fb00f8763aa51d83d6f3190d144124bb7176ca829fc08823d6205297bf0426b"
|
||||
SRC_URI[tzdata-2011e.md5sum] = "044a07072300a0ee72b046e5a9a4ec90"
|
||||
SRC_URI[tzdata-2011e.sha256sum] = "44fef01de4589a4979eb6b5fdbbfd21a3b135852af1ecbfb9e0368ae47392c79"
|
||||
178
meta-oe/recipes-extended/tzdata/tzdata.inc
Normal file
178
meta-oe/recipes-extended/tzdata/tzdata.inc
Normal file
@ -0,0 +1,178 @@
|
||||
DESCRIPTION = "Timezone data"
|
||||
SECTION = "base"
|
||||
PRIORITY = "optional"
|
||||
DEPENDS = "tzcode-native"
|
||||
|
||||
INC_PR = "r9"
|
||||
|
||||
DEFAULT_TIMEZONE ?= "Europe/London"
|
||||
|
||||
RCONFLICTS_${PN} = "timezones timezone-africa timezone-america timezone-antarctica \
|
||||
timezone-arctic timezone-asia timezone-atlantic \
|
||||
timezone-australia timezone-europe timezone-indian \
|
||||
timezone-iso3166.tab timezone-pacific timezone-zone.tab"
|
||||
|
||||
SRC_URI = "ftp://elsie.nci.nih.gov/pub/tzdata${PV}.tar.gz;subdir=${BPN}-${PV}"
|
||||
|
||||
TZONES= "africa antarctica asia australasia europe northamerica southamerica \
|
||||
factory solar87 solar88 solar89 etcetera backward systemv \
|
||||
"
|
||||
# pacificnew \
|
||||
|
||||
CONFFILES_${PN} = "${sysconfdir}/timezone ${sysconfdir}/localtime"
|
||||
|
||||
do_compile () {
|
||||
mkdir -p build
|
||||
for zone in ${TZONES}; do \
|
||||
${STAGING_BINDIR_NATIVE}/zic -d ${S}/build${datadir}/zoneinfo -L /dev/null \
|
||||
-y ${S}/yearistype.sh ${S}/${zone} ; \
|
||||
${STAGING_BINDIR_NATIVE}/zic -d ${S}/build${datadir}/zoneinfo/posix -L /dev/null \
|
||||
-y ${S}/yearistype.sh ${S}/${zone} ; \
|
||||
${STAGING_BINDIR_NATIVE}/zic -d ${S}/build${datadir}/zoneinfo/right -L ${S}/leapseconds \
|
||||
-y ${S}/yearistype.sh ${S}/${zone} ; \
|
||||
done
|
||||
}
|
||||
|
||||
do_install () {
|
||||
install -d ${D}${prefix} ${D}${datadir}/zoneinfo
|
||||
cp -pPR ${S}/build${prefix}/* ${D}${prefix}
|
||||
# Only eglibc is removing zoneinfo files from package
|
||||
if [ "${LIBC}"x = "eglibc"x ] ; then
|
||||
cp -pP "${S}/zone.tab" ${D}${datadir}/zoneinfo
|
||||
cp -pP "${S}/iso3166.tab" ${D}${datadir}/zoneinfo
|
||||
fi
|
||||
|
||||
# Install a sane default for timezones
|
||||
install -d ${D}${sysconfdir}
|
||||
echo ${DEFAULT_TIMEZONE} > ${D}${sysconfdir}/timezone
|
||||
cp -pPR ${S}/build${datadir}/zoneinfo/${DEFAULT_TIMEZONE} ${D}${sysconfdir}/localtime
|
||||
}
|
||||
|
||||
PACKAGE_ARCH = "all"
|
||||
# Packages primarily organized by directory with a major city
|
||||
# in most time zones in the base package
|
||||
|
||||
PACKAGES = "${PN}-dbg tzdata tzdata-misc tzdata-posix tzdata-right tzdata-africa \
|
||||
tzdata-americas tzdata-antarctica tzdata-arctic tzdata-asia \
|
||||
tzdata-atlantic tzdata-australia tzdata-europe tzdata-pacific"
|
||||
|
||||
ALLOW_EMPTY_${PN}-dbg = "1"
|
||||
|
||||
FILES_tzdata-africa += "${datadir}/zoneinfo/Africa/*"
|
||||
RPROVIDES_tzdata-africa = "tzdata-africa"
|
||||
|
||||
FILES_tzdata-americas += "${datadir}/zoneinfo/America/* \
|
||||
${datadir}/zoneinfo/US/* \
|
||||
${datadir}/zoneinfo/Brazil/* \
|
||||
${datadir}/zoneinfo/Canada/* \
|
||||
${datadir}/zoneinfo/Mexico/* \
|
||||
${datadir}/zoneinfo/Chile/*"
|
||||
RPROVIDES_tzdata-americas = "tzdata-americas"
|
||||
|
||||
FILES_tzdata-antarctica += "${datadir}/zoneinfo/Antarctica/*"
|
||||
RPROVIDES_tzdata-antarctica = "tzdata-antarctica"
|
||||
|
||||
FILES_tzdata-arctic += "${datadir}/zoneinfo/Arctic/*"
|
||||
RPROVIDES_tzdata-arctic = "tzdata-arctic"
|
||||
|
||||
FILES_tzdata-asia += "${datadir}/zoneinfo/Asia/* \
|
||||
${datadir}/zoneinfo/Indian/* \
|
||||
${datadir}/zoneinfo/Mideast/*"
|
||||
RPROVIDES_tzdata-asia = "tzdata-asia"
|
||||
|
||||
FILES_tzdata-atlantic += "${datadir}/zoneinfo/Atlantic/*"
|
||||
RPROVIDES_tzdata-atlantic = "tzdata-atlantic"
|
||||
|
||||
FILES_tzdata-australia += "${datadir}/zoneinfo/Australia/*"
|
||||
RPROVIDES_tzdata-australia = "tzdata-australia"
|
||||
|
||||
FILES_tzdata-europe += "${datadir}/zoneinfo/Europe/*"
|
||||
RPROVIDES_tzdata-europe = "tzdata-europe"
|
||||
|
||||
FILES_tzdata-pacific += "${datadir}/zoneinfo/Pacific/*"
|
||||
RPROVIDES_tzdata-pacific = "tzdata-pacific"
|
||||
|
||||
FILES_tzdata-posix += "${datadir}/zoneinfo/posix/*"
|
||||
RPROVIDES_tzdata-posix = "tzdata-posix"
|
||||
|
||||
FILES_tzdata-right += "${datadir}/zoneinfo/right/*"
|
||||
RPROVIDES_tzdata-right = "tzdata-right"
|
||||
|
||||
|
||||
FILES_tzdata-misc += "${datadir}/zoneinfo/Cuba \
|
||||
${datadir}/zoneinfo/Egypt \
|
||||
${datadir}/zoneinfo/Eire \
|
||||
${datadir}/zoneinfo/Factory \
|
||||
${datadir}/zoneinfo/GB-Eire \
|
||||
${datadir}/zoneinfo/Hongkong \
|
||||
${datadir}/zoneinfo/Iceland \
|
||||
${datadir}/zoneinfo/Iran \
|
||||
${datadir}/zoneinfo/Israel \
|
||||
${datadir}/zoneinfo/Jamaica \
|
||||
${datadir}/zoneinfo/Japan \
|
||||
${datadir}/zoneinfo/Kwajalein \
|
||||
${datadir}/zoneinfo/Libya \
|
||||
${datadir}/zoneinfo/Navajo \
|
||||
${datadir}/zoneinfo/Poland \
|
||||
${datadir}/zoneinfo/Portugal \
|
||||
${datadir}/zoneinfo/Singapore \
|
||||
${datadir}/zoneinfo/Turkey"
|
||||
RPROVIDES_tzdata-misc = "tzdata-misc"
|
||||
|
||||
|
||||
FILES_${PN} += "${datadir}/zoneinfo/Pacific/Honolulu \
|
||||
${datadir}/zoneinfo/America/Anchorage \
|
||||
${datadir}/zoneinfo/America/Los_Angeles \
|
||||
${datadir}/zoneinfo/America/Denver \
|
||||
${datadir}/zoneinfo/America/Chicago \
|
||||
${datadir}/zoneinfo/America/New_York \
|
||||
${datadir}/zoneinfo/America/Caracas \
|
||||
${datadir}/zoneinfo/America/Sao_Paulo \
|
||||
${datadir}/zoneinfo/Europe/London \
|
||||
${datadir}/zoneinfo/Europe/Paris \
|
||||
${datadir}/zoneinfo/Africa/Cairo \
|
||||
${datadir}/zoneinfo/Europe/Moscow \
|
||||
${datadir}/zoneinfo/Asia/Dubai \
|
||||
${datadir}/zoneinfo/Asia/Karachi \
|
||||
${datadir}/zoneinfo/Asia/Dhaka \
|
||||
${datadir}/zoneinfo/Asia/Bankok \
|
||||
${datadir}/zoneinfo/Asia/Hong_Kong \
|
||||
${datadir}/zoneinfo/Asia/Tokyo \
|
||||
${datadir}/zoneinfo/Australia/Perth \
|
||||
${datadir}/zoneinfo/Australia/Darwin \
|
||||
${datadir}/zoneinfo/Australia/Adelaide \
|
||||
${datadir}/zoneinfo/Australia/Brisbane \
|
||||
${datadir}/zoneinfo/Australia/Sydney \
|
||||
${datadir}/zoneinfo/Pacific/Noumea \
|
||||
${datadir}/zoneinfo/CET \
|
||||
${datadir}/zoneinfo/CST6CDT \
|
||||
${datadir}/zoneinfo/EET \
|
||||
${datadir}/zoneinfo/EST \
|
||||
${datadir}/zoneinfo/EST5EDT \
|
||||
${datadir}/zoneinfo/GB \
|
||||
${datadir}/zoneinfo/GMT \
|
||||
${datadir}/zoneinfo/GMT+0 \
|
||||
${datadir}/zoneinfo/GMT-0 \
|
||||
${datadir}/zoneinfo/GMT0 \
|
||||
${datadir}/zoneinfo/Greenwich \
|
||||
${datadir}/zoneinfo/HST \
|
||||
${datadir}/zoneinfo/MET \
|
||||
${datadir}/zoneinfo/MST \
|
||||
${datadir}/zoneinfo/MST7MDT \
|
||||
${datadir}/zoneinfo/NZ \
|
||||
${datadir}/zoneinfo/NZ-CHAT \
|
||||
${datadir}/zoneinfo/PRC \
|
||||
${datadir}/zoneinfo/PST8PDT \
|
||||
${datadir}/zoneinfo/ROC \
|
||||
${datadir}/zoneinfo/ROK \
|
||||
${datadir}/zoneinfo/UCT \
|
||||
${datadir}/zoneinfo/UTC \
|
||||
${datadir}/zoneinfo/Universal \
|
||||
${datadir}/zoneinfo/W-SU \
|
||||
${datadir}/zoneinfo/WET \
|
||||
${datadir}/zoneinfo/Zulu \
|
||||
${datadir}/zoneinfo/Etc/* \
|
||||
${datadir}/zoneinfo/iso3166.tab \
|
||||
${datadir}/zoneinfo/zone.tab \
|
||||
${sysconfdir}/localtime \
|
||||
${sysconfdir}/timezone "
|
||||
13
meta-oe/recipes-extended/tzdata/tzdata_2011e.bb
Normal file
13
meta-oe/recipes-extended/tzdata/tzdata_2011e.bb
Normal file
@ -0,0 +1,13 @@
|
||||
require tzdata.inc
|
||||
|
||||
LICENSE = "PD"
|
||||
LIC_FILES_CHKSUM = "file://asia;beginline=2;endline=3;md5=06468c0e84ef4d4c97045a4a29b08234"
|
||||
|
||||
# Note that elsie.nci.nih.gov removes old archives after a new one is
|
||||
# released. So if this doesn't build for you because of missing source file
|
||||
# just bump it to the latest available version, removing the old one
|
||||
|
||||
PR = "${INC_PR}.0"
|
||||
|
||||
SRC_URI[md5sum] = "044a07072300a0ee72b046e5a9a4ec90"
|
||||
SRC_URI[sha256sum] = "44fef01de4589a4979eb6b5fdbbfd21a3b135852af1ecbfb9e0368ae47392c79"
|
||||
1095
meta-oe/recipes-graphics/drm/libdrm-2.4.24/glamo.patch
Normal file
1095
meta-oe/recipes-graphics/drm/libdrm-2.4.24/glamo.patch
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,43 @@
|
||||
Index: libdrm-2.4.7/tests/Makefile.am
|
||||
===================================================================
|
||||
--- libdrm-2.4.7.orig/tests/Makefile.am 2009-04-09 20:16:35.000000000 +0100
|
||||
+++ libdrm-2.4.7/tests/Makefile.am 2009-04-17 12:35:14.000000000 +0100
|
||||
@@ -6,10 +6,11 @@
|
||||
|
||||
LDADD = $(top_builddir)/libdrm.la
|
||||
|
||||
-check_PROGRAMS = \
|
||||
+bin_PROGRAMS = \
|
||||
dristat \
|
||||
drmstat
|
||||
|
||||
+check_PROGRAMS =
|
||||
SUBDIRS =
|
||||
|
||||
if HAVE_LIBKMS
|
||||
Index: libdrm-2.4.7/tests/modeprint/Makefile.am
|
||||
===================================================================
|
||||
--- libdrm-2.4.7.orig/tests/modeprint/Makefile.am 2009-02-17 19:52:37.000000000 +0000
|
||||
+++ libdrm-2.4.7/tests/modeprint/Makefile.am 2009-04-17 12:35:32.000000000 +0100
|
||||
@@ -3,7 +3,7 @@
|
||||
-I$(top_srcdir)/libdrm/intel/ \
|
||||
-I$(top_srcdir)/libdrm
|
||||
|
||||
-noinst_PROGRAMS = \
|
||||
+bin_PROGRAMS = \
|
||||
modeprint
|
||||
|
||||
modeprint_SOURCES = \
|
||||
Index: libdrm-2.4.7/tests/modetest/Makefile.am
|
||||
===================================================================
|
||||
--- libdrm-2.4.7.orig/tests/modetest/Makefile.am 2009-02-17 19:52:37.000000000 +0000
|
||||
+++ libdrm-2.4.7/tests/modetest/Makefile.am 2009-04-17 12:35:42.000000000 +0100
|
||||
@@ -4,7 +4,7 @@
|
||||
-I$(top_srcdir)/libdrm \
|
||||
$(CAIRO_CFLAGS)
|
||||
|
||||
-noinst_PROGRAMS = \
|
||||
+bin_PROGRAMS = \
|
||||
modetest
|
||||
|
||||
modetest_SOURCES = \
|
||||
39
meta-oe/recipes-graphics/drm/libdrm_2.4.24.bb
Normal file
39
meta-oe/recipes-graphics/drm/libdrm_2.4.24.bb
Normal file
@ -0,0 +1,39 @@
|
||||
SUMMARY = "Userspace interface to the kernel DRM services"
|
||||
DESCRIPTION = "The runtime library for accessing the kernel DRM services. DRM \
|
||||
stands for \"Direct Rendering Manager\", which is the kernel portion of the \
|
||||
\"Direct Rendering Infrastructure\" (DRI). DRI is required for many hardware \
|
||||
accelerated OpenGL drivers."
|
||||
HOMEPAGE = "http://dri.freedesktop.org"
|
||||
SECTION = "x11/base"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://xf86drm.c;beginline=9;endline=32;md5=c8a3b961af7667c530816761e949dc71"
|
||||
SRC_URI = "http://dri.freedesktop.org/libdrm/libdrm-${PV}.tar.bz2"
|
||||
PROVIDES = "drm"
|
||||
DEPENDS = "libpthread-stubs udev cairo virtual/libx11"
|
||||
|
||||
inherit autotools pkgconfig
|
||||
|
||||
PACKAGES =+ "${PN}-tests ${PN}-drivers ${PN}-kms ${@base_contains('MACHINE_FEATURES', 'x86', '${PN}-intel', '',d)}"
|
||||
FILES_${PN}-tests = "${bindir}/dr* ${bindir}/mode*"
|
||||
FILES_${PN}-drivers = "${libdir}/libdrm_*.so.*"
|
||||
FILES_${PN}-intel = "${libdir}/libdrm_intel.so.*"
|
||||
FILES_${PN}-kms = "${libdir}/libkms*.so.*"
|
||||
|
||||
LEAD_SONAME = "libdrm.so"
|
||||
|
||||
EXTRA_OECONF_append = " ${@base_contains('MACHINE_FEATURES', 'x86', '', '--disable-intel --disable-radeon',d)}"
|
||||
EXTRA_OECONF_append_shr = " --enable-glamo-experimental-api"
|
||||
|
||||
PR = "r8"
|
||||
|
||||
SRC_URI += "file://installtests.patch"
|
||||
SRC_URI += "file://glamo.patch"
|
||||
|
||||
SRC_URI[md5sum] = "8d802bf3b368f9fac0d7d17516a9436f"
|
||||
SRC_URI[sha256sum] = "c7012381f64458af9f291d913309448aac7dd23a28dc86c6970e4bf38effb6a5"
|
||||
|
||||
do_compile_prepend_libc-uclibc() {
|
||||
eval "${@base_contains('DISTRO_FEATURES', 'largefile', '', 'sed -i -e "/_FILE_OFFSET_BITS/d" ${S}/libkms/intel.c', d)}"
|
||||
eval "${@base_contains('DISTRO_FEATURES', 'largefile', '', 'sed -i -e "/_FILE_OFFSET_BITS/d" ${S}/libkms/vmwgfx.c', d)}"
|
||||
eval "${@base_contains('DISTRO_FEATURES', 'largefile', '', 'sed -i -e "/_FILE_OFFSET_BITS/d" ${S}/libkms/nouveau.c', d)}"
|
||||
}
|
||||
12
meta-oe/recipes-graphics/mesa/README
Normal file
12
meta-oe/recipes-graphics/mesa/README
Normal file
@ -0,0 +1,12 @@
|
||||
mesa-common.inc
|
||||
* Settings shared by ALL recipes
|
||||
|
||||
mesa-${PV}.inc
|
||||
* Settings for particular version, mostly checksums and additional patches
|
||||
* Patches are stored mesa-${PV} dir and -dri and xlib has adjusted FILESPATHPKG
|
||||
|
||||
mesa-dri.inc
|
||||
* Setting shared by ALL dri recipes - defines what is mesa-dri
|
||||
|
||||
mesa-xlib.inc
|
||||
* Setting shared by ALL xlib recipes - defines what is mesa-xlib
|
||||
19
meta-oe/recipes-graphics/mesa/mesa-7.10.2.inc
Normal file
19
meta-oe/recipes-graphics/mesa/mesa-7.10.2.inc
Normal file
@ -0,0 +1,19 @@
|
||||
SRC_URI = "ftp://ftp.freedesktop.org/pub/mesa/${PV}/MesaLib-${PV}.tar.bz2;name=archive \
|
||||
file://glamo.patch \
|
||||
file://uclibc.patch \
|
||||
"
|
||||
|
||||
DEPENDS += "talloc"
|
||||
|
||||
SRC_URI[archive.md5sum] = "f5de82852f1243f42cc004039e10b771"
|
||||
SRC_URI[archive.sha256sum] = "8ced2678ce11cf30804694a92ea3ca6b82f158ae8995bdc626c7e85aac71c7c1"
|
||||
|
||||
EXTRA_OECONF += " --disable-gallium"
|
||||
|
||||
#needs more testing and updated glamo.patch before making default
|
||||
DEFAULT_PREFERENCE = "-2"
|
||||
|
||||
do_configure_prepend() {
|
||||
#check for python not python2, because python-native does not stage python2 binary/link
|
||||
sed -i 's/AC_CHECK_PROGS(\[PYTHON2\], \[python2 python\])/AC_CHECK_PROGS(\[PYTHON2\], \[python python\])/g' ${S}/configure.ac
|
||||
}
|
||||
2425
meta-oe/recipes-graphics/mesa/mesa-7.10.2/glamo.patch
Normal file
2425
meta-oe/recipes-graphics/mesa/mesa-7.10.2/glamo.patch
Normal file
File diff suppressed because it is too large
Load Diff
26
meta-oe/recipes-graphics/mesa/mesa-7.10.2/uclibc.patch
Normal file
26
meta-oe/recipes-graphics/mesa/mesa-7.10.2/uclibc.patch
Normal file
@ -0,0 +1,26 @@
|
||||
Index: Mesa-7.9.1/src/mesa/main/imports.c
|
||||
===================================================================
|
||||
--- Mesa-7.9.1.orig/src/mesa/main/imports.c 2010-12-15 13:50:00.000000000 -0800
|
||||
+++ Mesa-7.9.1/src/mesa/main/imports.c 2011-01-10 12:23:48.848656001 -0800
|
||||
@@ -757,7 +757,7 @@
|
||||
float
|
||||
_mesa_strtof( const char *s, char **end )
|
||||
{
|
||||
-#if defined(_GNU_SOURCE) && !defined(__CYGWIN__) && !defined(__FreeBSD__)
|
||||
+#if defined(_GNU_SOURCE) && !defined(__CYGWIN__) && !defined(__FreeBSD__) && !defined(__UCLIBC__)
|
||||
static locale_t loc = NULL;
|
||||
if (!loc) {
|
||||
loc = newlocale(LC_CTYPE_MASK, "C", NULL);
|
||||
Index: Mesa-7.9.1/src/glsl/strtod.c
|
||||
===================================================================
|
||||
--- Mesa-7.9.1.orig/src/glsl/strtod.c 2011-01-10 20:08:01.568656001 -0800
|
||||
+++ Mesa-7.9.1/src/glsl/strtod.c 2011-01-10 20:08:39.898656001 -0800
|
||||
@@ -44,7 +44,7 @@
|
||||
double
|
||||
glsl_strtod(const char *s, char **end)
|
||||
{
|
||||
-#if defined(_GNU_SOURCE) && !defined(__CYGWIN__) && !defined(__FreeBSD__)
|
||||
+#if defined(_GNU_SOURCE) && !defined(__CYGWIN__) && !defined(__FreeBSD__) && !defined(__UCLIBC__)
|
||||
static locale_t loc = NULL;
|
||||
if (!loc) {
|
||||
loc = newlocale(LC_CTYPE_MASK, "C", NULL);
|
||||
53
meta-oe/recipes-graphics/mesa/mesa-common.inc
Normal file
53
meta-oe/recipes-graphics/mesa/mesa-common.inc
Normal file
@ -0,0 +1,53 @@
|
||||
SECTION = "x11"
|
||||
|
||||
DESCRIPTION = "An open source implementation of the OpenGL spec"
|
||||
HOMEPAGE = "http://mesa3d.org"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://docs/license.html;md5=7a3373c039b6b925c427755a4f779c1d"
|
||||
|
||||
INC_PR = "r11"
|
||||
PE = "2"
|
||||
|
||||
PROTO_DEPS = "xf86driproto glproto"
|
||||
LIB_DEPS = "virtual/libx11 libxext libxxf86vm libxdamage libxfixes"
|
||||
|
||||
DEPENDS = "${PROTO_DEPS} ${LIB_DEPS}"
|
||||
|
||||
SRC_URI = "ftp://ftp.freedesktop.org/pub/mesa/${PV}/MesaLib-${PV}.tar.bz2;name=archive \
|
||||
"
|
||||
S = "${WORKDIR}/Mesa-${PV}"
|
||||
|
||||
PROVIDES = "virtual/libgl"
|
||||
|
||||
inherit autotools pkgconfig
|
||||
|
||||
EXTRA_OECONF = "--enable-glu \
|
||||
--disable-glw \
|
||||
--disable-glut \
|
||||
"
|
||||
|
||||
inherit glx-use-tls
|
||||
|
||||
# Package contents vary according to ${MACHINE_DRI_MODULES}.
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
PACKAGES =+ "libegl libegl-dev libegl-dbg libglu libglu-dev libosmesa libosmesa-dev libgl libgl-dev"
|
||||
FILES_${PN} += "${libdir}/dri/*.so"
|
||||
FILES_libegl = "${libdir}/libEGL.so.* ${libdir}/egl/*.so"
|
||||
FILES_libgl = "${libdir}/libGL.so.*"
|
||||
FILES_libglu = "${libdir}/libGLU.so.*"
|
||||
FILES_libosmesa = "${libdir}/libOSMesa.so.*"
|
||||
|
||||
FILES_libegl-dev = "${libdir}/libEGL.* ${includedir}/EGL"
|
||||
FILES_libgl-dev = "${libdir}/libGL.* ${includedir}/GL"
|
||||
FILES_libglu-dev = "${libdir}/libGLU.* ${includedir}/GL/glu*.h"
|
||||
FILES_libosmesa-dev = "${libdir}/libOSMesa.* ${includedir}/osmesa.h"
|
||||
|
||||
FILES_${PN}-dbg += "${libdir}/dri/.debug/*"
|
||||
FILES_libegl-dbg += "${libdir}/egl/.debug/*"
|
||||
|
||||
NATIVE_INSTALL_WORKS = "1"
|
||||
do_install_append () {
|
||||
install -d ${D}/${includedir}/GL
|
||||
cp -pPr ${S}/include/GL/internal* ${D}/${includedir}/GL
|
||||
}
|
||||
10
meta-oe/recipes-graphics/mesa/mesa-dri.inc
Normal file
10
meta-oe/recipes-graphics/mesa/mesa-dri.inc
Normal file
@ -0,0 +1,10 @@
|
||||
DEPENDS += "dri2proto expat libdrm makedepend-native"
|
||||
|
||||
#not supported in oe-core base.bbclass
|
||||
#FILESPATHPKG =. "mesa-${PV}:mesa:"
|
||||
FILESPATH =. "${FILE_DIRNAME}/mesa:${FILE_DIRNAME}/mesa-${PV}:"
|
||||
|
||||
# most of our targets do not have DRI so will use mesa-xlib
|
||||
DEFAULT_PREFERENCE = "-1"
|
||||
|
||||
EXTRA_OECONF += " --with-driver=dri --with-dri-drivers=swrast,${MACHINE_DRI_MODULES}"
|
||||
4
meta-oe/recipes-graphics/mesa/mesa-dri_7.10.2.bb
Normal file
4
meta-oe/recipes-graphics/mesa/mesa-dri_7.10.2.bb
Normal file
@ -0,0 +1,4 @@
|
||||
require mesa-common.inc
|
||||
require mesa-${PV}.inc
|
||||
require mesa-dri.inc
|
||||
PR = "${INC_PR}.0"
|
||||
2
meta-oe/recipes-graphics/mesa/mesa-xlib.inc
Normal file
2
meta-oe/recipes-graphics/mesa/mesa-xlib.inc
Normal file
@ -0,0 +1,2 @@
|
||||
FILESPATHPKG =. "mesa-${PV}:mesa:"
|
||||
EXTRA_OECONF += " --with-driver=xlib"
|
||||
4
meta-oe/recipes-graphics/mesa/mesa-xlib_7.10.2.bb
Normal file
4
meta-oe/recipes-graphics/mesa/mesa-xlib_7.10.2.bb
Normal file
@ -0,0 +1,4 @@
|
||||
require mesa-common.inc
|
||||
require mesa-${PV}.inc
|
||||
require mesa-xlib.inc
|
||||
PR = "${INC_PR}.0"
|
||||
6
meta-oe/recipes-graphics/mesa/mesa_7.10.2.bb
Normal file
6
meta-oe/recipes-graphics/mesa/mesa_7.10.2.bb
Normal file
@ -0,0 +1,6 @@
|
||||
# This is a dummy package so OE can use the poky mesa files
|
||||
require mesa-dri_${PV}.bb
|
||||
|
||||
PR = "${INC_PR}.0"
|
||||
|
||||
EXTRA_OECONF += "--disable-egl"
|
||||
40
meta-oe/recipes-graphics/tasks/task-fonts-truetype.bb
Normal file
40
meta-oe/recipes-graphics/tasks/task-fonts-truetype.bb
Normal file
@ -0,0 +1,40 @@
|
||||
DESCRIPTION = "Install one of these tasks to get support for truetype fonts."
|
||||
SECTION = "fonts"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${TOPDIR}/meta-shr/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
||||
PV = "1.0"
|
||||
PR = "r0"
|
||||
|
||||
inherit task
|
||||
|
||||
PACKAGES += "\
|
||||
${PN}-core \
|
||||
${PN}-chinese \
|
||||
${PN}-japanese \
|
||||
"
|
||||
|
||||
RRECOMMENDS_task-fonts-truetype = "\
|
||||
${PN}-core \
|
||||
${PN}-chinese \
|
||||
${PN}-japanese \
|
||||
"
|
||||
|
||||
RDEPENDS_task-fonts-truetype-core = "\
|
||||
fontconfig-utils \
|
||||
\
|
||||
ttf-dejavu-common \
|
||||
ttf-dejavu-sans \
|
||||
ttf-dejavu-sans-mono \
|
||||
"
|
||||
# ttf-dejavu-serif \
|
||||
|
||||
RDEPENDS_task-fonts-truetype-chinese = "\
|
||||
${PN}-core \
|
||||
ttf-arphic-uming \
|
||||
"
|
||||
|
||||
RDEPENDS_task-fonts-truetype-japanese = "\
|
||||
${PN}-core \
|
||||
ttf-sazanami-gothic \
|
||||
ttf-sazanami-mincho \
|
||||
"
|
||||
23
meta-oe/recipes-graphics/ttf-fonts/ttf-liberation_0.2.bb
Normal file
23
meta-oe/recipes-graphics/ttf-fonts/ttf-liberation_0.2.bb
Normal file
@ -0,0 +1,23 @@
|
||||
require ttf.inc
|
||||
|
||||
DESCRIPTION = "Liberation fonts - TTF Version"
|
||||
HOMEPAGE = "https://www.redhat.com/promo/fonts/"
|
||||
LICENSE = "GPLv2"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
|
||||
file://License.txt;md5=5b171c5100029d884fcea21d9a2b7543 \
|
||||
"
|
||||
|
||||
PR = "r3"
|
||||
|
||||
SRC_URI = "http://fedorahosted.org/liberation-fonts/export/807b6dfd069b998cd9b4d3158da98817ef23c79d/F-9/liberation-fonts-ttf-3.tar.gz"
|
||||
S = "${WORKDIR}/liberation-fonts-${PV}"
|
||||
|
||||
PACKAGES = "${PN}-dbg ttf-liberation-mono ttf-liberation-sans ttf-liberation-serif"
|
||||
RRECOMMENDS_${PN}-dbg = ""
|
||||
|
||||
FILES_ttf-liberation-mono = "${datadir}/fonts/truetype/*Mono*"
|
||||
FILES_ttf-liberation-sans = "${datadir}/fonts/truetype/*Sans*"
|
||||
FILES_ttf-liberation-serif = "${datadir}/fonts/truetype/*Serif*"
|
||||
|
||||
SRC_URI[md5sum] = "77728078a17e39f7c242b42c3bf6feb8"
|
||||
SRC_URI[sha256sum] = "174cf27c57612971434ec8cc4a52bfd37bad8408e9b9219539c6d5113df6ff8f"
|
||||
@ -0,0 +1 @@
|
||||
xinput set-int-prop "Touchscreen" "Evdev Axis Calibration" 32 -102 4739 6 7321;
|
||||
@ -0,0 +1,2 @@
|
||||
xinput set-int-prop "Touchscreen" "Evdev Axis Calibration" 32 204 3897 3763 178;
|
||||
|
||||
@ -0,0 +1,2 @@
|
||||
xinput set-int-prop "Touchscreen" "Evdev Axis Calibration" 32 107 918 911 98
|
||||
xinput set-int-prop "Touchscreen" "Evdev Axes Swap" 8 1
|
||||
@ -0,0 +1,2 @@
|
||||
xinput set-int-prop "Touchscreen" "Evdev Axis Calibration" 32 107 918 911 98
|
||||
xinput set-int-prop "Touchscreen" "Evdev Axes Swap" 8 1
|
||||
@ -0,0 +1 @@
|
||||
# replace with valid machine specific pointercal.xinput
|
||||
@ -0,0 +1,21 @@
|
||||
DESCRIPTION = "Touchscreen calibration data from xinput-calibrator"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${TOPDIR}/meta-shr/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
||||
|
||||
SECTION = "base"
|
||||
|
||||
PR = "r2"
|
||||
SRC_URI = "file://pointercal.xinput"
|
||||
S = "${WORKDIR}"
|
||||
|
||||
do_install() {
|
||||
# Only install file if it has a contents
|
||||
if [ -s ${S}/pointercal.xinput ]; then
|
||||
install -d ${D}${sysconfdir}/
|
||||
install -m 0644 ${S}/pointercal.xinput ${D}${sysconfdir}/
|
||||
fi
|
||||
}
|
||||
|
||||
ALLOW_EMPTY_${PN} = "1"
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
CONFFILES_${PN} = "${sysconfdir}/pointercal.xinput"
|
||||
@ -0,0 +1,8 @@
|
||||
DESCRIPTION = "A generic touchscreen calibration program for X.Org"
|
||||
HOMEPAGE = "http://www.freedesktop.org/wiki/Software/xinput_calibrator"
|
||||
LICENSE = "MIT/X11"
|
||||
DEPENDS = "virtual/libx11 libxi"
|
||||
RDEPENDS_${PN} = "xinput pointercal-xinput"
|
||||
INC_PR = "r7"
|
||||
|
||||
inherit autotools
|
||||
@ -0,0 +1,17 @@
|
||||
require xinput-calibrator.inc
|
||||
|
||||
LIC_FILES_CHKSUM = "file://src/calibrator.cpp;endline=22;md5=998e238a7638a7446eaeb02398f691fc"
|
||||
SRC_URI = "git://github.com/tias/xinput_calibrator.git;protocol=git"
|
||||
|
||||
SRCREV = "d2ce98b3f638667dd64b6d718721379b2dc750a7"
|
||||
PR = "${INC_PR}.0"
|
||||
S = "${WORKDIR}/git/"
|
||||
|
||||
do_install_append() {
|
||||
install -d ${D}${bindir}
|
||||
install -m 0755 scripts/xinput_calibrator_pointercal.sh ${D}${bindir}/xinput_calibrator_once.sh
|
||||
ln -s ${bindir}/xinput_calibrator_x11 ${D}${bindir}/xinput_calibrator
|
||||
install -d ${D}${datadir}/applications/
|
||||
install -m 0755 scripts/xinput_calibrator.desktop ${D}${datadir}/applications/xinput-calibrator.desktop
|
||||
install -m 0755 scripts/xinput_calibrator_get_hal_calibration.sh ${D}${bindir}/xinput_calibrator_get_hal_calibration.sh
|
||||
}
|
||||
10
meta-oe/recipes-graphics/xorg-app/rgb_1.0.4.bb
Normal file
10
meta-oe/recipes-graphics/xorg-app/rgb_1.0.4.bb
Normal file
@ -0,0 +1,10 @@
|
||||
require xorg-app-common.inc
|
||||
DEPENDS += " xproto util-macros"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=ef598adbe241bd0b0b9113831f6e249a"
|
||||
PE = "1"
|
||||
PR = "${INC_PR}.0"
|
||||
|
||||
SRC_URI[md5sum] = "35c6cccbf25a872bdd62bfcb1a73d951"
|
||||
SRC_URI[sha256sum] = "80887da011ad086fff88bfd16c6d9d5ac7da45ef1bc9d0c192a6f370423370f1"
|
||||
|
||||
FILES_${PN} += "${datadir}/X11"
|
||||
8
meta-oe/recipes-graphics/xorg-app/xinput_1.5.3.bb
Normal file
8
meta-oe/recipes-graphics/xorg-app/xinput_1.5.3.bb
Normal file
@ -0,0 +1,8 @@
|
||||
require xorg-app-common.inc
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=22c34ea36136407a77702a8b784f9bd0"
|
||||
DESCRIPTION = "a utility to configure and test XInput devices"
|
||||
DEPENDS += " libxi"
|
||||
PR = "${INC_PR}.0"
|
||||
|
||||
SRC_URI[md5sum] = "1e2f0ad4f3fa833b65c568907f171d28"
|
||||
SRC_URI[sha256sum] = "6aade131cecddaeefc39ddce1dd5e8473f6039c2e4efbfd9fbb5ee2a75885c76"
|
||||
15
meta-oe/recipes-graphics/xorg-app/xorg-app-common.inc
Normal file
15
meta-oe/recipes-graphics/xorg-app/xorg-app-common.inc
Normal file
@ -0,0 +1,15 @@
|
||||
DESCRIPTION = "X application"
|
||||
HOMEPAGE = "http://www.x.org/"
|
||||
SECTION = "x11/apps"
|
||||
LICENSE = "MIT-X"
|
||||
DEPENDS = "util-macros-native virtual/libx11"
|
||||
|
||||
INC_PR = "r5"
|
||||
|
||||
SRC_URI = "${XORG_MIRROR}/individual/app/${BPN}-${PV}.tar.bz2"
|
||||
|
||||
S = "${WORKDIR}/${BPN}-${PV}"
|
||||
|
||||
inherit autotools pkgconfig
|
||||
|
||||
FILES_${PN} += " /usr/lib/X11/${BPN} /usr/share/X11/app-defaults/"
|
||||
12
meta-oe/recipes-graphics/xorg-doc/xorg-doc-common.inc
Normal file
12
meta-oe/recipes-graphics/xorg-doc/xorg-doc-common.inc
Normal file
@ -0,0 +1,12 @@
|
||||
DESCRIPTION = "X documentation"
|
||||
HOMEPAGE = "http://www.x.org"
|
||||
SECTION = "x11/docs"
|
||||
LICENSE = "MIT-X"
|
||||
|
||||
SRC_URI = "${XORG_MIRROR}/individual/doc/${BPN}-${PV}.tar.bz2"
|
||||
|
||||
S = "${WORKDIR}/${BPN}-${PV}"
|
||||
|
||||
INC_PR = "r1"
|
||||
|
||||
inherit autotools pkgconfig
|
||||
@ -0,0 +1,8 @@
|
||||
require xorg-doc-common.inc
|
||||
PE = "1"
|
||||
PR = "${INC_PR}.0"
|
||||
|
||||
SRC_URI[md5sum] = "2588efb3f49f7fc6ecf41ce42e0b2e5e"
|
||||
SRC_URI[sha256sum] = "84fd94e5c50556e6f77501485f8a48724cf3c95c6d58480bc280258ba14580c8"
|
||||
|
||||
FILES_${PN} += " /usr/share/sgml/X11"
|
||||
@ -0,0 +1,17 @@
|
||||
require xorg-driver-input.inc
|
||||
|
||||
SUMMARY = "X.Org X server -- keyboard input driver"
|
||||
|
||||
DESCRIPTION = "keyboard is an Xorg input driver for keyboards. The \
|
||||
driver supports the standard OS-provided keyboard interface. The driver \
|
||||
functions as a keyboard input device, and may be used as the X server's \
|
||||
core keyboard."
|
||||
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=ea2099d24ac9e316a6d4b9f20b3d4e10"
|
||||
|
||||
DEPENDS += " kbproto"
|
||||
PE = "1"
|
||||
PR = "${INC_PR}.0"
|
||||
|
||||
SRC_URI[md5sum] = "e2abe9f13e526a73cb68a7d257546eba"
|
||||
SRC_URI[sha256sum] = "c46c790fec905d696573b7a374b10ab8b4389112a8f69993fe011006c99e858e"
|
||||
@ -0,0 +1,17 @@
|
||||
require xorg-driver-input.inc
|
||||
|
||||
SUMMARY = "X.Org X server -- mouse input driver"
|
||||
|
||||
DESCRIPTION = "mouse is an Xorg input driver for mice. The driver \
|
||||
supports most available mouse types and interfaces. The mouse driver \
|
||||
functions as a pointer input device, and may be used as the X server's \
|
||||
core pointer. Multiple mice are supported by multiple instances of this \
|
||||
driver."
|
||||
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=237eb1d1a602d29ef2af62d8fba60f19"
|
||||
|
||||
PE = "1"
|
||||
PR = "${INC_PR}.0"
|
||||
|
||||
SRC_URI[md5sum] = "7f31472689c15b6de62eff04d0fb57d7"
|
||||
SRC_URI[sha256sum] = "4e989542b5e9e0c5f9087288b18e70de1064dd27c83a4bc6dce58f3ea9d74994"
|
||||
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<deviceinfo version="0.2">
|
||||
<device>
|
||||
<match key="info.capabilities" contains="input.touchpad">
|
||||
<merge key="input.x11_driver" type="string">tslib</merge>
|
||||
</match>
|
||||
<match key="info.capabilities" contains="input.touchscreen">
|
||||
<merge key="input.x11_driver" type="string">tslib</merge>
|
||||
</match>
|
||||
</device>
|
||||
</deviceinfo>
|
||||
@ -0,0 +1,5 @@
|
||||
# create /dev/input/touchscreenX symlink, tag xf86-input-tslib as driver
|
||||
SUBSYSTEM=="input", KERNEL=="event[0-9]*", ATTRS{modalias}=="input:*-e0*,3,*a0,1,*18,*", SYMLINK+="input/touchscreen%n", ENV{x11_driver}="tslib"
|
||||
SUBSYSTEM=="input", KERNEL=="event[0-9]*", ATTRS{modalias}=="ads7846", SYMLINK+="input/touchscreen%n", ENV{x11_driver}="tslib"
|
||||
|
||||
|
||||
@ -0,0 +1,20 @@
|
||||
xorg-server-1.7.3/hw/xfree86/common/xf86Helper.c contains this code
|
||||
causing a double free crash on chvt or exit:
|
||||
|
||||
/* This should *really* be handled in drv->UnInit(dev) call instead, but
|
||||
* if the driver forgets about it make sure we free it or at least crash
|
||||
* with flying colors */
|
||||
if (pInp->private)
|
||||
xfree(pInp->private);
|
||||
Index: xf86-input-tslib-0.0.6/src/tslib.c
|
||||
===================================================================
|
||||
--- xf86-input-tslib-0.0.6.orig/src/tslib.c
|
||||
+++ xf86-input-tslib-0.0.6/src/tslib.c
|
||||
@@ -435,6 +435,7 @@ xf86TslibUninit(InputDriverPtr drv, Inpu
|
||||
xf86TslibControlProc(pInfo->dev, DEVICE_OFF);
|
||||
ts_close(priv->ts);
|
||||
xfree(pInfo->private);
|
||||
+ pInfo->private = NULL;
|
||||
xf86DeleteInput(pInfo, 0);
|
||||
}
|
||||
|
||||
@ -0,0 +1,34 @@
|
||||
From Grazvydas Ignotas
|
||||
|
||||
At least xserver 1.7.4 crashes on XGetPointerControl request because of xf86-input-tslib:
|
||||
|
||||
Program received signal SIGSEGV, Segmentation fault.
|
||||
#0 0x000355e0 in ProcGetPointerControl (client=0x4a2e58) at devices.c:2122
|
||||
#1 0x00062fa8 in Dispatch () at dispatch.c:439
|
||||
#2 0x00022444 in main (argc=4, argv=0xbeebedc4, envp=0xbeebedd8) at main.c:285
|
||||
|
||||
This happens because ptrfeed field is not set in device structure from tslib.
|
||||
To fix this, call InitPtrFeedbackClassDeviceStruct() during DEVICE_INIT to get necessary setup done (as done in other input drivers).
|
||||
|
||||
---
|
||||
diff -ur xf86-input-tslib-0.0.6/src/tslib.c xf86-input-tslib-0.0.6_/src/tslib.c
|
||||
--- xf86-input-tslib-0.0.6/src/tslib.c 2010-02-09 12:23:22.000000000 +0200
|
||||
+++ xf86-input-tslib-0.0.6_/src/tslib.c 2010-02-09 12:37:33.000000000 +0200
|
||||
@@ -103,8 +103,6 @@
|
||||
static void
|
||||
PointerControlProc(DeviceIntPtr dev, PtrCtrl * ctrl)
|
||||
{
|
||||
- ErrorF("%s\n", __FUNCTION__);
|
||||
- return;
|
||||
}
|
||||
|
||||
static Bool
|
||||
@@ -406,6 +404,8 @@
|
||||
xf86MotionHistoryAllocate(pInfo);
|
||||
#endif
|
||||
|
||||
+ if (!InitPtrFeedbackClassDeviceStruct(device, PointerControlProc))
|
||||
+ return !Success;
|
||||
break;
|
||||
|
||||
case DEVICE_ON:
|
||||
@ -0,0 +1,32 @@
|
||||
require xorg-driver-input.inc
|
||||
DESCRIPTION = "X.Org X server -- tslib input driver"
|
||||
DEPENDS += "tslib"
|
||||
RRECOMMENDS_${PN} += "tslib-calibrate"
|
||||
RSUGGESTS_${PN} += "hal"
|
||||
|
||||
# derived from xf86-input-void, that's why I kept MIT-X, but it's not clear, see COPYING
|
||||
LIC_FILES_CHKSUM = "file://src/tslib.c;endline=28;md5=bd62eaef222dcf5cd59e490a12bd795e \
|
||||
file://COPYING;md5=4641deddaa80fe7ca88e944e1fd94a94"
|
||||
|
||||
PR = "${INC_PR}.1"
|
||||
|
||||
SRC_URI = "http://www.pengutronix.de/software/xf86-input-tslib/download/xf86-input-tslib-${PV}.tar.bz2;name=archive \
|
||||
file://double-free-crash.patch \
|
||||
file://10-x11-input-tslib.fdi \
|
||||
file://xserver-174-XGetPointerControl.patch \
|
||||
file://99-xf86-input-tslib.rules \
|
||||
"
|
||||
SRC_URI[md5sum] = "b7a4d2f11637ee3fcf432e044b1d017f"
|
||||
SRC_URI[sha256sum] = "5f46fdef095a6e44a69e0f0b57c7d665224b26d990d006611236d8332e85b105"
|
||||
|
||||
do_configure_prepend() {
|
||||
rm -rf ${S}/m4/ || true
|
||||
}
|
||||
do_install_append() {
|
||||
install -d ${D}/${datadir}/hal/fdi/policy/20thirdparty
|
||||
install -m 0644 ${WORKDIR}/10-x11-input-tslib.fdi ${D}/${datadir}/hal/fdi/policy/20thirdparty
|
||||
install -d ${D}/lib/udev/rules.d
|
||||
install -m 0644 ${WORKDIR}/99-xf86-input-tslib.rules ${D}/lib/udev/rules.d/
|
||||
}
|
||||
|
||||
FILES_${PN} += "${datadir}/hal /lib/udev"
|
||||
@ -0,0 +1,9 @@
|
||||
require xorg-driver-video.inc
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=d8cbd99fff773f92e844948f74ef0df8"
|
||||
|
||||
DESCRIPTION = "X.Org X server -- fbdev display driver"
|
||||
PE = "1"
|
||||
PR = "${INC_PR}.1"
|
||||
|
||||
SRC_URI[md5sum] = "53a533d9e0c2da50962282526bace074"
|
||||
SRC_URI[sha256sum] = "93b271b4b41d7e5ca108849a583b9523e96c51813d046282285355b7001f82d5"
|
||||
@ -0,0 +1,66 @@
|
||||
From e2d0f9a3ba7f36b0b8ac8d736dd76da6e5e07f38 Mon Sep 17 00:00:00 2001
|
||||
From: Martin Jansa <Martin.Jansa@gmail.com>
|
||||
Date: Fri, 29 Oct 2010 11:19:08 +0200
|
||||
Subject: [PATCH] glamo-drm: define GLAMO_CMDQ_MAX_COUNT instead of magic constant 1024
|
||||
|
||||
* fix check for full queue, because size != count here
|
||||
* make sure we have enough space in queue for 2 resp. 4 more commands in
|
||||
GlamoDRMAddCommand resp. GlamoDRMAddCommandBO
|
||||
|
||||
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
|
||||
---
|
||||
src/glamo-drm.c | 16 +++++++++++-----
|
||||
1 files changed, 11 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/src/glamo-drm.c b/src/glamo-drm.c
|
||||
index aac93bb..01e8510 100644
|
||||
--- a/src/glamo-drm.c
|
||||
+++ b/src/glamo-drm.c
|
||||
@@ -32,6 +32,8 @@
|
||||
|
||||
#include "glamo.h"
|
||||
|
||||
+/* How many commands can be stored before forced dispatch */
|
||||
+#define GLAMO_CMDQ_MAX_COUNT 1024
|
||||
|
||||
/* Submit the prepared command sequence to the kernel */
|
||||
void GlamoDRMDispatch(GlamoPtr pGlamo)
|
||||
@@ -60,7 +62,7 @@ void GlamoDRMDispatch(GlamoPtr pGlamo)
|
||||
|
||||
void GlamoDRMAddCommand(GlamoPtr pGlamo, uint16_t reg, uint16_t val)
|
||||
{
|
||||
- if ( pGlamo->cmdq_drm_used == pGlamo->cmdq_drm_size ) {
|
||||
+ if ( pGlamo->cmdq_drm_used >= GLAMO_CMDQ_MAX_COUNT - 2 ) {
|
||||
xf86DrvMsg(pGlamo->pScreen->myNum, X_INFO,
|
||||
"Forced command cache flush.\n");
|
||||
GlamoDRMDispatch(pGlamo);
|
||||
@@ -74,7 +76,8 @@ void GlamoDRMAddCommand(GlamoPtr pGlamo, uint16_t reg, uint16_t val)
|
||||
|
||||
void GlamoDRMAddCommandBO(GlamoPtr pGlamo, uint16_t reg, struct glamo_bo *bo)
|
||||
{
|
||||
- if ( pGlamo->cmdq_drm_used == pGlamo->cmdq_drm_size ) {
|
||||
+ if ( pGlamo->cmdq_drm_used >= GLAMO_CMDQ_MAX_COUNT - 4 ||
|
||||
+ pGlamo->cmdq_obj_used >= GLAMO_CMDQ_MAX_COUNT) {
|
||||
xf86DrvMsg(pGlamo->pScreen->myNum, X_INFO,
|
||||
"Forced command cache flush.\n");
|
||||
GlamoDRMDispatch(pGlamo);
|
||||
@@ -98,10 +101,13 @@ void GlamoDRMAddCommandBO(GlamoPtr pGlamo, uint16_t reg, struct glamo_bo *bo)
|
||||
|
||||
void GlamoDRMInit(GlamoPtr pGlamo)
|
||||
{
|
||||
- pGlamo->cmdq_objs = malloc(1024);
|
||||
- pGlamo->cmdq_obj_pos = malloc(1024);
|
||||
+ pGlamo->cmdq_objs = malloc(GLAMO_CMDQ_MAX_COUNT);
|
||||
+ pGlamo->cmdq_obj_pos = malloc(GLAMO_CMDQ_MAX_COUNT);
|
||||
pGlamo->cmdq_obj_used = 0;
|
||||
pGlamo->cmdq_drm_used = 0;
|
||||
- pGlamo->cmdq_drm_size = 4 * 1024;
|
||||
+ /* we're using 2bytes per entry (uint16_t) that's why we need to allocate
|
||||
+ * GLAMO_CMDQ_MAX_COUNT * 2 bytes
|
||||
+ */
|
||||
+ pGlamo->cmdq_drm_size = 2 * GLAMO_CMDQ_MAX_COUNT;
|
||||
pGlamo->cmdq_drm = malloc(pGlamo->cmdq_drm_size);
|
||||
}
|
||||
--
|
||||
1.7.3.2
|
||||
|
||||
19
meta-oe/recipes-graphics/xorg-driver/xf86-video-glamo_git.bb
Normal file
19
meta-oe/recipes-graphics/xorg-driver/xf86-video-glamo_git.bb
Normal file
@ -0,0 +1,19 @@
|
||||
require xorg-driver-video.inc
|
||||
DESCRIPTION = "X.Org X server -- Glamo display driver with KMS support"
|
||||
DEPENDS += "libdrm"
|
||||
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=d8cbd99fff773f92e844948f74ef0df8"
|
||||
|
||||
RDEPENDS_${PN} = "xserver-xorg-extension-dri xserver-xorg-extension-dri2 xserver-xorg-extension-glx mesa-dri"
|
||||
PE = "2"
|
||||
PV = "1.0.0+gitr${SRCPV}"
|
||||
PR = "${INC_PR}.5"
|
||||
|
||||
SRC_URI = "git://git.openmoko.org/git/xf86-video-glamo.git;protocol=git;branch=master \
|
||||
file://0001-glamo-drm-define-GLAMO_CMDQ_MAX_COUNT-instead-of-mag.patch \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
SRCREV = "16af3c00195adc68cbd508e3613be4b2349260b3"
|
||||
|
||||
EXTRA_OECONF = " --enable-kms "
|
||||
40
meta-oe/recipes-graphics/xorg-driver/xorg-driver-common.inc
Normal file
40
meta-oe/recipes-graphics/xorg-driver/xorg-driver-common.inc
Normal file
@ -0,0 +1,40 @@
|
||||
DESCRIPTION = "X driver"
|
||||
HOMEPAGE = "http://www.x.org"
|
||||
SECTION = "x11/drivers"
|
||||
LICENSE = "MIT-X"
|
||||
INC_PR = "r15"
|
||||
|
||||
DEPENDS = "randrproto xorg-server xproto"
|
||||
|
||||
SRC_URI = "${XORG_MIRROR}/individual/driver/${BPN}-${PV}.tar.bz2"
|
||||
|
||||
S = "${WORKDIR}/${BPN}-${PV}"
|
||||
|
||||
FILES_${PN} += " ${libdir}/xorg/modules"
|
||||
FILES_${PN}-dbg += "${libdir}/xorg/modules/*/.debug"
|
||||
|
||||
inherit autotools pkgconfig
|
||||
|
||||
TARGET_CPPFLAGS += "-I${STAGING_DIR_HOST}/usr/include/xorg"
|
||||
|
||||
# Another sucky behavor from Xorg configure scripts.
|
||||
# They use AC_CHECK_FILE to check for DRI headers. Yuck!
|
||||
# Of course this will blow up when cross compiling.
|
||||
|
||||
do_configure_prepend() {
|
||||
incdir=${layout_includedir}/xorg
|
||||
for f in dri.h sarea.h dristruct.h exa.h damage.h xf86Module.h; do
|
||||
path="$incdir/$f"
|
||||
if [ -f "${STAGING_DIR_HOST}/$path" ]; then
|
||||
p=`echo "$path" | sed 'y%*+%pp%;s%[^_[:alnum:]]%_%g'`
|
||||
eval "export ac_cv_file_$p=yes"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
# FIXME: We don't want to include the libtool archives (*.la) from modules
|
||||
# directory, as they serve no useful purpose. Upstream should fix Makefile.am
|
||||
do_install_append() {
|
||||
find ${D}${libdir}/xorg/modules -regex ".*\.la$" | xargs rm -f --
|
||||
}
|
||||
|
||||
@ -0,0 +1,4 @@
|
||||
include xorg-driver-common.inc
|
||||
|
||||
DEPENDS = "randrproto inputproto xserver-xorg xproto"
|
||||
|
||||
@ -0,0 +1,4 @@
|
||||
include xorg-driver-common.inc
|
||||
|
||||
DEPENDS = "randrproto renderproto videoproto xextproto fontsproto xserver-xorg xproto"
|
||||
|
||||
@ -0,0 +1,55 @@
|
||||
diff -uNr liblbxutil-1.1.0.orig/configure.ac liblbxutil-1.1.0/configure.ac
|
||||
--- liblbxutil-1.1.0.orig/configure.ac 2009-12-04 23:52:04.000000000 +0100
|
||||
+++ liblbxutil-1.1.0/configure.ac 2009-12-16 10:45:00.000000000 +0100
|
||||
@@ -50,4 +50,5 @@
|
||||
|
||||
AC_OUTPUT([Makefile
|
||||
src/Makefile
|
||||
+ src/image/Makefile
|
||||
lbxutil.pc])
|
||||
diff -uNr liblbxutil-1.1.0.orig/src/image/Makefile.am liblbxutil-1.1.0/src/image/Makefile.am
|
||||
--- liblbxutil-1.1.0.orig/src/image/Makefile.am 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ liblbxutil-1.1.0/src/image/Makefile.am 2009-12-16 10:45:00.000000000 +0100
|
||||
@@ -0,0 +1,15 @@
|
||||
+# evil hack
|
||||
+CFLAGS=$(CFLAGS_FOR_BUILD)
|
||||
+CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
|
||||
+LDFLAGS=$(LDFLAGS_FOR_BUILD)
|
||||
+
|
||||
+CC=$(CC_FOR_BUILD)
|
||||
+LIBTOOL = @LIBTOOL@ --tag=CC
|
||||
+
|
||||
+noinst_PROGRAMS = mkg3states
|
||||
+
|
||||
+mkg3states_SOURCES = \
|
||||
+ mkg3states.c
|
||||
+
|
||||
+mkg3states_CFLAGS=$(CFLAGS_FOR_BUILD)
|
||||
+mkg3states_LDFLAGS=$(LDFLAGS_FOR_BUILD)
|
||||
diff -uNr liblbxutil-1.1.0.orig/src/Makefile.am liblbxutil-1.1.0/src/Makefile.am
|
||||
--- liblbxutil-1.1.0.orig/src/Makefile.am 2009-12-16 10:48:11.000000000 +0100
|
||||
+++ liblbxutil-1.1.0/src/Makefile.am 2009-12-16 10:46:47.000000000 +0100
|
||||
@@ -3,10 +3,7 @@
|
||||
AM_CFLAGS = $(CWARNFLAGS) $(LBXUTIL_CFLAGS)
|
||||
INCLUDES = -I$(top_srcdir)/include
|
||||
|
||||
-noinst_PROGRAMS = mkg3states
|
||||
-
|
||||
-mkg3states_SOURCES = \
|
||||
- $(srcdir)/image/mkg3states.c
|
||||
+SUBDIRS = image
|
||||
|
||||
liblbxutil_la_SOURCES = \
|
||||
$(srcdir)/lbx_zlib/reqstats.h \
|
||||
@@ -38,9 +35,8 @@
|
||||
|
||||
$(srcdir)/image/dfaxg42d.c: g3states.h
|
||||
|
||||
-g3states.h: mkg3states
|
||||
- -rm -f g3states.h
|
||||
- $(AM_V_GEN) ./mkg3states -c > g3states.h_ && mv g3states.h_ g3states.h
|
||||
+g3states.h: image/mkg3states
|
||||
+ $(AM_V_GEN) ./image/mkg3states -c > g3states.h_ && mv g3states.h_ g3states.h
|
||||
|
||||
liblbxutil_la_LDFLAGS = -version-number 1:0:0 -no-undefined
|
||||
|
||||
14
meta-oe/recipes-graphics/xorg-lib/liblbxutil_1.1.0.bb
Normal file
14
meta-oe/recipes-graphics/xorg-lib/liblbxutil_1.1.0.bb
Normal file
@ -0,0 +1,14 @@
|
||||
require xorg-lib-common.inc
|
||||
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=b0d5bdc98f7ebab3b6c3791d9bf40907"
|
||||
|
||||
DESCRIPTION = "XFIXES Extension"
|
||||
DEPENDS += " xextproto xproto zlib"
|
||||
PE = "1"
|
||||
PR = "${INC_PR}.0"
|
||||
|
||||
SRC_URI += "file://mkg3states-1.1.patch"
|
||||
SRC_URI[md5sum] = "273329a78c2e9ea189ac416c7fde94a1"
|
||||
SRC_URI[sha256sum] = "c6b6ff7858ec619cafa8205debca6bf78c5610a2844a782ed643c7fd017cf8ae"
|
||||
|
||||
export CC_FOR_BUILD = "gcc"
|
||||
@ -0,0 +1,19 @@
|
||||
diff -uNr libX11-1.3.6.orig//configure.ac libX11-1.3.6/configure.ac
|
||||
--- libX11-1.3.6.orig//configure.ac 2010-09-20 08:04:16.000000000 +0200
|
||||
+++ libX11-1.3.6/configure.ac 2010-09-28 16:29:26.000000000 +0200
|
||||
@@ -355,7 +355,14 @@
|
||||
# Find keysymdef.h
|
||||
#
|
||||
AC_MSG_CHECKING([keysym definitions])
|
||||
-KEYSYMDEFDIR=`$PKG_CONFIG --variable=includedir xproto`/X11
|
||||
+AC_ARG_WITH(keysymdefdir,
|
||||
+ AC_HELP_STRING([--with-keysymdefdir=DIR], [The location of keysymdef.h]),
|
||||
+ KEYSYMDEFDIR=$withval, KEYSYMDEFDIR="")
|
||||
+
|
||||
+if test x$KEYSYMDEFDIR = x; then
|
||||
+ KEYSYMDEFDIR=`$PKG_CONFIG --variable=includedir xproto`/X11
|
||||
+fi
|
||||
+
|
||||
FILES="keysymdef.h XF86keysym.h Sunkeysym.h DECkeysym.h HPkeysym.h"
|
||||
for i in $FILES; do
|
||||
if test -f "$KEYSYMDEFDIR/$i"; then
|
||||
@ -0,0 +1,29 @@
|
||||
Index: libX11-1.3.4/src/util/Makefile.am
|
||||
===================================================================
|
||||
--- libX11-1.3.4.orig/src/util/Makefile.am
|
||||
+++ libX11-1.3.4/src/util/Makefile.am
|
||||
@@ -1,24 +1 @@
|
||||
-
|
||||
-noinst_PROGRAMS=makekeys
|
||||
-
|
||||
-makekeys_CFLAGS = \
|
||||
- $(X11_CFLAGS) \
|
||||
- $(CWARNFLAGS)
|
||||
-
|
||||
-CC = @CC_FOR_BUILD@
|
||||
-CPPFLAGS = @CPPFLAGS_FOR_BUILD@
|
||||
-CFLAGS = @CFLAGS_FOR_BUILD@
|
||||
-LDFLAGS = @LDFLAGS_FOR_BUILD@
|
||||
-
|
||||
EXTRA_DIST = mkks.sh
|
||||
-
|
||||
-if LINT
|
||||
-# Check source code with tools like lint & sparse
|
||||
-
|
||||
-ALL_LINT_FLAGS=$(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
||||
- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS)
|
||||
-
|
||||
-lint:
|
||||
- $(LINT) $(ALL_LINT_FLAGS) makekeys.c
|
||||
-
|
||||
-endif LINT
|
||||
@ -0,0 +1,19 @@
|
||||
diff -uNr libX11-1.3.6.orig//configure.ac libX11-1.3.6/configure.ac
|
||||
--- libX11-1.3.6.orig//configure.ac 2010-09-20 08:04:16.000000000 +0200
|
||||
+++ libX11-1.3.6/configure.ac 2010-09-28 16:29:26.000000000 +0200
|
||||
@@ -355,7 +355,14 @@
|
||||
# Find keysymdef.h
|
||||
#
|
||||
AC_MSG_CHECKING([keysym definitions])
|
||||
-KEYSYMDEFDIR=`$PKG_CONFIG --variable=includedir xproto`/X11
|
||||
+AC_ARG_WITH(keysymdefdir,
|
||||
+ AC_HELP_STRING([--with-keysymdefdir=DIR], [The location of keysymdef.h]),
|
||||
+ KEYSYMDEFDIR=$withval, KEYSYMDEFDIR="")
|
||||
+
|
||||
+if test x$KEYSYMDEFDIR = x; then
|
||||
+ KEYSYMDEFDIR=`$PKG_CONFIG --variable=includedir xproto`/X11
|
||||
+fi
|
||||
+
|
||||
FILES="keysymdef.h XF86keysym.h Sunkeysym.h DECkeysym.h HPkeysym.h"
|
||||
for i in $FILES; do
|
||||
if test -f "$KEYSYMDEFDIR/$i"; then
|
||||
@ -0,0 +1,29 @@
|
||||
Index: libX11-1.3.4/src/util/Makefile.am
|
||||
===================================================================
|
||||
--- libX11-1.3.4.orig/src/util/Makefile.am
|
||||
+++ libX11-1.3.4/src/util/Makefile.am
|
||||
@@ -1,24 +1 @@
|
||||
-
|
||||
-noinst_PROGRAMS=makekeys
|
||||
-
|
||||
-makekeys_CFLAGS = \
|
||||
- $(X11_CFLAGS) \
|
||||
- $(CWARNFLAGS)
|
||||
-
|
||||
-CC = @CC_FOR_BUILD@
|
||||
-CPPFLAGS = @CPPFLAGS_FOR_BUILD@
|
||||
-CFLAGS = @CFLAGS_FOR_BUILD@
|
||||
-LDFLAGS = @LDFLAGS_FOR_BUILD@
|
||||
-
|
||||
EXTRA_DIST = mkks.sh
|
||||
-
|
||||
-if LINT
|
||||
-# Check source code with tools like lint & sparse
|
||||
-
|
||||
-ALL_LINT_FLAGS=$(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
||||
- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS)
|
||||
-
|
||||
-lint:
|
||||
- $(LINT) $(ALL_LINT_FLAGS) makekeys.c
|
||||
-
|
||||
-endif LINT
|
||||
52
meta-oe/recipes-graphics/xorg-lib/libx11.inc
Normal file
52
meta-oe/recipes-graphics/xorg-lib/libx11.inc
Normal file
@ -0,0 +1,52 @@
|
||||
require xorg-lib-common.inc
|
||||
|
||||
DESCRIPTION = "Base X libs."
|
||||
COMMON_DEPENDS = "util-macros xtrans libxdmcp libxau \
|
||||
bigreqsproto xproto xextproto xcmiscproto \
|
||||
xf86bigfontproto kbproto inputproto xproto-native"
|
||||
|
||||
DEPENDS = "libxcb ${COMMON_DEPENDS}"
|
||||
DEPENDS_virtclass-native = "${COMMON_DEPENDS}"
|
||||
DEPENDS_virtclass-nativesdk = "${COMMON_DEPENDS}"
|
||||
|
||||
FILESPATHPKG .= ":libx11-${PV}:libx11"
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
PROVIDES = "virtual/libx11"
|
||||
PE = "1"
|
||||
|
||||
PACKAGES =+ "${PN}-xcb"
|
||||
|
||||
FILES_${PN} += "${datadir}/X11/XKeysymDB ${datadir}/X11/XErrorDB ${libdir}/X11/Xcms.txt"
|
||||
FILES_${PN}-xcb += "${libdir}/libX11-xcb.so.*"
|
||||
FILES_${PN}-locale += "${datadir}/X11/locale ${libdir}/X11/locale"
|
||||
|
||||
XORG_PN = "libX11"
|
||||
|
||||
EXTRA_OECONF += " --with-xcb --with-keysymdefdir=${STAGING_INCDIR}/X11 --with-groff=no --with-ps2pdf=no --with-fop=no"
|
||||
EXTRA_OECONF_virtclass-native = " --without-xcb --with-groff=no --with-ps2pdf=no --with-fop=no"
|
||||
EXTRA_OECONF_virtclass-nativesdk = " --without-xcb --with-groff=no --with-ps2pdf=no --with-fop=no"
|
||||
|
||||
# Below option is added to overcome the GCC bug on ARM
|
||||
# see http://gcc.gnu.org/PR42981 for further details.
|
||||
# We could potentially take it off when its fixed in gcc 4.5
|
||||
|
||||
CFLAGS_append_arm = " -fforward-propagate "
|
||||
|
||||
SRC_URI += " file://keysymdef_include.patch \
|
||||
file://x11_disable_makekeys.patch \
|
||||
"
|
||||
|
||||
do_compile_prepend() {
|
||||
(
|
||||
unset CC LD CXX CCLD CFLAGS CPPFLAGS LDFLAGS CXXFLAGS
|
||||
cd src/util;
|
||||
mv makekeys.c.orig makekeys.c || true
|
||||
# MIN_REHASH 10 is only in 1.0.1
|
||||
sed -i -e 's:MIN_REHASH 10:MIN_REHASH 16:g' makekeys.c
|
||||
sed -i -e 's:MIN_REHASH 15:MIN_REHASH 16:g' makekeys.c
|
||||
touch makekeys-makekeys.o ; ${BUILD_CC} ${BUILD_CFLAGS} -I${STAGING_INCDIR_NATIVE} makekeys.c -o makekeys
|
||||
# mv to stop it getting rebuilt
|
||||
mv makekeys.c makekeys.c.orig
|
||||
cd ../../
|
||||
) || exit 1
|
||||
}
|
||||
12
meta-oe/recipes-graphics/xorg-lib/libx11_1.4.1.bb
Normal file
12
meta-oe/recipes-graphics/xorg-lib/libx11_1.4.1.bb
Normal file
@ -0,0 +1,12 @@
|
||||
require libx11.inc
|
||||
|
||||
LICENSE = "MIT & MIT-style & BSD"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=172255dee66bb0151435b2d5d709fcf7"
|
||||
|
||||
#--without-xcb is not an option anymore
|
||||
#http://cgit.freedesktop.org/xorg/lib/libX11/commit/?id=15e5eaf62897b3179d1fbe457cb19f886f0449f8
|
||||
DEPENDS_virtclass-native = "libxcb-native ${COMMON_DEPENDS}"
|
||||
PR = "${INC_PR}.0"
|
||||
|
||||
SRC_URI[md5sum] = "4603bdbce1bd73cbc140de402fe6ed24"
|
||||
SRC_URI[sha256sum] = "70f4e0f798645a0f269f362bfdbd4c7934dae3a2dd9ecbad28d6ede414f63ce2"
|
||||
12
meta-oe/recipes-graphics/xorg-lib/libx11_1.4.3.bb
Normal file
12
meta-oe/recipes-graphics/xorg-lib/libx11_1.4.3.bb
Normal file
@ -0,0 +1,12 @@
|
||||
require libx11.inc
|
||||
|
||||
LICENSE = "MIT & MIT-style & BSD"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=172255dee66bb0151435b2d5d709fcf7"
|
||||
|
||||
#--without-xcb is not an option anymore
|
||||
#http://cgit.freedesktop.org/xorg/lib/libX11/commit/?id=15e5eaf62897b3179d1fbe457cb19f886f0449f8
|
||||
DEPENDS_virtclass-native = "libxcb-native ${COMMON_DEPENDS}"
|
||||
PR = "${INC_PR}.0"
|
||||
|
||||
SRC_URI[md5sum] = "85e942627aaa020813e0eb8433353563"
|
||||
SRC_URI[sha256sum] = "38b5ddd93291714a46a02cb8a5dd94b995a04ed76a608551c44d1598e113635a"
|
||||
28
meta-oe/recipes-graphics/xorg-lib/libxaw_1.0.9.bb
Normal file
28
meta-oe/recipes-graphics/xorg-lib/libxaw_1.0.9.bb
Normal file
@ -0,0 +1,28 @@
|
||||
require xorg-lib-common.inc
|
||||
DESCRIPTION = "X Athena Widget Set"
|
||||
DEPENDS += "xproto virtual/libx11 libxext xextproto libxt libxmu libxpm libxp printproto libxau"
|
||||
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=f1beacbc336a5a256bb28dbfcf01c2be"
|
||||
|
||||
PE = "1"
|
||||
PR = "${INC_PR}.0"
|
||||
|
||||
SRC_URI[md5sum] = "ccc57478c41b7a75b9702241b889b1d4"
|
||||
SRC_URI[sha256sum] = "a83977546b78e24ac5dca86affc10b6404a87c16272405b05386feca1a2db037"
|
||||
|
||||
# disable docs as groff detection doesn't work on some hosts while cross compilling
|
||||
EXTRA_OECONF += " --disable-docs "
|
||||
|
||||
do_install_append () {
|
||||
ln -sf libXaw6.so.6 ${D}${libdir}/libXaw.so.6
|
||||
ln -sf libXaw7.so.7 ${D}${libdir}/libXaw.so.7
|
||||
ln -sf libXaw7.so.7 ${D}${libdir}/libXaw.so
|
||||
}
|
||||
|
||||
PACKAGES =+ "libxaw6 libxaw7 libxaw8"
|
||||
|
||||
FILES_libxaw6 = "${libdir}/libXaw*.so.6*"
|
||||
FILES_libxaw7 = "${libdir}/libXaw*.so.7*"
|
||||
FILES_libxaw8 = "${libdir}/libXaw8.so.8*"
|
||||
|
||||
XORG_PN = "libXaw"
|
||||
22
meta-oe/recipes-graphics/xorg-lib/libxfixes_5.0.bb
Normal file
22
meta-oe/recipes-graphics/xorg-lib/libxfixes_5.0.bb
Normal file
@ -0,0 +1,22 @@
|
||||
SUMMARY = "XFixes: X Fixes extension library."
|
||||
|
||||
DESCRIPTION = "X applications have often needed to work around various \
|
||||
shortcomings in the core X window system. This extension is designed to \
|
||||
provide the minimal server-side support necessary to eliminate problems \
|
||||
caused by these workarounds."
|
||||
|
||||
require xorg-lib-common.inc
|
||||
|
||||
LICENSE = "MIT-style"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=3c1ce42c334a6f5cccb0277556a053e0"
|
||||
|
||||
DEPENDS += "virtual/libx11 xproto fixesproto xextproto"
|
||||
PE = "1"
|
||||
PR = "${INC_PR}.0"
|
||||
|
||||
SRC_URI[md5sum] = "678071bd7f9f7467e2fc712d81022318"
|
||||
SRC_URI[sha256sum] = "537a2446129242737a35db40081be4bbcc126e56c03bf5f2b142b10a79cda2e3"
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
|
||||
XORG_PN = "libXfixes"
|
||||
21
meta-oe/recipes-graphics/xorg-lib/libxi_1.4.2.bb
Normal file
21
meta-oe/recipes-graphics/xorg-lib/libxi_1.4.2.bb
Normal file
@ -0,0 +1,21 @@
|
||||
require xorg-lib-common.inc
|
||||
|
||||
SUMMARY = "XI: X Input extension library"
|
||||
|
||||
DESCRIPTION = "libxi is an extension to the X11 protocol to support \
|
||||
input devices other than the core X keyboard and pointer. It allows \
|
||||
client programs to select input from these devices independently from \
|
||||
each other and independently from the core devices."
|
||||
|
||||
LICENSE = "MIT & MIT-style"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=17b064789fab936a1c58c4e13d965b0f \
|
||||
file://src/XIGetDevFocus.c;endline=23;md5=cdfb0d435a33ec57ea0d1e8e395b729f"
|
||||
|
||||
DEPENDS += "libxext inputproto"
|
||||
PE = "1"
|
||||
PR = "${INC_PR}.0"
|
||||
|
||||
SRC_URI[md5sum] = "3d14f7bfc4a4335cf0144de9b67a5444"
|
||||
SRC_URI[sha256sum] = "272b8041efc0a0203fb0ba33481ddec989539aed862181b58c8c3e410e325691"
|
||||
|
||||
XORG_PN = "libXi"
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user