Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9217 - (show annotations) (download)
Tue Nov 8 23:03:20 2011 UTC (12 years, 7 months ago) by niro
File size: 2720 byte(s)
auto added: ver bump to 1.1.19-r3
1 # $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 )
45
46 UP2DATE="updatecmd_sourceforge xine xine-lib"
47
48 # small fix for sse2 support and gcc-3.3
49 CFLAGS="${CFLAGS} -mno-sse2"
50
51 # fixes artifacts when playing a movie (-O3 uses -fweb), only >=gcc-3.4
52 CFLAGS="${CFLAGS} -fno-web"
53
54 # fixes some compile errors, only >= gcc-3.4
55 CFLAGS="${CFLAGS} -funit-at-a-time"
56
57 CXXFLAGS="${CFLAGS}"
58
59 src_prepare()
60 {
61 # check for older versions
62 [[ -e /usr/$(mlibdir)/libxine.so ]] && die "Uninstall *all* old versions of ${PNAME} first ..."
63
64 # force libdvdcss support; break build when the lib is not found
65 # as the configure script has no check
66 [[ ! -e /usr/$(mlibdir)/libdvdcss.so ]] && die "Install libdvdcss first ..."
67
68 munpack ${SRCFILE} || die
69 cd ${SRCDIR}
70
71 # fixes compilation errors when using -fpic
72 mpatch ${PNAME}-1.1.4-pic.patch || die
73
74 # fix compilation against newer videoproto
75 mpatch ${PNAME}-${PVER}-xvmc.patch || die
76
77 # libtoolize it or the linking will fail (1.0.2 only?)
78 mlibtoolize || die
79
80 # rebuild makefiles
81 autoreconf --install --force || die
82 }
83
84 src_compile()
85 {
86 cd ${SRCDIR}
87
88 # no arts support anymore -> using kde4-branch
89 local myconf
90 myconf+=" --disable-arts"
91 # no esound support anymore
92 myconf+=" --disable-esd"
93
94 mconfigure \
95 --with-included-dvdnav \
96 --disable-aalib \
97 --with-w32-path=/usr/$(mlibdir)/win32 \
98 --with-xv-path=/usr/$(mlibdir) \
99 --x-includes=/usr/includes \
100 --x-libraries=/usr/$(mlibdir) \
101 --disable-sdltest \
102 --with-x \
103 --with-xcb \
104 --enable-x11 \
105 --enable-shm \
106 --enable-xft \
107 --enable-nls \
108 --enable-ogg \
109 --enable-vorbis \
110 --disable-ipv6 \
111 --disable-directfb \
112 --enable-alsa \
113 ${myconf} \
114 || die
115
116 # does not like optimations > -j1
117 mmake -j1 || die
118 }