/[gentoo-x86]/media-gfx/greycstoration/greycstoration-2.9.ebuild
Gentoo

Contents of /media-gfx/greycstoration/greycstoration-2.9.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Mon Nov 8 18:05:28 2010 UTC (4 years, 7 months ago) by ssuominen
Branch: MAIN
Changes since 1.3: +3 -3 lines
Use virtual/jpeg wrt #327487.

(Portage version: 2.2.0_alpha4/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/greycstoration/greycstoration-2.9.ebuild,v 1.3 2010/08/05 19:39:59 ssuominen Exp $
4
5 EAPI=2
6 inherit eutils toolchain-funcs
7
8 DESCRIPTION="Image regularization algorithm for denoising, inpainting and resizing"
9 HOMEPAGE="http://www.greyc.ensicaen.fr/~dtschump/greycstoration/"
10 SRC_URI="mirror://sourceforge/cimg/GREYCstoration-${PV}.zip"
11
12 LICENSE="CeCILL-2"
13 SLOT="0"
14 KEYWORDS="~amd64 ~x86"
15 IUSE="fftw imagemagick jpeg lapack png tiff"
16
17 RDEPEND="fftw? ( >=sci-libs/fftw-3 )
18 imagemagick? ( media-gfx/imagemagick )
19 jpeg? ( virtual/jpeg )
20 lapack? ( virtual/lapack )
21 png? ( >=media-libs/libpng-1.4 )
22 tiff? ( media-libs/tiff )
23 x11-libs/libX11
24 x11-libs/libXext
25 x11-libs/libXrandr"
26 DEPEND="${RDEPEND}
27 app-arch/unzip"
28
29 S=${WORKDIR}/GREYCstoration-${PV}/src
30
31 src_prepare() {
32 epatch "${FILESDIR}"/${P}-libpng14.patch
33
34 sed -i \
35 -e "s:../CImg.h:CImg.h:" \
36 greycstoration.cpp || die
37 }
38
39 src_compile() {
40 local myconf="-Dcimg_use_xshm -Dcimg_use_xrandr -lX11 -lXext -lXrandr"
41
42 use png && myconf+=" -Dcimg_use_png -lpng -lz"
43 use jpeg && myconf+=" -Dcimg_use_jpeg -ljpeg"
44 use tiff && myconf+=" -Dcimg_use_tiff -ltiff"
45 use imagemagick && myconf+=" -Dcimg_use_magick $(Magick++-config --cppflags)
46 $(Magick++-config --libs)"
47 use fftw && myconf+=" -Dcimg_use_fftw3 -lfftw3"
48 use lapack && myconf+=" -Dcimg_use_lapack -llapack"
49
50 $(tc-getCXX) ${LDFLAGS} ${CXXFLAGS} -fno-tree-pre \
51 -o greycstoration greycstoration.cpp \
52 ${myconf} -lm -lpthread || die
53 }
54
55 src_install() {
56 dobin greycstoration || die
57 }

  ViewVC Help
Powered by ViewVC 1.1.20