svn commit: r359607 - in head/graphics/libvisual04: . files
Chris Rees
crees at FreeBSD.org
Fri Jun 27 20:46:59 UTC 2014
Author: crees
Date: Fri Jun 27 20:46:58 2014
New Revision: 359607
URL: http://svnweb.freebsd.org/changeset/ports/359607
QAT: https://qat.redports.org/buildarchive/r359607/
Log:
Apply patch from upstream to fix a warning.
This allows build of the gstreamer1 libvisual plugin with -Werror.
PR: ports/191189
Submitted by: kwm
Added:
head/graphics/libvisual04/files/patch-libvisual-lv_defines.h (contents, props changed)
head/graphics/libvisual04/files/patch-libvisual-lv_mem.h (contents, props changed)
Modified:
head/graphics/libvisual04/Makefile
head/graphics/libvisual04/pkg-plist
Modified: head/graphics/libvisual04/Makefile
==============================================================================
--- head/graphics/libvisual04/Makefile Fri Jun 27 20:42:26 2014 (r359606)
+++ head/graphics/libvisual04/Makefile Fri Jun 27 20:46:58 2014 (r359607)
@@ -3,7 +3,7 @@
PORTNAME= libvisual
PORTVERSION= 0.4.0
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= graphics
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
PKGNAMESUFFIX= 04
@@ -14,8 +14,7 @@ COMMENT= Abstraction library that sits b
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
-USE_AUTOTOOLS= libtool
-USES= gettext pathfix pkgconfig
+USES= gettext libtool:keepla pathfix pkgconfig
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
Added: head/graphics/libvisual04/files/patch-libvisual-lv_defines.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/libvisual04/files/patch-libvisual-lv_defines.h Fri Jun 27 20:46:58 2014 (r359607)
@@ -0,0 +1,55 @@
+--- lv_defines.h.orig 2006-01-22 13:23:37.000000000 +0000
++++ libvisual/lv_defines.h 2014-06-24 19:56:46.961214708 +0100
+@@ -39,14 +39,13 @@
+ #endif /* __cplusplus */
+
+ #ifdef NULL
+-#undef NULL
++# ifndef __cplusplus
++# define NULL ((void *) 0)
++# else
++# define NULL 0
++# endif
+ #endif
+
+-/**
+- * NULL define.
+- */
+-#define NULL ((void *) 0)
+-
+ #ifndef FALSE
+ /**
+ * FALSE define.
+@@ -63,17 +62,21 @@
+
+ /* Compiler specific optimalization macros */
+ #if __GNUC__ >= 3
+-# define inline inline __attribute__ ((always_inline))
+-# define __malloc __attribute__ ((malloc))
+-# define __packed __attribute__ ((packed))
+-# define VIS_LIKELY(x) __builtin_expect (!!(x), 1)
+-# define VIS_UNLIKELY(x) __builtin_expect (!!(x), 0)
++# ifndef __cplusplus
++# define inline inline __attribute__ ((always_inline))
++# endif
++# define VIS_ATTR_MALLOC __attribute__ ((malloc))
++# define VIS_ATTR_PACKED __attribute__ ((packed))
++# define VIS_LIKELY(x) __builtin_expect (!!(x), 1)
++# define VIS_UNLIKELY(x) __builtin_expect (!!(x), 0)
+ #else
+-# define inline /* no inline */
+-# define __malloc /* no malloc */
+-# define __packed /* no packed */
+-# define VIS_LIKELY(x) (x)
+-# define VIS_UNLIKELY(x) (x)
+-#endif
++# ifndef __cplusplus
++# define inline /* no inline */
++# endif
++# define VIS_ATTR_MALLOC /* no malloc */
++# define VIS_ATTR_PACKED /* no packed */
++# define VIS_LIKELY(x) (x)
++# define VIS_UNLIKELY(x) (x)
++#endif /* __GNUC__ >= 3 */
+
+ #endif /* _LV_DEFINES_H */
Added: head/graphics/libvisual04/files/patch-libvisual-lv_mem.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/libvisual04/files/patch-libvisual-lv_mem.h Fri Jun 27 20:46:58 2014 (r359607)
@@ -0,0 +1,15 @@
+--- libvisual/lv_mem.h.orig 2014-06-24 19:51:48.637214311 +0100
++++ libvisual/lv_mem.h 2014-06-24 19:53:14.723215426 +0100
+@@ -76,9 +76,9 @@
+
+ /* prototypes */
+ int visual_mem_initialize (void);
+-void *visual_mem_malloc (visual_size_t nbytes) __malloc;
+-void *visual_mem_malloc0 (visual_size_t nbytes) __malloc;
+-void *visual_mem_realloc (void *ptr, visual_size_t nbytes) __malloc;
++void *visual_mem_malloc (visual_size_t nbytes) VIS_ATTR_MALLOC;
++void *visual_mem_malloc0 (visual_size_t nbytes) VIS_ATTR_MALLOC;
++void *visual_mem_realloc (void *ptr, visual_size_t nbytes) VIS_ATTR_MALLOC;
+ int visual_mem_free (void *ptr);
+
+ /* Optimal performance functions set by visual_mem_initialize(). */
Modified: head/graphics/libvisual04/pkg-plist
==============================================================================
--- head/graphics/libvisual04/pkg-plist Fri Jun 27 20:42:26 2014 (r359606)
+++ head/graphics/libvisual04/pkg-plist Fri Jun 27 20:46:58 2014 (r359607)
@@ -43,10 +43,10 @@ include/libvisual%%VER%%/libvisual/lv_ui
include/libvisual%%VER%%/libvisual/lv_utils.h
include/libvisual%%VER%%/libvisual/lv_video.h
include/libvisual%%VER%%/libvisual/lvconfig.h
-lib/libvisual%%VER%%.a
lib/libvisual%%VER%%.la
lib/libvisual%%VER%%.so
lib/libvisual%%VER%%.so.0
+lib/libvisual%%VER%%.so.0.0.0
libdata/pkgconfig/libvisual%%VER%%.pc
share/locale/es_AR/LC_MESSAGES/libvisual%%VER%%.mo
share/locale/es_ES/LC_MESSAGES/libvisual%%VER%%.mo
More information about the svn-ports-all
mailing list