Difference between revisions of "GraphicsMagick"

From CBLFS
Jump to navigationJump to search
(Multilib)
Line 83: Line 83:
 
  mv -v /usr/bin/GraphicsMagick-config{,-32} &&
 
  mv -v /usr/bin/GraphicsMagick-config{,-32} &&
 
  mv -v /usr/bin/GraphicsMagick++-config{,-32} &&
 
  mv -v /usr/bin/GraphicsMagick++-config{,-32} &&
  mv -v /usr/bin/GraphicsMagicWand-config{,-32} &&
+
  mv -v /usr/bin/GraphicsMagickWand-config{,-32} &&
 
  unset USE_ARCH
 
  unset USE_ARCH
  
Line 102: Line 102:
 
  mv -v /usr/bin/GraphicsMagick-config{,-n32} &&
 
  mv -v /usr/bin/GraphicsMagick-config{,-n32} &&
 
  mv -v /usr/bin/GraphicsMagick++-config{,-n32} &&
 
  mv -v /usr/bin/GraphicsMagick++-config{,-n32} &&
  mv -v /usr/bin/GraphicsMagicWand-config{,-n32} &&
+
  mv -v /usr/bin/GraphicsMagickWand-config{,-n32} &&
 
  unset USE_ARCH
 
  unset USE_ARCH
  
Line 123: Line 123:
 
  mv -v /usr/bin/GraphicsMagick++-config{,-64} &&
 
  mv -v /usr/bin/GraphicsMagick++-config{,-64} &&
 
  ln -sfv multiarch_wrapper /usr/bin/GraphicsMagick++-config &&
 
  ln -sfv multiarch_wrapper /usr/bin/GraphicsMagick++-config &&
  mv -v /usr/bin/GraphicsMagicWand-config{,-64} &&
+
  mv -v /usr/bin/GraphicsMagickWand-config{,-64} &&
 
  ln -sfv multiarch_wrapper /usr/bin/GraphicsMagickWand-config &&
 
  ln -sfv multiarch_wrapper /usr/bin/GraphicsMagickWand-config &&
 
  unset USE_ARCH
 
  unset USE_ARCH

Revision as of 12:36, 30 December 2006

Download Source: http://downloads.sourceforge.net/graphicsmagick/GraphicsMagick-1.1.7.tar.bz2

Introduction to GraphicsMagick

GraphicsMagick is a robust collection of tools and libraries which support reading, writing, and manipulating an image in over 88 major formats including popular formats like TIFF, JPEG, JPEG-2000,PNG, PDF, PhotoCD, SVG, and GIF. A high-quality 2D renderer is included, which provides a subset of SVG capabilities. C, C++, Perl, Java, PHP, Python, ColdFusion, and Ruby are supported.

Dependencies

Required

X Window System

Optional

Non-Multilib

Compile the package:

./configure --prefix=/usr --enable-shared \
    --enable-magick-compat &&
make

Install the package:

make install

Multilib

32Bit

Compile the package:

export USE_ARCH=32 &&
CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" \
PKG_CONFIG_PATH="$PKG_CONFIG_PATH32" \
./configure --prefix=/usr --enable-shared \
    --enable-magick-compat &&
make

Install the package:

make install &&
mv -v /usr/bin/GraphicsMagick-config{,-32} &&
mv -v /usr/bin/GraphicsMagick++-config{,-32} &&
mv -v /usr/bin/GraphicsMagickWand-config{,-32} &&
unset USE_ARCH

N32

Compile the package:

export USE_ARCH=n32 &&
CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" \
PKG_CONFIG_PATH="$PKG_CONFIG_PATHN32" \
./configure --prefix=/usr --libdir=/usr/lib32 \
    --enable-shared --enable-magick-compat &&
make

Install the package:

make install &&
mv -v /usr/bin/GraphicsMagick-config{,-n32} &&
mv -v /usr/bin/GraphicsMagick++-config{,-n32} &&
mv -v /usr/bin/GraphicsMagickWand-config{,-n32} &&
unset USE_ARCH

64Bit

Compile the package:

export USE_ARCH=64 &&
CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" \
PKG_CONFIG_PATH="$PKG_CONFIG_PATH64" \
./configure --prefix=/usr --libdir=/usr/lib64 \
    --enable-shared --enable-magick-compat &&
make

Install the package:

make install &&
mv -v /usr/bin/GraphicsMagick-config{,-64} &&
ln -sfv multiarch_wrapper /usr/bin/GraphicsMagick-config &&
mv -v /usr/bin/GraphicsMagick++-config{,-64} &&
ln -sfv multiarch_wrapper /usr/bin/GraphicsMagick++-config &&
mv -v /usr/bin/GraphicsMagickWand-config{,-64} &&
ln -sfv multiarch_wrapper /usr/bin/GraphicsMagickWand-config &&
unset USE_ARCH

Contents

Installed Programs: gm
Installed Libraries: libGraphicsMagick.{a,la,so}, libGraphicsMagick++.{a,la,so}, libGraphicsMagickWand.{a,la,so}
Installed Directories: /usr/lib/GraphicsMagick-1.1.7, /usr/include/GraphicsMagick