/[gentoo-x86]/media-gfx/gmic/gmic-1.5.1.6.ebuild
Gentoo

Contents of /media-gfx/gmic/gmic-1.5.1.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Fri Aug 17 04:54:15 2012 UTC (7 years, 11 months ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Remove old.

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

1 radhermit 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 radhermit 1.2 # $Header: /var/cvsroot/gentoo-x86/media-gfx/gmic/gmic-1.5.1.6.ebuild,v 1.1 2012/06/21 21:05:23 radhermit Exp $
4 radhermit 1.1
5     EAPI="4"
6    
7     inherit eutils toolchain-funcs bash-completion-r1 flag-o-matic
8    
9     DESCRIPTION="GREYC's Magic Image Converter"
10     HOMEPAGE="http://gmic.sourceforge.net/"
11     SRC_URI="mirror://sourceforge/${PN}/${PN}_${PV}.tar.gz"
12    
13     LICENSE="CeCILL-2"
14     SLOT="0"
15     KEYWORDS="~amd64 ~x86"
16     IUSE="ffmpeg fftw graphicsmagick jpeg opencv openexr png tiff X zlib"
17    
18     RDEPEND="
19     ffmpeg? ( virtual/ffmpeg )
20     fftw? ( sci-libs/fftw:3.0 )
21     graphicsmagick? ( media-gfx/graphicsmagick )
22     jpeg? ( virtual/jpeg )
23     opencv? ( >=media-libs/opencv-2.3.1a-r1 )
24     openexr? (
25     media-libs/ilmbase
26     media-libs/openexr
27     )
28     png? ( media-libs/libpng )
29     tiff? ( media-libs/tiff )
30     X? (
31     x11-libs/libX11
32     x11-libs/libXext
33     )
34     zlib? ( sys-libs/zlib )"
35     DEPEND="${RDEPEND}"
36    
37     S=${WORKDIR}/${P}/src
38    
39     src_prepare() {
40     epatch "${FILESDIR}"/${P}-makefile.patch
41     epatch "${FILESDIR}"/${PN}-1.5.0.7-ffmpeg.patch
42    
43     for i in ffmpeg fftw jpeg opencv png tiff zlib ; do
44     use $i || { sed -i -r -e "s/^(${i}_(C|LD)FLAGS =).*/\1/I" Makefile || die ; }
45     done
46    
47     use graphicsmagick || { sed -i -r -e "s/^(MAGICK_(C|LD)FLAGS =).*/\1/" Makefile || die ; }
48     use openexr || { sed -i -r -e "s/^(EXR_(C|LD)FLAGS =).*/\1/" Makefile || die ; }
49    
50     if ! use X ; then
51     sed -i -r -e "s/^((X11|XSHM)_(C|LD)FLAGS =).*/\1/" Makefile || die
52    
53     # Disable display capabilities when X support is disabled
54     append-cppflags -Dcimg_display=0
55     fi
56     }
57    
58     src_compile() {
59     emake AR="$(tc-getAR)" CC="$(tc-getCXX)" custom bashcompletion lib
60     }
61    
62     src_install() {
63     dobin gmic
64     newlib.so libgmic.so libgmic.so.1
65    
66     insinto /usr/include
67     doins gmic.h
68    
69     doman ../man/gmic.1.gz
70     dodoc ../README
71    
72     newbashcomp gmic_bashcompletion.sh ${PN}
73     }

  ViewVC Help
Powered by ViewVC 1.1.20