summaryrefslogtreecommitdiff
path: root/packages/midpath/midpath-alsa_0.1.bb
diff options
context:
space:
mode:
Diffstat (limited to 'packages/midpath/midpath-alsa_0.1.bb')
-rw-r--r--packages/midpath/midpath-alsa_0.1.bb43
1 files changed, 43 insertions, 0 deletions
diff --git a/packages/midpath/midpath-alsa_0.1.bb b/packages/midpath/midpath-alsa_0.1.bb
new file mode 100644
index 0000000000..940a1ea8a2
--- /dev/null
+++ b/packages/midpath/midpath-alsa_0.1.bb
@@ -0,0 +1,43 @@
+
+require midpath_${PV}.bb
+
+DEPENDS += "alsa-lib"
+RDEPENDS = "alsa-lib"
+
+do_configure() {
+ cd ${S}/native/alsa
+ sed -i -e "s|\-I/usr/include/classpath|\-I${STAGING_INCDIR}/classpath-minimal|" Makefile
+ cd ${S}/resources-embedded/com/sun/midp/configuration
+ sed -i -e "s|sound.backend:NULL|sound.backend:ALSA|" configuration.cfg
+}
+
+do_compile() {
+
+mkdir -p ${S}/dist
+
+# Build native code
+
+# Build the ALSA native part
+cd ${S}/native/alsa
+make || exit 1
+
+}
+
+do_install() {
+ install -d ${D}${libdir}
+ install -m 0644 ${S}/native/alsa/libmidpathalsa.so ${D}${libdir}
+ install -d ${D}${datadir}/java/resources-embedded/com/sun/midp/configuration
+ install -m 0644 resources-embedded/com/sun/midp/configuration/configuration.cfg ${D}${datadir}/java/resources-embedded/com/sun/midp/configuration/
+}
+
+do_stage() {
+ :
+}
+
+PACKAGES = "${PN}"
+
+FILES_${PN} = "${libdir}/libmidpathalsa.so \
+ ${datadir}/java/resources-embedded/com/sun/midp/configuration/configuration.cfg \
+ "
+
+CONFFILES_${PN} = "${datadir}/java/resources-embedded/com/sun/midp/configuration/configuration.cfg"