blob: e28a6ee8b4684fd61b07338a8317a50831fd8f58 (
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
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/ming/ming-0.2a.ebuild,v 1.9 2003/08/14 19:20:13 tester Exp $
S=${WORKDIR}/${P}
DESCRIPTION="A OpenSource library from flash movie generation"
SRC_URI="http://www.opaque.net/ming/${PN}-${PV}.tgz"
HOMEPAGE="http://www.opaque.net/ming/"
SLOT="0"
LICENSE="LGPL-2.1"
KEYWORDS="x86 sparc hppa ppc amd64"
DEPEND="virtual/glibc"
src_unpack() {
unpack ${A}
cd ${S}/util
patch -p0 < ${FILESDIR}/${PF}-gentoo.diff || die
}
src_compile() {
[ "${ARCH}" = "hppa" ] && CFLAGS="${CFLAGS} -fPIC"
make CC="gcc -Wall" all static || die
cd util
make CC="gcc -Wall" bindump hexdump listswf listfdb listmp3 listjpeg makefdb swftophp \
|| die
}
src_install () {
dolib.so libming.so
dolib.a libming.a
insinto /usr/include
doins ming.h
exeinto /usr/lib/ming
doexe util/{bindump,hexdump,listswf,listfdb,listmp3,listjpeg,makefdb,swftophp}
dodoc CHANGES CREDITS LICENSE README TODO
newdoc util/README README.util
newdoc util/TODO TODO.util
}
|