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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Jan 8 04:41:57 2015 UTC (5 years, 6 months ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)

1 # Copyright 1999-2014 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.8.6.ebuild,v 1.1 2014/04/25 05:35:03 radhermit Exp $
4
5 EAPI=5
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 FDL-1.3"
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[threads] )
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 cp "${FILESDIR}"/${PN}-1.5.8.4-makefile.patch "${T}"/${PN}-1.5.8.4-makefile.patch
41 edos2unix "${T}"/${PN}-1.5.8.4-makefile.patch
42
43 epatch "${T}"/${PN}-1.5.8.4-makefile.patch
44 epatch "${FILESDIR}"/${PN}-1.5.8.2-ffmpeg.patch
45
46 for i in ffmpeg fftw jpeg opencv png tiff zlib ; do
47 use $i || { sed -i -r "s/^(${i}_(C|LD)FLAGS =).*/\1/I" Makefile || die ; }
48 done
49
50 use graphicsmagick || { sed -i -r "s/^(MAGICK_(C|LD)FLAGS =).*/\1/" Makefile || die ; }
51 use openexr || { sed -i -r "s/^(EXR_(C|LD)FLAGS =).*/\1/" Makefile || die ; }
52
53 if ! use X ; then
54 sed -i -r "s/^((X11|XSHM)_(C|LD)FLAGS =).*/\1/" Makefile || die
55
56 # disable display capabilities when X support is disabled
57 append-cppflags -Dcimg_display=0
58 fi
59 }
60
61 src_compile() {
62 emake AR="$(tc-getAR)" CC="$(tc-getCXX)" CFLAGS="${CXXFLAGS}" OPT_CFLAGS= DEBUG_CFLAGS= custom lib
63 }
64
65 src_install() {
66 dobin gmic
67 newlib.so libgmic.so libgmic.so.1
68
69 insinto /usr/include
70 doins gmic.h
71
72 doman ../man/gmic.1.gz
73 dodoc ../README
74
75 newbashcomp gmic_bashcompletion.sh ${PN}
76 }

  ViewVC Help
Powered by ViewVC 1.1.20