blob: 535c33c3f1506abd65b66d71d9768f740aa48ec5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author: Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/media-video/avifile/avifile-0.6.0.20011220-r2.ebuild,v 1.7 2002/04/30 09:49:50 seemant Exp $
MY_P=${P/.200/-200}
MY_S=${MY_P/avifile-/avifile}
MY_S=${MY_S/.0-200/-200}
S=${WORKDIR}/${MY_S}
DESCRIPTION="Library for AVI-Files"
SRC_URI="http://avifile.sourceforge.net/${MY_P}admin.tgz"
HOMEPAGE="http://divx.euro.ru/"
DEPEND="=media-libs/divx4linux-20011025*
media-libs/jpeg
media-libs/win32codecs
qt? ( x11-libs/qt )
nas? ( >=media-libs/nas-1.4.2 )
sdl? ( >=media-libs/libsdl-1.2.2 )
oggvorbis? ( media-libs/libvorbis )"
SLOT="0.6"
src_compile() {
local myconf
local kdepre
( use mmx || use sse || use 3dnow ) && myconf="--enable-x86opt"
#use sse && myconf="--enable-x86opt"
#use 3dnow && myconf="--enable-x86opt"
use qt \
&& myconf="${myconf} --with-qt-dir=${QTDIR}" \
|| myconf="${myconf} --disable-qt"
use kde \
&& myconf="${myconf} --enable-kde" \
|| myconf="${myconf} --disable-kde"
use sdl \
&& myconf="${myconf} --enable-sdl" \
|| myconf="${myconf} --disable-sdl --disable-sdltest"
use nas && LDFLAGS="-L/usr/X11R6/lib -lXt"
use oggvorbis \
&& myconf="${myconf} --enable-vorbis" \
|| myconf="${myconf} --disable-vorbis --disable-oggtest --disable-vorbistest"
use kde \
&& ( \
myconf="${myconf} --enable-kde" \
&& LDFLAGS="${LDFLAGS} -L${KDEDIR}/lib" \
&& myconf="${myconf} --with-extra-libraries=${KDEDIR}" \
) || (
myconf="${myconf} --disable-kde" \
&& LDFLAGS="${LDFLAGS}"
)
export CFLAGS=${CFLAGS/-O?/-O2}
export LDFLAGS
./configure --prefix=/usr \
--host=${CHOST} \
--enable-quiet \
--disable-tsc \
${myconf} || die
make || die
}
src_install () {
dodir /usr/lib /usr/bin
use avi && dodir /usr/lib/win32
make prefix=${D}/usr install || die
cd ${S}
dodoc COPYING README
cd doc
dodoc CREDITS EXCEPTIONS FreeBSD LICENSING TODO
dodoc VIDEO-PERFORMANCE WARNINGS
}
|