Fix build of multimedia/avidemux2 and multimedia/avidemux2-plugins
in a world WITH_CLANG_IS_CC and WITHOUT_GCC. PR: ports/180087 Submitted by: r4721@tormail.org
This commit is contained in:
parent
7ff95df359
commit
c46d078c24
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=322409
1 changed files with 3 additions and 0 deletions
|
@ -27,6 +27,7 @@ WANT_SDL= yes
|
|||
USES= cmake:outsource pkgconfig iconv
|
||||
CMAKE_USE_PTHREAD=yes
|
||||
CMAKE_ARGS+= -DTHREADS_HAVE_PTHREAD_ARG:STRING="${PTHREAD_LIBS}"
|
||||
CFLAGS+= -Wno-return-type
|
||||
MAKE_JOBS_UNSAFE= yes
|
||||
|
||||
BUILD_DEPENDS+= ${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils
|
||||
|
@ -223,6 +224,8 @@ post-extract:
|
|||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/*/*/Makefile
|
||||
@${REINPLACE_CMD} '/--enable-shared/s,,& --cc=${CC},' ${WRKSRC}/cmake/admFFmpegBuild.cmake
|
||||
@${REINPLACE_CMD} '/sub $$1/s,sub,subl,' ${WRKSRC}/plugins/ADM_videoFilters/FluxSmooth/ADM_vidFlux.cpp
|
||||
@${CP} ${FILESDIR}/execinfo.cpp ${WRKSRC}/cmake_compile_check/
|
||||
@${CP} ${FILESDIR}/*.patch ${WRKSRC}/cmake/patches/
|
||||
@${MKDIR} ${CONFIGURE_WRKSRC}/config
|
||||
|
|
Loading…
Reference in a new issue