diff options
Diffstat (limited to 'media-video/flvstreamer/flvstreamer-2.1c.ebuild')
-rw-r--r-- | media-video/flvstreamer/flvstreamer-2.1c.ebuild | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/media-video/flvstreamer/flvstreamer-2.1c.ebuild b/media-video/flvstreamer/flvstreamer-2.1c.ebuild new file mode 100644 index 000000000000..5ab993eb0bb0 --- /dev/null +++ b/media-video/flvstreamer/flvstreamer-2.1c.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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="mirror://nongnu/${PN}/source/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="" +S="${WORKDIR}/${PN}" + +src_prepare() { + #fix Makefile ( bug #298535 and bug #318353) + sed -i 's/\$(MAKEFLAGS)//g' Makefile \ + || die "failed to fixe Makefile" +} + +src_compile() { + emake CC="$(tc-getCC)" \ + CXX="$(tc-getCXX)" \ + CFLAGS="${CFLAGS} `sed -n 's/DEF=\(.*\)/\1/p' Makefile`" \ + CXXFLAGS="${CXXFLAGS}" \ + LDFLAGS="${LDFLAGS}" linux +} + +src_install() { + dobin {${PN},streams} || die "dobin failed" + dodoc README ChangeLog || die "dodoc failed" +} |