blob: 8296c35a7e679fb9f69cdc4416006c66bdf29cf7 (
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/xanim-export/xanim-export-2.80.1-r3.ebuild,v 1.10 2004/04/27 21:04:26 agriffis Exp $
inherit flag-o-matic eutils
strip-flags -finline-functions
replace-flags -O3 -O2
_XA_CYUV_SPARC=xa1.0_cyuv_sparcELF.o
_XA_CVID_SPARC=xa2.0_cvid_sparcELF.o
_XA_IV32_SPARC=xa2.0_iv32_sparcELF.o
_XA_SPARC_EXT=.Z
_XA_CYUV_I386=xa1.0_cyuv_linuxELFg21.o
_XA_CVID_I386=xa2.0_cvid_linuxELFg21.o
_XA_IV32_I386=xa2.1_iv32_linuxELFg21.o
_XA_I386_EXT=.gz
_XA_CYUV_PPC=xa1.0_cyuv_linuxPPC.o
_XA_CVID_PPC=xa2.0_cvid_linuxPPC.o
_XA_IV32_PPC=xa2.0_iv32_linuxPPC.o
_XA_PPC_EXT=.Z
case $ARCH in
sparc)
_XA_CYUV=$_XA_CYUV_SPARC
_XA_CVID=$_XA_CVID_SPARC
_XA_IV32=$_XA_IV32_SPARC
_XA_EXT=$_XA_SPARC_EXT
_XA_UNCOMPRESS=uncompress
;;
ppc)
_XA_CYUV=$_XA_CYUV_PPC
_XA_CVID=$_XA_CVID_PPC
_XA_IV32=$_XA_IV32_PPC
_XA_EXT=$_XA_PPC_EXT
_XA_UNCOMPRESS=uncompress
;;
x86)
_XA_CYUV=$_XA_CYUV_I386
_XA_CVID=$_XA_CVID_I386
_XA_IV32=$_XA_IV32_I386
_XA_EXT=$_XA_I386_EXT
_XA_UNCOMPRESS=gunzip
;;
esac
DESCRIPTION="XAnim with Quicktime and RAW Audio export functions"
HOMEPAGE="http://heroin.linuxave.net/toys.html"
SRC_URI="http://heroine.linuxave.net/xanim_exporting_edition.tar.gz
sparc? (
ftp://xanim.va.pubnix.com/modules/${_XA_CYUV_SPARC}${_XA_SPARC_EXT}
ftp://xanim.va.pubnix.com/modules/${_XA_CVID_SPARC}${_XA_SPARC_EXT}
ftp://xanim.va.pubnix.com/modules/${_XA_IV32_SPARC}${_XA_SPARC_EXT}
)
ppc? (
ftp://xanim.va.pubnix.com/modules/${_XA_CYUV_PPC}${_XA_PPC_EXT}
ftp://xanim.va.pubnix.com/modules/${_XA_CVID_PPC}${_XA_PPC_EXT}
ftp://xanim.va.pubnix.com/modules/${_XA_IV32_PPC}${_XA_PPC_EXT}
)
x86? (
ftp://xanim.va.pubnix.com/modules/${_XA_CYUV_I386}${_XA_I386_EXT}
ftp://xanim.va.pubnix.com/modules/${_XA_CVID_I386}${_XA_I386_EXT}
ftp://xanim.va.pubnix.com/modules/${_XA_IV32_I386}${_XA_I386_EXT}
)"
LICENSE="XAnim"
SLOT="0"
KEYWORDS="x86 ppc sparc"
DEPEND=">=sys-libs/glibc-2.1.3
>=media-libs/jpeg-6b
>=media-libs/libpng-1.2.1
virtual/x11"
RDEPEND="app-arch/ncompress"
S=${WORKDIR}/xanim_exporting_edition
src_unpack() {
unpack xanim_exporting_edition.tar.gz
cd ${S}/mods
cp ${DISTDIR}/${_XA_CYUV}${_XA_EXT} .
$_XA_UNCOMPRESS ${_XA_CYUV}${_XA_EXT}
cp ${DISTDIR}/${_XA_CVID}${_XA_EXT} .
$_XA_UNCOMPRESS ${_XA_CVID}${_XA_EXT}
cp ${DISTDIR}/${_XA_IV32}${_XA_EXT} .
$_XA_UNCOMPRESS ${_XA_IV32}${_XA_EXT}
cd ${S}
rm xanim
epatch ${FILESDIR}/${PV}-makefile.patch
}
src_compile() {
cd ${S}/quicktime
make \
XA_IV32_LIB=mods/${_XA_CYUV} \
XA_CVID_LIB=mods/${_XA_CVID} \
XA_CYUV_LIB=mods/${_XA_IV32} \
|| die "make quicktime failed"
cd ..
make \
XA_IV32_LIB=mods/${_XA_CYUV} \
XA_CVID_LIB=mods/${_XA_CVID} \
XA_CYUV_LIB=mods/${_XA_IV32} \
OPTIMIZE="${CFLAGS}" \
|| die "main make failed"
}
src_install() {
newbin xanim xanim-export
insinto /usr/lib/xanim/mods-export
doins mods/*
dodoc README*
dodoc docs/README.* docs/*.readme docs/*.doc
}
|