aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/midpath/midpath.inc
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
committerDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
commit709c4d66e0b107ca606941b988bad717c0b45d9b (patch)
tree37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/midpath/midpath.inc
parentfa6cd5a3b993f16c27de4ff82b42684516d433ba (diff)
downloadopenembedded-709c4d66e0b107ca606941b988bad717c0b45d9b.tar.gz
rename packages/ to recipes/ per earlier agreement
See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Mike Westerhof <mwester@dls.net> Acked-by: Philip Balister <philip@balister.org> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Marcin Juszkiewicz <hrw@openembedded.org> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/midpath/midpath.inc')
-rw-r--r--recipes/midpath/midpath.inc49
1 files changed, 49 insertions, 0 deletions
diff --git a/recipes/midpath/midpath.inc b/recipes/midpath/midpath.inc
new file mode 100644
index 0000000000..19b4179536
--- /dev/null
+++ b/recipes/midpath/midpath.inc
@@ -0,0 +1,49 @@
+# This is the include recipe for the midpath recipes for your platform.
+#
+# To support your particular platform, write a proper configuration, add
+# a new recipe and decided which components it should install by modifying
+# RDEPENDS.
+require midpath-common.inc
+
+RDEPENDS = "midpath-core midpath-core-bluetooth midpath-core-ogg ${@base_conditional('ENTERPRISE_DISTRO', '1', '', 'midpath-core-mp3', d)}"
+
+PROVIDES = "midpath"
+RPROVIDES = "midpath"
+
+CONFIGURATION = "${@bb.fatal('Variable CONFIGURATION is not set in your midpath.inc-based recipe.')}"
+
+do_compile() {
+ :
+}
+
+do_install() {
+ # Installation of configuration.cfg:
+ # Creates a symbolic link at ${datadir}/midpath which points to ${sysconfdir}/midpath
+ install -d ${D}${datadir}/midpath/configuration/com/sun/midp/configuration
+ ln -sf ${sysconfdir}/midpath/configuration.cfg ${D}${datadir}/midpath/configuration/com/sun/midp/configuration/configuration.cfg
+
+ # Put the file itself into ${sysconfdir}/midpath
+ install -d ${D}${sysconfdir}/midpath
+ install -m 0644 ${WORKDIR}/${CONFIGURATION} ${D}${sysconfdir}/midpath/configuration.cfg
+
+ # Same procedure for MIDP2.0 required system properties
+ ln -sf ${sysconfdir}/midpath/system_properties ${D}${datadir}/midpath/configuration/com/sun/midp/configuration/system_properties
+ install -m 0644 configuration/com/sun/midp/configuration/system_properties ${D}${sysconfdir}/midpath
+
+ # Put l10n data into $datadir
+ install -d ${D}${datadir}/midpath/configuration/com/sun/midp/configuration/l10n
+ install -m 0644 configuration/com/sun/midp/configuration/l10n/en-US.xml ${D}${datadir}/midpath/configuration/com/sun/midp/configuration/l10n
+}
+
+PACKAGES = "${PN}"
+
+FILES_${PN} = "\
+ ${datadir}/midpath/configuration \
+ ${sysconfdir}/midpath \
+ "
+
+CONFFILES_${PN} = "\
+ ${sysconfdir}/midpath/system_properties \
+ ${sysconfdir}/midpath/configuration.cfg \
+ "
+