blob: 5138431c3fb058c681908697704054ec7da2889b (
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
49
50
51
52
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/lensfun/lensfun-0.2.5-r1.ebuild,v 1.8 2011/06/01 19:47:11 ranger Exp $
EAPI=2
# PYTHON_BDEPEND="2"
inherit python
DESCRIPTION="lensfun: A library for rectifying and simulating photographic lens distortions"
HOMEPAGE="http://lensfun.berlios.de/"
SRC_URI="mirror://berlios/lensfun/${P}.tar.bz2"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ppc ~ppc64 ~sh ~sparc x86"
IUSE="debug doc"
RDEPEND="
>=dev-libs/glib-2.0
>=media-libs/libpng-1.0"
DEPEND="${RDEPEND}
=dev-lang/python-2*
doc? ( >=app-doc/doxygen-1.5.0 )"
pkg_setup() {
python_set_active_version 2
}
src_prepare() {
# disable stripping, remove ricer CFLAGS
sed -i \
-e 's:-s -O3 -fomit-frame-pointer -funroll-loops::g' \
-e 's:GCC.LDFLAGS.release = -s:GCC.LDFLAGS.release =:g' \
build/tibs/compiler/gcc.mak || die
}
src_configure() {
local myconf=""
use debug && myconf="--mode=debug"
# econf does NOT work
./configure --prefix=/usr --docdir="/usr/share/doc/${PF}" --vectorization= ${myconf} || die
}
src_compile() {
emake all V=1 || die
}
src_install() {
emake DESTDIR="${D}" install || die
# TODO remove docs if ! use doc
}
|