gmidimonitor: Move to meson build we just created

* Closes [1]
* Hope to find time to port it to GTK3

[1] https://github.com/schnitzeltony/meta-musicians/issues/10

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
This commit is contained in:
Andreas Müller
2020-04-09 14:01:09 +02:00
parent 5aab8a32b2
commit c23b1ea565
3 changed files with 4 additions and 69 deletions

View File

@@ -1,9 +0,0 @@
[Desktop Entry]
Name=GMidiMonitor Alsa
Comment=Shows Alsa MIDI events
Exec=gmidimonitor --alsa
Icon=gmidimonitor
Terminal=false
Type=Application
Encoding=UTF-8
Categories=Application;AudioVideo;Audio;Multimedia;

View File

@@ -1,9 +0,0 @@
[Desktop Entry]
Name=GMidiMonitor Jack
Comment=Shows Jack MIDI events
Exec=gmidimonitor --jack
Icon=gmidimonitor
Terminal=false
Type=Application
Encoding=UTF-8
Categories=Application;AudioVideo;Audio;Multimedia;

View File

@@ -1,61 +1,14 @@
SUMMARY = "GTK+ application that shows MIDI events"
LICENSE = "GPLv2"
LICENSE = "LGPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=f1e8b3e96c0abf4e3abb3b0f8e8eaf7f"
inherit waf gtk-icon-cache python3native
inherit meson gtk-icon-cache
DEPENDS += " \
gtk+ \
jack \
"
SRC_URI = " \
git://repo.or.cz/gmidimonitor.git \
http://upload.wikimedia.org/wikipedia/commons/d/d5/RB_keyboard_icon.svg;name=icon \
file://gmidimonitor-alsa.desktop \
file://gmidimonitor-jack.desktop \
"
SRCREV = "a50612655903f1a56748604a5d0d27a5044a78b3"
SRC_URI = "git://github.com/schnitzeltony/gmidimonitor.git"
SRCREV = "d09b60906b31fcb7d5cd708e2e3745f1a585d630"
S = "${WORKDIR}/git"
SRC_URI[icon.md5sum] = "e6e764ea13f2b15a297d8cd62540edf2"
SRC_URI[icon.sha256sum] = "16d3e31b4e9ef6e9c7ba3ab79876726f52da21631870cea95076a98913a0bd2c"
waf_preconfigure() {
}
do_configure_prepend() {
cd ${S}
# link python -> python3
ln -sf `which python3` ${B}/python
export PATH="${PATH}:${B}"
# dummy call -> unpacks waf
./waf configure -o ${B} --prefix=${prefix} ${EXTRA_OECONF} || true
# -> python3
2to3 -w -x import `find .waf3-* -name '*.py'`
# hmmm
sed -i 's:^.*raise StopIteration::g' `find .waf3-* -name '*.py'`
}
do_compile() {
export PATH="${PATH}:${B}"
# waf breaks but gets far enough to build what's necessary
(cd ${S} && ./waf build ${@oe.utils.parallel_make_argument(d, '-j%d', limit=64)}) || true
}
do_install() {
install -d "${D}/${datadir}/applications"
install ${WORKDIR}/gmidimonitor-alsa.desktop ${D}/${datadir}/applications/
install ${WORKDIR}/gmidimonitor-jack.desktop ${D}/${datadir}/applications/
install -d "${D}/${datadir}/pixmaps"
install ${WORKDIR}/RB_keyboard_icon.svg ${D}/${datadir}/pixmaps/${BPN}.svg
install -d "${D}/${bindir}"
install ${B}/gmidimonitor ${D}/${bindir}
}