Initial commit, see bug #114577.
authorDenis Dupeyron <calchan@gentoo.org>
Mon, 25 Feb 2008 23:18:31 +0000 (23:18 +0000)
committerDenis Dupeyron <calchan@gentoo.org>
Mon, 25 Feb 2008 23:18:31 +0000 (23:18 +0000)
Package-Manager: portage-2.1.4.4

media-gfx/greycstoration/ChangeLog [new file with mode: 0644]
media-gfx/greycstoration/greycstoration-1.2.7.ebuild [new file with mode: 0644]
media-gfx/greycstoration/metadata.xml [new file with mode: 0644]

diff --git a/media-gfx/greycstoration/ChangeLog b/media-gfx/greycstoration/ChangeLog
new file mode 100644 (file)
index 0000000..99f695e
--- /dev/null
@@ -0,0 +1,10 @@
+# ChangeLog for media-gfx/greycstoration
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/greycstoration/ChangeLog,v 1.1 2008/02/25 23:18:31 calchan Exp $
+
+*greycstoration-1.2.7 (25 Feb 2008)
+
+  25 Feb 2008; Denis Dupeyron <calchan@gentoo.org> +metadata.xml,
+  +greycstoration-1.2.7.ebuild:
+  Initial commit, see bug #114577.
+
diff --git a/media-gfx/greycstoration/greycstoration-1.2.7.ebuild b/media-gfx/greycstoration/greycstoration-1.2.7.ebuild
new file mode 100644 (file)
index 0000000..1585c86
--- /dev/null
@@ -0,0 +1,47 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/greycstoration/greycstoration-1.2.7.ebuild,v 1.1 2008/02/25 23:18:31 calchan Exp $
+
+inherit toolchain-funcs
+
+DESCRIPTION="Image regularization algorithm for denoising, inpainting and resizing"
+HOMEPAGE="http://www.greyc.ensicaen.fr/~dtschump/greycstoration/"
+SRC_URI="mirror://sourceforge/cimg/CImg-${PV}.tar.gz"
+LICENSE="CeCILL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="fftw imagemagick jpeg lapack png tiff X"
+
+DEPEND="fftw? ( >=sci-libs/fftw-3 )
+       imagemagick? ( media-gfx/imagemagick )
+       jpeg? ( media-libs/jpeg )
+       lapack? ( virtual/lapack )
+       png? ( media-libs/libpng )
+       tiff? ( media-libs/tiff )
+       X? ( x11-libs/libX11
+               x11-libs/libXext
+               x11-libs/libXrandr )"
+
+S="${WORKDIR}/CImg-${PV}/examples"
+
+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} \
+               || die "Compilation failed"
+}
+
+src_install() {
+       dobin greycstoration
+}
diff --git a/media-gfx/greycstoration/metadata.xml b/media-gfx/greycstoration/metadata.xml
new file mode 100644 (file)
index 0000000..5b12ed7
--- /dev/null
@@ -0,0 +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>
+</pkgmetadata>