From owner-svn-ports-all@FreeBSD.ORG Fri Oct 18 15:31:21 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 1FBD43BE; Fri, 18 Oct 2013 15:31:21 +0000 (UTC) (envelope-from tijl@FreeBSD.org) 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 0CDAB2B6F; Fri, 18 Oct 2013 15:31:21 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r9IFVK8L034457; Fri, 18 Oct 2013 15:31:20 GMT (envelope-from tijl@svn.freebsd.org) Received: (from tijl@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r9IFVKtX034455; Fri, 18 Oct 2013 15:31:20 GMT (envelope-from tijl@svn.freebsd.org) Message-Id: <201310181531.r9IFVKtX034455@svn.freebsd.org> From: Tijl Coosemans Date: Fri, 18 Oct 2013 15:31:20 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r330760 - in head/multimedia/dirac: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Oct 2013 15:31:21 -0000 Author: tijl Date: Fri Oct 18 15:31:20 2013 New Revision: 330760 URL: http://svnweb.freebsd.org/changeset/ports/330760 Log: - Distinguish clang from Microsoft cl.exe [1] - Treat g++*, c++* and clang* the same. - Remove ?= assignments because this isn't a master port. - Remove libtool dependency. - Remove pkgconfig dependency. The port only installs a .pc file. - Disable use of MMX for now. It cannot be used in i386 packages and on amd64 the compiler already uses SSE. - Support staging. - Support WITH_DEBUG. PR: ports/173741 [1] Submitted by: Jeremy Huddleston Sequoia [1] Added: head/multimedia/dirac/files/ head/multimedia/dirac/files/patch-configure (contents, props changed) Modified: head/multimedia/dirac/Makefile Modified: head/multimedia/dirac/Makefile ============================================================================== --- head/multimedia/dirac/Makefile Fri Oct 18 15:02:22 2013 (r330759) +++ head/multimedia/dirac/Makefile Fri Oct 18 15:31:20 2013 (r330760) @@ -3,21 +3,24 @@ PORTNAME= dirac PORTVERSION= 1.0.2 -PORTREVISION?= 0 +PORTREVISION= 1 CATEGORIES= multimedia MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-codec/Dirac-${PORTVERSION} MAINTAINER= multimedia@FreeBSD.org -COMMENT?= Open source video codec from the BBC +COMMENT= Open source video codec from the BBC -USE_AUTOTOOLS= libtool GNU_CONFIGURE= yes -USES= gmake pathfix pkgconfig +USES= gmake pathfix USE_LDCONFIG= yes -CONFIGURE_ENV?= HAVE_LATEX=${FALSE} HAVE_DVIPDFM=${FALSE} \ +CONFIGURE_ARGS= --disable-mmx +CONFIGURE_ENV= HAVE_LATEX=${FALSE} HAVE_DVIPDFM=${FALSE} \ HAVE_DOXYGEN=${FALSE} HAVE_DOT=${FALSE} CPPFLAGS+= -I${LOCALBASE}/include -NO_STAGE= yes +.if defined(WITH_DEBUG) +CONFIGURE_ARGS+=--enable-debug +.endif + .include Added: head/multimedia/dirac/files/patch-configure ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/dirac/files/patch-configure Fri Oct 18 15:31:20 2013 (r330760) @@ -0,0 +1,55 @@ +--- configure.orig 2009-02-11 02:43:40.000000000 +0100 ++++ configure 2013-10-18 16:28:11.000000000 +0200 +@@ -15904,6 +15904,7 @@ + + + case "$CXX" in ++ clang*) ;; + cl*|CL*) + CXXFLAGS="-nologo -W1 -EHsc -DWIN32" + if test x"$enable_shared" = "xyes"; then +@@ -19744,7 +19745,7 @@ + + OPT_CFLAGS="" + case "$CXX" in +- g++*) ++ nomatch) + TRY_CFLAGS="$OPT_CFLAGS -g" + { $as_echo "$as_me:$LINENO: checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags" >&5 + $as_echo_n "checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags... " >&6; } +@@ -20147,7 +20148,7 @@ + { $as_echo "$as_me:$LINENO: result: yes" >&5 + $as_echo "yes" >&6; } + case "$CXX" in +- g++*) ++ g++*|c++*|clang*) + CXXFLAGS=`echo $CXXFLAGS | sed 's/-O[0-9]*//g'` + OPT_CFLAGS="" + TRY_CFLAGS="-O0" +@@ -20237,7 +20238,7 @@ + $as_echo "no" >&6; } + OPT_CFLAGS="" + case "$CXX" in +- g++*|icc) ++ nomatch) + TRY_CFLAGS="-O3" + { $as_echo "$as_me:$LINENO: checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags" >&5 + $as_echo_n "checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags... " >&6; } +@@ -20416,7 +20417,7 @@ + + #Try more optimising flags if supported + case "$CXX" in +- g++*) ++ nomatch) + TRY_CFLAGS="$OPT_CFLAGS -fexpensive-optimizations" + { $as_echo "$as_me:$LINENO: checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags" >&5 + $as_echo_n "checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags... " >&6; } +@@ -20941,7 +20942,7 @@ + + if test x"${enable_mmx}" = x"yes" ; then + case "$CXX" in +- g++*) ++ g++*|c++*|clang*) + ac_ext=cpp + ac_cpp='$CXXCPP $CPPFLAGS' + ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'