summaryrefslogtreecommitdiff
path: root/packages/opie-reader/opie-reader_cvs.bb
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2005-08-05 08:39:17 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-08-05 08:39:17 +0000
commit4852eca44492d40f27b70bdfe97100ac5ffc1886 (patch)
treef1b7ba7656595839be4edbd384c5eeec6225a7f0 /packages/opie-reader/opie-reader_cvs.bb
parente790bee4030cd69ebd4c4aa9d33c79c89bbdceee (diff)
package opie-reader plugins seperatly. patch courtesy Patrick Ohly
Diffstat (limited to 'packages/opie-reader/opie-reader_cvs.bb')
-rw-r--r--packages/opie-reader/opie-reader_cvs.bb25
1 files changed, 24 insertions, 1 deletions
diff --git a/packages/opie-reader/opie-reader_cvs.bb b/packages/opie-reader/opie-reader_cvs.bb
index 14790ba78e..66c0bd71ac 100644
--- a/packages/opie-reader/opie-reader_cvs.bb
+++ b/packages/opie-reader/opie-reader_cvs.bb
@@ -1,7 +1,7 @@
include ${PN}.inc
PV = "1.2.0+cvs-${CVSDATE}"
-PR = "r0"
+PR = "r1"
SRC_URI = "${HANDHELDS_CVS};module=opie/noncore/apps/opie-reader \
${HANDHELDS_CVS};module=opie/pics \
@@ -10,3 +10,26 @@ SRC_URI = "${HANDHELDS_CVS};module=opie/noncore/apps/opie-reader \
DEPENDS += " flite "
EXTRA_QMAKEVARS_POST += " SUBDIRS+=FliteDyn SUBDIRS+=FliteDyn16 "
+python populate_packages_prepend () {
+ print "opie-reader:", bb.data.getVar( 'RDEPENDS_opie-reader', d )
+ plugindir = bb.data.expand('${palmtopdir}/plugins/reader', d)
+ for dir, type in [ ( 'codecs', 'codec' ), ( 'filters', 'filter' ), ( 'outcodecs', 'output' ) ]:
+ dir = plugindir + '/' + dir
+ do_split_packages(d, dir,
+ '^lib(.*)\.so$', 'opie-reader-' + type + '-%s',
+ 'Opie reader %s ' + type,
+ prepend=True)
+
+ # input codes are small and should be installed together with opie-reader,
+ # flite output pulls in libflite and thus should only be installed if
+ # really wanted by the user
+ suggests=[]
+ recommends=[]
+ for package in bb.data.getVar('PACKAGES', d).split():
+ if 'flite' in package:
+ suggests.append(package)
+ else:
+ recommends.append(package)
+ bb.data.setVar('RRECOMMENDS_opie-reader', " ".join( recommends ), d)
+ bb.data.setVar('RSUGGESTS_opie-reader', " ".join( suggests ), d)
+}