Magellan Linux

Annotation of /branches/magellan-next/core/xine-lib/xine-lib-1.1.19-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9218 - (hide annotations) (download)
Tue Nov 8 23:15:10 2011 UTC (12 years, 6 months ago) by niro
File size: 2855 byte(s)
-added patch to fix build against newer ffmpeg
1 niro 9217 # $Id$
2    
3     PNAME="xine-lib"
4     PVER="1.1.19"
5     PBUILD="r3"
6    
7     PCATEGORIE="media-libs"
8    
9     DESCRIPTION="xine-lib is the xine core engine, it is needed for all frontends and applications that use xine."
10     HOMEPAGE="http://xine.sourceforge.net/"
11    
12     DEPEND=">= virtual/glibc
13     >= media-libs/libvorbis-1.3
14     >= media-libs/mplayer-codecs-2011
15     >= media-libs/flac-1.2
16     >= media-libs/libfame-0.9.1
17     >= media-libs/xvid-1.3
18     >= media-libs/alsa-lib-1.0.24
19     >= media-libs/libdvdcss-1.2.10
20     >= media-video/ffmpeg-201107
21     >= x11-libs/libXext-1.3
22     >= x11-libs/libX11-1.4
23     >= x11-libs/libXv-1
24     >= x11-libs/libxcb-1.7"
25    
26     SDEPEND=">= dev-util/pkgconfig-0.25
27     >= x11-base/xorg-server-1
28     >= x11-libs/libXt-1
29     >= x11-proto/xextproto-7
30     >= x11-proto/xproto-2
31     >= x11-proto/videoproto-2.3.1
32     >= x11-proto/xf86vidmodeproto-2"
33    
34     SRCFILE="${PNAME}-${PVER}.tar.bz2"
35     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
36    
37     sminclude mbuild
38    
39     SRC_URI=(
40     sourceforge://xine/${SRCFILE}
41     mirror://${PNAME}/${SRCFILE}
42     mirror://${PNAME}/${PNAME}-1.1.4-pic.patch
43     mirror://${PNAME}/${PNAME}-${PVER}-xvmc.patch
44 niro 9218 mirror://${PNAME}/${PNAME}-${PVER}-ffmpeg.patch
45 niro 9217 )
46    
47     UP2DATE="updatecmd_sourceforge xine xine-lib"
48    
49     # small fix for sse2 support and gcc-3.3
50     CFLAGS="${CFLAGS} -mno-sse2"
51    
52     # fixes artifacts when playing a movie (-O3 uses -fweb), only >=gcc-3.4
53     CFLAGS="${CFLAGS} -fno-web"
54    
55     # fixes some compile errors, only >= gcc-3.4
56     CFLAGS="${CFLAGS} -funit-at-a-time"
57    
58     CXXFLAGS="${CFLAGS}"
59    
60     src_prepare()
61     {
62     # check for older versions
63     [[ -e /usr/$(mlibdir)/libxine.so ]] && die "Uninstall *all* old versions of ${PNAME} first ..."
64    
65     # force libdvdcss support; break build when the lib is not found
66     # as the configure script has no check
67     [[ ! -e /usr/$(mlibdir)/libdvdcss.so ]] && die "Install libdvdcss first ..."
68    
69     munpack ${SRCFILE} || die
70     cd ${SRCDIR}
71    
72     # fixes compilation errors when using -fpic
73     mpatch ${PNAME}-1.1.4-pic.patch || die
74    
75     # fix compilation against newer videoproto
76     mpatch ${PNAME}-${PVER}-xvmc.patch || die
77    
78 niro 9218 # fix compilation against newer ffmpeg
79     mpatch ${PNAME}-${PVER}-ffmpeg.patch || die
80    
81 niro 9217 # libtoolize it or the linking will fail (1.0.2 only?)
82     mlibtoolize || die
83    
84     # rebuild makefiles
85     autoreconf --install --force || die
86     }
87    
88     src_compile()
89     {
90     cd ${SRCDIR}
91    
92     # no arts support anymore -> using kde4-branch
93     local myconf
94     myconf+=" --disable-arts"
95     # no esound support anymore
96     myconf+=" --disable-esd"
97    
98     mconfigure \
99     --with-included-dvdnav \
100     --disable-aalib \
101     --with-w32-path=/usr/$(mlibdir)/win32 \
102     --with-xv-path=/usr/$(mlibdir) \
103     --x-includes=/usr/includes \
104     --x-libraries=/usr/$(mlibdir) \
105     --disable-sdltest \
106     --with-x \
107     --with-xcb \
108     --enable-x11 \
109     --enable-shm \
110     --enable-xft \
111     --enable-nls \
112     --enable-ogg \
113     --enable-vorbis \
114     --disable-ipv6 \
115     --disable-directfb \
116     --enable-alsa \
117     ${myconf} \
118     || die
119    
120     # does not like optimations > -j1
121     mmake -j1 || die
122     }