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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Dec 14 17:07:08 2014 UTC (3 years, 11 months ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +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/imagemagick/imagemagick-6.8.9.8.ebuild,v 1.3 2014/11/06 05:41:10 vapier Exp $
4
5 EAPI=5
6 inherit eutils flag-o-matic libtool multilib toolchain-funcs versionator
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 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="dev-libs/libltdl:0
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-2:= )
31 jpeg? ( virtual/jpeg:0 )
32 jpeg2k? ( >=media-libs/openjpeg-2.1.0: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 epatch_user
71
72 elibtoolize # for Darwin modules
73
74 # For testsuite, see http://bugs.gentoo.org/show_bug.cgi?id=500580#c3
75 shopt -s nullglob
76 mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
77 if test -n "${mesa_cards}"; then
78 addpredict "${mesa_cards}"
79 fi
80 ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
81 if test -n "${ati_cards}"; then
82 addpredict "${ati_cards}"
83 fi
84 shopt -u nullglob
85 addpredict /dev/nvidiactl
86 }
87
88 src_configure() {
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 CONFIG_SHELL=$(type -P bash) \
100 econf \
101 $(use_enable static-libs static) \
102 $(use_enable hdri) \
103 $(use_enable opencl) \
104 --with-threads \
105 --with-modules \
106 --with-quantum-depth=${depth} \
107 $(use_with cxx magick-plus-plus) \
108 $(use_with perl) \
109 --with-perl-options='INSTALLDIRS=vendor' \
110 --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts \
111 $(use_with bzip2 bzlib) \
112 $(use_with X x) \
113 $(use_with zlib) \
114 $(use_with autotrace) \
115 $(use_with postscript dps) \
116 $(use_with djvu) \
117 --with-dejavu-font-dir="${EPREFIX}"/usr/share/fonts/dejavu \
118 $(use_with fftw) \
119 $(use_with fpx) \
120 $(use_with fontconfig) \
121 $(use_with truetype freetype) \
122 $(use_with postscript gslib) \
123 $(use_with graphviz gvc) \
124 $(use_with jbig) \
125 $(use_with jpeg) \
126 $(use_with jpeg2k openjp2) \
127 --without-lcms \
128 $(use_with lcms lcms2) \
129 $(use_with lqr) \
130 $(use_with lzma) \
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 LD_LIBRARY_PATH="${S}/coders/.libs:${S}/filters/.libs:${S}/Magick++/lib/.libs:${S}/magick/.libs:${S}/wand/.libs" \
145 emake -j1 check
146 }
147
148 src_install() {
149 # Ensure documentation installation files and paths with each release!
150 emake \
151 DESTDIR="${D}" \
152 DOCUMENTATION_PATH="${EPREFIX}"/usr/share/doc/${PF}/html \
153 install
154
155 rm -f "${ED}"/usr/share/doc/${PF}/html/{ChangeLog,LICENSE,NEWS.txt}
156 dodoc {AUTHORS,README}.txt ChangeLog
157
158 if use perl; then
159 find "${ED}" -type f -name perllocal.pod -exec rm -f {} +
160 find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} +
161 fi
162
163 find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
164
165 if use opencl; then
166 cat <<-EOF > "${T}"/99${PN}
167 SANDBOX_PREDICT="/dev/nvidiactl:/dev/ati/card:/dev/dri/card"
168 EOF
169
170 insinto /etc/sandbox.d
171 doins "${T}"/99${PN} #472766
172 fi
173 }

  ViewVC Help
Powered by ViewVC 1.1.20