Annotation of /trunk/extras/xine-lib/xine-lib-1.1.15-r1.smage2
Parent Directory | Revision Log
Revision 2 -
(hide annotations)
(download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 2612 byte(s)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 2612 byte(s)
import repo
1 | niro | 2 | # $Header: /magellan-cvs/smage/xine-lib/xine-lib-1.1.15-r1.smage2,v 1.1 2008/08/17 09:36:42 niro Exp $ |
2 | |||
3 | PNAME="xine-lib" | ||
4 | PVER="1.1.15" | ||
5 | PBUILD="r1" | ||
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.1.3 | ||
19 | >= media-libs/alsa-lib-1.0.16 | ||
20 | >= media-libs/libdvdcss-1.2.9 | ||
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.38 | ||
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 | # small fix for sse2 support and gcc-3.3 | ||
47 | CFLAGS="${CFLAGS} -mno-sse2" | ||
48 | |||
49 | # fixes artifacts when playing a movie (-O3 uses -fweb), only >=gcc-3.4 | ||
50 | CFLAGS="${CFLAGS} -fno-web" | ||
51 | |||
52 | # fixes some compile errors, only >= gcc-3.4 | ||
53 | CFLAGS="${CFLAGS} -funit-at-a-time" | ||
54 | |||
55 | CXXFLAGS="${CFLAGS}" | ||
56 | |||
57 | src_prepare() | ||
58 | { | ||
59 | # check for older versions | ||
60 | [[ -e /usr/$(mlibdir)/libxine.so ]] && die "Uninstall *all* old versions of ${PNAME} first ..." | ||
61 | |||
62 | # force libdvdcss support; break build when the lib is not found | ||
63 | # as the configure script has no check | ||
64 | [[ ! -e /usr/$(mlibdir)/libdvdcss.so ]] && die "Install libdvdcss first ..." | ||
65 | |||
66 | munpack ${SRCFILE} || die | ||
67 | cd ${SRCDIR} | ||
68 | |||
69 | # fixes compilation errors when using -fpic | ||
70 | mpatch ${PNAME}-1.1.4-pic.patch || die | ||
71 | |||
72 | # libtoolize it or the linking will fail (1.0.2 only?) | ||
73 | mlibtoolize || die | ||
74 | |||
75 | # rebuild makefiles | ||
76 | autoreconf --install --force || die | ||
77 | } | ||
78 | |||
79 | src_compile() | ||
80 | { | ||
81 | cd ${SRCDIR} | ||
82 | |||
83 | # no arts support anymore -> using kde4-branch | ||
84 | local myconf | ||
85 | myconf="${myconf} --disable-arts" | ||
86 | |||
87 | mconfigure \ | ||
88 | --with-included-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-esd \ | ||
107 | ${myconf} \ | ||
108 | || die | ||
109 | |||
110 | # does not like optimations > -j1 | ||
111 | mmake -j1 || die | ||
112 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |