Bug 180087 - [patch] fix multimedia/avidemux2 build with the clang compiler
Summary: [patch] fix multimedia/avidemux2 build with the clang compiler
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-multimedia (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-29 13:30 UTC by r4721@tormail.org
Modified: 2013-07-06 20:40 UTC (History)
0 users

See Also:


Attachments
file.diff (955 bytes, patch)
2013-06-29 13:30 UTC, r4721@tormail.org
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description r4721@tormail.org 2013-06-29 13:30:00 UTC
patch fixes build of multimedia/avidemux2 and multimedia/avidemux2-plugins in a world WITH_CLANG_IS_CC and WITHOUT_GCC.

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-06-29 13:30:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->freebsd-multimedia

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-07-06 20:30:24 UTC
Author: nox
Date: Sat Jul  6 19:30:04 2013
New Revision: 322409
URL: http://svnweb.freebsd.org/changeset/ports/322409

Log:
  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

Modified:
  head/multimedia/avidemux2/Makefile.common

Modified: head/multimedia/avidemux2/Makefile.common
==============================================================================
--- head/multimedia/avidemux2/Makefile.common	Sat Jul  6 19:29:38 2013	(r322408)
+++ head/multimedia/avidemux2/Makefile.common	Sat Jul  6 19:30:04 2013	(r322409)
@@ -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
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Juergen Lock freebsd_committer freebsd_triage 2013-07-06 20:32:08 UTC
State Changed
From-To: open->closed

Committed. Thanks!