Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11650 - (show annotations) (download)
Tue Mar 13 22:08:39 2012 UTC (12 years, 3 months ago) by niro
File size: 2371 byte(s)
-dropped more deprecated cruft
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 >= 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-sound/libpulse-1.1
21 >= media-video/ffmpeg-201107
22 >= x11-libs/libXext-1.3
23 >= x11-libs/libX11-1.4
24 >= x11-libs/libXv-1
25 >= x11-libs/libxcb-1.7"
26
27 SDEPEND=">= dev-util/pkgconfig-0.25
28 >= x11-base/xorg-server-1
29 >= x11-libs/libXt-1
30 >= x11-proto/xextproto-7
31 >= x11-proto/xproto-2
32 >= x11-proto/videoproto-2.3.1
33 >= x11-proto/xf86vidmodeproto-2"
34
35 SRCFILE="${PNAME}-${PVER}.tar.bz2"
36 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
37
38 sminclude mbuild
39
40 SRC_URI=(
41 sourceforge://xine/${SRCFILE}
42 mirror://${PNAME}/${SRCFILE}
43 mirror://${PNAME}/${PNAME}-1.1.4-pic.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 }
70
71 src_compile()
72 {
73 cd ${SRCDIR}
74
75 # no arts support anymore -> using kde4-branch
76 local myconf
77 myconf+=" --disable-arts"
78 # no esound support anymore
79 myconf+=" --disable-esd"
80
81 mconfigure \
82 --with-included-dvdnav \
83 --disable-aalib \
84 --with-w32-path=/usr/$(mlibdir)/win32 \
85 --with-xv-path=/usr/$(mlibdir) \
86 --x-includes=/usr/includes \
87 --x-libraries=/usr/$(mlibdir) \
88 --disable-sdltest \
89 --with-x \
90 --with-xcb \
91 --enable-x11 \
92 --enable-shm \
93 --enable-xft \
94 --enable-nls \
95 --enable-ogg \
96 --enable-vorbis \
97 --disable-ipv6 \
98 --disable-directfb \
99 --enable-alsa \
100 ${myconf} \
101 || die
102
103 # does not like optimations > -j1
104 mmake -j1 || die
105 }