]> git.pld-linux.org Git - packages/xine-lib.git/blob - xine-lib-sparc.patch
- fix building with autoconf 2.62 / libtool 2.2.x
[packages/xine-lib.git] / xine-lib-sparc.patch
1 --- xine-lib-1.1.4/configure.ac.orig    2007-02-01 12:35:08.818134000 +0100
2 +++ xine-lib-1.1.4/configure.ac 2007-02-01 12:36:20.068134000 +0100
3 @@ -2194,6 +2194,8 @@
4  arch_x86="no"
5  enable_armv4l="no"
6  
7 +arch_sparc="no"
8 +
9  case "$host_or_hostalias" in
10    i?86-* | k?-* | athlon-* | pentium*-)
11      dnl enable x86 specific parts of the code
12 @@ -2247,6 +2249,7 @@
13      fi
14      ;;
15    sparc*-*-linux*)
16 +    arch_sparc="yes"
17      if test "x$enable_vis" != xno; then
18        has_vis=yes
19      fi
20 @@ -2294,6 +2297,7 @@
21     esac
22  fi
23  AM_CONDITIONAL(ENABLE_VIS, test "x$has_vis" = "xyes")
24 +AM_CONDITIONAL([ARCH_SPARC], test x"$arch_sparc" = "xyes")
25  
26  if test "x$arch_x86" = "xyes"; then
27     AC_DEFINE_UNQUOTED(ARCH_X86,,[Define this if you're running x86 architecture])
28 diff -urbB xine-lib-1.1.0.org/src/libffmpeg/libavcodec/sparc/Makefile.am xine-lib-1.1.0/src/libffmpeg/libavcodec/sparc/Makefile.am
29 --- xine-lib-1.1.0.org/src/libffmpeg/libavcodec/sparc/Makefile.am       2004-04-25 20:59:58.000000000 +0200
30 +++ xine-lib-1.1.0/src/libffmpeg/libavcodec/sparc/Makefile.am   2005-09-16 12:31:05.607968352 +0200
31 @@ -13,3 +13,9 @@
32  sparc_modules = $(libavcodec_sparc_src)
33  
34  libavcodec_sparc_la_SOURCES = $(sparc_modules) $(libavcodec_sparc_dummy)
35 +
36 +if ARCH_SPARC
37 +# this file needs 64 float regs (ultrasparc) and is not executed on !ultra
38 +dsputil_vis.lo: dsputil_vis.c
39 +       $(LTCOMPILE) -c -o $@ $< -mcpu=ultrasparc
40 +endif
41 diff -urbB xine-lib-1.1.0.org/src/libmpeg2/Makefile.am xine-lib-1.1.0/src/libmpeg2/Makefile.am
42 --- xine-lib-1.1.0.org/src/libmpeg2/Makefile.am 2005-04-26 00:44:22.000000000 +0200
43 +++ xine-lib-1.1.0/src/libmpeg2/Makefile.am     2005-09-16 12:31:36.309301040 +0200
44 @@ -31,3 +31,9 @@
45  
46  noinst_HEADERS = vlc.h mpeg2.h xvmc.h xvmc_vld.h mpeg2_internal.h idct_mlib.h vis.h \
47         libmpeg2_accel.h
48 +
49 +if ARCH_SPARC
50 +motion_comp_vis.lo: motion_comp_vis.c
51 +       $(LTCOMPILE) -c -o $@ $< -mcpu=ultrasparc
52 +endif
53 +       
This page took 0.037326 seconds and 3 git commands to generate.