wok-4.x view imagemagick/receipt @ rev 12297
imagemagick: fix compile_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon May 28 13:52:26 2012 +0200 (2012-05-28) |
parents | 8e4c74abdf74 |
children | 95d1e638c14c |
line source
1 # SliTaz package receipt.
3 PACKAGE="imagemagick"
4 VERSION="6.7.0-10"
5 SHORT_VERSION="${VERSION%-*}"
6 CATEGORY="graphics"
7 SHORT_DESC="Images manipulation programs."
8 MAINTAINER="pankso@slitaz.org"
9 DEPENDS="xorg-libXext jpeg libpng tiff libxml2 freetype libgomp bzlib expat \
10 fontconfig lcms jasper ilmbase openexr graphviz librsvg libgsf libgio cairo gcc-lib-base jbigkit fftw"
11 BUILD_DEPENDS="jpeg-dev ilmbase-dev openexr-dev libpng-dev tiff-dev \
12 libxml2-dev lcms-dev graphviz-dev fftw-dev util-linux-ng-uuid-dev libcroco-dev"
13 SOURCE="ImageMagick"
14 TARBALL="$SOURCE-$VERSION.tar.xz"
15 WEB_SITE="http://www.imagemagick.org/"
16 WGET_URL="ftp://ftp.imagemagick.org/pub/ImageMagick/$TARBALL"
17 TAGS="image photo toolkit"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 sed -i 's/gzgetc(image/gzgetc((gzFile) image/' magick/blob.c
24 ./configure \
25 --prefix=/usr \
26 --infodir=/usr/share/info \
27 --mandir=/usr/share/man \
28 --without-perl \
29 --with-magick-plus-plus \
30 --enable-hdri \
31 $CONFIGURE_ARGS &&
32 make $MAKEFLAGS &&
33 make DESTDIR=$PWD/_pkg install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/lib $fs/usr/share
40 cp -a $_pkg/usr/bin $fs/usr
41 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
42 cp -a $_pkg/usr/lib/$SOURCE-$SHORT_VERSION $fs/usr/lib
43 cp -a $_pkg/usr/share/$SOURCE-$SHORT_VERSION $fs/usr/share
44 }