Magellan Linux

Contents of /branches/R11-unstable/extras/xine-lib/xine-lib-1.2.6-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 25925 - (show annotations) (download)
Tue Nov 25 04:30:17 2014 UTC (9 years, 5 months ago) by niro
File size: 2386 byte(s)
-release branches/R11-unstable
1 # $Id$
2
3 PNAME="xine-lib"
4 PVER="1.2.6"
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.93
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.28
23 >= media-libs/libdvdcss-1.2.10
24 >= media-libs/libvcdinfo-0.7.24
25 >= media-sound/libpulse-5.0
26 >= media-video/ffmpeg-2.4
27 >= x11-libs/libXext-1.3
28 >= x11-libs/libX11-1.6
29 >= x11-libs/libXv-1
30 >= x11-libs/libxcb-1.11
31 >= x11-libs/libvdpau-0.8"
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.xz"
41 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
42
43 sminclude mbuild
44
45 SRC_URI=(
46 sourceforge://xine/${SRCFILE}
47 mirror://${PNAME}/${SRCFILE}
48 mirror://${PNAME}/accel_vaapi.h
49 )
50
51 UP2DATE="updatecmd_sourceforge xine xine-lib xz"
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 cp ${SOURCEDIR}/${PNAME}/accel_vaapi.h ${SRCDIR}/src/xine-engine || die
64 }
65
66 src_compile()
67 {
68 cd ${SRCDIR}
69
70 # no arts support anymore -> using kde4-branch
71 local myconf
72 myconf+=" --disable-arts"
73 # no esound support anymore
74 myconf+=" --disable-esd"
75
76 mconfigure \
77 --disable-optimizations \
78 --with-external-dvdnav \
79 --with-w32-path=/usr/$(mlibdir)/win32 \
80 --with-xv-path=/usr/$(mlibdir) \
81 --x-includes=/usr/includes \
82 --x-libraries=/usr/$(mlibdir) \
83 --with-x \
84 --with-xcb \
85 --enable-x11 \
86 --enable-shm \
87 --enable-xft \
88 --enable-nls \
89 --enable-ogg \
90 --enable-vorbis \
91 --disable-ipv6 \
92 --disable-directfb \
93 --enable-alsa \
94 --enable-vcd \
95 --enable-vdpau \
96 --disable-sdltest \
97 --disable-aalib \
98 --disable-musepack \
99 ${myconf} \
100 || die
101
102 # does not like optimations > -j1
103 mmake -j1 || die
104 }