From owner-svn-ports-head@FreeBSD.ORG Thu Feb 27 20:03:51 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B6D3983F; Thu, 27 Feb 2014 20:03:51 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8956D101F; Thu, 27 Feb 2014 20:03:51 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s1RK3pQS045891; Thu, 27 Feb 2014 20:03:51 GMT (envelope-from nox@svn.freebsd.org) Received: (from nox@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s1RK3pZ6045890; Thu, 27 Feb 2014 20:03:51 GMT (envelope-from nox@svn.freebsd.org) Message-Id: <201402272003.s1RK3pZ6045890@svn.freebsd.org> From: Juergen Lock Date: Thu, 27 Feb 2014 20:03:51 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r346386 - head/multimedia/libxine X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Feb 2014 20:03:51 -0000 Author: nox Date: Thu Feb 27 20:03:51 2014 New Revision: 346386 URL: http://svnweb.freebsd.org/changeset/ports/346386 QAT: https://qat.redports.org/buildarchive/r346386/ Log: Fix build with clang 3.4 . PR: ports/187017 Submitted by: truckman Modified: head/multimedia/libxine/Makefile Modified: head/multimedia/libxine/Makefile ============================================================================== --- head/multimedia/libxine/Makefile Thu Feb 27 20:02:12 2014 (r346385) +++ head/multimedia/libxine/Makefile Thu Feb 27 20:03:51 2014 (r346386) @@ -37,7 +37,7 @@ BUILD_DEPENDS+= v4l_compat>=1.0.20100321 LIB_DEPENDS+= libdvdcss.so.${DVDCSS_LIBVERSION}:${PORTSDIR}/multimedia/libdvdcss .endif -USES= gmake iconv pathfix perl5 pkgconfig +USES= gmake iconv pathfix perl5 pkgconfig compiler:features USE_XZ= yes GNU_CONFIGURE= yes WANT_GNOME= yes @@ -51,7 +51,7 @@ CONFIGURE_ENV= THREAD_CFLAGS="${PTHREAD_ EXTRA_X_LIBS="-lGL -lGLU -lXext -lX11 -lm" CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/ffmpeg LDFLAGS+= -L${LOCALBASE}/lib -CFLAGS+= -fno-force-addr -I${LOCALBASE}/include -I${LOCALBASE}/include/dvdread -I${LOCALBASE}/include/ffmeg +CFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/dvdread -I${LOCALBASE}/include/ffmeg CONFIGURE_ARGS= --with-w32-path=${LOCALBASE}/lib/win32 \ --enable-ipv6 \ --with-external-libmad \ @@ -79,7 +79,11 @@ DVDCSS_LIBVERSION= 3 PATCH_DIST_ARGS= -d ${WRKSRC} -p1 --forward --quiet -.include +.include + +.if ${COMPILER_TYPE} != "clang" +CFLAGS+= -fno-force-addr +.endif .if ${ARCH} == "i386" CFLAGS+= -fomit-frame-pointer @@ -222,6 +226,10 @@ CONFIGURE_ARGS+= --disable-vidix .endif post-patch: +.if ${COMPILER_TYPE} == "clang" + @${REINPLACE_CMD} -e 's|-fno-rename-registers||' \ + ${WRKSRC}/src/libw32dll/wine/Makefile.in +.endif .if ${PORT_OPTIONS:MVAAPI} @${REINPLACE_CMD} -e 's|-ldl||' \ ${WRKSRC}/src/video_out/Makefile.in @@ -258,4 +266,4 @@ pre-configure: s|{libdir}/pkgconfig|{prefix}/libdata/pkgconfig|g' \ ${WRKSRC}/configure -.include +.include