mirror of
https://github.com/schnitzeltony/meta-musicians.git
synced 2026-09-24 19:36:19 +02:00
qsampler: initial add 0.5.4
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
This commit is contained in:
@@ -0,0 +1,92 @@
|
|||||||
|
From 42fa0e7e4ce43def9c34af83bfff22950f00b711 Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
|
||||||
|
Date: Tue, 12 Mar 2019 23:03:13 +0100
|
||||||
|
Subject: [PATCH] find native qt build tools by configure options - auto
|
||||||
|
detection does not work
|
||||||
|
|
||||||
|
Upstream-Status: Inappropriate [cross specific]
|
||||||
|
|
||||||
|
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
|
||||||
|
---
|
||||||
|
configure.ac | 40 +++++++++++++++-------------------------
|
||||||
|
1 file changed, 15 insertions(+), 25 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/configure.ac b/configure.ac
|
||||||
|
index f7d88bd..b5e0b5d 100644
|
||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -176,27 +176,9 @@ done
|
||||||
|
# A common error message:
|
||||||
|
ac_errmsg="not found in current PATH. Maybe QT development environment isn't available."
|
||||||
|
|
||||||
|
-# Check for proper qmake path/version alternatives.
|
||||||
|
-AC_PATH_TOOL(ac_qmake, qmake, [no], $ac_path)
|
||||||
|
-if test "x$ac_qmake" = "xno"; then
|
||||||
|
- AC_PATH_TOOL(ac_cv_qmake, qmake-qt5, [no], $ac_path)
|
||||||
|
- ac_qmake=$ac_cv_qmake
|
||||||
|
-fi
|
||||||
|
-
|
||||||
|
-# Check for proper Qt major version.
|
||||||
|
-AC_CACHE_CHECK([for Qt major version], [ac_cv_qt_version_major], [
|
||||||
|
- ac_cv_qt_version_major=$($ac_qmake -query QT_VERSION | cut -d'.' -f1)
|
||||||
|
- ac_cv_qt_version_major=$(($ac_cv_qt_version_major + 0))
|
||||||
|
-])
|
||||||
|
-ac_qt_version_major=$ac_cv_qt_version_major
|
||||||
|
-if test $ac_qt_version_major -ne 5; then
|
||||||
|
- AC_PATH_TOOL(ac_cv_qmake, qmake-qt5, [no], $ac_path)
|
||||||
|
- ac_qmake=$ac_cv_qmake
|
||||||
|
-fi
|
||||||
|
-
|
||||||
|
-if test "x$ac_qmake" = "xno"; then
|
||||||
|
- AC_MSG_ERROR([qmake-qt5 $ac_errmsg (qt5-devel)])
|
||||||
|
-fi
|
||||||
|
+AC_ARG_WITH(qmake,
|
||||||
|
+ AC_HELP_STRING([--with-qmake=PATH], [use alternate qmake path]),
|
||||||
|
+ [ac_qmake="$withval"], [ac_qmake="no"])
|
||||||
|
|
||||||
|
# Check for proper Qt install path.
|
||||||
|
AC_CACHE_CHECK([for Qt install path], [ac_cv_qt_install_path], [
|
||||||
|
@@ -249,28 +231,36 @@ AC_CACHE_CHECK([for Qt library version >= 5.1],
|
||||||
|
])
|
||||||
|
|
||||||
|
# Check for Qt moc utility.
|
||||||
|
-AC_PATH_TOOL(ac_moc, moc, [no], $ac_path)
|
||||||
|
+AC_ARG_WITH(moc,
|
||||||
|
+ AC_HELP_STRING([--with-moc=PATH], [use alternate moc path]),
|
||||||
|
+ [ac_moc="$withval"], [ac_moc="no"])
|
||||||
|
if test "x$ac_moc" = "xno"; then
|
||||||
|
AC_MSG_ERROR([moc $ac_errmsg])
|
||||||
|
fi
|
||||||
|
AC_SUBST(ac_moc)
|
||||||
|
|
||||||
|
# Check for Qt uic utility.
|
||||||
|
-AC_PATH_TOOL(ac_uic, uic, [no], $ac_path)
|
||||||
|
+AC_ARG_WITH(uic,
|
||||||
|
+ AC_HELP_STRING([--with-uic=PATH], [use alternate uic path]),
|
||||||
|
+ [ac_uic="$withval"], [ac_uic="no"])
|
||||||
|
if test "x$ac_uic" = "xno"; then
|
||||||
|
AC_MSG_ERROR([uic $ac_errmsg])
|
||||||
|
fi
|
||||||
|
AC_SUBST(ac_uic)
|
||||||
|
|
||||||
|
# Check for Qt lupdate utility.
|
||||||
|
-AC_PATH_TOOL(ac_lupdate, lupdate, [no], $ac_path)
|
||||||
|
+AC_ARG_WITH(lupdate,
|
||||||
|
+ AC_HELP_STRING([--with-lupdate=PATH], [use alternate lupdate path]),
|
||||||
|
+ [ac_lupdate="$withval"], [ac_lupdate="no"])
|
||||||
|
if test "x$ac_lupdate" = "xno"; then
|
||||||
|
AC_MSG_ERROR([lupdate $ac_errmsg])
|
||||||
|
fi
|
||||||
|
AC_SUBST(ac_lupdate)
|
||||||
|
|
||||||
|
# Check for Qt lrelease utility.
|
||||||
|
-AC_PATH_TOOL(ac_lrelease, lrelease, [no], $ac_path)
|
||||||
|
+AC_ARG_WITH(lrelease,
|
||||||
|
+ AC_HELP_STRING([--with-lrelease=PATH], [use alternate lrelease path]),
|
||||||
|
+ [ac_lrelease="$withval"], [ac_lrelease="no"])
|
||||||
|
if test "x$ac_release" = "xno"; then
|
||||||
|
AC_MSG_ERROR([lrelease $ac_errmsg])
|
||||||
|
fi
|
||||||
|
--
|
||||||
|
2.20.1
|
||||||
|
|
||||||
37
recipes-musicians/rncbc/qsampler_0.5.4.bb
Normal file
37
recipes-musicians/rncbc/qsampler_0.5.4.bb
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
SUMMARY = "Qsampler is a LinuxSampler GUI front-end application"
|
||||||
|
HOMEPAGE = "http://qsampler.sourceforge.net"
|
||||||
|
LICENSE = "GPLv2"
|
||||||
|
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
|
||||||
|
|
||||||
|
DEPENDS += " \
|
||||||
|
qtbase-native \
|
||||||
|
qttools-native \
|
||||||
|
qtbase \
|
||||||
|
liblscp \
|
||||||
|
libgig \
|
||||||
|
"
|
||||||
|
|
||||||
|
# autotools-brokensep must be after qmake5_base!
|
||||||
|
inherit qmake5_base autotools-brokensep gtk-icon-cache qt5-translation mime
|
||||||
|
|
||||||
|
SRC_URI = " \
|
||||||
|
${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}/${PV}/${BPN}-${PV}.tar.gz \
|
||||||
|
file://0001-find-native-qt-build-tools-by-configure-options-auto.patch \
|
||||||
|
"
|
||||||
|
SRC_URI[md5sum] = "a1e50d8538e3975e2185475fc4c5c903"
|
||||||
|
SRC_URI[sha256sum] = "3e37214f0558e94714f0de67f991b0e4c474b85f5727d45a89d2b7ff879160c2"
|
||||||
|
|
||||||
|
EXTRA_OECONF = " \
|
||||||
|
--with-qmake=${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/qmake \
|
||||||
|
--with-moc=${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/moc \
|
||||||
|
--with-uic=${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/uic \
|
||||||
|
--with-lupdate=${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/lupdate \
|
||||||
|
--with-lrelease=${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/lrelease \
|
||||||
|
"
|
||||||
|
|
||||||
|
FILES_${PN} += " \
|
||||||
|
${datadir}/metainfo \
|
||||||
|
${datadir}/mime \
|
||||||
|
"
|
||||||
|
|
||||||
|
#RDEPENDS_${PN} += "jack-server"
|
||||||
Reference in New Issue
Block a user