From a9e5ffdac8460247d388632fff9d720cf10880ab Mon Sep 17 00:00:00 2001 From: Piotr Kubaj Date: Thu, 1 Aug 2019 19:21:09 +0000 Subject: [PATCH] audio/bsequencer-lv2: fix build with GCC architectures C++11 compiler is required: cc1plus: error: unrecognized command line option "-std=c++11" include sys/types.h is required by GCC for uint in src/BWidgets/ChoiceBox.cpp, src/BWidgets/ImageIcon.cpp and src/BWidgets/ListBox.cpp. PR: 239440 Approved by: linimon (mentor), yuri (maintainer) Differential Revision: https://reviews.freebsd.org/D21066 --- audio/bsequencer-lv2/Makefile | 2 +- .../files/patch-src_BWidgets_ChoiceBox.cpp | 10 ++++++++++ .../files/patch-src_BWidgets_ImageIcon.cpp | 10 ++++++++++ .../files/patch-src_BWidgets_ListBox.cpp | 10 ++++++++++ 4 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 audio/bsequencer-lv2/files/patch-src_BWidgets_ChoiceBox.cpp create mode 100644 audio/bsequencer-lv2/files/patch-src_BWidgets_ImageIcon.cpp create mode 100644 audio/bsequencer-lv2/files/patch-src_BWidgets_ListBox.cpp diff --git a/audio/bsequencer-lv2/Makefile b/audio/bsequencer-lv2/Makefile index d92b4b023582..a794bb57e051 100644 --- a/audio/bsequencer-lv2/Makefile +++ b/audio/bsequencer-lv2/Makefile @@ -15,7 +15,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= lv2>0:audio/lv2 -USES= gmake gnome pkgconfig +USES= compiler:c++11-lang gmake gnome pkgconfig USE_GITHUB= yes GH_ACCOUNT= sjaehn GH_PROJECT= BSEQuencer diff --git a/audio/bsequencer-lv2/files/patch-src_BWidgets_ChoiceBox.cpp b/audio/bsequencer-lv2/files/patch-src_BWidgets_ChoiceBox.cpp new file mode 100644 index 000000000000..10e722b49532 --- /dev/null +++ b/audio/bsequencer-lv2/files/patch-src_BWidgets_ChoiceBox.cpp @@ -0,0 +1,10 @@ +--- src/BWidgets/ChoiceBox.cpp.orig 2019-07-25 10:03:27 UTC ++++ src/BWidgets/ChoiceBox.cpp +@@ -16,6 +16,7 @@ + */ + + #include "ChoiceBox.hpp" ++#include + + namespace BWidgets + { diff --git a/audio/bsequencer-lv2/files/patch-src_BWidgets_ImageIcon.cpp b/audio/bsequencer-lv2/files/patch-src_BWidgets_ImageIcon.cpp new file mode 100644 index 000000000000..33ed438dc4b1 --- /dev/null +++ b/audio/bsequencer-lv2/files/patch-src_BWidgets_ImageIcon.cpp @@ -0,0 +1,10 @@ +--- src/BWidgets/ImageIcon.cpp.orig 2019-07-25 10:05:26 UTC ++++ src/BWidgets/ImageIcon.cpp +@@ -16,6 +16,7 @@ + */ + + #include "ImageIcon.hpp" ++#include + + namespace BWidgets + { diff --git a/audio/bsequencer-lv2/files/patch-src_BWidgets_ListBox.cpp b/audio/bsequencer-lv2/files/patch-src_BWidgets_ListBox.cpp new file mode 100644 index 000000000000..3013594a432e --- /dev/null +++ b/audio/bsequencer-lv2/files/patch-src_BWidgets_ListBox.cpp @@ -0,0 +1,10 @@ +--- src/BWidgets/ListBox.cpp.orig 2019-07-25 10:08:28 UTC ++++ src/BWidgets/ListBox.cpp +@@ -16,6 +16,7 @@ + */ + + #include "ListBox.hpp" ++#include + + namespace BWidgets + {