summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/e.bbclass36
-rw-r--r--meta/classes/efl.bbclass49
-rw-r--r--meta/classes/gpe.bbclass17
-rw-r--r--meta/classes/manifest.bbclass80
-rw-r--r--meta/classes/nslu2-jffs2-image.bbclass18
-rw-r--r--meta/classes/nslu2-mirrors.bbclass4
-rw-r--r--meta/classes/nslu2-ramdisk-image.bbclass18
-rw-r--r--meta/classes/nylon-mirrors.bbclass6
-rw-r--r--meta/classes/opie.bbclass105
-rw-r--r--meta/classes/opie_i18n.bbclass163
-rw-r--r--meta/classes/palmtop.bbclass20
-rw-r--r--meta/classes/qmake-base.bbclass44
-rw-r--r--meta/classes/qmake.bbclass57
-rw-r--r--meta/classes/qpf.bbclass36
-rw-r--r--meta/classes/qt3e.bbclass11
-rw-r--r--meta/classes/qt3x11.bbclass15
-rw-r--r--meta/classes/qt4x11.bbclass17
-rw-r--r--meta/classes/wrt-image.bbclass33
18 files changed, 0 insertions, 729 deletions
diff --git a/meta/classes/e.bbclass b/meta/classes/e.bbclass
deleted file mode 100644
index 008e3f2dc1..0000000000
--- a/meta/classes/e.bbclass
+++ /dev/null
@@ -1,36 +0,0 @@
1HOMEPAGE = "http://www.enlightenment.org"
2SECTION = "e/apps"
3
4inherit autotools pkgconfig binconfig
5
6do_prepsources () {
7 make clean distclean || true
8}
9addtask prepsources after do_fetch before do_unpack
10
11def binconfig_suffix(d):
12 import bb
13 return ["","-native"][bb.data.inherits_class('native', d)]
14
15export CURL_CONFIG = "${STAGING_BINDIR}/curl-config${@binconfig_suffix(d)}"
16export EDB_CONFIG = "${STAGING_BINDIR}/edb-config${@binconfig_suffix(d)}"
17export EET_CONFIG = "${STAGING_BINDIR}/eet-config${@binconfig_suffix(d)}"
18export EVAS_CONFIG = "${STAGING_BINDIR}/evas-config${@binconfig_suffix(d)}"
19export ECORE_CONFIG = "${STAGING_BINDIR}/ecore-config${@binconfig_suffix(d)}"
20export EMBRYO_CONFIG = "${STAGING_BINDIR}/embryo-config${@binconfig_suffix(d)}"
21export ENGRAVE_CONFIG = "${STAGING_BINDIR}/engrave-config${@binconfig_suffix(d)}"
22export ENLIGHTENMENT_CONFIG = "${STAGING_BINDIR}/enlightenment-config${@binconfig_suffix(d)}"
23export EPSILON_CONFIG = "${STAGING_BINDIR}/epsilon-config${@binconfig_suffix(d)}"
24export EPEG_CONFIG = "${STAGING_BINDIR}/epeg-config${@binconfig_suffix(d)}"
25export ESMART_CONFIG = "${STAGING_BINDIR}/esmart-config${@binconfig_suffix(d)}"
26export FREETYPE_CONFIG = "${STAGING_BINDIR}/freetype-config${@binconfig_suffix(d)}"
27export IMLIB2_CONFIG = "${STAGING_BINDIR}/imlib2-config${@binconfig_suffix(d)}"
28
29do_compile_prepend() {
30 find ${S} -name Makefile | xargs sed -i 's:/usr/include:${STAGING_INCDIR}:'
31 find ${S} -name Makefile | xargs sed -i 's:/usr/X11R6/include:${STAGING_INCDIR}:'
32}
33
34PACKAGES = "${PN} ${PN}-themes"
35FILES_${PN} = "${libdir}/lib*.so*"
36FILES_${PN}-themes = "${datadir}/${PN}/themes ${datadir}/${PN}/data ${datadir}/${PN}/fonts ${datadir}/${PN}/pointers ${datadir}/${PN}/images ${datadir}/${PN}/users ${datadir}/${PN}/images ${datadir}/${PN}/styles"
diff --git a/meta/classes/efl.bbclass b/meta/classes/efl.bbclass
deleted file mode 100644
index c258758d30..0000000000
--- a/meta/classes/efl.bbclass
+++ /dev/null
@@ -1,49 +0,0 @@
1inherit e
2
3SECTION = "e/libs"
4
5SRCNAME = "${@bb.data.getVar('PN', d, 1).replace('-native', '')}"
6SRC_URI = "${E_URI}/${SRCNAME}-${PV}.tar.gz"
7S = "${WORKDIR}/${SRCNAME}-${PV}"
8
9INHIBIT_AUTO_STAGE_INCLUDES = "1"
10INHIBIT_NATIVE_STAGE_INSTALL = "1"
11
12libdirectory = "src/lib"
13libraries = "lib${SRCNAME}"
14headers = "${@bb.data.getVar('SRCNAME',d,1).capitalize()}.h"
15
16do_stage_append () {
17 for i in ${libraries}
18 do
19 oe_libinstall -C ${libdirectory} $i ${STAGING_LIBDIR}
20 done
21 for i in ${headers}
22 do
23 install -m 0644 ${libdirectory}/$i ${STAGING_INCDIR}
24 done
25
26 # Install binaries automatically for native builds
27 if [ "${@binconfig_suffix(d)}" = "-native" ]
28 then
29
30 # Most EFL binaries start with the package name
31 for i in src/bin/${SRCNAME}*
32 do
33 if [ -x $i -a -f $i ]
34 then
35
36 # Don't install anything with an extension (.so, etc)
37 if echo $i | grep -v \\.
38 then
39 ${HOST_SYS}-libtool --mode=install install -m 0755 $i ${STAGING_BINDIR}
40 fi
41 fi
42 done
43 fi
44}
45
46PACKAGES = "${PN} ${PN}-themes ${PN}-dev ${PN}-examples"
47FILES_${PN}-dev = "${bindir}/${PN}-config ${libdir}/pkgconfig ${libdir}/lib*.?a ${libdir}/lib*.a ${includedir}"
48FILES_${PN}-examples = "${bindir} ${datadir}"
49
diff --git a/meta/classes/gpe.bbclass b/meta/classes/gpe.bbclass
deleted file mode 100644
index 861ec416a0..0000000000
--- a/meta/classes/gpe.bbclass
+++ /dev/null
@@ -1,17 +0,0 @@
1DEPENDS_prepend = "coreutils-native virtual/libintl intltool-native "
2GPE_TARBALL_SUFFIX ?= "gz"
3SRC_URI = "${GPE_MIRROR}/${PN}-${PV}.tar.${GPE_TARBALL_SUFFIX}"
4FILES_${PN} += "${datadir}/gpe ${datadir}/application-registry"
5MAINTAINER ?= "GPE Team <gpe@handhelds.org>"
6
7inherit gettext
8
9gpe_do_compile() {
10 oe_runmake PREFIX=${prefix}
11}
12
13gpe_do_install() {
14 oe_runmake PREFIX=${prefix} DESTDIR=${D} install
15}
16
17EXPORT_FUNCTIONS do_compile do_install
diff --git a/meta/classes/manifest.bbclass b/meta/classes/manifest.bbclass
deleted file mode 100644
index 687f4b756e..0000000000
--- a/meta/classes/manifest.bbclass
+++ /dev/null
@@ -1,80 +0,0 @@
1
2python read_manifest () {
3 import sys, bb.manifest
4 mfn = bb.data.getVar("MANIFEST", d, 1)
5 if os.access(mfn, os.R_OK):
6 # we have a manifest, so emit do_stage and do_populate_pkgs,
7 # and stuff some additional bits of data into the metadata store
8 mfile = file(mfn, "r")
9 manifest = bb.manifest.parse(mfile, d)
10 if not manifest:
11 return
12
13 bb.data.setVar('manifest', manifest, d)
14}
15
16python parse_manifest () {
17 manifest = bb.data.getVar("manifest", d)
18 if not manifest:
19 return
20 for func in ("do_populate_staging", "do_populate_pkgs"):
21 value = bb.manifest.emit(func, manifest, d)
22 if value:
23 bb.data.setVar("manifest_" + func, value, d)
24 bb.data.delVarFlag("manifest_" + func, "python", d)
25 bb.data.delVarFlag("manifest_" + func, "fakeroot", d)
26 bb.data.setVarFlag("manifest_" + func, "func", 1, d)
27 packages = []
28 for l in manifest:
29 if "pkg" in l and l["pkg"] is not None:
30 packages.append(l["pkg"])
31 bb.data.setVar("PACKAGES", " ".join(packages), d)
32}
33
34python __anonymous () {
35 try:
36 bb.build.exec_func('read_manifest', d)
37 bb.build.exec_func('parse_manifest', d)
38 except exceptions.KeyboardInterrupt:
39 raise
40 except Exception, e:
41 bb.error("anonymous function: %s" % e)
42 pass
43}
44
45#python do_populate_staging () {
46# if not bb.data.getVar('manifest', d):
47# bb.build.exec_func('do_emit_manifest', d)
48# if bb.data.getVar('do_stage', d):
49# bb.build.exec_func('do_stage', d)
50# else:
51# bb.build.exec_func('manifest_do_populate_staging', d)
52#}
53
54#addtask populate_pkgs after do_compile
55#python do_populate_pkgs () {
56# if not bb.data.getVar('manifest', d):
57# bb.build.exec_func('do_emit_manifest', d)
58# bb.build.exec_func('manifest_do_populate_pkgs', d)
59# bb.build.exec_func('package_do_shlibs', d)
60#}
61
62addtask emit_manifest
63python do_emit_manifest () {
64# FIXME: emit a manifest here
65# 1) adjust PATH to hit the wrapper scripts
66 wrappers = bb.which(bb.data.getVar("BBPATH", d, 1), 'build/install', 0)
67 path = (bb.data.getVar('PATH', d, 1) or '').split(':')
68 path.insert(0, os.path.dirname(wrappers))
69 bb.data.setVar('PATH', ':'.join(path), d)
70# 2) exec_func("do_install", d)
71 bb.build.exec_func('do_install', d)
72# 3) read in data collected by the wrappers
73 print("Got here2 213")
74 bb.build.exec_func('read_manifest', d)
75# 4) mangle the manifest we just generated, get paths back into
76# our variable form
77# 5) write it back out
78# 6) re-parse it to ensure the generated functions are proper
79 bb.build.exec_func('parse_manifest', d)
80}
diff --git a/meta/classes/nslu2-jffs2-image.bbclass b/meta/classes/nslu2-jffs2-image.bbclass
deleted file mode 100644
index 56ad0f0659..0000000000
--- a/meta/classes/nslu2-jffs2-image.bbclass
+++ /dev/null
@@ -1,18 +0,0 @@
1NSLU2_SLUGIMAGE_ARGS ?= ""
2
3nslu2_pack_image () {
4 install -d ${DEPLOY_DIR_IMAGE}/slug
5 install -m 0644 ${STAGING_LIBDIR}/nslu2-binaries/RedBoot \
6 ${STAGING_LIBDIR}/nslu2-binaries/Trailer \
7 ${STAGING_LIBDIR}/nslu2-binaries/SysConf \
8 ${DEPLOY_DIR_IMAGE}/slug/
9 install -m 0644 ${DEPLOY_DIR_IMAGE}/zImage-${IMAGE_BASENAME} ${DEPLOY_DIR_IMAGE}/slug/vmlinuz
10 install -m 0644 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2 ${DEPLOY_DIR_IMAGE}/slug/flashdisk.jffs2
11 cd ${DEPLOY_DIR_IMAGE}/slug
12 slugimage -p -b RedBoot -s SysConf -r Ramdisk:1,Flashdisk:flashdisk.jffs2 -t Trailer \
13 -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.flashdisk.img ${NSLU2_SLUGIMAGE_ARGS}
14 rm -rf ${DEPLOY_DIR_IMAGE}/slug
15}
16
17EXTRA_IMAGEDEPENDS += 'slugimage-native nslu2-linksys-firmware'
18IMAGE_POSTPROCESS_COMMAND += "nslu2_pack_image; "
diff --git a/meta/classes/nslu2-mirrors.bbclass b/meta/classes/nslu2-mirrors.bbclass
deleted file mode 100644
index 1181edc716..0000000000
--- a/meta/classes/nslu2-mirrors.bbclass
+++ /dev/null
@@ -1,4 +0,0 @@
1MIRRORS_append () {
2ftp://.*/.*/ http://sources.nslu2-linux.org/sources/
3http://.*/.*/ http://sources.nslu2-linux.org/sources/
4}
diff --git a/meta/classes/nslu2-ramdisk-image.bbclass b/meta/classes/nslu2-ramdisk-image.bbclass
deleted file mode 100644
index 0b545854fd..0000000000
--- a/meta/classes/nslu2-ramdisk-image.bbclass
+++ /dev/null
@@ -1,18 +0,0 @@
1NSLU2_SLUGIMAGE_ARGS ?= ""
2
3nslu2_pack_image () {
4 install -d ${DEPLOY_DIR_IMAGE}/slug
5 install -m 0644 ${STAGING_LIBDIR}/nslu2-binaries/RedBoot \
6 ${STAGING_LIBDIR}/nslu2-binaries/Trailer \
7 ${STAGING_LIBDIR}/nslu2-binaries/SysConf \
8 ${DEPLOY_DIR_IMAGE}/slug/
9 install -m 0644 ${DEPLOY_DIR_IMAGE}/zImage-${IMAGE_BASENAME} ${DEPLOY_DIR_IMAGE}/slug/vmlinuz
10 install -m 0644 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext2.gz ${DEPLOY_DIR_IMAGE}/slug/ramdisk.ext2.gz
11 cd ${DEPLOY_DIR_IMAGE}/slug
12 slugimage -p -b RedBoot -s SysConf -r Ramdisk:ramdisk.ext2.gz -t Trailer \
13 -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.ramdisk.img ${NSLU2_SLUGIMAGE_ARGS}
14 rm -rf ${DEPLOY_DIR_IMAGE}/slug
15}
16
17EXTRA_IMAGEDEPENDS += 'slugimage-native nslu2-linksys-firmware'
18IMAGE_POSTPROCESS_COMMAND += "nslu2_pack_image; "
diff --git a/meta/classes/nylon-mirrors.bbclass b/meta/classes/nylon-mirrors.bbclass
deleted file mode 100644
index 2986bd8f80..0000000000
--- a/meta/classes/nylon-mirrors.bbclass
+++ /dev/null
@@ -1,6 +0,0 @@
1MIRRORS_append () {
2ftp://.*/.*/ http://meshcube.org/nylon/stable/sources/
3http://.*/.*/ http://meshcube.org/nylon/stable/sources/
4ftp://.*/.*/ http://meshcube.org/nylon/unstable/sources/
5http://.*/.*/ http://meshcube.org/nylon/unstable/sources/
6} \ No newline at end of file
diff --git a/meta/classes/opie.bbclass b/meta/classes/opie.bbclass
deleted file mode 100644
index 6430d46d6a..0000000000
--- a/meta/classes/opie.bbclass
+++ /dev/null
@@ -1,105 +0,0 @@
1#
2# This oeclass takes care about some of the itchy details of installing parts
3# of Opie applications. Depending on quicklaunch or not, plugin or not, the
4# TARGET is either a shared object, a shared object with a link to quicklauncher,
5# or a usual binary.
6#
7# You have to provide two things: 1.) A proper SECTION field, and 2.) a proper APPNAME
8# Then opie.oeclass will:
9# * create the directory for the binary and install the binary file(s)
10# * for applications: create the directory for the .desktop and install the .desktop file
11# * for quicklauncher applications: create the startup symlink to the quicklauncher
12# You can override the automatic detection of APPTYPE, valid values are 'quicklaunch', 'binary', 'plugin'
13# You can override the default location of APPDESKTOP (<workdir>/apps/<section>/)
14#
15
16inherit palmtop
17
18# Note that when CVS changes to 1.2.2, the dash
19# should be removed from OPIE_CVS_PV to convert
20# to the standardised version format
21OPIE_CVS_PV = "1.2.2+cvs-${SRCDATE}"
22
23DEPENDS_prepend = "${@["libopie2 ", ""][(bb.data.getVar('PN', d, 1) == 'libopie2')]}"
24
25# to be consistent, put all targets into workdir
26# NOTE: leave one space at the end, other files are expecting that
27EXTRA_QMAKEVARS_POST += "DESTDIR=${S} "
28
29# Opie standard TAG value
30TAG = "${@'v' + bb.data.getVar('PV',d,1).replace('.', '_')}"
31
32# plan for later:
33# add common scopes for opie applications, see qmake-native/common.pro
34# qmake should care about all the details then. qmake can do that, i know it :)
35#
36
37python opie_do_opie_install() {
38 import os, shutil
39 section = bb.data.getVar( "SECTION", d ).split( '/' )[1] or "Applications"
40 section = section.title()
41 if section in ( "Base", "Libs" ):
42 bb.note( "Section = Base or Libs. Target won't be installed automatically." )
43 return
44
45 # SECTION : BINDIR DESKTOPDIR
46 dirmap = { "Applets" : ( "/plugins/applets", None ),
47 "Applications" : ( "<BINDIR>", "/apps/Applications" ),
48 "Multimedia" : ( "<BINDIR>", "/apps/Applications" ),
49 "Games" : ( "<BINDIR>", "/apps/Games" ),
50 "Settings" : ( "<BINDIR>", "/apps/Settings" ),
51 "Pim" : ( "<BINDIR>", "/apps/1Pim" ),
52 "Examples" : ( "<BINDIR>", "/apps/Examples" ),
53 "Shell" : ( "/bin", "/apps/Opie-SH" ),
54 "Codecs" : ( "/plugins/codecs", None ),
55 "Decorations" : ( "/plugins/decorations", None ),
56 "Inputmethods" : ( "/plugins/inputmethods", None ),
57 "Fontfactories" : ( "/plugins/fontfactories", None ),
58 "Security" : ( "/plugins/security", None ),
59 "Styles" : ( "/plugins/styles", None ),
60 "Today" : ( "/plugins/today", None ),
61 "Datebook" : ( "/plugins/holidays", None ),
62 "Networksettings" : ( "/plugins/networksettings", None ) }
63
64 if section not in dirmap:
65 raise ValueError, "Unknown section '%s'. Valid sections are: %s" % ( section, dirmap.keys() )
66
67 bindir, desktopdir = dirmap[section]
68 APPNAME = bb.data.getVar( "APPNAME", d, True ) or bb.data.getVar( "PN", d, True )
69 APPTYPE = bb.data.getVar( "APPTYPE", d, True )
70 if not APPTYPE:
71 if bindir == "<BINDIR>":
72 APPTYPE = "quicklaunch"
73 else:
74 APPTYPE = "plugin"
75
76 appmap = { "binary":"/bin", "quicklaunch":"/plugins/application" }
77 if bindir == "<BINDIR>": bindir = appmap[APPTYPE]
78
79 bb.note( "Section='%s', bindir='%s', desktopdir='%s', name='%s', type='%s'" %
80 ( section, bindir, desktopdir, APPNAME, APPTYPE ) )
81
82 S = bb.data.getVar( "S", d, 1 )
83 D = "%s/image" % bb.data.getVar( "WORKDIR", d, True )
84 WORKDIR = bb.data.getVar( "WORKDIR", d, True )
85 palmtopdir = bb.data.getVar( "palmtopdir", d )
86 APPDESKTOP = bb.data.getVar( "APPDESKTOP", d, True ) or "%s/%s" % ( WORKDIR, desktopdir )
87
88 if desktopdir is not None:
89 os.system( "install -d %s%s%s/" % ( D, palmtopdir, desktopdir ) )
90 os.system( "install -m 0644 %s/%s.desktop %s%s%s/" % ( APPDESKTOP, APPNAME, D, palmtopdir, desktopdir ) )
91
92 os.system( "install -d %s%s%s/" % ( D, palmtopdir, bindir ) )
93
94 if APPTYPE == "binary":
95 os.system( "install -m 0755 %s/%s %s%s%s/" % ( S, APPNAME, D, palmtopdir, bindir ) )
96 elif APPTYPE == "quicklaunch":
97 os.system( "install -m 0755 %s/lib%s.so %s%s%s/" % ( S, APPNAME, D, palmtopdir, bindir ) )
98 os.system( "install -d %s%s/bin/" % ( D, palmtopdir ) )
99 os.system( "ln -sf %s/bin/quicklauncher %s%s/bin/%s" % ( palmtopdir, D, palmtopdir, APPNAME ) )
100 elif APPTYPE == "plugin":
101 os.system( "install -m 0755 %s/lib%s.so %s%s%s/" % ( S, APPNAME, D, palmtopdir, bindir ) )
102}
103
104EXPORT_FUNCTIONS do_opie_install
105addtask opie_install after do_compile before do_populate_staging
diff --git a/meta/classes/opie_i18n.bbclass b/meta/classes/opie_i18n.bbclass
deleted file mode 100644
index cb3d07de75..0000000000
--- a/meta/classes/opie_i18n.bbclass
+++ /dev/null
@@ -1,163 +0,0 @@
1# classes/opie_i18n.oeclass Matthias 'CoreDump' Hentges 16-10-2004
2#
3# Automatically builds i18n ipks for opie packages. It downloads opie-i18n from opie CVS
4# and tries to guess the name of the .ts file based on the package name:
5# ${PN}.ts, lib${PN}.ts and opie-${PN}.ts are all valid. The .ts "guessing" can be
6# disabled by setting I18N_FILES in the .oe file.
7#
8# Todo:
9#
10
11I18N_STATS = "1"
12SRC_URI += "${HANDHELDS_CVS};module=opie/i18n"
13DEPENDS += "opie-i18n"
14
15die () {
16 echo -e "opie_18n: ERROR: $1"
17 exit 1
18}
19
20python do_build_opie_i18n_data() {
21
22 import os, bb, re
23 workdir = bb.data.getVar("WORKDIR", d, 1)
24 packages = bb.data.getVar("PACKAGES", d, 1)
25 files = bb.data.getVar("FILES", d, 1)
26 section = bb.data.getVar("SECTION", d, 1)
27 pn = bb.data.getVar("PN", d, 1)
28 rdepends = bb.data.getVar("RDEPENDS", d, 1)
29
30 if os.path.exists(workdir + "/PACKAGES.tmp"):
31 fd = open(workdir + "/PACKAGES.tmp", 'r')
32 lines = fd.readlines()
33 fd.close()
34
35 bb.data.setVar('PACKAGES', " ".join(lines).lower() + " " + packages, d)
36
37 fd = open(workdir + "/FILES.tmp", 'r')
38 lines = fd.readlines()
39 fd.close()
40
41 for l in lines:
42 x = re.split("\#", l)
43 bb.data.setVar('FILES_%s' % x[0].lower(), " " + x[1].strip('\n'), d)
44 bb.data.setVar('SECTION_%s' % x[0].lower(), "opie/translations", d)
45 bb.data.setVar('RDEPENDS_%s' % x[0].lower(), pn, d)
46
47 bb.data.setVar('SECTION_%s' % pn, section, d)
48 bb.data.setVar('RDEPENDS', rdepends, d)
49 else:
50 bb.note("No translations found for package " + pn)
51}
52
53do_build_opie_i18n () {
54
55 cd "${WORKDIR}/i18n" || die "ERROR:\nCouldn't find Opies i18n sources in ${PN}/i18n\nMake sure that <inherit opie_i18n> or <inherit opie> is *below* <SRC_URIS =>!"
56
57 if test -z "${I18N_FILES}"
58 then
59 package_name="`echo "${PN}"| sed "s/^opie\-//"`"
60 package_name2="`echo "${PN}"| sed "s/^opie\-//;s/\-//"`"
61 test "$package_name" != "$package_name2" && I18N_FILES="${package_name}.ts lib${package_name}.ts opie-${package_name}.ts ${package_name2}.ts lib${package_name2}.ts opie-${package_name2}.ts"
62 test "$package_name" = "$package_name2" && I18N_FILES="${package_name}.ts lib${package_name}.ts opie-${package_name}.ts"
63 echo -e "I18N Datafiles: ${I18N_FILES} (auto-detected)\nYou can overide the auto-detection by setting I18N_FILES in your .oe file"
64 else
65 echo "I18N Datafiles: ${I18N_FILES} (provided by .bb)"
66 fi
67
68 rm -f "${WORKDIR}/FILES.tmp" "${WORKDIR}/PACKAGES.tmp"
69
70 echo -e "\nFILES is set to [${FILES}]\n"
71
72 for file in ${I18N_FILES}
73 do
74 echo "Working on [$file]"
75 for ts_file in `ls -1 */*.ts | egrep "/$file"`
76 do
77 echo -e "\tCompiling [$ts_file]"
78 cd "${WORKDIR}/i18n/`dirname $ts_file`" || die "[${WORKDIR}/i18n/`dirname $ts_file`] not found"
79 opie-lrelease "`basename $ts_file`" || die "lrelease failed! Make sure that <inherit opie_i18n> or <inherit opie> is *below* <DEPENDS =>!"
80
81 # $lang is the language as in de_DE, $lang_sane replaces "_" with "-"
82 # to allow packaging as "_" is not allowed in a package name
83 lang="`echo "$ts_file" | sed -n "s#\(.*\)/\(.*\)#\1#p"`"
84 lang_sane="`echo "$ts_file" | sed -n "s#\(.*\)/\(.*\)#\1#p"|sed s/\_/\-/`"
85 echo -e "\tPackaging [`basename $ts_file`] for language [$lang]"
86
87 install -d ${D}${palmtopdir}/i18n/$lang
88 install -m 0644 ${WORKDIR}/i18n/$lang/.directory ${D}${palmtopdir}/i18n/$lang/
89 install -m 0644 ${WORKDIR}/i18n/$lang/*.qm "${D}${palmtopdir}/i18n/$lang/"
90
91 # As it is not possible to modify OE vars from within a _shell_ function,
92 # some major hacking was needed. These two files will be read by the python
93 # function do_build_opie_i18n_data() which sets the variables FILES_* and
94 # PACKAGES as needed.
95 echo -n "${PN}-${lang_sane} " >> "${WORKDIR}/PACKAGES.tmp"
96 echo -e "${PN}-${lang_sane}#${palmtopdir}/i18n/$lang" >> "${WORKDIR}/FILES.tmp"
97
98 ts_found_something=1
99 done
100
101 if test "$ts_found_something" != 1
102 then
103 echo -e "\tNo translations found"
104 else
105 ts_found_something=""
106 ts_found="$ts_found $file"
107 fi
108
109 # Only used for debugging purposes
110 test "${I18N_STATS}" = 1 && cd "${WORKDIR}/i18n"
111
112 echo -e "Completed [$file]\n\n"
113 done
114
115 qt_dirs="apps bin etc lib pics plugins share sounds"
116
117 for dir in $qt_dirs
118 do
119 dir_="$dir_ ${palmtopdir}/$dir "
120 done
121
122
123 # If we don't adjust FILES to exclude the i18n directory, we will end up with
124 # _lots_ of empty i18n/$lang directories in the original .ipk.
125 if (echo "${FILES}" | egrep "${palmtopdir}/? |${palmtopdir}/?$") &>/dev/null
126 then
127 echo "NOTE: FILES was set to ${palmtopdir} which would include the i18n directory"
128 echo -e "\n\nI'll remove ${palmtopdir} from FILES and replace it with all directories"
129 echo "below QtPalmtop, except i18n ($qt_dirs). See classes/opie_i18n.oeclass for details"
130
131 # Removes /opt/QtPalmtop from FILES but keeps /opt/QtPalmtop/$some_dir
132 FILES="`echo "$FILES"| sed "s#${palmtopdir}[/]\?\$\|${palmtopdir}[/]\? ##"`"
133
134 echo "${PN}#$FILES $dir_" >> "${WORKDIR}/FILES.tmp"
135 fi
136
137 # This is the common case for OPIE apps which are installed by opie.oeclass magic
138 if test -z "${FILES}"
139 then
140 echo "NOTE:"
141 echo -e "Since FILES is empty, i'll add all directories below ${palmtopdir} to it,\nexcluding i18n: ( $qt_dirs )"
142 echo "${PN}#$FILES $dir_" >> "${WORKDIR}/FILES.tmp"
143 fi
144
145 if ! test -e "${WORKDIR}/PACKAGES.tmp" -a "${I18N_STATS}" = 1
146 then
147 echo "No translations for package [${PN}]" >> /tmp/oe-i18n-missing.log
148 else
149 echo "Using [$ts_found ] for package [${PN}]" >> /tmp/oe-i18n.log
150 fi
151
152 # While this might not be very elegant, it safes a _ton_ of space (~30Mb) for
153 # each opie package.
154 for file in $(ls */*.ts | egrep -v "`echo "$ts_found"| sed "s/^\ //;s/\ /\|/"`")
155 do
156 rm "$file"
157 done
158
159 return 0
160}
161
162addtask build_opie_i18n before do_compile
163addtask build_opie_i18n_data after do_build_opie_i18n before do_compile
diff --git a/meta/classes/palmtop.bbclass b/meta/classes/palmtop.bbclass
deleted file mode 100644
index 9d54de8748..0000000000
--- a/meta/classes/palmtop.bbclass
+++ /dev/null
@@ -1,20 +0,0 @@
1# this build class sets up qmake variables to
2# * build using the Qt Windowing System (QWS)
3# * use qt
4# * link against supc++ instead of stdc++
5# * use threads, if requested via PALMTOP_USE_MULTITHREADED_QT = "yes"
6# inherit this class to build programs against libqpe
7# inherit opie if you want to build programs against libopie2
8# don't override EXTRA_QMAKEVARS_POST, if you use inherit this class
9
10inherit qmake
11
12# special case for DISTRO = sharprom
13CPP_SUPPORT_LIB = "LIBS-=-lstdc++ LIBS+=-lsupc++"
14CPP_SUPPORT_LIB_sharprom = "LIBS-=-lstdc++"
15EXTRA_QMAKEVARS_POST += "DEFINES+=QWS CONFIG+=qt ${CPP_SUPPORT_LIB}"
16EXTRA_QMAKEVARS_POST += '${@base_conditional("PALMTOP_USE_MULTITHREADED_QT", "yes", "CONFIG+=thread", "CONFIG-=thread",d)}'
17EXTRA_QMAKEVARS_POST += "${@["LIBS+=-lqpe ", ""][(bb.data.getVar('PN', d, 1) == 'libqpe-opie')]}"
18DEPENDS_prepend = "${@["virtual/libqpe1 uicmoc-native ", ""][(bb.data.getVar('PN', d, 1) == 'libqpe-opie')]}"
19
20FILES_${PN} = "${palmtopdir}"
diff --git a/meta/classes/qmake-base.bbclass b/meta/classes/qmake-base.bbclass
deleted file mode 100644
index 36ecfb622f..0000000000
--- a/meta/classes/qmake-base.bbclass
+++ /dev/null
@@ -1,44 +0,0 @@
1DEPENDS_prepend = "qmake-native "
2
3OE_QMAKE_PLATFORM = "${TARGET_OS}-oe-g++"
4QMAKESPEC := "${QMAKE_MKSPEC_PATH}/${OE_QMAKE_PLATFORM}"
5
6# We override this completely to eliminate the -e normally passed in
7EXTRA_OEMAKE = ' MAKEFLAGS= '
8
9export OE_QMAKE_CC="${CC}"
10export OE_QMAKE_CFLAGS="${CFLAGS}"
11export OE_QMAKE_CXX="${CXX}"
12export OE_QMAKE_CXXFLAGS="-fno-exceptions -fno-rtti ${CXXFLAGS}"
13export OE_QMAKE_LDFLAGS="${LDFLAGS}"
14export OE_QMAKE_LINK="${CCLD}"
15export OE_QMAKE_AR="${AR}"
16export OE_QMAKE_STRIP="${STRIP}"
17export OE_QMAKE_UIC="${STAGING_BINDIR}/uic"
18export OE_QMAKE_MOC="${STAGING_BINDIR}/moc"
19export OE_QMAKE_RCC="non-existant"
20export OE_QMAKE_QMAKE="${STAGING_BINDIR}/qmake"
21export OE_QMAKE_RPATH="-Wl,-rpath-link,"
22
23# default to qte2 via bb.conf, inherit qt3x11 to configure for qt3x11
24export OE_QMAKE_INCDIR_QT="${QTDIR}/include"
25export OE_QMAKE_LIBDIR_QT="${QTDIR}/lib"
26export OE_QMAKE_LIBS_QT="qte"
27export OE_QMAKE_LIBS_X11=""
28
29oe_qmake_mkspecs () {
30 mkdir -p mkspecs/${OE_QMAKE_PLATFORM}
31 for f in ${QMAKE_MKSPEC_PATH}/${OE_QMAKE_PLATFORM}/*; do
32 if [ -L $f ]; then
33 lnk=`readlink $f`
34 if [ -f mkspecs/${OE_QMAKE_PLATFORM}/$lnk ]; then
35 ln -s $lnk mkspecs/${OE_QMAKE_PLATFORM}/`basename $f`
36 else
37 cp $f mkspecs/${OE_QMAKE_PLATFORM}/
38 fi
39 else
40 cp $f mkspecs/${OE_QMAKE_PLATFORM}/
41 fi
42 done
43}
44
diff --git a/meta/classes/qmake.bbclass b/meta/classes/qmake.bbclass
deleted file mode 100644
index 4f2fceff35..0000000000
--- a/meta/classes/qmake.bbclass
+++ /dev/null
@@ -1,57 +0,0 @@
1inherit qmake-base
2
3qmake_do_configure() {
4 case ${QMAKESPEC} in
5 *linux-oe-g++|*linux-uclibc-oe-g++|*linux-gnueabi-oe-g++)
6 ;;
7 *-oe-g++)
8 die Unsupported target ${TARGET_OS} for oe-g++ qmake spec
9 ;;
10 *)
11 oenote Searching for qmake spec file
12 paths="${QMAKE_MKSPEC_PATH}/qws/${TARGET_OS}-${TARGET_ARCH}-g++"
13 paths="${QMAKE_MKSPEC_PATH}/${TARGET_OS}-g++ $paths"
14
15 if (echo "${TARGET_ARCH}"|grep -q 'i.86'); then
16 paths="${QMAKE_MKSPEC_PATH}/qws/${TARGET_OS}-x86-g++ $paths"
17 fi
18 for i in $paths; do
19 if test -e $i; then
20 export QMAKESPEC=$i
21 break
22 fi
23 done
24 ;;
25 esac
26
27 oenote "using qmake spec in ${QMAKESPEC}, using profiles '${QMAKE_PROFILES}'"
28
29 if [ -z "${QMAKE_PROFILES}" ]; then
30 PROFILES="`ls *.pro`"
31 else
32 PROFILES="${QMAKE_PROFILES}"
33 fi
34
35 if [ -z "$PROFILES" ]; then
36 die "QMAKE_PROFILES not set and no profiles found in $PWD"
37 fi
38
39 if [ ! -z "${EXTRA_QMAKEVARS_POST}" ]; then
40 AFTER="-after"
41 QMAKE_VARSUBST_POST="${EXTRA_QMAKEVARS_POST}"
42 oenote "qmake postvar substitution: ${EXTRA_QMAKEVARS_POST}"
43 fi
44
45 if [ ! -z "${EXTRA_QMAKEVARS_PRE}" ]; then
46 QMAKE_VARSUBST_PRE="${EXTRA_QMAKEVARS_PRE}"
47 oenote "qmake prevar substitution: ${EXTRA_QMAKEVARS_PRE}"
48 fi
49
50#oenote "Calling '${OE_QMAKE_QMAKE} -makefile -spec ${QMAKESPEC} -o Makefile $QMAKE_VARSUBST_PRE $AFTER $PROFILES $QMAKE_VARSUBST_POST'"
51 unset QMAKESPEC || true
52 ${OE_QMAKE_QMAKE} -makefile -spec ${QMAKESPEC} -o Makefile $QMAKE_VARSUBST_PRE $AFTER $PROFILES $QMAKE_VARSUBST_POST || die "Error calling ${OE_QMAKE_QMAKE} on $PROFILES"
53}
54
55EXPORT_FUNCTIONS do_configure
56
57addtask configure after do_unpack do_patch before do_compile
diff --git a/meta/classes/qpf.bbclass b/meta/classes/qpf.bbclass
deleted file mode 100644
index d6e58871d5..0000000000
--- a/meta/classes/qpf.bbclass
+++ /dev/null
@@ -1,36 +0,0 @@
1PACKAGE_ARCH = "all"
2
3do_configure() {
4 :
5}
6
7do_compile() {
8 :
9}
10
11pkg_postinst_fonts() {
12#!/bin/sh
13set -e
14. /etc/profile
15${sbindir}/update-qtfontdir
16}
17
18pkg_postrm_fonts() {
19#!/bin/sh
20set -e
21. /etc/profile
22${sbindir}/update-qtfontdir -f
23}
24
25python populate_packages_prepend() {
26 postinst = bb.data.getVar('pkg_postinst_fonts', d, 1)
27 postrm = bb.data.getVar('pkg_postrm_fonts', d, 1)
28 fontdir = bb.data.getVar('palmtopdir', d, 1) + '/lib/fonts'
29 pkgregex = "^([a-z-]*_[0-9]*).*.qpf$"
30 pkgpattern = bb.data.getVar('QPF_PKGPATTERN', d, 1) or 'qpf-%s'
31 pkgdescription = bb.data.getVar('QPF_DESCRIPTION', d, 1) or 'QPF font %s'
32
33 do_split_packages(d, root=fontdir, file_regex=pkgregex, output_pattern=pkgpattern,
34 description=pkgdescription, postinst=postinst, postrm=postrm, recursive=True, hook=None,
35 extra_depends='qpf-font-common')
36}
diff --git a/meta/classes/qt3e.bbclass b/meta/classes/qt3e.bbclass
deleted file mode 100644
index c34d7c04f5..0000000000
--- a/meta/classes/qt3e.bbclass
+++ /dev/null
@@ -1,11 +0,0 @@
1#
2# override variables set by qmake-base to compile Qt/X11 apps
3#
4export QTDIR="${STAGING_DIR}/${HOST_SYS}/qte3"
5export QTEDIR="${STAGING_DIR}/${HOST_SYS}/qte3"
6export OE_QMAKE_UIC="${STAGING_BINDIR}/uic3"
7export OE_QMAKE_MOC="${STAGING_BINDIR}/moc3"
8export OE_QMAKE_CXXFLAGS="${CXXFLAGS} "
9export OE_QMAKE_INCDIR_QT="${QTEDIR}/include"
10export OE_QMAKE_LIBDIR_QT="${QTEDIR}/lib"
11export OE_QMAKE_LIBS_QT="qte"
diff --git a/meta/classes/qt3x11.bbclass b/meta/classes/qt3x11.bbclass
deleted file mode 100644
index 6e3d5f8ba2..0000000000
--- a/meta/classes/qt3x11.bbclass
+++ /dev/null
@@ -1,15 +0,0 @@
1DEPENDS_prepend = "${@["qt3x11 ", ""][(bb.data.getVar('PN', d, 1) == 'qt-x11-free')]}"
2EXTRA_QMAKEVARS_POST += "CONFIG+=thread"
3#
4# override variables set by qmake-base to compile Qt/X11 apps
5#
6export QTDIR = "${STAGING_DIR}/${HOST_SYS}/qt3"
7export OE_QMAKE_UIC = "${STAGING_BINDIR}/uic3"
8export OE_QMAKE_MOC = "${STAGING_BINDIR}/moc3"
9export OE_QMAKE_CXXFLAGS = "${CXXFLAGS} -DQT_NO_XIM"
10export OE_QMAKE_INCDIR_QT = "${QTDIR}/include"
11export OE_QMAKE_LIBDIR_QT = "${QTDIR}/lib"
12export OE_QMAKE_LIBS_QT = "qt"
13export OE_QMAKE_LIBS_X11 = "-lXext -lX11 -lm"
14
15
diff --git a/meta/classes/qt4x11.bbclass b/meta/classes/qt4x11.bbclass
deleted file mode 100644
index 635fc67694..0000000000
--- a/meta/classes/qt4x11.bbclass
+++ /dev/null
@@ -1,17 +0,0 @@
1DEPENDS_prepend = "qmake2-native "
2DEPENDS_prepend = "${@["qt4x11 ", ""][(bb.data.getVar('PN', d, 1) == 'qt4-x11-free')]}"
3#
4# override variables set by qmake-base to compile Qt4/X11 apps
5#
6export QTDIR = "${STAGING_DIR}/${HOST_SYS}/qt4"
7export QMAKESPEC = "${QTDIR}/mkspecs/${TARGET_OS}-oe-g++"
8export OE_QMAKE_UIC = "${STAGING_BINDIR}/uic4"
9export OE_QMAKE_MOC = "${STAGING_BINDIR}/moc4"
10export OE_QMAKE_RCC = "${STAGING_BINDIR}/rcc4"
11export OE_QMAKE_QMAKE = "${STAGING_BINDIR}/qmake2"
12export OE_QMAKE_LINK = "${CXX}"
13export OE_QMAKE_CXXFLAGS = "${CXXFLAGS}"
14export OE_QMAKE_INCDIR_QT = "${QTDIR}/include"
15export OE_QMAKE_LIBDIR_QT = "${QTDIR}/lib"
16export OE_QMAKE_LIBS_QT = "qt"
17export OE_QMAKE_LIBS_X11 = "-lXext -lX11 -lm"
diff --git a/meta/classes/wrt-image.bbclass b/meta/classes/wrt-image.bbclass
deleted file mode 100644
index ba1163a719..0000000000
--- a/meta/classes/wrt-image.bbclass
+++ /dev/null
@@ -1,33 +0,0 @@
1# we dont need the kernel in the image
2ROOTFS_POSTPROCESS_COMMAND += "rm -f ${IMAGE_ROOTFS}/boot/zImage*"
3
4def wrt_get_kernel_version(d):
5 import bb
6 if bb.data.inherits_class('image_ipk', d):
7 skd = bb.data.getVar('STAGING_KERNEL_DIR', d, 1)
8 return base_read_file(skd+'/kernel-abiversion')
9 return "-no kernel version for available-"
10
11wrt_create_images() {
12 I=${DEPLOY_DIR}/images
13 KERNEL_VERSION="${@wrt_get_kernel_version(d)}"
14
15 for type in ${IMAGE_FSTYPES}; do
16 # generic
17 trx -o ${I}/wrt-generic-${type}.trx ${I}/loader.gz \
18 ${I}/wrt-kernel-${KERNEL_VERSION}.lzma -a 0x10000 ${I}/${IMAGE_NAME}.rootfs.${type}
19
20 # WRT54GS
21 addpattern -2 -i ${I}/wrt-generic-${type}.trx -o ${I}/wrt54gs-${type}.trx -g
22
23 # WRT54G
24 sed "1s,^W54S,W54G," ${I}/wrt54gs-${type}.trx > ${I}/wrt54g-${type}.trx
25
26 # motorola
27 motorola-bin ${I}/wrt-generic-${type}.trx ${I}/motorola-${type}.bin
28 done;
29}
30
31IMAGE_POSTPROCESS_COMMAND += "wrt_create_images;"
32
33DEPENDS_prepend = "${@["wrt-imagetools-native ", ""][(bb.data.getVar('PACKAGES', d, 1) == '')]}" \ No newline at end of file