From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Jul 25 01:40:04 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DE44F106566B for ; Sat, 25 Jul 2009 01:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B77BF8FC14 for ; Sat, 25 Jul 2009 01:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n6P1e3T2045918 for ; Sat, 25 Jul 2009 01:40:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n6P1e3xK045917; Sat, 25 Jul 2009 01:40:03 GMT (envelope-from gnats) Resent-Date: Sat, 25 Jul 2009 01:40:03 GMT Resent-Message-Id: <200907250140.n6P1e3xK045917@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Anonymous Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C979F106568A for ; Sat, 25 Jul 2009 01:34:55 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.159]) by mx1.freebsd.org (Postfix) with ESMTP id 57AD68FC16 for ; Sat, 25 Jul 2009 01:34:55 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: by fg-out-1718.google.com with SMTP id 13so553503fge.12 for ; Fri, 24 Jul 2009 18:34:54 -0700 (PDT) Received: by 10.86.54.8 with SMTP id c8mr222403fga.38.1248485694369; Fri, 24 Jul 2009 18:34:54 -0700 (PDT) Received: from localhost (95-24-64-233.broadband.corbina.ru [95.24.64.233]) by mx.google.com with ESMTPS id e20sm3878987fga.10.2009.07.24.18.34.52 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 24 Jul 2009 18:34:53 -0700 (PDT) Message-Id: <86fxcl4kba.fsf@gmail.com> Date: Sat, 25 Jul 2009 05:34:33 +0400 From: Anonymous To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/137114: [patch] x11/babl: add SIMD knob X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jul 2009 01:40:04 -0000 >Number: 137114 >Category: ports >Synopsis: [patch] x11/babl: add SIMD knob >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Jul 25 01:40:03 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Anonymous >Release: FreeBSD 8.0-CURRENT amd64 >Organization: >Environment: System: FreeBSD luffy 8.0-BETA2 FreeBSD 8.0-BETA2 #0 r195826M: Wed Jul 22 20:12:21 UTC 2009 root@luffy:/usr/obj/usr/src/sys/PHOENIX amd64 >Description: Enable use of SIMD optimizations. Off by default and autodetected otherwise. At least they don't break gimp and gegl. While here, fix mktemp(1) invocation in docs/Makefile.in so it no longer produces confusing usage string during build. gmake[2]: Entering directory `/usr/ports/x11/babl/work/babl-0.0.22/docs' Making all in graphics UTF8: BablFishPath.txt [OK] HTML: index.htmlusage: mktemp [-d] [-q] [-t prefix] [-u] template ... mktemp [-d] [-q] [-u] -t prefix . [OK] HTML: BablFishPath.html [OK] RSS: changelog.rss [OK] gmake[2]: Leaving directory `/usr/ports/x11/babl/work/babl-0.0.22/docs' >How-To-Repeat: $ make config (select SIMD) $ make configure [...] checking for some Win32 platform... checking for some Win32 platform... no checking for native Win32... no checking whether cc understands -mmmx... yes checking whether we can compile MMX code... yes checking whether cc understands -msse... yes checking whether we can compile SSE code... yes checking whether cc understands -faltivec... no checking whether cc understands -maltivec -mabi=altivec... no checking whether we can compile AltiVec code... no configure: WARNING: The compiler does not support the AltiVec command set. checking for library containing dlopen... none required [...] Notice that AltiVec is NOT enabled even though --enable-altivec was specified. >Fix: --- babl.diff begins here --- Index: x11/babl/Makefile =================================================================== RCS file: /home/csup/ports/x11/babl/Makefile,v retrieving revision 1.4 diff -u -p -r1.4 Makefile --- x11/babl/Makefile 28 Oct 2008 04:13:30 -0000 1.4 +++ x11/babl/Makefile 25 Jul 2009 01:20:39 -0000 @@ -27,4 +27,14 @@ USE_AUTOTOOLS= libtool:15 USE_GNOME= pkgconfig gnomehack ltverhack USE_GMAKE= yes -.include +OPTIONS= SIMD "Use cpu-specific optimizations if available" off + +.include + +.if !defined(WITHOUT_SIMD) +CONFIGURE_ARGS+=--enable-mmx \ + --enable-sse \ + --enable-altivec +.endif + +.include Index: x11/babl/files/patch-docs-Makefile.in =================================================================== RCS file: x11/babl/files/patch-docs-Makefile.in diff -N x11/babl/files/patch-docs-Makefile.in --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ x11/babl/files/patch-docs-Makefile.in 25 Jul 2009 01:06:15 -0000 @@ -0,0 +1,11 @@ +--- docs/Makefile.in~ ++++ docs/Makefile.in +@@ -571,7 +571,7 @@ index.html: index-static.html + Makefile.am + echo -n "HTML: $@" + cp $< $@ +- (which mktemp > /dev/null&& TMPFILE=`mktemp` || TMPFILE="/tmp/babl_build_tempfile" ;\ ++ (which mktemp > /dev/null&& TMPFILE=`mktemp -t babl` || TMPFILE="/tmp/babl_build_tempfile" ;\ + export BABL_PATH="$(top_builddir)/extensions"; $(babl_html_dump) > $$TMPFILE;\ + $(top_srcdir)/docs/tools/xml_insert.sh $@ BablBase $$TMPFILE;\ + rm -f $$TMPFILE ) --- babl.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: