Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Jul 2021 22:31:35 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: 84a66afc908a - main - multimedia/libopenshot: fix build on powerpc
Message-ID:  <202107112231.16BMVZwv031031@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=84a66afc908a45f044ec1a877f18622e84fc4119

commit 84a66afc908a45f044ec1a877f18622e84fc4119
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-07-11 22:31:19 +0000
Commit:     Piotr Kubaj <pkubaj@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>



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