From b8c7830009e12f56283c017c0b21d9b07076386c Mon Sep 17 00:00:00 2001 From: Matthias von Faber Date: Wed, 17 Jun 2020 22:11:17 +0200 Subject: [PATCH] New package: qmidiarp-0.6.5 --- .../patches/add-missing-includes.patch | 21 +++++++++++++++++++ srcpkgs/qmidiarp/patches/cross.patch | 15 +++++++++++++ srcpkgs/qmidiarp/template | 18 ++++++++++++++++ 3 files changed, 54 insertions(+) create mode 100644 srcpkgs/qmidiarp/patches/add-missing-includes.patch create mode 100644 srcpkgs/qmidiarp/patches/cross.patch create mode 100644 srcpkgs/qmidiarp/template diff --git a/srcpkgs/qmidiarp/patches/add-missing-includes.patch b/srcpkgs/qmidiarp/patches/add-missing-includes.patch new file mode 100644 index 00000000000..13cb6658aed --- /dev/null +++ b/srcpkgs/qmidiarp/patches/add-missing-includes.patch @@ -0,0 +1,21 @@ +--- a/src/main.cpp ++++ b/src/main.cpp +@@ -69,6 +69,8 @@ + #include "mainwindow.h" + #include "main.h" + ++#include ++#include + + static struct option options[] = { + {"version", 0, 0, 'v'}, +--- a/src/midiworker.h ++++ b/src/midiworker.h +@@ -28,6 +28,7 @@ + #include "main.h" + #include + #include ++#include + + + /*! @brief MIDI worker base class for QMidiArp modules. diff --git a/srcpkgs/qmidiarp/patches/cross.patch b/srcpkgs/qmidiarp/patches/cross.patch new file mode 100644 index 00000000000..0b7c7dae06e --- /dev/null +++ b/srcpkgs/qmidiarp/patches/cross.patch @@ -0,0 +1,15 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -127,12 +127,6 @@ if test "x$ac_buildapp" = "xyes" -o ["x$ac_lv2pluginuis" = "xyes" -a "x$ac_lv2w + QT_INCLUDE_DIR=`$PKG_CONFIG --variable=includedir Qt5Gui` + QT_CXXFLAGS=`$PKG_CONFIG --cflags Qt5Core Qt5Gui Qt5Widgets` + QT_CXXFLAGS="$QT_CXXFLAGS -fPIC" +- EXTRA_QT_INCLUDE_DIR="$QT_INCLUDE_DIR/Qt" +- AC_CHECK_FILE([$QT_INCLUDE_DIR/QtWidgets/QWidget], +- AC_MSG_NOTICE([No extra QT_INCLUDE_DIR needed]), +- AC_CHECK_FILE([$EXTRA_QT_INCLUDE_DIR/QtWidgets/QWidget], +- QT_CPPFLAGS="$QT_CPPFLAGS -I$EXTRA_QT_INCLUDE_DIR", +- AC_MSG_WARN([QWidget not found]))) + + AC_SUBST(QT_CXXFLAGS) + AC_SUBST(Qt5_LIBS) diff --git a/srcpkgs/qmidiarp/template b/srcpkgs/qmidiarp/template new file mode 100644 index 00000000000..04ada9038b0 --- /dev/null +++ b/srcpkgs/qmidiarp/template @@ -0,0 +1,18 @@ +# Template file for 'qmidiarp' +pkgname=qmidiarp +version=0.6.5 +revision=1 +build_style=gnu-configure +hostmakedepends="automake libtool pkg-config qt5-host-tools" +makedepends="alsa-lib-devel jack-devel lv2 qt5-devel" +short_desc="MIDI arpeggiator and LFO" +maintainer="Matthias von Faber " +license="GPL-2.0-or-later" +homepage="http://qmidiarp.sourceforge.net" +distfiles="${SOURCEFORGE_SITE}/project/${pkgname}/${pkgname}/${version}/${pkgname}-${version}.tar.bz2" +checksum=22a3a26d3dbe4bf215aa33c0fd4a79c088549328477840d00e72e50c6e807e10 +CXXFLAGS="-D_GNU_SOURCE" + +pre_configure() { + autoreconf -if +}