Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10774 - (show annotations) (download)
Thu Feb 2 00:16:42 2012 UTC (12 years, 4 months ago) by niro
File size: 1734 byte(s)
auto added: ver bump to 6.7.5.0-r1
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-fonts/corefonts-2
30 >= sci-libs/fftw3-3.3"
31
32 SDEPEND=">= sys-apps/sed-4
33 >= x11-proto/xextproto-7"
34
35 SRCFILE="ImageMagick-${PVER:0:5}-${PVER:6}.tar.bz2"
36 SRCDIR="${BUILDDIR}/ImageMagick-${PVER:0:5}-${PVER:6}"
37
38 sminclude mbuild
39
40 SRC_URI=(
41 ftp://ftp.imagemagick.org/pub/ImageMagick/${SRCFILE}
42 sourceforge://${PNAME}/${SRCFILE}
43 mirror://${PNAME}/${SRCFILE}
44 )
45
46 UP2DATE="updatecmd ${HOMEPAGE}/script/download.php | grep 'latest release' | sed -e 's:.*version\ \(.*\).:\1:' -e 's:-:.:g'"
47
48 src_prepare()
49 {
50 munpack ${SRCFILE} || die
51 cd ${SRCDIR}
52
53 # do not link to included libltdl,
54 # use system libtool instead
55 sed -i 's/\$(LIBLTDL) \$/\$/' Makefile.in || die
56 }
57
58 src_compile()
59 {
60 cd ${SRCDIR}
61
62 mconfigure \
63 --build=${CHOST} \
64 --with-windows-font-dir=/usr/share/fonts/corefonts \
65 --enable-shared \
66 --with-threads \
67 --with-bzlib \
68 --with-modules \
69 --with-zlib \
70 --with-x \
71 --with-perl \
72 --with-tiff \
73 --with-lcms \
74 --with-xml \
75 --with-jp2 \
76 --with-jpeg \
77 --with-gslib \
78 --with-freetype \
79 --with-wmf \
80 --without-fpx \
81 --without-jbig \
82 || die
83
84 mmake || die
85 }