git: 07d0c5c3ce35 - main - graphics/ebsynth: fix build on powerpc

Piotr Kubaj pkubaj at FreeBSD.org
Thu Jun 10 08:58:09 UTC 2021


The branch main has been updated by pkubaj:

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

commit 07d0c5c3ce3553789c7852ca374481165838c4ce
Author:     Piotr Kubaj <pkubaj at FreeBSD.org>
AuthorDate: 2021-06-10 08:57:34 +0000
Commit:     Piotr Kubaj <pkubaj at 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 \


More information about the dev-commits-ports-main mailing list