/[gentoo-x86]/media-gfx/graphicsmagick/graphicsmagick-1.3.16-r1.ebuild
Gentoo

Contents of /media-gfx/graphicsmagick/graphicsmagick-1.3.16-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Thu Oct 4 14:57:07 2012 UTC (22 months, 4 weeks ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +2 -2 lines
ppc/ppc64 stable wrt #428718

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

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/graphicsmagick/graphicsmagick-1.3.16-r1.ebuild,v 1.6 2012/08/19 14:25:44 armin76 Exp $
4
5 EAPI=4
6 inherit eutils toolchain-funcs
7
8 MY_P=${P/graphicsm/GraphicsM}
9
10 DESCRIPTION="Collection of tools and libraries for many image formats"
11 HOMEPAGE="http://www.graphicsmagick.org/"
12 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.xz"
13
14 LICENSE="MIT"
15 SLOT="0"
16 KEYWORDS="alpha amd64 hppa ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
17 IUSE="bzip2 cxx debug fpx imagemagick jbig jpeg jpeg2k lcms lzma modules openmp perl png postscript q16 q32 static-libs svg threads tiff truetype wmf X zlib"
18
19 RDEPEND=">=sys-devel/libtool-2.2.6b
20 bzip2? ( app-arch/bzip2 )
21 fpx? ( media-libs/libfpx )
22 imagemagick? ( !media-gfx/imagemagick )
23 jbig? ( media-libs/jbigkit )
24 jpeg? ( virtual/jpeg )
25 jpeg2k? ( media-libs/jasper )
26 lcms? ( media-libs/lcms:2 )
27 lzma? ( app-arch/xz-utils )
28 perl? ( dev-lang/perl )
29 png? ( media-libs/libpng:0 )
30 postscript? ( app-text/ghostscript-gpl )
31 svg? ( dev-libs/libxml2 )
32 tiff? ( media-libs/tiff:0 )
33 truetype? (
34 media-fonts/urw-fonts
35 >=media-libs/freetype-2
36 )
37 wmf? ( media-libs/libwmf )
38 X? (
39 x11-libs/libSM
40 x11-libs/libXext
41 )
42 zlib? ( sys-libs/zlib )"
43 DEPEND="${RDEPEND}"
44
45 S=${WORKDIR}/${MY_P}
46
47 src_prepare() {
48 epatch "${FILESDIR}"/${P}-libpng14.patch
49 }
50
51 src_configure() {
52 local depth=8
53 use q16 && depth=16
54 use q32 && depth=32
55
56 local openmp=disable
57 if use openmp && tc-has-openmp; then
58 openmp=enable
59 fi
60
61 econf \
62 --docdir="${EPREFIX}"/usr/share/doc/${PF} \
63 --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
64 --${openmp}-openmp \
65 --enable-largefile \
66 --enable-shared \
67 $(use_enable static-libs static) \
68 $(use_enable debug ccmalloc) \
69 $(use_enable debug prof) \
70 $(use_enable debug gcov) \
71 $(use_enable imagemagick magick-compat) \
72 $(use_with threads) \
73 --without-included-ltdl \
74 $(use_with modules) \
75 --with-quantum-depth=${depth} \
76 --without-frozenpaths \
77 $(use_with cxx magick-plus-plus) \
78 $(use_with perl) \
79 --with-perl-options=INSTALLDIRS=vendor \
80 $(use_with bzip2 bzlib) \
81 $(use_with postscript dps) \
82 $(use_with fpx) \
83 --without-gslib \
84 $(use_with jbig) \
85 $(use_with jpeg) \
86 $(use_with jpeg2k jp2) \
87 --without-lcms \
88 $(use_with lcms lcms2) \
89 $(use_with lzma) \
90 $(use_with png) \
91 $(use_with tiff) \
92 $(use_with truetype ttf) \
93 $(use_with wmf) \
94 --with-fontpath="${EPREFIX}"/usr/share/fonts \
95 --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts \
96 --with-windows-font-dir="${EPREFIX}"/usr/share/fonts/corefonts \
97 $(use_with svg xml) \
98 $(use_with zlib) \
99 $(use_with X x)
100 }
101
102 src_compile() {
103 emake
104 use perl && emake perl-build
105 }
106
107 src_test() {
108 emake check
109 }
110
111 src_install() {
112 emake DESTDIR="${D}" install
113
114 if use perl; then
115 emake -C PerlMagick DESTDIR="${D}" install
116 find "${ED}" -type f -name perllocal.pod -exec rm -f {} +
117 find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} +
118 fi
119
120 find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
121 }

  ViewVC Help
Powered by ViewVC 1.1.20