classes: remove classes that don't belong in oe-core

These classes are not used within oe-core and really belong in an upper
layer that makes use of them, if they are still useful:

* mozilla.bbclass
* openmoko*.bbclass
* srec.bbclass
* xfce.bbclass

(From OE-Core rev: fa8779452de5e1a8ded92bdf4a952158fda6160a)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Paul Eggleton
2011-07-15 14:03:04 +01:00
committed by Richard Purdie
parent e6cf0ba96a
commit d8a3cd5630
7 changed files with 0 additions and 165 deletions

View File

@@ -1,53 +0,0 @@
SECTION = "x11/utils"
DEPENDS += "gnu-config-native virtual/libintl xt libxi \
zip-native gtk+"
LICENSE = "MPL NPL"
SRC_URI += "file://mozconfig"
inherit gettext pkgconfig
EXTRA_OECONF = "--target=${TARGET_SYS} --host=${BUILD_SYS} \
--build=${BUILD_SYS} --prefix=${prefix}"
EXTRA_OEMAKE = "'HOST_LIBIDL_LIBS=${HOST_LIBIDL_LIBS}' \
'HOST_LIBIDL_CFLAGS=${HOST_LIBIDL_CFLAGS}'"
SELECTED_OPTIMIZATION = "-Os -fsigned-char -fno-strict-aliasing"
export CROSS_COMPILE = "1"
export MOZCONFIG = "${WORKDIR}/mozconfig"
export MOZ_OBJDIR = "${S}"
export CONFIGURE_ARGS = "${EXTRA_OECONF}"
export HOST_LIBIDL_CFLAGS = "`${HOST_LIBIDL_CONFIG} --cflags`"
export HOST_LIBIDL_LIBS = "`${HOST_LIBIDL_CONFIG} --libs`"
export HOST_LIBIDL_CONFIG = "PKG_CONFIG_SYSROOT_DIR="" PKG_CONFIG_PATH=${STAGING_LIBDIR_NATIVE}/pkgconfig pkg-config libIDL-2.0"
export HOST_CC = "${BUILD_CC}"
export HOST_CXX = "${BUILD_CXX}"
export HOST_CFLAGS = "${BUILD_CFLAGS}"
export HOST_CXXFLAGS = "${BUILD_CXXFLAGS}"
export HOST_LDFLAGS = "${BUILD_LDFLAGS}"
export HOST_RANLIB = "${BUILD_RANLIB}"
export HOST_AR = "${BUILD_AR}"
mozilla_do_configure() {
(
set -e
for cg in `find ${S} -name config.guess`; do
install -m 0755 \
${STAGING_DATADIR_NATIVE}/gnu-config/config.guess \
${STAGING_DATADIR_NATIVE}/gnu-config/config.sub \
`dirname $cg`/
done
)
oe_runmake -f client.mk ${MOZ_OBJDIR}/Makefile \
${MOZ_OBJDIR}/config.status
}
mozilla_do_compile() {
oe_runmake -f client.mk build_all
}
mozilla_do_install() {
oe_runmake DESTDIR="${D}" destdir="${D}" install
}
EXPORT_FUNCTIONS do_configure do_compile do_install

View File

@@ -1,19 +0,0 @@
HOMEPAGE = "http://www.openmoko.org"
LICENSE ?= "GPL"
OPENMOKO_RELEASE ?= "OM-2007"
OPENMOKO_MIRROR ?= "svn://svn.openmoko.org/trunk"
def openmoko_base_get_subdir(d):
openmoko, section = bb.data.getVar('SECTION', d, 1).split("/")
if section == 'base' or section == 'libs': return ""
elif section in 'apps tools pim'.split(): return "applications"
elif section == "panel-plugin": return "panel-plugins"
elif section == "inputmethods": return "inputmethods"
else: return section
SUBDIR = "${@openmoko_base_get_subdir(d)}"
SRC_URI := "${OPENMOKO_MIRROR}/src/target/${OPENMOKO_RELEASE}/${SUBDIR};module=${BPN};proto=http"
S = "${WORKDIR}/${PN}"
FILES_${PN} += "${datadir}/icons"

