diff options
Diffstat (limited to 'media-gfx/greycstoration/greycstoration-2.9.ebuild')
-rw-r--r-- | media-gfx/greycstoration/greycstoration-2.9.ebuild | 51 |
1 files changed, 28 insertions, 23 deletions
diff --git a/media-gfx/greycstoration/greycstoration-2.9.ebuild b/media-gfx/greycstoration/greycstoration-2.9.ebuild index 0e537639245a..2b1d621b464a 100644 --- a/media-gfx/greycstoration/greycstoration-2.9.ebuild +++ b/media-gfx/greycstoration/greycstoration-2.9.ebuild @@ -1,12 +1,14 @@ -# Copyright 1999-2008 Gentoo Foundation +# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/greycstoration/greycstoration-2.9.ebuild,v 1.1 2008/08/30 22:28:00 calchan Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/greycstoration/greycstoration-2.9.ebuild,v 1.2 2010/03/10 15:18:00 ssuominen Exp $ -inherit toolchain-funcs +EAPI=2 +inherit eutils toolchain-funcs DESCRIPTION="Image regularization algorithm for denoising, inpainting and resizing" HOMEPAGE="http://www.greyc.ensicaen.fr/~dtschump/greycstoration/" SRC_URI="mirror://sourceforge/cimg/GREYCstoration-${PV}.zip" + LICENSE="CeCILL-2" SLOT="0" KEYWORDS="~amd64 ~x86" @@ -24,31 +26,34 @@ RDEPEND="fftw? ( >=sci-libs/fftw-3 ) DEPEND="${RDEPEND} app-arch/unzip" -S="${WORKDIR}/GREYCstoration-${PV}/src" +S=${WORKDIR}/GREYCstoration-${PV}/src + +src_prepare() { + epatch "${FILESDIR}"/${P}-libpng14.patch -src_unpack() { - unpack ${A} - sed -i -e "s:../CImg.h:CImg.h:" "${S}"/greycstoration.cpp || die "sed failed" + sed -i \ + -e "s:../CImg.h:CImg.h:" \ + greycstoration.cpp || die } src_compile() { - local MY_CONF - - use X && MY_CONF+=" -lX11 -Dcimg_use_xshm -lXext -Dcimg_use_xrandr -lXrandr" - use png && MY_CONF+=" -Dcimg_use_png -lpng -lz" - use jpeg && MY_CONF+=" -Dcimg_use_jpeg -ljpeg" - use tiff && MY_CONF+=" -Dcimg_use_tiff -ltiff" - use imagemagick && MY_CONF+=" -Dcimg_use_magick $(Magick++-config --cppflags) \ - $(Magick++-config --ldflags) $(Magick++-config --libs)" - use fftw && MY_CONF+=" -Dcimg_use_fftw3 -lfftw3" - use lapack && MY_CONF+=" -Dcimg_use_lapack -llapack" - - $(tc-getCXX) -o greycstoration greycstoration.cpp \ - ${MY_CONF} -lm -lpthread \ - ${CXXFLAGS} ${LDFLAGS} -fno-tree-pre \ - || die "Compilation failed" + local myconf + + use X && myconf+=" -Dcimg_use_xshm -Dcimg_use_xrandr -lX11 -lXext -lXrandr" + use png && myconf+=" -Dcimg_use_png -lpng -lz" + use jpeg && myconf+=" -Dcimg_use_jpeg -ljpeg" + use tiff && myconf+=" -Dcimg_use_tiff -ltiff" + use imagemagick && myconf+=" -Dcimg_use_magick $(Magick++-config --cppflags) + $(Magick++-config --libs)" + use fftw && myconf+=" -Dcimg_use_fftw3 -lfftw3" + use lapack && myconf+=" -Dcimg_use_lapack -llapack" + + $(tc-getCXX) ${LDFLAGS} ${CXXFLAGS} -fno-tree-pre \ + -o greycstoration greycstoration.cpp \ + ${myconf} -lm -lpthread \ + || die } src_install() { - dobin greycstoration + dobin greycstoration || die } |