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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Aug 12 09:23:47 2012 UTC (9 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
old

(Portage version: 2.2.0_alpha121/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.ebuild,v 1.2 2012/06/24 20:15:51 radhermit 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_configure() {
48 local depth=8
49 use q16 && depth=16
50 use q32 && depth=32
51
52 local openmp=disable
53 if use openmp && tc-has-openmp; then
54 openmp=enable
55 fi
56
57 econf \
58 --docdir="${EPREFIX}"/usr/share/doc/${PF} \
59 --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
60 --${openmp}-openmp \
61 --enable-largefile \
62 --enable-shared \
63 $(use_enable static-libs static) \
64 $(use_enable debug ccmalloc) \
65 $(use_enable debug prof) \
66 $(use_enable debug gcov) \
67 $(use_enable imagemagick magick-compat) \
68 $(use_with threads) \
69 --without-included-ltdl \
70 $(use_with modules) \
71 --with-quantum-depth=${depth} \
72 --without-frozenpaths \
73 $(use_with cxx magick-plus-plus) \
74 $(use_with perl) \
75 --with-perl-options=INSTALLDIRS=vendor \
76 $(use_with bzip2 bzlib) \
77 $(use_with postscript dps) \
78 $(use_with fpx) \
79 --without-gslib \
80 $(use_with jbig) \
81 $(use_with jpeg) \
82 $(use_with jpeg2k jp2) \
83 --without-lcms \
84 $(use_with lcms lcms2) \
85 $(use_with lzma) \
86 $(use_with png) \
87 $(use_with tiff) \
88 $(use_with truetype ttf) \
89 $(use_with wmf) \
90 --with-fontpath="${EPREFIX}"/usr/share/fonts \
91 --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts \
92 --with-windows-font-dir="${EPREFIX}"/usr/share/fonts/corefonts \
93 $(use_with svg xml) \
94 $(use_with zlib) \
95 $(use_with X x)
96 }
97
98 src_compile() {
99 emake
100 use perl && emake perl-build
101 }
102
103 src_install() {
104 emake DESTDIR="${D}" install
105
106 if use perl; then
107 emake -C PerlMagick DESTDIR="${D}" install
108 find "${ED}" -type f -name perllocal.pod -exec rm -f {} +
109 find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} +
110 fi
111
112 find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
113 }

  ViewVC Help
Powered by ViewVC 1.1.13