merge of '49118a4c6035353c0f8cf1aa30297dd36e43241f'
[vuplus_openembedded] / packages / midpath / midpath.inc
1 # This is the include recipe for the midpath recipes for your platform.
2 #
3 # To support your particular platform, write a proper configuration, add
4 # a new recipe and decided which components it should install by modifying
5 # RDEPENDS.
6 require midpath-common.inc
7
8 RDEPENDS = "midpath-core midpath-core-bluetooth midpath-core-ogg midpath-core-mp3"
9
10 PROVIDES = "midpath"
11 RPROVIDES = "midpath"
12
13 CONFIGURATION = "${@bb.fatal('Variable CONFIGURATION is not set in your midpath.inc-based recipe.')}"
14
15 do_compile() {
16   :
17 }
18
19 do_install() {
20         # Installation of configuration.cfg:
21   # Creates a symbolic link at ${datadir}/midpath which points to ${sysconfdir}/midpath
22   install -d ${D}${datadir}/midpath/configuration/com/sun/midp/configuration
23   ln -sf ${sysconfdir}/midpath/configuration.cfg ${D}${datadir}/midpath/configuration/com/sun/midp/configuration/configuration.cfg
24
25   # Put the file itself into ${sysconfdir}/midpath
26   install -d ${D}${sysconfdir}/midpath
27   install -m 0644 ${WORKDIR}/${CONFIGURATION} ${D}${sysconfdir}/midpath/configuration.cfg
28
29   # Same procedure for MIDP2.0 required system properties
30   ln -sf ${sysconfdir}/midpath/system_properties ${D}${datadir}/midpath/configuration/com/sun/midp/configuration/system_properties
31   install -m 0644 configuration/com/sun/midp/configuration/system_properties ${D}${sysconfdir}/midpath
32
33   # Put l10n data into $datadir
34   install -d ${D}${datadir}/midpath/configuration/com/sun/midp/configuration/l10n
35   install -m 0644 configuration/com/sun/midp/configuration/l10n/en-US.xml ${D}${datadir}/midpath/configuration/com/sun/midp/configuration/l10n
36 }
37
38 PACKAGES = "${PN}"
39
40 FILES_${PN} = "\
41         ${datadir}/midpath/configuration \
42   ${sysconfdir}/midpath \
43         "
44
45 CONFFILES_${PN} = "\
46   ${sysconfdir}/midpath/system_properties \
47   ${sysconfdir}/midpath/configuration.cfg \
48   "
49