Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 28958 - (show annotations) (download)
Mon May 15 13:16:39 2017 UTC (7 years, 1 month ago) by niro
File size: 2513 byte(s)
auto added: ver bump to 1.2.8-r1
1 # $Id$
2
3 PNAME="xine-lib"
4 PVER="1.2.8"
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-5.0
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.1
23 >= media-libs/libdvdcss-1.4
24 >= media-libs/libdvdread-5.0
25 >= media-libs/libdvdnav-5.0
26 >= media-libs/libvcdinfo-0.7.24
27 >= media-libs/wavpack-5.1
28 >= media-sound/libpulse-10
29 >= media-video/ffmpeg-3.3
30 >= x11-libs/libXext-1.3
31 >= x11-libs/libX11-1.6
32 >= x11-libs/libXv-1
33 >= x11-libs/libxcb-1.11
34 >= x11-libs/libvdpau-1.1"
35
36 SDEPEND=">= dev-util/pkgconfig-0.25
37 >= x11-libs/libXt-1
38 >= x11-proto/xextproto-7
39 >= x11-proto/xproto-2
40 >= x11-proto/videoproto-2.3.1
41 >= x11-proto/xf86vidmodeproto-2"
42
43 SRCFILE="${PNAME}-${PVER}.tar.xz"
44 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
45
46 sminclude mbuild
47
48 SRC_URI=(
49 sourceforge://xine/${SRCFILE}
50 mirror://${PNAME}/${SRCFILE}
51 mirror://${PNAME}/accel_vaapi.h
52 )
53
54 UP2DATE="updatecmd_sourceforge xine xine-lib xz"
55
56 src_prepare()
57 {
58 # check for older versions
59 [[ -e /usr/$(mlibdir)/libxine.so ]] && die "Uninstall *all* old versions of ${PNAME} first ..."
60
61 # force libdvdcss support; break build when the lib is not found
62 # as the configure script has no check
63 [[ ! -e /usr/$(mlibdir)/libdvdcss.so ]] && die "Install libdvdcss first ..."
64
65 munpack ${SRCFILE} || die
66 cp ${SOURCEDIR}/${PNAME}/accel_vaapi.h ${SRCDIR}/src/xine-engine || 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 --enable-external-dvdnav \
100 --disable-sdltest \
101 --disable-aalib \
102 --disable-musepack \
103 --with-wavpack \
104 ${myconf} \
105 || die
106
107 # does not like optimations > -j1
108 mmake -j1 || die
109 }