summaryrefslogtreecommitdiff
path: root/recipes/midpath/midpath.inc
diff options
context:
space:
mode:
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 \
+ "
+