Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11660 - (show annotations) (download)
Wed Mar 14 10:19:50 2012 UTC (12 years, 6 months ago) by niro
File size: 2471 byte(s)
-disabled vcd support
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/libfame-0.9.1
19 >= media-libs/xvid-1.3
20 >= media-libs/alsa-lib-1.0.24
21 >= media-libs/libdvdcss-1.2.10
22 >= media-sound/libpulse-1.1
23 >= media-video/ffmpeg-201107
24 >= x11-libs/libXext-1.3
25 >= x11-libs/libX11-1.4
26 >= x11-libs/libXv-1
27 >= x11-libs/libxcb-1.7
28 >= x11-libs/libvdpau-0.4"
29
30 SDEPEND=">= dev-util/pkgconfig-0.25
31 >= x11-base/xorg-server-1
32 >= x11-libs/libXt-1
33 >= x11-proto/xextproto-7
34 >= x11-proto/xproto-2
35 >= x11-proto/videoproto-2.3.1
36 >= x11-proto/xf86vidmodeproto-2"
37
38 SRCFILE="${PNAME}-${PVER}.tar.bz2"
39 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
40
41 sminclude mbuild
42
43 SRC_URI=(
44 sourceforge://xine/${SRCFILE}
45 mirror://${PNAME}/${SRCFILE}
46 )
47
48 UP2DATE="updatecmd_sourceforge xine xine-lib"
49
50 # small fix for sse2 support and gcc-3.3
51 CFLAGS="${CFLAGS} -mno-sse2"
52
53 # fixes artifacts when playing a movie (-O3 uses -fweb), only >=gcc-3.4
54 CFLAGS="${CFLAGS} -fno-web"
55
56 # fixes some compile errors, only >= gcc-3.4
57 CFLAGS="${CFLAGS} -funit-at-a-time"
58
59 CXXFLAGS="${CFLAGS}"
60
61 src_prepare()
62 {
63 # check for older versions
64 [[ -e /usr/$(mlibdir)/libxine.so ]] && die "Uninstall *all* old versions of ${PNAME} first ..."
65
66 # force libdvdcss support; break build when the lib is not found
67 # as the configure script has no check
68 [[ ! -e /usr/$(mlibdir)/libdvdcss.so ]] && die "Install libdvdcss first ..."
69
70 munpack ${SRCFILE} || die
71 }
72
73 src_compile()
74 {
75 cd ${SRCDIR}
76
77 # no arts support anymore -> using kde4-branch
78 local myconf
79 myconf+=" --disable-arts"
80 # no esound support anymore
81 myconf+=" --disable-esd"
82
83 mconfigure \
84 --disable-optimizations \
85 --with-external-dvdnav
86 --disable-aalib \
87 --with-w32-path=/usr/$(mlibdir)/win32 \
88 --with-xv-path=/usr/$(mlibdir) \
89 --x-includes=/usr/includes \
90 --x-libraries=/usr/$(mlibdir) \
91 --disable-sdltest \
92 --with-x \
93 --with-xcb \
94 --enable-x11 \
95 --enable-shm \
96 --enable-xft \
97 --enable-nls \
98 --enable-ogg \
99 --enable-vorbis \
100 --disable-ipv6 \
101 --disable-directfb \
102 --enable-alsa \
103 --disable-vcd \
104 --enable-vdpau \
105 ${myconf} \
106 || die
107
108 # does not like optimations > -j1
109 mmake -j1 || die
110 }