Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11649 - (show annotations) (download)
Tue Mar 13 22:07:38 2012 UTC (12 years, 6 months ago) by niro
File size: 2590 byte(s)
-removed deprecated patches
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 cd ${SRCDIR}
70
71 # fixes compilation errors when using -fpic
72 mpatch ${PNAME}-1.1.4-pic.patch || die
73
74 # libtoolize it or the linking will fail (1.0.2 only?)
75 mlibtoolize || die
76
77 # rebuild makefiles
78 mautoreconf || die
79 }
80
81 src_compile()
82 {
83 cd ${SRCDIR}
84
85 # no arts support anymore -> using kde4-branch
86 local myconf
87 myconf+=" --disable-arts"
88 # no esound support anymore
89 myconf+=" --disable-esd"
90
91 mconfigure \
92 --with-included-dvdnav \
93 --disable-aalib \
94 --with-w32-path=/usr/$(mlibdir)/win32 \
95 --with-xv-path=/usr/$(mlibdir) \
96 --x-includes=/usr/includes \
97 --x-libraries=/usr/$(mlibdir) \
98 --disable-sdltest \
99 --with-x \
100 --with-xcb \
101 --enable-x11 \
102 --enable-shm \
103 --enable-xft \
104 --enable-nls \
105 --enable-ogg \
106 --enable-vorbis \
107 --disable-ipv6 \
108 --disable-directfb \
109 --enable-alsa \
110 ${myconf} \
111 || die
112
113 # does not like optimations > -j1
114 mmake -j1 || die
115 }