View | Details | Raw Unified | Return to bug 191189
Collapse All | Expand All

(-)graphics/libvisual04/Makefile (-3 / +2 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	libvisual
4
PORTNAME=	libvisual
5
PORTVERSION=	0.4.0
5
PORTVERSION=	0.4.0
6
PORTREVISION=	3
6
PORTREVISION=	4
7
CATEGORIES=	graphics
7
CATEGORIES=	graphics
8
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
8
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
9
PKGNAMESUFFIX=	04
9
PKGNAMESUFFIX=	04
Lines 14-21 Link Here
14
LICENSE=	GPLv2
14
LICENSE=	GPLv2
15
LICENSE_FILE=	${WRKSRC}/COPYING
15
LICENSE_FILE=	${WRKSRC}/COPYING
16
16
17
USE_AUTOTOOLS=	libtool
17
USES=		gettext libtool:keepla pathfix pkgconfig
18
USES=		gettext pathfix pkgconfig
19
GNU_CONFIGURE=	yes
18
GNU_CONFIGURE=	yes
20
CPPFLAGS+=	-I${LOCALBASE}/include ${PTHREAD_CFLAGS}
19
CPPFLAGS+=	-I${LOCALBASE}/include ${PTHREAD_CFLAGS}
21
LDFLAGS+=	-L${LOCALBASE}/lib ${PTHREAD_LIBS}
20
LDFLAGS+=	-L${LOCALBASE}/lib ${PTHREAD_LIBS}
(-)graphics/libvisual04/files/patch-8970219 (+85 lines)
Line 0 Link Here
1
https://github.com/Libvisual/libvisual/commit/89702196c115b2cb27d90b123f8976aca110ade8
2
3
--- libvisual/lv_defines.h.orig	2006-01-22 14:23:37.000000000 +0100
4
+++ libvisual/lv_defines.h	2014-06-19 17:21:12.000000000 +0200
5
@@ -38,42 +38,39 @@
6
 # define VISUAL_END_DECLS
7
 #endif /* __cplusplus */
8
 
9
-#ifdef NULL
10
-#undef NULL
11
-#endif
12
-
13
-/**
14
- * NULL define.
15
- */
16
-#define NULL	((void *) 0)
17
+#ifndef NULL
18
+# ifndef __cplusplus
19
+#   define NULL ((void *) 0)
20
+# else
21
+#   define NULL 0
22
+# endif
23
+#endif /* NULL */
24
 
25
 #ifndef FALSE
26
-/**
27
- * FALSE define.
28
- */
29
 #define FALSE	(0)
30
 #endif
31
 
32
 #ifndef TRUE
33
-/**
34
- * TRUE define.
35
- */
36
-#define TRUE	(!FALSE)
37
+#define TRUE	(1)
38
 #endif
39
 
40
 /* Compiler specific optimalization macros */
41
 #if __GNUC__ >= 3
42
-# define inline			inline __attribute__ ((always_inline))
43
-# define __malloc		__attribute__ ((malloc))
44
-# define __packed		__attribute__ ((packed))
45
-# define VIS_LIKELY(x)		__builtin_expect (!!(x), 1)
46
-# define VIS_UNLIKELY(x)	__builtin_expect (!!(x), 0)
47
+# ifndef __cplusplus
48
+#  define inline            inline __attribute__ ((always_inline))
49
+# endif
50
+# define VIS_ATTR_MALLOC    __attribute__ ((malloc))
51
+# define VIS_ATTR_PACKED    __attribute__ ((packed))
52
+# define VIS_LIKELY(x)      __builtin_expect (!!(x), 1)
53
+# define VIS_UNLIKELY(x)    __builtin_expect (!!(x), 0)
54
 #else
55
-# define inline			/* no inline */
56
-# define __malloc		/* no malloc */
57
-# define __packed		/* no packed */
58
-# define VIS_LIKELY(x)		(x)
59
-# define VIS_UNLIKELY(x)	(x)
60
-#endif
61
+# ifndef __cplusplus
62
+#  define inline            /* no inline */
63
+# endif
64
+# define VIS_ATTR_MALLOC    /* no malloc */
65
+# define VIS_ATTR_PACKED    /* no packed */
66
+# define VIS_LIKELY(x)      (x)
67
+# define VIS_UNLIKELY(x)    (x)
68
+#endif /* __GNUC__ >= 3 */
69
 
70
 #endif /* _LV_DEFINES_H */
71
--- libvisual/lv_mem.h.orig	2006-01-22 14:23:37.000000000 +0100
72
+++ libvisual/lv_mem.h	2014-06-19 17:22:37.000000000 +0200
73
@@ -76,9 +76,9 @@ typedef void *(*VisMemSet32Func)(void *d
74
 
75
 /* prototypes */
76
 int visual_mem_initialize (void);
77
-void *visual_mem_malloc (visual_size_t nbytes) __malloc;
78
-void *visual_mem_malloc0 (visual_size_t nbytes) __malloc;
79
-void *visual_mem_realloc (void *ptr, visual_size_t nbytes) __malloc;
80
+void *visual_mem_malloc (visual_size_t nbytes) VIS_ATTR_MALLOC;
81
+void *visual_mem_malloc0 (visual_size_t nbytes) VIS_ATTR_MALLOC;
82
+void *visual_mem_realloc (void *ptr, visual_size_t nbytes) VIS_ATTR_MALLOC;
83
 int visual_mem_free (void *ptr);
84
 
85
 /* Optimal performance functions set by visual_mem_initialize(). */
(-)graphics/libvisual04/pkg-plist (-1 / +1 lines)
Lines 43-52 Link Here
43
include/libvisual%%VER%%/libvisual/lv_utils.h
43
include/libvisual%%VER%%/libvisual/lv_utils.h
44
include/libvisual%%VER%%/libvisual/lv_video.h
44
include/libvisual%%VER%%/libvisual/lv_video.h
45
include/libvisual%%VER%%/libvisual/lvconfig.h
45
include/libvisual%%VER%%/libvisual/lvconfig.h
46
lib/libvisual%%VER%%.a
47
lib/libvisual%%VER%%.la
46
lib/libvisual%%VER%%.la
48
lib/libvisual%%VER%%.so
47
lib/libvisual%%VER%%.so
49
lib/libvisual%%VER%%.so.0
48
lib/libvisual%%VER%%.so.0
49
lib/libvisual%%VER%%.so.0.0.0
50
libdata/pkgconfig/libvisual%%VER%%.pc
50
libdata/pkgconfig/libvisual%%VER%%.pc
51
share/locale/es_AR/LC_MESSAGES/libvisual%%VER%%.mo
51
share/locale/es_AR/LC_MESSAGES/libvisual%%VER%%.mo
52
share/locale/es_ES/LC_MESSAGES/libvisual%%VER%%.mo
52
share/locale/es_ES/LC_MESSAGES/libvisual%%VER%%.mo

Return to bug 191189