Contents of /branches/magellan-next/core/xine-lib/xine-lib-1.1.19-r2.smage2
Parent Directory | Revision Log
Revision 8548 -
(show annotations)
(download)
Thu Jul 21 22:46:55 2011 UTC (12 years, 11 months ago) by niro
File size: 2690 byte(s)
Thu Jul 21 22:46:55 2011 UTC (12 years, 11 months ago) by niro
File size: 2690 byte(s)
auto added: ver bump to 1.1.19-r2
1 | # $Id$ |
2 | |
3 | PNAME="xine-lib" |
4 | PVER="1.1.19" |
5 | PBUILD="r2" |
6 | |
7 | PCATEGORIE="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 | >= x11-libs/libXext-1.3 |
21 | >= x11-libs/libX11-1.4 |
22 | >= x11-libs/libXv-1 |
23 | >= x11-libs/libxcb-1.7" |
24 | |
25 | SDEPEND=">= dev-util/pkgconfig-0.25 |
26 | >= x11-base/xorg-server-1 |
27 | >= x11-libs/libXt-1 |
28 | >= x11-proto/xextproto-7 |
29 | >= x11-proto/xproto-2 |
30 | >= x11-proto/videoproto-2.3.1 |
31 | >= x11-proto/xf86vidmodeproto-2" |
32 | |
33 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
34 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
35 | |
36 | sminclude mbuild |
37 | |
38 | SRC_URI=( |
39 | sourceforge://xine/${SRCFILE} |
40 | mirror://${PNAME}/${SRCFILE} |
41 | mirror://${PNAME}/${PNAME}-1.1.4-pic.patch |
42 | mirror://${PNAME}/${PNAME}-${PVER}-xvmc.patch |
43 | ) |
44 | |
45 | UP2DATE="updatecmd_sourceforge xine xine-lib" |
46 | |
47 | # small fix for sse2 support and gcc-3.3 |
48 | CFLAGS="${CFLAGS} -mno-sse2" |
49 | |
50 | # fixes artifacts when playing a movie (-O3 uses -fweb), only >=gcc-3.4 |
51 | CFLAGS="${CFLAGS} -fno-web" |
52 | |
53 | # fixes some compile errors, only >= gcc-3.4 |
54 | CFLAGS="${CFLAGS} -funit-at-a-time" |
55 | |
56 | CXXFLAGS="${CFLAGS}" |
57 | |
58 | src_prepare() |
59 | { |
60 | # check for older versions |
61 | [[ -e /usr/$(mlibdir)/libxine.so ]] && die "Uninstall *all* old versions of ${PNAME} first ..." |
62 | |
63 | # force libdvdcss support; break build when the lib is not found |
64 | # as the configure script has no check |
65 | [[ ! -e /usr/$(mlibdir)/libdvdcss.so ]] && die "Install libdvdcss first ..." |
66 | |
67 | munpack ${SRCFILE} || die |
68 | cd ${SRCDIR} |
69 | |
70 | # fixes compilation errors when using -fpic |
71 | mpatch ${PNAME}-1.1.4-pic.patch || die |
72 | |
73 | # fix compilation against newer videoproto |
74 | mpatch ${PNAME}-${PVER}-xvmc.patch || die |
75 | |
76 | # libtoolize it or the linking will fail (1.0.2 only?) |
77 | mlibtoolize || die |
78 | |
79 | # rebuild makefiles |
80 | autoreconf --install --force || die |
81 | } |
82 | |
83 | src_compile() |
84 | { |
85 | cd ${SRCDIR} |
86 | |
87 | # no arts support anymore -> using kde4-branch |
88 | local myconf |
89 | myconf+=" --disable-arts" |
90 | # no esound support anymore |
91 | myconf+=" --disable-esd" |
92 | |
93 | mconfigure \ |
94 | --with-included-dvdnav \ |
95 | --disable-aalib \ |
96 | --with-w32-path=/usr/$(mlibdir)/win32 \ |
97 | --with-xv-path=/usr/$(mlibdir) \ |
98 | --x-includes=/usr/includes \ |
99 | --x-libraries=/usr/$(mlibdir) \ |
100 | --disable-sdltest \ |
101 | --with-x \ |
102 | --with-xcb \ |
103 | --enable-x11 \ |
104 | --enable-shm \ |
105 | --enable-xft \ |
106 | --enable-nls \ |
107 | --enable-ogg \ |
108 | --enable-vorbis \ |
109 | --disable-ipv6 \ |
110 | --disable-directfb \ |
111 | --enable-alsa \ |
112 | ${myconf} \ |
113 | || die |
114 | |
115 | # does not like optimations > -j1 |
116 | mmake -j1 || die |
117 | } |