Magellan Linux

Contents of /branches/R11-stable/extras/imagemagick/imagemagick-6.8.6.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 17947 - (show annotations) (download)
Thu Jun 27 06:34:27 2013 UTC (10 years, 10 months ago) by niro
File size: 2074 byte(s)
-release branches/R11-stable
1 # $Id$
2
3 PNAME="imagemagick"
4 PVER="6.8.6.1"
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.7
19 >= media-libs/libjpeg-8
20 >= media-libs/libpng-1.5
21 >= media-libs/libtiff-4
22 >= media-libs/lcms-1.19
23 == dev-lang/perl-5.18
24 >= dev-libs/libxml2-2.7
25 >= app-text/ghostscript-gpl-9
26 >= media-gfx/graphviz-2.28
27 >= media-libs/freetype-2.4
28 >= media-libs/libwmf-0.2.8.4
29 >= media-libs/openexr-2.0
30 >= media-fonts/corefonts-2
31 >= sci-libs/fftw3-3.3"
32
33 SDEPEND=">= virtual/sed
34 >= x11-proto/xextproto-7"
35
36 SRCFILE="ImageMagick-${PVER:0:5}-${PVER:6}.tar.bz2"
37 SRCDIR="${BUILDDIR}/ImageMagick-${PVER:0:5}-${PVER:6}"
38
39 sminclude mbuild
40 # .la files a substantly needed to load runtime lib-deps!
41 # do not remove them or errors like this will occur:
42 # convert: no decode delegate for this image format `/usr/share/pixmaps/xterm_48x48.xpm'
43 # @ error/constitute.c/ReadImage/532.
44 msetfeature "libtool" "!check"
45
46 SRC_URI=(
47 ftp://ftp.imagemagick.org/pub/ImageMagick/${SRCFILE}
48 ftp://ftp.imagemagick.org/pub/ImageMagick/legacy/${SRCFILE}
49 mirror://${PNAME}/${SRCFILE}
50 )
51
52 UP2DATE="updatecmd ${HOMEPAGE}/script/download.php | grep 'latest release' | sed -e 's:.*version\ \(.*\).:\1:' -e 's:-:.:g'"
53
54 src_prepare()
55 {
56 munpack ${SRCFILE} || die
57 cd ${SRCDIR}
58
59 # do not link to included libltdl,
60 # use system libtool instead
61 sed -i 's/\$(LIBLTDL) \$/\$/' Makefile.in || die
62 }
63
64 src_compile()
65 {
66 cd ${SRCDIR}
67
68 mconfigure \
69 --build=${CHOST} \
70 --with-windows-font-dir=/usr/share/fonts/corefonts \
71 --enable-shared \
72 --with-threads \
73 --with-bzlib \
74 --with-modules \
75 --with-zlib \
76 --with-x \
77 --with-perl \
78 --with-tiff \
79 --with-lcms \
80 --with-xml \
81 --with-jp2 \
82 --with-jpeg \
83 --with-gslib \
84 --with-freetype \
85 --with-wmf \
86 --with-openexr \
87 --without-fpx \
88 --without-jbig \
89 || die
90
91 mmake -j1 || die
92 }