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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu Mar 1 22:08:59 2012 UTC (8 years, 4 months ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Remove old.

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

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/gmic/gmic-1.5.0.8.ebuild,v 1.2 2011/12/31 22:31:19 radhermit Exp $
4
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-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}"/${PN}-1.5.0.7-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 use X || { sed -i -r -e "s/^((X11|XSHM)_(C|LD)FLAGS =).*/\1/" Makefile || die ; }
50 }
51
52 src_compile() {
53 emake AR="$(tc-getAR)" CC="$(tc-getCXX)" custom bashcompletion lib
54 }
55
56 src_install() {
57 dobin gmic
58 newlib.so libgmic.so libgmic.so.1
59 insinto /usr/include
60 doins gmic.h
61 doman ../man/gmic.1.gz
62 dodoc ../{AUTHORS,README}
63 newbashcomp gmic_bashcompletion.sh ${PN}
64 }

  ViewVC Help
Powered by ViewVC 1.1.20