Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Mar 2023 19:04:52 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: eaac79f64c49 - main - audio/sfizz: fix build on powerpc
Message-ID:  <202303141904.32EJ4qYK021884@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=eaac79f64c491d9fd7e943148b1dff86c6dfdf30

commit eaac79f64c491d9fd7e943148b1dff86c6dfdf30
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-03-14 19:04:06 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-03-14 19:04:06 +0000

    audio/sfizz: fix build on powerpc
    
    CMake Error at /usr/local/share/cmake/Modules/FindOpenMP.cmake:261 (try_compile):
      Failed to generate test project build system.
    Call Stack (most recent call first):
      /usr/local/share/cmake/Modules/FindOpenMP.cmake:537 (_OPENMP_GET_FLAGS)
      cmake/SfizzDeps.cmake:7 (find_package)
      CMakeLists.txt:52 (include)
    
    Also disable VST on powerpc*, since it's disabled in plugins/CMakeLists.txt.
---
 audio/sfizz/Makefile | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/audio/sfizz/Makefile b/audio/sfizz/Makefile
index df77621ecca0..cfff56dc383e 100644
--- a/audio/sfizz/Makefile
+++ b/audio/sfizz/Makefile
@@ -17,7 +17,12 @@ BROKEN_i386=	fails to compile: unknown type name 'Elf64_Auxinfo', see https://gi
 LIB_DEPENDS=	libsndfile.so:audio/libsndfile
 RUN_DEPENDS=	zenity:x11/zenity
 
-USES=		cmake compiler:c++17-lang localbase:ldflags pkgconfig
+USES=		cmake localbase:ldflags pkgconfig
+.if !exists(/usr/include/omp.h)
+USES+=		compiler:gcc-c++11-lib
+.else
+USES+=		compiler:c++17-lang
+.endif
 USE_GITHUB=	yes
 GH_ACCOUNT=	sfztools
 GH_TUPLE=	\
@@ -41,6 +46,9 @@ USE_LDCONFIG=	yes
 
 OPTIONS_DEFINE=		JACK LV2 VST
 OPTIONS_DEFAULT=	JACK LV2 VST
+OPTIONS_EXCLUDE_powerpc=	VST
+OPTIONS_EXCLUDE_powerpc64=	VST
+OPTIONS_EXCLUDE_powerpc64le=	VST
 OPTIONS_SUB=		yes
 
 JACK_LIB_DEPENDS=	libjack.so:audio/jack



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303141904.32EJ4qYK021884>