Magellan Linux

Contents of /trunk/core/xine-lib/xine-lib-1.1.16.3-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3554 - (show annotations) (download)
Mon Oct 26 12:51:09 2009 UTC (14 years, 7 months ago) by niro
File size: 2580 byte(s)
auto added: ver bump to 1.1.16.3-r2
1 # $Id$
2
3 PNAME="xine-lib"
4 PVER="1.1.16.3"
5 PBUILD="r2"
6
7 PCATEGORIE="media-libs"
8 STATE="unstable"
9
10 DESCRIPTION="xine-lib is the xine core engine, it is needed for all frontends and applications that use xine."
11 HOMEPAGE="http://xine.sourceforge.net/"
12
13 DEPEND=">= virtual/glibc
14 >= media-libs/libvorbis-1.2
15 >= media-libs/mplayer-codecs-2007
16 >= media-libs/flac-1.2
17 >= media-libs/libfame-0.9.1
18 >= media-libs/xvid-1.2.2
19 >= media-libs/alsa-lib-1.0.21
20 >= media-libs/libdvdcss-1.2.10
21 >= x11-libs/libXext-1
22 >= x11-libs/libX11-1
23 >= x11-libs/libXv-1
24 >= x11-libs/libxcb-1"
25
26 SDEPEND=">= dev-util/pkgconfig-0.23
27 >= media-sound/esound-0.2.41
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
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 '${PNAME} (xine core)'"
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 autoreconf --install --force || die
79 }
80
81 src_compile()
82 {
83 cd ${SRCDIR}
84
85 # no arts support anymore -> using kde4-branch
86 local myconf
87 myconf="${myconf} --disable-arts"
88
89 mconfigure \
90 --with-included-dvdnav \
91 --disable-aalib \
92 --with-w32-path=/usr/$(mlibdir)/win32 \
93 --with-xv-path=/usr/$(mlibdir) \
94 --x-includes=/usr/includes \
95 --x-libraries=/usr/$(mlibdir) \
96 --disable-sdltest \
97 --with-x \
98 --with-xcb \
99 --enable-x11 \
100 --enable-shm \
101 --enable-xft \
102 --enable-nls \
103 --enable-ogg \
104 --enable-vorbis \
105 --disable-ipv6 \
106 --disable-directfb \
107 --enable-alsa \
108 --enable-esd \
109 ${myconf} \
110 || die
111
112 # does not like optimations > -j1
113 mmake -j1 || die
114 }

Properties

Name Value
svn:keywords Id