aboutsummaryrefslogtreecommitdiff
blob: 43a5bef2960c440956058fa28e8af098a5dcf437 (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
43
44
45
46
47
48
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

inherit scons-utils

MY_P="FRAMEWAVE_${PV}_SRC"

DESCRIPTION="A collection of popular image and signal processing routines"
HOMEPAGE="http://framewave.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND=""
DEPEND="dev-util/scons"

S="${WORKDIR}/${MY_P}"

src_prepare() {
	sed -e "s#\(-install_name /usr\)/local/lib/\${BITNESS}#\1#" \
		-i BuildTools/buildscripts/fwflags_gcc.py || die "sed failed"
}

src_compile() {
	cd Framewave || die

	local bits="32"
	use amd64 && bits="64"

	escons \
		CCFLAGS="${CFLAGS}" bitness="${bits}" variant="release" \
		libtype="shared" ${MAKEOPTS}|| die "make failed"
}

src_install() {
	local bits="32"
	use amd64 && bits="64"

	dolib.so Framewave/build/bin/release_shared_${bits}/*.so*

	doheader Framewave/build/include/*
}