Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Jun 2013 12:26:16 GMT
From:      "r4721@tormail.org" <r4721@tormail.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/180087: [patch] fix multimedia/avidemux2 build with the clang compiler
Message-ID:  <201306291226.r5TCQGfo083206@oldred.freebsd.org>
Resent-Message-ID: <201306291230.r5TCU0AD035740@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         180087
>Category:       ports
>Synopsis:       [patch] fix multimedia/avidemux2 build with the clang compiler
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 29 12:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     r4721@tormail.org
>Release:        
>Organization:
>Environment:
>Description:
patch fixes build of multimedia/avidemux2 and multimedia/avidemux2-plugins in a world WITH_CLANG_IS_CC and WITHOUT_GCC.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: multimedia/avidemux2/Makefile.common
===================================================================
--- multimedia/avidemux2/Makefile.common	(revision 321959)
+++ multimedia/avidemux2/Makefile.common	(working copy)
@@ -27,6 +24,7 @@
 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 +221,8 @@
 
 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


>Release-Note:
>Audit-Trail:
>Unformatted:



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