Magellan Linux

Contents of /trunk/extras/imagemagick/imagemagick-6.7.5.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10781 - (show annotations) (download)
Thu Feb 2 09:01:54 2012 UTC (12 years, 4 months ago) by niro
File size: 1805 byte(s)
-enabled openexr support
1 # $Id$
2
3 PNAME="imagemagick"
4 PVER="6.7.5.0"
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.6
19 >= media-libs/libjpeg-8
20 >= media-libs/libpng-1.5
21 >= media-libs/libtiff-3.9
22 >= media-libs/lcms-1.19
23 >= dev-lang/perl-5.14
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-1.7
30 >= media-fonts/corefonts-2
31 >= sci-libs/fftw3-3.3"
32
33 SDEPEND=">= sys-apps/sed-4
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 msetfeature "!check"
41
42 SRC_URI=(
43 ftp://ftp.imagemagick.org/pub/ImageMagick/${SRCFILE}
44 sourceforge://${PNAME}/${SRCFILE}
45 mirror://${PNAME}/${SRCFILE}
46 )
47
48 UP2DATE="updatecmd ${HOMEPAGE}/script/download.php | grep 'latest release' | sed -e 's:.*version\ \(.*\).:\1:' -e 's:-:.:g'"
49
50 src_prepare()
51 {
52 munpack ${SRCFILE} || die
53 cd ${SRCDIR}
54
55 # do not link to included libltdl,
56 # use system libtool instead
57 sed -i 's/\$(LIBLTDL) \$/\$/' Makefile.in || die
58 }
59
60 src_compile()
61 {
62 cd ${SRCDIR}
63
64 mconfigure \
65 --build=${CHOST} \
66 --with-windows-font-dir=/usr/share/fonts/corefonts \
67 --enable-shared \
68 --with-threads \
69 --with-bzlib \
70 --with-modules \
71 --with-zlib \
72 --with-x \
73 --with-perl \
74 --with-tiff \
75 --with-lcms \
76 --with-xml \
77 --with-jp2 \
78 --with-jpeg \
79 --with-gslib \
80 --with-freetype \
81 --with-wmf \
82 --with-openexr \
83 --without-fpx \
84 --without-jbig \
85 || die
86
87 mmake -j1 || die
88 }