blob: 37207c9ee0b724a6890e71c0cc95a85b29e8b09f (
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.10 2003/09/06 23:59:48 msterret 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
}
|