Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


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