Date: Mon, 3 Sep 2012 19:55:24 +0200 From: Thomas Zander <thomas.e.zander@googlemail.com> To: Barbara <barbara.xxx1975@libero.it>, h.skuhra@gmail.com, Juergen Lock <nox@jelal.kn-bremen.de>, hm@hm.net.br Cc: ports@freebsd.org, freebsd-multimedia@freebsd.org Subject: Re: error building mplayer Message-ID: <CAFU734wybXi3d96hTVTJLJsG_76TbiETMjZCmoAxBHRTr6pm-Q@mail.gmail.com> In-Reply-To: <22239640.5438151346584906844.JavaMail.root@wmail3.libero.it>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
Hi,
> [mplayer build failed]
Can you try the attached patch?
Riggs
[-- Attachment #2 --]
diff -r 0aaea094c963 mplayer/Makefile.options
--- a/mplayer/Makefile.options Mon Sep 03 18:57:23 2012 +0200
+++ b/mplayer/Makefile.options Mon Sep 03 19:48:33 2012 +0200
@@ -51,17 +51,25 @@
.endif
.endif #WITH_DEBUG
+#Supported architectures for clang
+.if ${ARCH} == "amd64"
+MPLAYER_CLANG_SUPPORTED_ARCH= yes
+.endif
+
.if !defined(WITHOUT_RTCPU)
CONFIGURE_ARGS+=--enable-runtime-cpudetection
.endif
-.if ${OSVERSION} >= 900033
+.if ${OSVERSION} >= 900033 \
+ && exists(/usr/bin/clang) \
+ && defined(MPLAYER_CLANG_SUPPORTED_ARCH)
WITH_BASE_CLANG=yes
.endif
.if defined(WITH_BASE_CLANG)
CC= clang
CXX= clang++
+CPP= clang-cpp
.else
.if defined(WITH_OTCHAIN)
USE_GCC?= 4.6+
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFU734wybXi3d96hTVTJLJsG_76TbiETMjZCmoAxBHRTr6pm-Q>
