blob: da21e959f8c13f322b40f527e40e6c65384f7c88 (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/flvstreamer/flvstreamer-1.8i.ebuild,v 1.3 2009/10/29 11:16:31 fauli Exp $
EAPI="2"
inherit toolchain-funcs
DESCRIPTION="Open source command-line RTMP client intended to stream audio or video flash content"
HOMEPAGE="http://savannah.nongnu.org/projects/flvstreamer/"
SRC_URI="http://ftp.cc.uoc.gr/mirrors/nongnu.org/${PN}/source/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 x86"
IUSE=""
S="${WORKDIR}"/${PN}
src_compile() {
# remove _x86 string from Makefile since it works on amd64
sed -i "s/_x86//" Makefile || die "Failed to remove _x86 string"
for target in flvstreamer streams; do
emake CC=$(tc-getCC) CXX=$(tc-getCXX) CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \
LDFLAGS="${LDFLAGS}" ${target}
done
}
src_install() {
dobin {${PN},streams} || die "dobin failed"
dodoc README ChangeLog || die "dodoc failed"
}
|