Contents of /trunk/core/xine-lib/xine-lib-1.1.19-r5.smage2
Parent Directory | Revision Log
Revision 10583 -
(show annotations)
(download)
Wed Jan 25 22:31:06 2012 UTC (12 years, 8 months ago) by niro
File size: 2860 byte(s)
Wed Jan 25 22:31:06 2012 UTC (12 years, 8 months ago) by niro
File size: 2860 byte(s)
auto added: ver bump to 1.1.19-r5
1 | # $Id$ |
2 | |
3 | PNAME="xine-lib" |
4 | PVER="1.1.19" |
5 | PBUILD="r5" |
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-libs/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 | mirror://${PNAME}/${PNAME}-${PVER}-xvmc.patch |
45 | mirror://${PNAME}/${PNAME}-${PVER}-ffmpeg.patch |
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 | cd ${SRCDIR} |
72 | |
73 | # fixes compilation errors when using -fpic |
74 | mpatch ${PNAME}-1.1.4-pic.patch || die |
75 | |
76 | # fix compilation against newer videoproto |
77 | mpatch ${PNAME}-${PVER}-xvmc.patch || die |
78 | |
79 | # fix compilation against newer ffmpeg |
80 | mpatch ${PNAME}-${PVER}-ffmpeg.patch || die |
81 | |
82 | # libtoolize it or the linking will fail (1.0.2 only?) |
83 | mlibtoolize || die |
84 | |
85 | # rebuild makefiles |
86 | mautoreconf || die |
87 | } |
88 | |
89 | src_compile() |
90 | { |
91 | cd ${SRCDIR} |
92 | |
93 | # no arts support anymore -> using kde4-branch |
94 | local myconf |
95 | myconf+=" --disable-arts" |
96 | # no esound support anymore |
97 | myconf+=" --disable-esd" |
98 | |
99 | mconfigure \ |
100 | --with-included-dvdnav \ |
101 | --disable-aalib \ |
102 | --with-w32-path=/usr/$(mlibdir)/win32 \ |
103 | --with-xv-path=/usr/$(mlibdir) \ |
104 | --x-includes=/usr/includes \ |
105 | --x-libraries=/usr/$(mlibdir) \ |
106 | --disable-sdltest \ |
107 | --with-x \ |
108 | --with-xcb \ |
109 | --enable-x11 \ |
110 | --enable-shm \ |
111 | --enable-xft \ |
112 | --enable-nls \ |
113 | --enable-ogg \ |
114 | --enable-vorbis \ |
115 | --disable-ipv6 \ |
116 | --disable-directfb \ |
117 | --enable-alsa \ |
118 | ${myconf} \ |
119 | || die |
120 | |
121 | # does not like optimations > -j1 |
122 | mmake -j1 || die |
123 | } |