blob: 50fd8ef0957625f42da66d35f9d3213185bdae77 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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_${PN} = "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 \
"
|