git: 84a66afc908a - main - multimedia/libopenshot: fix build on powerpc

Piotr Kubaj pkubaj at FreeBSD.org
Sun Jul 11 22:31:35 UTC 2021


The branch main has been updated by pkubaj:

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

commit 84a66afc908a45f044ec1a877f18622e84fc4119
Author:     Piotr Kubaj <pkubaj at FreeBSD.org>
AuthorDate: 2021-07-11 22:31:19 +0000
Commit:     Piotr Kubaj <pkubaj at FreeBSD.org>
CommitDate: 2021-07-11 22:31:19 +0000

    multimedia/libopenshot: fix build on powerpc
    
    LLVM doesn't have libomp on powerpc:
    CMake Error at /usr/local/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
      Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES)
---
 multimedia/libopenshot/Makefile | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/multimedia/libopenshot/Makefile b/multimedia/libopenshot/Makefile
index f54dd0a79d4d..6d0834c9c13c 100644
--- a/multimedia/libopenshot/Makefile
+++ b/multimedia/libopenshot/Makefile
@@ -18,7 +18,7 @@ LIB_DEPENDS=	libopenshot-audio.so:audio/libopenshot-audio \
 		libavformat.so:multimedia/ffmpeg \
 		libzmq.so:net/libzmq4
 
-USES=		cmake compiler:c++11-lang pkgconfig python:3.5+ qt:5
+USES=		cmake pkgconfig python:3.5+ qt:5
 USE_LDCONFIG=	yes
 USE_GITHUB=	yes
 GH_ACCOUNT=	OpenShot
@@ -46,4 +46,12 @@ OPENCV_CMAKE_BOOL=	ENABLE_OPENCV
 OPENCV_CMAKE_BOOL_OFF=	CMAKE_DISABLE_FIND_PACKAGE_OpenCV\
 			CMAKE_DISABLE_FIND_PACKAGE_Protobuf
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc
+USES+=		compiler:gcc-c++11-lib
+.else
+USES+=		compiler:c++11-lang
+.endif
+
 .include <bsd.port.mk>


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