View File

@@ -1,6 +0,0 @@
SECTION = "openmoko/panel-plugin"
DEPENDS += "matchbox-panel-2 libmokopanelui2"
inherit openmoko2
FILES_${PN} = "${libdir}/matchbox-panel/lib*.so* ${datadir}"

View File

@@ -1,3 +0,0 @@
inherit openmoko-base autotools pkgconfig
DEPENDS_prepend = "${@["openmoko-libs ", ""][(bb.data.getVar('PN', d, 1) == 'openmoko-libs')]}"

View File

@@ -1,31 +0,0 @@
inherit autotools pkgconfig
HOMEPAGE = "http://www.openmoko.org"
OPENMOKO_RELEASE ?= "OM-2007.2"
OPENMOKO_MIRROR ?= "svn://svn.openmoko.org/trunk"
def openmoko_two_get_license(d):
openmoko, section = bb.data.getVar('SECTION', d, 1).split("/")
return "LGPL GPL".split()[section != "libs"]
def openmoko_two_get_subdir(d):
openmoko, section = bb.data.getVar('SECTION', d, 1).split("/")
if section == 'base': return ""
elif section == 'libs': return "libraries"
elif section in 'apps tools pim'.split(): return "applications"
elif section == "panel-plugin": return "panel-plugins"
elif section == "inputmethods": return "inputmethods"
elif section == "daemons": return "daemons"
elif section == "misc": return "misc"
else: return section
LICENSE = "${@openmoko_two_get_license(d)}"
SUBDIR = "${@openmoko_two_get_subdir(d)}"
SRC_URI := "${OPENMOKO_MIRROR}/src/target/${OPENMOKO_RELEASE}/${SUBDIR};module=${BPN};proto=http"
S = "${WORKDIR}/${PN}"
FILES_${PN} += "${datadir}/icons"
SVNREV = "r${SRCREV}"
#SVNREV = "${SRCDATE}"

View File

@@ -1,28 +0,0 @@
#
# Creates .srec files from images.
#
# Useful for loading with Yamon.
# Define SREC_VMAADDR in your machine.conf.
SREC_CMD = "${TARGET_PREFIX}objcopy -O srec -I binary --adjust-vma ${SREC_VMAADDR} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.${type} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.${type}.srec"
# Do not build srec files for these types of images:
SREC_SKIP = "tar"
do_srec[nostamp] = "1"
do_srec () {
if [ ${SREC_VMAADDR} = "" ] ; then
bbfatal Cannot do_srec without SREC_VMAADDR defined.
fi
for type in ${IMAGE_FSTYPES}; do
for skiptype in ${SREC_SKIP}; do
if [ $type = $skiptype ] ; then continue 2 ; fi
done
${SREC_CMD}
done
return 0
}
addtask srec after do_rootfs before do_build

View File

@@ -1,25 +0,0 @@
# xfce.oeclass
# Copyright (C) 2004, Advanced Micro Devices, Inc. All Rights Reserved
# Released under the MIT license (see packages/COPYING)
# Global class to make it easier to maintain XFCE packages
HOMEPAGE = "http://www.xfce.org"
LICENSE = "LGPLv2"
DEPENDS += "startup-notification"
XFCE_VERSION = ${PV}
SRC_URI = "http://www.us.xfce.org/archive/xfce/${XFCE_VERSION}/src/${BPN}-${PV}.tar.bz2"
inherit autotools
EXTRA_OECONF += "--with-pluginsdir=${libdir}/xfce4/panel-plugins/"
# FIXME: Put icons in their own package too?
FILES_${PN} += "${datadir}/icons/* ${datadir}/applications/* ${libdir}/xfce4/modules/*.so*"
FILES_${PN}-doc += "${datadir}/xfce4/doc"
FILES_${PN}-dev += "${libdir}/xfce4/*/*.la"
FILES_${PN}-dbg += "${libdir}/xfce4/*/.debug"