diff options
author | 2013-02-27 16:11:20 +0000 | |
---|---|---|
committer | 2013-02-27 16:11:20 +0000 | |
commit | 3c78df905296d4af8579e65616dcc210e4ce1e8f (patch) | |
tree | 479c61c9294188d647ac45c7c4cdf41f1e788303 /media-gfx/greycstoration | |
parent | old (diff) | |
download | gentoo-2-3c78df905296d4af8579e65616dcc210e4ce1e8f.tar.gz gentoo-2-3c78df905296d4af8579e65616dcc210e4ce1e8f.tar.bz2 gentoo-2-3c78df905296d4af8579e65616dcc210e4ce1e8f.zip |
media-gfx/greycstoration: Make heavily use of pkg-config
(Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key 70EB7916)
Diffstat (limited to 'media-gfx/greycstoration')
-rw-r--r-- | media-gfx/greycstoration/ChangeLog | 10 | ||||
-rw-r--r-- | media-gfx/greycstoration/greycstoration-2.9-r1.ebuild | 64 | ||||
-rw-r--r-- | media-gfx/greycstoration/metadata.xml | 8 |
3 files changed, 76 insertions, 6 deletions
diff --git a/media-gfx/greycstoration/ChangeLog b/media-gfx/greycstoration/ChangeLog index 68efcb4d4574..0a4d5baa2cd2 100644 --- a/media-gfx/greycstoration/ChangeLog +++ b/media-gfx/greycstoration/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-gfx/greycstoration -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/greycstoration/ChangeLog,v 1.8 2010/11/08 18:05:28 ssuominen Exp $ +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/greycstoration/ChangeLog,v 1.9 2013/02/27 16:11:20 jlec Exp $ + +*greycstoration-2.9-r1 (27 Feb 2013) + + 27 Feb 2013; Justin Lecher <jlec@gentoo.org> +greycstoration-2.9-r1.ebuild, + metadata.xml: + Make heavily use of pkg-config 08 Nov 2010; Samuli Suominen <ssuominen@gentoo.org> greycstoration-2.9.ebuild: diff --git a/media-gfx/greycstoration/greycstoration-2.9-r1.ebuild b/media-gfx/greycstoration/greycstoration-2.9-r1.ebuild new file mode 100644 index 000000000000..7c5631c48267 --- /dev/null +++ b/media-gfx/greycstoration/greycstoration-2.9-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/greycstoration/greycstoration-2.9-r1.ebuild,v 1.1 2013/02/27 16:11:20 jlec Exp $ + +EAPI=5 + +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" +IUSE="fftw imagemagick jpeg lapack png tiff" + +RDEPEND=" + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXrandr + fftw? ( >=sci-libs/fftw-3 ) + imagemagick? ( media-gfx/imagemagick ) + jpeg? ( virtual/jpeg ) + lapack? ( virtual/lapack ) + png? ( >=media-libs/libpng-1.4 ) + tiff? ( media-libs/tiff )" +DEPEND="${RDEPEND} + app-arch/unzip + fftw? ( virtual/pkgconfig ) + lapack? ( virtual/pkgconfig ) + png? ( virtual/pkgconfig )" + +S=${WORKDIR}/GREYCstoration-${PV}/src + +src_prepare() { + epatch "${FILESDIR}"/${P}-libpng14.patch + + sed -i \ + -e "s:../CImg.h:CImg.h:" \ + greycstoration.cpp || die +} + +src_compile() { + local myconf="-Dcimg_use_xshm -Dcimg_use_xrandr -lX11 -lXext -lXrandr" + + use png && myconf+=" -Dcimg_use_png $($(tc-getPKG_CONFIG) --libs libpng) -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 $($(tc-getPKG_CONFIG) --libs fftw3)" + use lapack && myconf+=" -Dcimg_use_lapack $($(tc-getPKG_CONFIG) --libs lapack)" + + _cmd="$(tc-getCXX) ${LDFLAGS} ${CXXFLAGS} -fno-tree-pre \ + -o greycstoration greycstoration.cpp \ + ${myconf} -lm -lpthread" + einfo "${_cmd}" + eval ${_cmd} || die +} + +src_install() { + dobin greycstoration +} diff --git a/media-gfx/greycstoration/metadata.xml b/media-gfx/greycstoration/metadata.xml index 5b12ed78d92e..5b78d475c43f 100644 --- a/media-gfx/greycstoration/metadata.xml +++ b/media-gfx/greycstoration/metadata.xml @@ -1,8 +1,8 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> -<maintainer> - <email>calchan@gentoo.org</email> - <name>Denis Dupeyron</name> -</maintainer> + <maintainer> + <email>calchan@gentoo.org</email> + <name>Denis Dupeyron</name> + </maintainer> </pkgmetadata> |