svn commit: r374188 - in head/devel/efl: . files

Grzegorz Blach gblach at FreeBSD.org
Sun Dec 7 11:22:40 UTC 2014


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 <at> gmail <dot> 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 <bsd.port.options.mk>
 
+.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();


More information about the svn-ports-all mailing list