git: 834b9cb4da3b - main - graphics/photoflare: fix build on powerpc
Piotr Kubaj
pkubaj at FreeBSD.org
Thu Jul 15 10:37:36 UTC 2021
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=834b9cb4da3b5f38f4e619912679c88f278211ec
commit 834b9cb4da3b5f38f4e619912679c88f278211ec
Author: Piotr Kubaj <pkubaj at FreeBSD.org>
AuthorDate: 2021-07-15 10:37:29 +0000
Commit: Piotr Kubaj <pkubaj at FreeBSD.org>
CommitDate: 2021-07-15 10:37:29 +0000
graphics/photoflare: fix build on powerpc
src/workers/filterworkermp.cpp:23:10: fatal error: 'omp.h' file not found
---
graphics/photoflare/Makefile | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/graphics/photoflare/Makefile b/graphics/photoflare/Makefile
index faec11b36c16..22fc1f4164e2 100644
--- a/graphics/photoflare/Makefile
+++ b/graphics/photoflare/Makefile
@@ -12,7 +12,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE.md
LIB_DEPENDS= libGraphicsMagick++.so:graphics/GraphicsMagick
-USES= compiler:c++17-lang desktop-file-utils gl qmake qt:5 localbase pkgconfig
+USES= desktop-file-utils gl qmake qt:5 localbase pkgconfig
USE_GITHUB= yes
USE_QT= core gui network printsupport widgets buildtools_build linguisttools_build
USE_GL= gl
@@ -22,4 +22,12 @@ LDFLAGS+= `pkg-config --libs GraphicsMagick++` ${LDFLAGS_${CHOSEN_COMPILER_TYPE}
LDFLAGS_clang= -lomp
LDFLAGS_gcc= -fopenmp
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc
+USES+= compiler:gcc-c++11-lib
+.else
+USES+= compiler:c++17-lang
+.endif
+
.include <bsd.port.mk>
More information about the dev-commits-ports-all
mailing list