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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Sat Dec 31 22:32:36 2011 UTC (8 years, 7 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_alpha84/cvs/Linux x86_64)

1 radhermit 1.1 # Copyright 1999-2011 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.0.6.ebuild,v 1.1 2011/11/07 05:57:36 radhermit Exp $
4 radhermit 1.1
5     EAPI="4"
6    
7     inherit eutils toolchain-funcs bash-completion-r1
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 )
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_OPTS="-l" epatch "${FILESDIR}"/${PN}-1.5.0.4-makefile.patch
41    
42     for i in ffmpeg fftw jpeg opencv png tiff zlib ; do
43     use $i || { sed -i -r -e "s/^(${i}_(C|LD)FLAGS =).*/\1/I" Makefile || die ; }
44     done
45    
46     use graphicsmagick || { sed -i -r -e "s/^(MAGICK_(C|LD)FLAGS =).*/\1/" Makefile || die ; }
47     use openexr || { sed -i -r -e "s/^(EXR_(C|LD)FLAGS =).*/\1/" Makefile || die ; }
48     use X || { sed -i -r -e "s/^((X11|XSHM)_(C|LD)FLAGS =).*/\1/" Makefile || die ; }
49     }
50    
51     src_compile() {
52     emake AR="$(tc-getAR)" CC="$(tc-getCXX)" custom bashcompletion lib
53     }
54    
55     src_install() {
56     dobin gmic
57     newlib.so libgmic.so libgmic.so.1
58     insinto /usr/include
59     doins gmic.h
60     doman ../man/gmic.1.gz
61     dodoc ../{AUTHORS,README}
62     newbashcomp gmic_bashcompletion.sh ${PN}
63     }

  ViewVC Help
Powered by ViewVC 1.1.20