From c196665d2c98f1b791943c360f11d96775f5dd2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Tue, 6 Feb 2018 00:51:28 +0100 Subject: [PATCH] hydrogen: initial add 0.9.7+ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Müller --- .../0001-Fix-man-installation-path.patch | 31 +++++++++++ ....conf-do-not-show-developer-warnings.patch | 31 +++++++++++ .../hydrogen/hydrogen_git.bb | 52 +++++++++++++++++++ 3 files changed, 114 insertions(+) create mode 100644 recipes-misc/recipes-multimedia/hydrogen/files/0001-Fix-man-installation-path.patch create mode 100644 recipes-misc/recipes-multimedia/hydrogen/files/0002-hydrogen.default.conf-do-not-show-developer-warnings.patch create mode 100644 recipes-misc/recipes-multimedia/hydrogen/hydrogen_git.bb diff --git a/recipes-misc/recipes-multimedia/hydrogen/files/0001-Fix-man-installation-path.patch b/recipes-misc/recipes-multimedia/hydrogen/files/0001-Fix-man-installation-path.patch new file mode 100644 index 00000000..03e68638 --- /dev/null +++ b/recipes-misc/recipes-multimedia/hydrogen/files/0001-Fix-man-installation-path.patch @@ -0,0 +1,31 @@ +From ab93d721ca7ae5d628cd3d8fd2d7f90a19cd6954 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20M=C3=BCller?= +Date: Mon, 5 Feb 2018 23:52:46 +0100 +Subject: [PATCH] Fix man installation path +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Upstream-Status: Pending + +Signed-off-by: Andreas Müller +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 96dbf47a..5149e78f 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -361,7 +361,7 @@ IF(NOT MINGW AND NOT APPLE) + INSTALL(FILES ${CMAKE_SOURCE_DIR}/linux/hydrogen.appdata.xml DESTINATION "${CMAKE_INSTALL_PREFIX}/share/appdata") + INSTALL(FILES ${CMAKE_SOURCE_DIR}/linux/hydrogen.desktop DESTINATION "${CMAKE_INSTALL_PREFIX}/share/applications") + INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/img/gray/h2-icon.svg DESTINATION "/usr/share/pixmaps") +- INSTALL(FILES ${CMAKE_SOURCE_DIR}/linux/hydrogen.1 DESTINATION "${CMAKE_INSTALL_PREFIX}/man/man1") ++ INSTALL(FILES ${CMAKE_SOURCE_DIR}/linux/hydrogen.1 DESTINATION "${CMAKE_INSTALL_PREFIX}/share/man/man1") + ENDIF() + + # +-- +2.14.3 + diff --git a/recipes-misc/recipes-multimedia/hydrogen/files/0002-hydrogen.default.conf-do-not-show-developer-warnings.patch b/recipes-misc/recipes-multimedia/hydrogen/files/0002-hydrogen.default.conf-do-not-show-developer-warnings.patch new file mode 100644 index 00000000..2020661b --- /dev/null +++ b/recipes-misc/recipes-multimedia/hydrogen/files/0002-hydrogen.default.conf-do-not-show-developer-warnings.patch @@ -0,0 +1,31 @@ +From ad239818271230d7cae0b602ac2165db1b178445 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20M=C3=BCller?= +Date: Mon, 5 Feb 2018 23:59:05 +0100 +Subject: [PATCH] hydrogen.default.conf: do not show developer warnings +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Upstream-Status: Inappropriate [configuration] + +Signed-off-by: Andreas Müller +--- + data/hydrogen.default.conf | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/data/hydrogen.default.conf b/data/hydrogen.default.conf +index a5c201ef..d6d2b6c3 100644 +--- a/data/hydrogen.default.conf ++++ b/data/hydrogen.default.conf +@@ -15,7 +15,7 @@ + false + 400 + false +- true ++ false + true + false + true +-- +2.14.3 + diff --git a/recipes-misc/recipes-multimedia/hydrogen/hydrogen_git.bb b/recipes-misc/recipes-multimedia/hydrogen/hydrogen_git.bb new file mode 100644 index 00000000..7e8d1c16 --- /dev/null +++ b/recipes-misc/recipes-multimedia/hydrogen/hydrogen_git.bb @@ -0,0 +1,52 @@ +SUMMARY = "Hydrogen is an advanced drum machine for GNU/Linux" +HOMEPAGE = "http://www.hydrogen-music.org" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" + +# Note for LADSPA: If I read cmakeFindLadspa.cmake correctly, LASPA plugins +# available are searched during build process. Since I have no idea which +# plugins are useful for hydrogen (maybe caps??) and all those have to go to +# RDEPEND LASPA support is skipped - althogh mentioned as 'desired' in config +# log. If it turns out that LADSPA is required, we need ladspa-sdk-native for +# 'listplugins' tool. + +DEPENDS += " \ + qtbase \ + qtxmlpatterns \ + libtar \ + libarchive \ + libsndfile1 \ + alsa-lib \ + liblo \ + jack \ + portaudio-v19 \ + portmidi \ + lrdf \ + pulseaudio \ + rubberband \ + cppunit \ +" + +SRC_URI = " \ + git://github.com/hydrogen-music/hydrogen.git \ + file://0001-Fix-man-installation-path.patch \ + file://0002-hydrogen.default.conf-do-not-show-developer-warnings.patch \ +" +SRCREV = "f0d0e8cf2498ae94dd78842078c70c11787f3c08" +PV ="0.9.7+git${SRCPV}" + +S = "${WORKDIR}/git" + +inherit cmake_qt5 manpages + +CMAKE_FLAGS = " \ + -DWANT_DEBUG=OFF \ +" + +# do not move so-libs to -dev package +FILES_SOLIBSDEV = "" + +FILES_${PN} += " \ + ${datadir}/appdata \ + ${libdir}/libhydrogen-core* \ +"