Contents of /branches/R11-unstable/extras/imagemagick/imagemagick-6.9.1.3-r1.smage2
Parent Directory | Revision Log
Revision 25318 -
(show annotations)
(download)
Tue Nov 25 03:26:16 2014 UTC (9 years, 10 months ago) by niro
File size: 2245 byte(s)
Tue Nov 25 03:26:16 2014 UTC (9 years, 10 months ago) by niro
File size: 2245 byte(s)
-release branches/R11-unstable
1 | # $Id$ |
2 | |
3 | PNAME="imagemagick" |
4 | PVER="6.9.1.3" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="media-gfx" |
8 | |
9 | DESCRIPTION="Image manipulation tools and libraries for many image formats." |
10 | HOMEPAGE="http://www.imagemagick.org/" |
11 | |
12 | DEPEND=">= x11-libs/libICE-1 |
13 | >= x11-libs/libSM-1 |
14 | >= x11-libs/libXext-1.3 |
15 | >= x11-libs/libXt-1.1 |
16 | >= app-arch/bzip2-1.0.6 |
17 | >= sys-libs/zlib-1.2.5 |
18 | >= sys-libs/libgomp-4.8 |
19 | >= sys-libs/libltdl-2.4 |
20 | >= media-libs/libjpeg-8 |
21 | >= media-libs/libpng-1.5 |
22 | >= media-libs/libtiff-4 |
23 | >= media-libs/lcms-1.19 |
24 | == dev-lang/perl-5.20.0 |
25 | >= dev-libs/libxml2-2.7 |
26 | >= app-text/ghostscript-gpl-9 |
27 | >= media-gfx/graphviz-2.38 |
28 | >= media-libs/freetype-2.5 |
29 | >= media-libs/libwmf-0.2.8.4 |
30 | >= media-libs/openexr-2.1 |
31 | >= media-fonts/corefonts-2 |
32 | >= sci-libs/fftw3-3.3" |
33 | |
34 | SDEPEND=">= virtual/sed |
35 | >= sys-dev/libtool-2.4 |
36 | >= x11-proto/xextproto-7" |
37 | |
38 | SRCFILE="ImageMagick-${PVER:0:5}-${PVER:6}.tar.bz2" |
39 | SRCDIR="${BUILDDIR}/ImageMagick-${PVER:0:5}-${PVER:6}" |
40 | |
41 | sminclude mbuild |
42 | # .la files a substantly needed to load runtime lib-deps! |
43 | # do not remove them or errors like this will occur: |
44 | # convert: no decode delegate for this image format `/usr/share/pixmaps/xterm_48x48.xpm' |
45 | # @ error/constitute.c/ReadImage/532. |
46 | msetfeature "libtool" "!check" |
47 | |
48 | SRC_URI=( |
49 | ftp://ftp.imagemagick.org/pub/ImageMagick/${SRCFILE} |
50 | ftp://ftp.imagemagick.org/pub/ImageMagick/legacy/${SRCFILE} |
51 | mirror://${PNAME}/${SRCFILE} |
52 | mirror://${PNAME}/${PNAME}-6.8.9.10-rpath.patch |
53 | ) |
54 | |
55 | UP2DATE="updatecmd ${HOMEPAGE}/script/download.php | grep 'latest release' | sed -e 's:.*version\ \(.*\).:\1:' -e 's:-:.:g'" |
56 | |
57 | src_prepare() |
58 | { |
59 | munpack ${SRCFILE} || die |
60 | cd ${SRCDIR} |
61 | |
62 | # remove insecure rpath |
63 | mpatch ${PNAME}-6.8.9.10-rpath.patch || die |
64 | |
65 | # do not link to included libltdl, |
66 | # use system libtool instead |
67 | sed -i 's/\$(LIBLTDL) \$/\$/' Makefile.in || die |
68 | } |
69 | |
70 | src_compile() |
71 | { |
72 | cd ${SRCDIR} |
73 | |
74 | mconfigure \ |
75 | --build=${CHOST} \ |
76 | --with-windows-font-dir=/usr/share/fonts/corefonts \ |
77 | --enable-shared \ |
78 | --with-threads \ |
79 | --with-bzlib \ |
80 | --with-modules \ |
81 | --with-zlib \ |
82 | --with-x \ |
83 | --with-perl \ |
84 | --with-tiff \ |
85 | --with-lcms \ |
86 | --with-xml \ |
87 | --with-jp2 \ |
88 | --with-jpeg \ |
89 | --with-gslib \ |
90 | --with-freetype \ |
91 | --with-wmf \ |
92 | --with-openexr \ |
93 | --without-fpx \ |
94 | --without-jbig \ |
95 | || die |
96 | |
97 | mmake -j1 || die |
98 | } |