summaryrefslogtreecommitdiff
blob: 2d671354908687c941c537b46de31dbf400c9d1d (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils flag-o-matic toolchain-funcs

DESCRIPTION="Forword error correction libs"
HOMEPAGE="http://www.onionnetworks.com/developers/"
SRC_URI="http://dev.gentooexperimental.org/~tommy/distfiles/${P}.zip"

LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

RDEPEND=""
DEPEND="virtual/jdk
	app-arch/unzip
	!net-p2p/fec"
S=${WORKDIR}/${P}/src/csrc/

src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${FILESDIR}"/Makefile.patch
}

src_compile() {
	append-flags -fPIC
	tc-export CC
	emake || die
}

src_install() {
	into /opt/freenet
	dolib.so ../../lib/fec-linux-x86/lib/linux/x86/libfec{8,16}.so
}