Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jun 2021 08:58:09 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: 07d0c5c3ce35 - main - graphics/ebsynth: fix build on powerpc
Message-ID:  <202106100858.15A8w9sR079492@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=07d0c5c3ce3553789c7852ca374481165838c4ce

commit 07d0c5c3ce3553789c7852ca374481165838c4ce
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-06-10 08:57:34 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2021-06-10 08:57:34 +0000

    graphics/ebsynth: fix build on powerpc
    
    LLVM on powerpc doesn't have libomp:
    src/ebsynth_cpu.cpp:15:12: fatal error: 'omp.h' file not found
---
 graphics/ebsynth/Makefile | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/graphics/ebsynth/Makefile b/graphics/ebsynth/Makefile
index 235246c62b51..724761c24d20 100644
--- a/graphics/ebsynth/Makefile
+++ b/graphics/ebsynth/Makefile
@@ -8,13 +8,20 @@ COMMENT=	Example-based Image Synthesis and Style Transfer
 
 LICENSE=	PD
 
-USES=		compiler:c++11-lang
 USE_GITHUB=	yes
 GH_ACCOUNT=	jamriska
 GH_TAGNAME=	2f5c97c0c21a
 
 PLIST_FILES=	bin/ebsynth
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc
+USES=		compiler:gcc-c++11-lib
+.else
+USES=		compiler:c++11-lang
+.endif
+
 do-build:
 	@(cd ${BUILD_WRKSRC} && ${CXX} src/ebsynth.cpp \
 		src/ebsynth_cpu.cpp src/ebsynth_nocuda.cpp \



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