blob: 5244bae16d5d1a8b0590362bf9db5814b4b07807 (
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
|
# Copyright 1999-2000 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-libs/avifile/avifile-0.47.3.ebuild,v 1.2 2000/10/05 20:45:06 achim Exp $
A="${P}.tar.gz binaries.zip"
S=${WORKDIR}/${P}
DESCRIPTION="Library for AVI-Files"
SRC_URI="http://divx.euro.ru/${P}.tar.gz
http://divx.euro.ru/binaries.zip"
HOMEPAGE="http://divx.euro.ru/"
src_unpack () {
WIN32=/usr/libexec/avifile/win32
unpack ${P}.tar.gz
cd ${S}
cp configure configure.orig
sed -e "s:/usr/lib/win32:$WIN32:" configure.orig > configure
cd ${S}/lib/loader
cp elfdll.c elfdll.c.orig
sed -e "s:/usr/lib/win32:$WIN32:" elfdll.c.orig > elfdll.c
cd ../audiodecoder
cp audiodecoder.cpp audiodecoder.cpp.orig
sed -e "s:/usr/lib/win32:$WIN32:" audiodecoder.cpp.orig > audiodecoder.cpp
cd ${S}/player
cp mywidget.cpp mywidget.cpp.orig
sed -e "s:/usr/lib/win32:$WIN32:" mywidget.cpp.orig > mywidget.cpp
cp ${FILESDIR}/capproc.cpp ${S}/samples/qtvidcap
}
src_compile() {
cd ${S}
try ./configure --prefix=/usr/X11R6 --host=${CHOST}
cp Makefile Makefile.orig
sed -e "s:/usr/libexec/avifile/win32:${D}/usr/libexec/avifile/win32:" \
Makefile.orig > Makefile
try make
cd xmps-avi-plugin
try make
}
src_install () {
cd ${S}
dodir /usr/X11R6/lib /usr/X11R6/bin
dodir /usr/libexec/avifile/win32
make prefix=${D}/usr/X11R6 install
cd xmps-avi-plugin
insinto /usr/X11R6/lib/xmps/Codecs
insopts -m755
doins libavi.so
cd ${D}/usr/libexec/avifile/win32
unzip ${DISTDIR}/binaries.zip
cd ${S}
dodoc COPYING README
cd doc
dodoc CREDITS EXCEPTIONS FreeBSD LICENSING TODO
dodoc VIDEO-PERFORMANCE WARNINGS
}
|