From fb19de0c5a43569d6952d1bc8e31fd64e71abd60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Sun, 10 Sep 2017 23:38:33 +0200 Subject: [PATCH] arty-fx: initial add 1.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Müller --- ...-build-flags-it-causes-trouble-for-m.patch | 32 ++++++++++++++++++ ...flags-they-work-on-intel-hardware-on.patch | 33 +++++++++++++++++++ .../recipes-multimedia/openav/arty-fx_1.3.bb | 31 +++++++++++++++++ 3 files changed, 96 insertions(+) create mode 100644 recipes-misc/recipes-multimedia/openav/arty-fx/0001-Do-not-overwrite-build-flags-it-causes-trouble-for-m.patch create mode 100644 recipes-misc/recipes-multimedia/openav/arty-fx/0002-avtk-remove-sse-flags-they-work-on-intel-hardware-on.patch create mode 100644 recipes-misc/recipes-multimedia/openav/arty-fx_1.3.bb diff --git a/recipes-misc/recipes-multimedia/openav/arty-fx/0001-Do-not-overwrite-build-flags-it-causes-trouble-for-m.patch b/recipes-misc/recipes-multimedia/openav/arty-fx/0001-Do-not-overwrite-build-flags-it-causes-trouble-for-m.patch new file mode 100644 index 00000000..6a1c6f55 --- /dev/null +++ b/recipes-misc/recipes-multimedia/openav/arty-fx/0001-Do-not-overwrite-build-flags-it-causes-trouble-for-m.patch @@ -0,0 +1,32 @@ +From d614f7dbd575f13cdc512580ea9a9ad904b69752 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20M=C3=BCller?= +Date: Sun, 10 Sep 2017 22:11:32 +0200 +Subject: [PATCH] Do not overwrite build flags - it causes trouble for many + buld systems +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Andreas Müller +--- + CMakeLists.txt | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index a1fa4d5..6d7808f 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -24,9 +24,7 @@ pkg_check_modules(SND sndfile REQUIRED) + include_directories( ${SND_INCLUDE_DIRS} ) + #target_link_libraries( avtkDemo ${CAIRO_LIBRARIES} ) + +-SET(CMAKE_SHARED_LINKER_FLAGS "-fPIC -shared -L./src/avtk -Wl,--no-undefined") +-SET(CMAKE_C_FLAGS "-g -Wall -O1 -Wno-unused-variable") +-SET(CMAKE_CXX_FLAGS "-g -Wall -O1 -Wno-unused-variable -ftree-vectorize") ++SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -fPIC -L./src/avtk") + + + # DSP sources +-- +2.9.5 + diff --git a/recipes-misc/recipes-multimedia/openav/arty-fx/0002-avtk-remove-sse-flags-they-work-on-intel-hardware-on.patch b/recipes-misc/recipes-multimedia/openav/arty-fx/0002-avtk-remove-sse-flags-they-work-on-intel-hardware-on.patch new file mode 100644 index 00000000..e842d7ce --- /dev/null +++ b/recipes-misc/recipes-multimedia/openav/arty-fx/0002-avtk-remove-sse-flags-they-work-on-intel-hardware-on.patch @@ -0,0 +1,33 @@ +From 4d284e26112bacfdcffbf06c4e509b42af2450f2 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20M=C3=BCller?= +Date: Sun, 10 Sep 2017 21:59:45 +0200 +Subject: [PATCH] avtk remove sse flags - they work on intel hardware only +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Andreas Müller +--- + src/avtk/CMakeLists.txt | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/avtk/CMakeLists.txt b/src/avtk/CMakeLists.txt +index 710533d..5c17071 100644 +--- a/src/avtk/CMakeLists.txt ++++ b/src/avtk/CMakeLists.txt +@@ -55,8 +55,8 @@ include_directories( ${X11_INCLUDE_DIRS} ) + link_directories ( ${X11_LIBRARY_DIRS} ) + + +-SET(CMAKE_C_FLAGS "-fPIC -msse -msse2 -mfpmath=sse -g") # -fsanitize=address +-SET(CMAKE_CXX_FLAGS "-fPIC -msse -msse2 -mfpmath=sse -g") # -fsanitize=address ++SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC") # -fsanitize=address ++SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC") # -fsanitize=address + + FILE(GLOB src libs/pffft.cxx avtk/*.cxx ) + +-- +2.9.5 + diff --git a/recipes-misc/recipes-multimedia/openav/arty-fx_1.3.bb b/recipes-misc/recipes-multimedia/openav/arty-fx_1.3.bb new file mode 100644 index 00000000..807974c5 --- /dev/null +++ b/recipes-misc/recipes-multimedia/openav/arty-fx_1.3.bb @@ -0,0 +1,31 @@ +SUMMARY = "ArtyFX is a plugin bundle of artistic real-time audio effects" +HOMEPAGE = "http://openavproductions.com/artyfx/" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://LICENSE;md5=4cc91856b08b094b4f406a29dc61db21" + +inherit cmake pkgconfig + +DEPENDS = " \ + virtual/libx11 \ + cairo \ + lv2 \ + libsndfile1 \ +" + +SRC_URI = " \ + https://github.com/openAVproductions/openAV-ArtyFX/archive/release-${PV}.zip \ + file://0001-Do-not-overwrite-build-flags-it-causes-trouble-for-m.patch \ + file://0002-avtk-remove-sse-flags-they-work-on-intel-hardware-on.patch \ +" +SRC_URI[md5sum] = "b96dca48391188442609867f60edb702" +SRC_URI[sha256sum] = "5010cb190f5d507fd384325ee1f7f83b8441429e3b7f19b5287f1b6ea6b8f82c" + +S = "${WORKDIR}/openAV-ArtyFX-release-${PV}" + +EXTRA_OECMAKE += " \ + -DBUILD_SSE=OFF \ +" + +FILES_${PN} += " \ + ${libdir}/lv2 \ +"