Magellan Linux

Contents of /trunk/extras/xine-lib/xine-lib-1.2.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11673 - (show annotations) (download)
Wed Mar 14 13:13:20 2012 UTC (12 years, 3 months ago) by niro
File size: 2433 byte(s)
-require newer ffmpeg
1 # $Id$
2
3 PNAME="xine-lib"
4 PVER="1.2.1"
5 PBUILD="r1"
6
7 PCAT="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 >= dev-libs/libcdio-0.83
14 >= media-libs/libdvdnav-4.2
15 >= media-libs/libvorbis-1.3
16 >= media-libs/mplayer-codecs-2011
17 >= media-libs/flac-1.2
18 >= media-libs/libogg-1.3
19 >= media-libs/libvorbis-1.3
20 >= media-libs/libfame-0.9.1
21 >= media-libs/xvid-1.3
22 >= media-libs/alsa-lib-1.0.24
23 >= media-libs/libdvdcss-1.2.10
24 >= media-libs/libvcdinfo-0.7.24
25 >= media-sound/libpulse-1.1
26 >= media-video/ffmpeg-201203
27 >= x11-libs/libXext-1.3
28 >= x11-libs/libX11-1.4
29 >= x11-libs/libXv-1
30 >= x11-libs/libxcb-1.7
31 >= x11-libs/libvdpau-0.4"
32
33 SDEPEND=">= dev-util/pkgconfig-0.25
34 >= x11-libs/libXt-1
35 >= x11-proto/xextproto-7
36 >= x11-proto/xproto-2
37 >= x11-proto/videoproto-2.3.1
38 >= x11-proto/xf86vidmodeproto-2"
39
40 SRCFILE="${PNAME}-${PVER}.tar.bz2"
41 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
42
43 sminclude mbuild
44
45 SRC_URI=(
46 sourceforge://xine/${SRCFILE}
47 mirror://${PNAME}/${SRCFILE}
48 mirror://${PNAME}/${PNAME}-${PVER}-ffmpeg.patch
49 )
50
51 UP2DATE="updatecmd_sourceforge xine xine-lib"
52
53 src_prepare()
54 {
55 # check for older versions
56 [[ -e /usr/$(mlibdir)/libxine.so ]] && die "Uninstall *all* old versions of ${PNAME} first ..."
57
58 # force libdvdcss support; break build when the lib is not found
59 # as the configure script has no check
60 [[ ! -e /usr/$(mlibdir)/libdvdcss.so ]] && die "Install libdvdcss first ..."
61
62 munpack ${SRCFILE} || die
63 cd ${SRCDIR}
64
65 # fix build against git versions of ffmpeg
66 mpatch ${PNAME}-${PVER}-ffmpeg.patch || die
67 }
68
69 src_compile()
70 {
71 cd ${SRCDIR}
72
73 # no arts support anymore -> using kde4-branch
74 local myconf
75 myconf+=" --disable-arts"
76 # no esound support anymore
77 myconf+=" --disable-esd"
78
79 mconfigure \
80 --disable-optimizations \
81 --with-external-dvdnav \
82 --with-w32-path=/usr/$(mlibdir)/win32 \
83 --with-xv-path=/usr/$(mlibdir) \
84 --x-includes=/usr/includes \
85 --x-libraries=/usr/$(mlibdir) \
86 --with-x \
87 --with-xcb \
88 --enable-x11 \
89 --enable-shm \
90 --enable-xft \
91 --enable-nls \
92 --enable-ogg \
93 --enable-vorbis \
94 --disable-ipv6 \
95 --disable-directfb \
96 --enable-alsa \
97 --enable-vcd \
98 --enable-vdpau \
99 --disable-sdltest \
100 --disable-aalib \
101 --disable-musepack \
102 ${myconf} \
103 || die
104
105 # does not like optimations > -j1
106 mmake -j1 || die
107 }