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

Contents of /media-gfx/graphicsmagick/graphicsmagick-1.3.17.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Jan 21 05:18:13 2013 UTC (17 months, 4 weeks ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +7 -3 lines
Fix cross-compiling with freetype while upstream sorts it out.

(Portage version: 2.2.0_alpha144/cvs/Linux x86_64, signed Manifest commit with key FB7C4156)

1 # Copyright 1999-2013 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.17.ebuild,v 1.1 2012/10/15 06:03:16 radhermit Exp $
4
5 EAPI=5
6 inherit toolchain-funcs eutils
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}"/${PN}-1.3.17-freetype.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 prof) \
69 $(use_enable debug gcov) \
70 $(use_enable imagemagick magick-compat) \
71 $(use_with threads) \
72 --without-included-ltdl \
73 $(use_with modules) \
74 --with-quantum-depth=${depth} \
75 --without-frozenpaths \
76 $(use_with cxx magick-plus-plus) \
77 $(use_with perl) \
78 --with-perl-options=INSTALLDIRS=vendor \
79 $(use_with bzip2 bzlib) \
80 $(use_with postscript dps) \
81 $(use_with fpx) \
82 --without-gslib \
83 $(use_with jbig) \
84 $(use_with jpeg) \
85 $(use_with jpeg2k jp2) \
86 --without-lcms \
87 $(use_with lcms lcms2) \
88 $(use_with lzma) \
89 $(use_with png) \
90 $(use_with tiff) \
91 $(use_with truetype ttf) \
92 $(use_with wmf) \
93 --with-fontpath="${EPREFIX}"/usr/share/fonts \
94 --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts \
95 --with-windows-font-dir="${EPREFIX}"/usr/share/fonts/corefonts \
96 $(use_with svg xml) \
97 $(use_with zlib) \
98 $(use_with X x)
99 }
100
101 src_compile() {
102 emake
103 use perl && emake perl-build
104 }
105
106 src_install() {
107 emake DESTDIR="${D}" install
108
109 if use perl; then
110 emake -C PerlMagick DESTDIR="${D}" install
111 find "${ED}" -type f -name perllocal.pod -exec rm -f {} +
112 find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} +
113 fi
114
115 find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
116 }

  ViewVC Help
Powered by ViewVC 1.1.20