qtractor: initial add 0.8.0
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
This commit is contained in:
@@ -0,0 +1,129 @@
|
||||
From f9970bc20b4ceb864c98a3d5550c27500db60520 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
|
||||
Date: Sat, 26 Nov 2016 00:46:10 +0100
|
||||
Subject: [PATCH] find native qt build tools by configure options - auto
|
||||
detection does not work
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Upstream-Status: Inappropriate [cross specific]
|
||||
|
||||
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
|
||||
---
|
||||
configure.ac | 66 +++++++++++++++---------------------------------------------
|
||||
1 file changed, 16 insertions(+), 50 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 05c7eb3..753908c 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -258,18 +258,10 @@ done
|
||||
# A common error message:
|
||||
ac_errmsg="not found in current PATH. Maybe QT development environment isn't available."
|
||||
|
||||
-if test "x$ac_qt4" = "xyes"; then
|
||||
- AC_PATH_PROG(ac_qmake, qmake-qt4, [no], $ac_path)
|
||||
-else
|
||||
- AC_PATH_PROG(ac_qmake, qmake-qt5, [no], $ac_path)
|
||||
-fi
|
||||
-if test "x$ac_qmake" = "xno"; then
|
||||
- AC_PATH_PROG(ac_cv_qmake, qmake, [no], $ac_path)
|
||||
- ac_qmake=$ac_cv_qmake
|
||||
-fi
|
||||
-if test "x$ac_qmake" = "xno"; then
|
||||
- AC_MSG_ERROR([qmake $ac_errmsg])
|
||||
-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 major version.
|
||||
AC_CACHE_CHECK([for Qt major version], [ac_cv_qt_version_major], [
|
||||
@@ -296,13 +288,6 @@ if test -d $ac_qt_install_path; then
|
||||
ac_path="$ac_qt_install_path:$ac_path"
|
||||
fi
|
||||
|
||||
-# Check it again, now with updated PATH, just in case...
|
||||
-AC_PATH_PROG(ac_cv_qmake, qmake, [no], $ac_path)
|
||||
-ac_qmake=$ac_cv_qmake
|
||||
-if test "x$ac_qmake" = "xno"; then
|
||||
- AC_MSG_ERROR([qmake $ac_errmsg])
|
||||
-fi
|
||||
-
|
||||
AC_SUBST(ac_qmake)
|
||||
|
||||
AC_CACHE_CHECK([for Qt install headers], [ac_cv_qt_install_headers], [
|
||||
@@ -324,56 +309,37 @@ if test -d $ac_qt_install_libs; then
|
||||
ac_libs="-L$ac_qt_install_libs $ac_libs"
|
||||
fi
|
||||
|
||||
-# Finally, check for proper Qt4/5 version.
|
||||
-if test "x$ac_qt4" = "xyes"; then
|
||||
- AC_CACHE_CHECK([for Qt library version >= 4.4],
|
||||
- ac_cv_qtversion, [
|
||||
- AC_TRY_COMPILE([#include "QtCore/qglobal.h"], [
|
||||
- #if QT_VERSION < 0x040400 || QT_VERSION >= 0x050000
|
||||
- #error Qt library 4.4 or greater required.
|
||||
- #endif
|
||||
- ], ac_cv_qtversion="yes", [
|
||||
- echo "no; Qt 4.4 or greater is required"
|
||||
- exit 1
|
||||
- ])
|
||||
- ])
|
||||
-else
|
||||
- AC_CACHE_CHECK([for Qt library version >= 5.1],
|
||||
- ac_cv_qtversion, [
|
||||
- AC_TRY_COMPILE([#include "QtCore/qglobal.h"], [
|
||||
- #if QT_VERSION < 0x050100 || QT_VERSION >= 0x060000
|
||||
- #error Qt library 5.1 or greater required.
|
||||
- #endif
|
||||
- ], ac_cv_qtversion="yes", [
|
||||
- echo "no; Qt 5.1 or greater is required"
|
||||
- exit 1
|
||||
- ])
|
||||
- ])
|
||||
-fi
|
||||
-
|
||||
# Check for Qt moc utility.
|
||||
-AC_PATH_PROG(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_PROG(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_PROG(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_PROG(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.5.5
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
From 6fa680366dcfb6aa5e9121ed0759a81f9d6f6393 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
|
||||
Date: Sun, 27 Nov 2016 21:52:14 +0100
|
||||
Subject: [PATCH] do nor try run for float / sse detection
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
|
||||
---
|
||||
configure.ac | 19 +++----------------
|
||||
1 file changed, 3 insertions(+), 16 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 99b3e5a..35416ff 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -564,14 +564,7 @@ fi
|
||||
AC_SUBST(ac_lrelease)
|
||||
|
||||
|
||||
-# Check for IEEE 32bit float optimizations.
|
||||
-AC_CACHE_CHECK([for IEEE 32bit float optimizations],
|
||||
- ac_cv_float32, [
|
||||
- AC_TRY_RUN([
|
||||
- int main() { return (sizeof(float) == 4 ? 0 : 1); }
|
||||
- ], ac_cv_float32="yes", ac_cv_float32="no")
|
||||
-])
|
||||
-ac_float32=$ac_cv_float32
|
||||
+ac_float32=yes
|
||||
if test "x$ac_float32" = "xyes"; then
|
||||
AC_DEFINE(CONFIG_FLOAT32, 1, [Define if IEEE 32bit float optimizations are enabled.])
|
||||
fi
|
||||
@@ -585,19 +578,13 @@ if test "x$ac_sse" = "xyes"; then
|
||||
CPPFLAGS="$ac_sse_cflags $CPPFLAGS"
|
||||
AC_CACHE_CHECK([for SSE optimization],
|
||||
ac_cv_sse, [
|
||||
- AC_TRY_RUN([
|
||||
+ AC_TRY_COMPILE([
|
||||
#include <xmmintrin.h>
|
||||
#if !defined(__SSE__)
|
||||
#error SSE optimization disabled.
|
||||
#endif
|
||||
int main() {
|
||||
- unsigned int a, b, c, d;
|
||||
- __asm__ __volatile__ (
|
||||
- "movl %%ebx, %%esi\n\t" \
|
||||
- "cpuid\n\t" \
|
||||
- "xchgl %%ebx, %%esi" \
|
||||
- : "=a" (a), "=S" (b), "=c" (c), "=d" (d) : "0" (1));
|
||||
- return ((d & (1 << 25)) ? 0 : 1);
|
||||
+ return 0;
|
||||
}
|
||||
], ac_cv_sse="yes", ac_cv_sse="no")
|
||||
])
|
||||
--
|
||||
2.5.5
|
||||
|
||||
36
recipes-misc/recipes-multimedia/qtractor/qtractor_0.8.0.bb
Normal file
36
recipes-misc/recipes-multimedia/qtractor/qtractor_0.8.0.bb
Normal file
@@ -0,0 +1,36 @@
|
||||
SUMMARY = "An old-school polyphonic sampler"
|
||||
HOMEPAGE = "http://samplv1.sourceforge.net"
|
||||
LICENSE = "GPLv2"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
|
||||
|
||||
DEPENDS += " \
|
||||
qtbase \
|
||||
qtx11extras \
|
||||
jack \
|
||||
lv2 \
|
||||
libmad \
|
||||
rubberband \
|
||||
"
|
||||
|
||||
inherit qmake5_base autotools-brokensep pkgconfig gtk-icon-cache
|
||||
|
||||
SRC_URI = " \
|
||||
${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}/${PV}/${BPN}-${PV}.tar.gz \
|
||||
file://0001-find-native-qt-build-tools-by-configure-options-auto.patch \
|
||||
file://0002-do-nor-try-run-for-float-sse-detection.patch \
|
||||
"
|
||||
SRC_URI[md5sum] = "e637e8c1c099d23579ab4ae7367c77d7"
|
||||
SRC_URI[sha256sum] = "4710f1c9f377b0e2c678517c6c094921b504aec3c16702048d9b611fe930659f"
|
||||
|
||||
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}/mime \
|
||||
${datadir}/appdata \
|
||||
"
|
||||
Reference in New Issue
Block a user