/[gentoo-x86]/media-gfx/imagemagick/imagemagick-6.8.8.5.ebuild
Gentoo

Contents of /media-gfx/imagemagick/imagemagick-6.8.8.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Wed May 14 17:02:26 2014 UTC (4 years, 3 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +1 -1 lines
FILE REMOVED
old

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)

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/imagemagick/imagemagick-6.8.8.5.ebuild,v 1.12 2014/03/24 14:29:06 ago Exp $
4
5 EAPI=5
6 inherit multilib toolchain-funcs versionator libtool flag-o-matic eutils
7
8 MY_P=ImageMagick-$(replace_version_separator 3 '-')
9
10 DESCRIPTION="A collection of tools and libraries for many image formats"
11 HOMEPAGE="http://www.imagemagick.org/"
12 SRC_URI="mirror://${PN}/${MY_P}.tar.xz"
13
14 LICENSE="imagemagick"
15 SLOT="0/${PV}"
16 KEYWORDS="alpha amd64 arm hppa ~ia64 ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
17 IUSE="autotrace bzip2 corefonts cxx djvu fftw fontconfig fpx graphviz hdri jbig jpeg jpeg2k lcms lqr lzma opencl openexr openmp pango pdf perl png postscript q32 q64 q8 raw static-libs svg test tiff truetype webp wmf X xml zlib"
18
19 RESTRICT="perl? ( userpriv )"
20
21 RDEPEND=">=sys-devel/libtool-2.2.6b
22 autotrace? ( >=media-gfx/autotrace-0.31.1 )
23 bzip2? ( app-arch/bzip2 )
24 corefonts? ( media-fonts/corefonts )
25 djvu? ( app-text/djvu )
26 fftw? ( sci-libs/fftw:3.0 )
27 fontconfig? ( media-libs/fontconfig )
28 fpx? ( >=media-libs/libfpx-1.3.0-r1 )
29 graphviz? ( media-gfx/graphviz )
30 jbig? ( media-libs/jbigkit )
31 jpeg? ( virtual/jpeg:0 )
32 jpeg2k? ( media-libs/openjpeg:2 )
33 lcms? ( media-libs/lcms:2 )
34 lqr? ( media-libs/liblqr )
35 opencl? ( virtual/opencl )
36 openexr? ( media-libs/openexr:0= )
37 pango? ( x11-libs/pango )
38 perl? ( >=dev-lang/perl-5.8.8:0= )
39 png? ( media-libs/libpng:0= )
40 postscript? ( app-text/ghostscript-gpl )
41 raw? ( media-gfx/ufraw )
42 svg? ( gnome-base/librsvg )
43 tiff? ( media-libs/tiff:0 )
44 truetype? (
45 media-fonts/urw-fonts
46 >=media-libs/freetype-2
47 )
48 webp? ( media-libs/libwebp:0= )
49 wmf? ( media-libs/libwmf )
50 X? (
51 x11-libs/libICE
52 x11-libs/libSM
53 x11-libs/libXext
54 x11-libs/libXt
55 )
56 xml? ( dev-libs/libxml2 )
57 lzma? ( app-arch/xz-utils )
58 zlib? ( sys-libs/zlib )"
59 DEPEND="${RDEPEND}
60 !media-gfx/graphicsmagick[imagemagick]
61 virtual/pkgconfig
62 X? ( x11-proto/xextproto )"
63
64 REQUIRED_USE="corefonts? ( truetype )
65 test? ( corefonts )"
66
67 S=${WORKDIR}/${MY_P}
68
69 src_prepare() {
70 sed -i -e '/LIBS/s:-lmupdf::' configure || die #503690
71
72 elibtoolize # for Darwin modules
73
74 # http://bugs.gentoo.org/472766
75 shopt -s nullglob
76 cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
77 if test -n "${cards}"; then
78 addpredict "${cards}"
79 fi
80 shopt -u nullglob
81 }
82
83 src_configure() {
84 if use pdf; then
85 export ac_cv_lib_mupdf_fz_new_context=yes
86 export ac_cv_header_mupdf_fitz_h=yes
87 fi
88
89 local depth=16
90 use q8 && depth=8
91 use q32 && depth=32
92 use q64 && depth=64
93
94 local openmp=disable
95 use openmp && { tc-has-openmp && openmp=enable; }
96
97 [[ ${CHOST} == *-solaris* ]] && append-ldflags -lnsl -lsocket
98
99 econf \
100 $(use_enable static-libs static) \
101 $(use_enable hdri) \
102 $(use_enable opencl) \
103 --with-threads \
104 --with-modules \
105 --with-quantum-depth=${depth} \
106 $(use_with cxx magick-plus-plus) \
107 $(use_with perl) \
108 --with-perl-options='INSTALLDIRS=vendor' \
109 --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts \
110 $(use_with bzip2 bzlib) \
111 $(use_with X x) \
112 $(use_with zlib) \
113 $(use_with autotrace) \
114 $(use_with postscript dps) \
115 $(use_with djvu) \
116 --with-dejavu-font-dir="${EPREFIX}"/usr/share/fonts/dejavu \
117 $(use_with fftw) \
118 $(use_with fpx) \
119 $(use_with fontconfig) \
120 $(use_with truetype freetype) \
121 $(use_with postscript gslib) \
122 $(use_with graphviz gvc) \
123 $(use_with jbig) \
124 $(use_with jpeg) \
125 $(use_with jpeg2k openjp2) \
126 --without-lcms \
127 $(use_with lcms lcms2) \
128 $(use_with lqr) \
129 $(use_with lzma) \
130 $(use_with pdf mupdf) \
131 $(use_with openexr) \
132 $(use_with pango) \
133 $(use_with png) \
134 $(use_with svg rsvg) \
135 $(use_with tiff) \
136 $(use_with webp) \
137 $(use_with corefonts windows-font-dir "${EPREFIX}"/usr/share/fonts/corefonts) \
138 $(use_with wmf) \
139 $(use_with xml) \
140 --${openmp}-openmp
141 }
142
143 src_test() {
144 if has_version ~${CATEGORY}/${P}; then
145 emake -j1 check
146 else
147 ewarn "Skipping testsuite because installed version doesn't match."
148 fi
149 }
150
151 src_install() {
152 # Ensure documentation installation files and paths with each release!
153 emake \
154 DESTDIR="${D}" \
155 DOCUMENTATION_PATH="${EPREFIX}"/usr/share/doc/${PF}/html \
156 install
157
158 rm -f "${ED}"/usr/share/doc/${PF}/html/{ChangeLog,LICENSE,NEWS.txt}
159 dodoc {AUTHORS,README}.txt ChangeLog
160
161 if use perl; then
162 find "${ED}" -type f -name perllocal.pod -exec rm -f {} +
163 find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} +
164 fi
165
166 find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
167 }

  ViewVC Help
Powered by ViewVC 1.1.20