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

(-)multimedia/libxine/Makefile (-26 / +4 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	xine
4
PORTNAME=	xine
5
PORTVERSION=	1.2.2
5
PORTVERSION=	1.2.2
6
PORTREVISION=	3
6
PORTREVISION=	4
7
CATEGORIES=	multimedia ipv6
7
CATEGORIES=	multimedia ipv6
8
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}-lib/${PORTVERSION}
8
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}-lib/${PORTVERSION}
9
PKGNAMEPREFIX=	lib
9
PKGNAMEPREFIX=	lib
Lines 37-50 BUILD_DEPENDS+= v4l_compat>=1.0.20100321 Link Here
37
LIB_DEPENDS+=	dvdcss.${DVDCSS_LIBVERSION}:${PORTSDIR}/multimedia/libdvdcss
37
LIB_DEPENDS+=	dvdcss.${DVDCSS_LIBVERSION}:${PORTSDIR}/multimedia/libdvdcss
38
.endif
38
.endif
39
39
40
USES=		pathfix pkgconfig iconv
40
USES=		gmake iconv pathfix perl5 pkgconfig
41
USE_XZ=		yes
41
USE_XZ=		yes
42
GNU_CONFIGURE=	yes
42
GNU_CONFIGURE=	yes
43
WANT_GNOME=	yes
43
WANT_GNOME=	yes
44
USE_GMAKE=	yes
45
USE_XORG=	sm x11 xv xinerama
44
USE_XORG=	sm x11 xv xinerama
46
USE_GL=		gl glu
45
USE_GL=		gl glu
47
USE_PERL5_BUILD=yes
46
USE_PERL5=	build
48
USE_SDL=	sdl
47
USE_SDL=	sdl
49
USE_LDCONFIG=	yes
48
USE_LDCONFIG=	yes
50
CONFIGURE_ENV=	THREAD_CFLAGS="${PTHREAD_CFLAGS}" \
49
CONFIGURE_ENV=	THREAD_CFLAGS="${PTHREAD_CFLAGS}" \
Lines 82-110 PATCH_DIST_ARGS= -d ${WRKSRC} -p1 --forw Link Here
82
81
83
.include <bsd.port.options.mk>
82
.include <bsd.port.options.mk>
84
83
85
# clang/i386 doesn't like
86
#	src/post/deinterlace/plugins/greedy2frame_template_sse2.c :
87
# [...]
88
# ./greedy2frame_template_sse2.c:175:38: error: register %rax is only available in 64-bit mode
89
#            "movdqa  (%3), %%xmm0               \n\t" /* xmm0 = T0 */
90
#                                                  ^
91
#<inline asm>:3:11: note: instantiated into assembly here
92
#        movdqa  (%rax,%esi), %xmm3
93
#                 ^~~~
94
# [...]
95
.if ${ARCH} == "i386"
84
.if ${ARCH} == "i386"
96
USE_GCC=	any
85
CFLAGS+=	-fomit-frame-pointer
97
.endif
98
99
# Fix build WITH_DEBUG
100
.if defined(WITH_DEBUG)
101
DEBUG_FLAGS=	-g -O1
102
.endif
103
104
# Check for forced -O0 (or no -O)
105
.if ${CFLAGS:M-O0} == "-O0" || (${CFLAGS:M-O} == "" && \
106
	${CFLAGS:M-O[1-9a-z]*} == "")
107
IGNORE=		only builds with -O1 or higher, check CFLAGS
108
.endif
86
.endif
109
87
110
.if ${PORT_OPTIONS:MNLS}
88
.if ${PORT_OPTIONS:MNLS}
(-)multimedia/libxine/files/patch-configure (-1 / +10 lines)
Lines 9-15 Link Here
9
         arch_x86=64
9
         arch_x86=64
10
 
10
 
11
 $as_echo "#define ARCH_X86_64 /**/" >>confdefs.h
11
 $as_echo "#define ARCH_X86_64 /**/" >>confdefs.h
12
@@ -26197,7 +26197,7 @@ fi
12
@@ -20685,7 +20685,7 @@ fi
13
 
14
                 if test "$sarchopt" != "no"; then
15
                     case "$host_or_hostalias" in
16
-                        i386-*)         archopt_val="i386" ;;
17
+                        i386-*)         ;;
18
                         i486-*)         archopt_val="i486" ;;
