Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Mar 2012 11:17:15 GMT
From:      Shane Ambler <FreeBSD@Shaneware.biz>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/165814: Build multimedia/dirac with clang [patch]
Message-ID:  <201203071117.q27BHFQd000543@red.freebsd.org>
Resent-Message-ID: <201203071120.q27BKAJk063525@freefall.freebsd.org>

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

>Number:         165814
>Category:       ports
>Synopsis:       Build multimedia/dirac with clang [patch]
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 07 11:20:10 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Shane Ambler
>Release:        9.0-RELEASE
>Organization:
>Environment:
FreeBSD leader.local 9.0-RELEASE FreeBSD 9.0-RELEASE #1: Wed Feb 15 16:03:18 CST 2012     root@:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
The attached patches allow multimedia/dirac to be compiled with clang.

Tested with tinderbox to build with combinations of 10-CURRENT and 9-STABLE with gcc and clang and ARCH i386 and amd64
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	files
#	files/patch-doc__Makefile.in
#	files/patch-configure
#
echo c - files
mkdir -p files > /dev/null 2>&1
echo x - files/patch-doc__Makefile.in
sed 's/^X//' >files/patch-doc__Makefile.in << '572a203d69839534e6c4af9460287da9'
X--- ./doc/Makefile.in.orig	2012-03-07 07:11:51.000000000 +1030
X+++ ./doc/Makefile.in	2012-03-07 07:11:55.793045000 +1030
X@@ -390,7 +390,7 @@
X 	doxygen $(srcdir)/dirac_api.doxygen
X 
X install-data-hook:
X-	cp -dR html/* $(DESTDIR)$(htmldir)
X+	cp -R html/* $(DESTDIR)$(htmldir)
X # Tell versions [3.59,3.63) of GNU make to not export all variables.
X # Otherwise a system limit (for SysV at least) may be exceeded.
X .NOEXPORT:
572a203d69839534e6c4af9460287da9
echo x - files/patch-configure
sed 's/^X//' >files/patch-configure << '5cae8e2426c154e1c1a4408c02b2ed73'
X--- ./configure.orig	2009-02-11 12:13:40.000000000 +1030
X+++ ./configure	2012-03-07 07:33:48.000000000 +1030
X@@ -3497,7 +3497,7 @@
X case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
X 
X 
X-enable_win32_dll=yes
X+enable_win32_dll=no
X 
X case $host in
X *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
X@@ -15903,23 +15903,9 @@
X use_msvc=no
X 
X 
X-case "$CXX" in
X-		cl*|CL*)
X-		CXXFLAGS="-nologo -W1 -EHsc -DWIN32"
X-		if test x"$enable_shared" = "xyes"; then
X-		    LIBEXT=".dll";
X-		    LIBFLAGS="-DLL -INCREMENTAL:NO"
X-			CXXFLAGS="$CXXFLAGS -D_WINDLL"
X-		else
X-		    LIBEXT=".lib";
X-		    LIBFLAGS="-lib"
X-		fi
X-		RANLIB="echo"
X-		use_msvc=yes
X-		;;
X-	*)
X-		;;
X-esac
X+LIBEXT=".lib";
X+LIBFLAGS="-lib"
X+RANLIB="echo"
X  if test x"$use_msvc" = "xyes"; then
X   USE_MSVC_TRUE=
X   USE_MSVC_FALSE='#'
5cae8e2426c154e1c1a4408c02b2ed73
exit



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



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