Files
Andreas Müller 2a88dfe99c polyphone: Fix build with rtmidi 4.0.0
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
2022-09-02 01:28:16 +02:00

58 lines
1.4 KiB
BlitzBasic

SUMMARY = "Soundfont editor"
HOMEPAGE = "http://polyphone-soundfonts.com/en/"
LICENSE = "GPL-3.0-only"
LIC_FILES_CHKSUM = "file://main.cpp;beginline=6;endline=18;md5=11e8b245e7c8a15dafd52bc856ef3ff1"
inherit qmake5 pkgconfig gtk-icon-cache mime mime-xdg dos2unix
DEPENDS += " \
qttools-native \
qtbase \
qtsvg \
alsa-lib \
jack \
portaudio-v19 \
rtmidi \
qcustomplot \
stk \
libvorbis \
libogg \
"
SRC_URI = " \
git://github.com/davy7125/polyphone.git;protocol=https;branch=master \
file://0001-Adjust-header-include-for-rtmidi-4.patch \
file://polyphone.desktop \
file://polyphone.mime \
"
SRCREV = "8413167d83cc911405c5f1813cd5b0ceab701827"
PV = "2.3.1"
S = "${WORKDIR}/git/sources"
do_configure:prepend() {
sed -i \
-e 's:= /usr/include:= ${STAGING_INCDIR}:g' \
${S}/polyphone.pro
}
CXXFLAGS += "-I${STAGING_INCDIR}/qcustomplot"
do_install() {
install -d ${D}${bindir}
install -m 0755 ${B}/bin/polyphone ${D}${bindir}/
install -d ${D}${datadir}/pixmaps
install -m 0644 ${S}/resources/polyphone.png ${D}${datadir}/pixmaps/
install -d ${D}${datadir}/applications
install -m 0644 ${WORKDIR}/${BPN}.desktop ${D}${datadir}/applications/
install -d ${D}${datadir}/mime/packages
install -m 0644 ${WORKDIR}/${BPN}.mime ${D}${datadir}/mime/packages/${BPN}.xml
}
FILES:${PN} += " \
${datadir}/mime \
"