19
                         i586-*)         archopt_val="pentium" ;;
20
                         pentium-mmx-*)  archopt_val="pentium-mmx" ;;
21
@@ -26280,7 +26280,7 @@ fi
13
 
22
 
14
     if test x"$enable_dvb" != x"no"; then
23
     if test x"$enable_dvb" != x"no"; then
15
         case "$host_os" in
24
         case "$host_os" in
(-)multimedia/libxine/files/patch-src-post-deinterlace-plugins-greedy2frame_template_sse2.c (+28 lines)
Line 0 Link Here
1
--- src/post/deinterlace/plugins/greedy2frame_template_sse2.c.orig	2013-09-03 20:12:37.000000000 +0200
2
+++ src/post/deinterlace/plugins/greedy2frame_template_sse2.c	2013-09-03 20:22:34.000000000 +0200
3
@@ -173,8 +173,8 @@
4
         */
5
             "movdqa  (%3), %%xmm1		\n\t" /* xmm1 = T1 */
6
             "movdqa  (%4), %%xmm0		\n\t" /* xmm0 = T0 */
7
-            "movdqa  (%q5,%3), %%xmm3		\n\t" /* xmm3 = B1 */
8
-            "movdqa  (%q5,%4), %%xmm2		\n\t" /* xmm2 = B0 */
9
+            "movdqa  (%3,%5), %%xmm3		\n\t" /* xmm3 = B1 */
10
+            "movdqa  (%4,%5), %%xmm2		\n\t" /* xmm2 = B0 */
11
 
12
             /* calculate |T1-T0| keep T1 put result in xmm5 */
13
             "movdqa  %%xmm1, %%xmm5		\n\t"
14
@@ -192,11 +192,11 @@
15
             "pcmpgtb %1, %%xmm5			\n\t"
16
             "pcmpeqd %%xmm7, %%xmm5		\n\t"
17
 
18
-            "prefetcht0  64(%q5,%3)		\n\t"
19
-            "prefetcht0  64(%q5,%4)		\n\t"
20
+            "prefetcht0  64(%3,%5)		\n\t"
21
+            "prefetcht0  64(%4,%5)		\n\t"
22
           :
23
           : "r" (M1), "m" (GreedyTwoFrameThreshold128),
24
-            "m" (*Destc), "r" (T1), "r" (T0), "r" (Pitch) );
25
+            "m" (*Destc), "r" (T1), "r" (T0), "r" ((register_t)Pitch) );
26
 
27
           asm volatile (
28
             /* calculate |B1-B0| keep B1 put result in xmm4 */
(-)multimedia/libxine/files/patch-src_libreal_xine_real_audio_decoder.c (-6 / +1 lines)
Lines 1-20 Link Here
1
--- src/libreal/xine_real_audio_decoder.c.orig	2008-01-01 22:30:08.000000000 +0900
1
--- src/libreal/xine_real_audio_decoder.c.orig	2008-01-01 22:30:08.000000000 +0900
2
+++ src/libreal/xine_real_audio_decoder.c	2008-01-20 01:44:15.000000000 +0900
2
+++ src/libreal/xine_real_audio_decoder.c	2008-01-20 01:44:15.000000000 +0900
3
@@ -45,6 +45,19 @@
3
@@ -45,6 +45,14 @@
4
 
4
 
5
 #include "real_common.h"
5
 #include "real_common.h"
6
 
6
 
7
+#if defined(__FreeBSD__)
7
+#if defined(__FreeBSD__)
8
+void ___brk_addr(void) {exit(0);}
9
+void __ctype_b(void) {exit(0);}
10
+void __strtod_internal(void) {exit(0);}
8
+void __strtod_internal(void) {exit(0);}
11
+void __strtold_internal(void) {exit(0);}
9
+void __strtold_internal(void) {exit(0);}
12
+void __strtof_internal(void) {exit(0);}
10
+void __strtof_internal(void) {exit(0);}
13
+void __errno_location(void) {exit(0);}
11
+void __errno_location(void) {exit(0);}
14
+void dl_iterate_phdr(void) {exit(0);}
12
+void dl_iterate_phdr(void) {exit(0);}
15
+char **__environ={NULL};
16
+#undef stderr
17
+FILE *stderr=NULL;
18
+#endif
13
+#endif
19
+
14
+
20
 typedef struct {
15
 typedef struct {

Return to bug 181786