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

EAPI="2"

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="~x86"
IUSE=""

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

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

	scons \
		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* || die "doins failed"

	insinto /usr/include
	doins Framewave/build/include/* || die "doins failed"
}