From owner-svn-ports-all@FreeBSD.ORG Sun Dec 7 11:22:40 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 79EA5909; Sun, 7 Dec 2014 11:22:40 +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)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4C6663E6; Sun, 7 Dec 2014 11:22:40 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id sB7BMew9041251; Sun, 7 Dec 2014 11:22:40 GMT (envelope-from gblach@FreeBSD.org) Received: (from gblach@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id sB7BMdGk041249; Sun, 7 Dec 2014 11:22:39 GMT (envelope-from gblach@FreeBSD.org) Message-Id: <201412071122.sB7BMdGk041249@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: gblach set sender to gblach@FreeBSD.org using -f From: Grzegorz Blach Date: Sun, 7 Dec 2014 11:22:39 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r374188 - in head/devel/efl: . 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.18-1 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: Sun, 07 Dec 2014 11:22:40 -0000 Author: gblach Date: Sun Dec 7 11:22:39 2014 New Revision: 374188 URL: https://svnweb.freebsd.org/changeset/ports/374188 QAT: https://qat.redports.org/buildarchive/r374188/ Log: - Add Nvidia workaround as option Some users of Nvidia cards reports very high cpu usage by ecore_x_vsync, in this case devel/efl should be rebuild with NVIDIA option enabled. Submitted by: 6yearold gmail com (via email) Added: head/devel/efl/files/extra-patch-src-lib-ecore_x-ecore_x_vsync_tool.c (contents, props changed) Modified: head/devel/efl/Makefile Modified: head/devel/efl/Makefile ============================================================================== --- head/devel/efl/Makefile Sun Dec 7 11:00:56 2014 (r374187) +++ head/devel/efl/Makefile Sun Dec 7 11:22:39 2014 (r374188) @@ -36,7 +36,7 @@ LDFLAGS+= -L${LOCALBASE}/lib PLIST_SUB= BRANCHVERSION=${PORTVERSION:R} PORTVERSION=${PORTVERSION} -OPTIONS_DEFINE= AVAHI FRIBIDI HARFBUZZ PHYSICS PULSEAUDIO SSL +OPTIONS_DEFINE= AVAHI FRIBIDI HARFBUZZ NVIDIA PHYSICS PULSEAUDIO SSL OPTIONS_GROUP= ENGINE EMOTION INPUT LOADER OPTIONS_GROUP_ENGINE= OPENGL SDL OPTIONS_GROUP_EMOTION= GSTREAMER LIBXINE V4L @@ -46,6 +46,7 @@ OPTIONS_DEFAULT= FRIBIDI HARFBUZZ PHYSIC OPTIONS_SUB= yes HARFBUZZ_DESC= OpenType text shaping engine +NVIDIA_DESC= Apply Nvidia workaround PHYSICS_DESC= Physics effects IBUS_DESC= Intelligent Input Bus SCIM_DESC= Smart Common Input Method @@ -98,6 +99,10 @@ NLS_CONFIGURE_ENABLE= nls .include +.if ${PORT_OPTIONS:MNVIDIA} +EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src-lib-ecore_x-ecore_x_vsync_tool.c +.endif + .if ${PORT_OPTIONS:MSSL} USE_OPENSSL= yes WITH_OPENSSL_PORT= yes Added: head/devel/efl/files/extra-patch-src-lib-ecore_x-ecore_x_vsync_tool.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/efl/files/extra-patch-src-lib-ecore_x-ecore_x_vsync_tool.c Sun Dec 7 11:22:39 2014 (r374188) @@ -0,0 +1,13 @@ +# Some users of Nvidia cards reports very high cpu usage by ecore_x_vsync. +# This quick workaround hasn't a visible side effects, +# but better solution is needed. +--- src/lib/ecore_x/_ecore_x_vsync_tool.c 2014-12-03 16:13:51.116115279 +0300 ++++ src/lib/ecore_x/ecore_x_vsync_tool.c 2014-12-03 16:14:09.537111198 +0300 +@@ -259,6 +259,7 @@ + int + main(int argc EINA_UNUSED, char **argv EINA_UNUSED) + { ++ return 0; + eina_init(); + ecore_app_no_system_modules(); + ecore_init();