summaryrefslogtreecommitdiff
blob: dc76928b61e135ab824e7f99a307a65738d99fa4 (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
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Your Name <your email>
# $Header: /var/cvsroot/gentoo-x86/media-libs/ming/ming-0.1.1.ebuild,v 1.2 2001/07/05 00:41:19 achim Exp $

A=${P}.tgz
S=${WORKDIR}/${P}
DESCRIPTION="A OpenSource library from flash movie generation"
SRC_URI="http://www.opaque.net/ming/${A}"
HOMEPAGE="http://www.opaque.net/ming/"

DEPEND="virtual/glibc"
src_unpack() {
  unpack ${A}
  cd ${S}/util
  patch -p0 < ${FILESDIR}/${PF}-gentoo.diff
}

src_compile() {

    try make
    try make static
    cd util
    try make bindump hexdump listswf listfdb listmp3 listjpeg makefdb swftophp
#    cd ${S}/php_ext
#    try make php_ming.so
}

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
}