Difference between revisions of "GraphicsMagick"

From CBLFS
Jump to navigationJump to search
 
 
(8 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
!Download Source:
 
!Download Source:
 
| http://downloads.sourceforge.net/graphicsmagick/GraphicsMagick-{{GraphicsMagick-Version}}.tar.bz2
 
| http://downloads.sourceforge.net/graphicsmagick/GraphicsMagick-{{GraphicsMagick-Version}}.tar.bz2
 +
|-
 +
!Download Patch:
 +
| http://svn.cross-lfs.org/svn/repos/patches/GraphicsMagick/GraphicsMagick-{{GraphicsMagick-Version}}-png_fix-1.patch
 
|}
 
|}
  
 
----
 
----
  
== Introduction to GraphicsMagick ==
+
{{Package-Introduction|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.}}
 
 
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 ==
 
== Dependencies ==
Line 22: Line 23:
 
* [[dcraw]]
 
* [[dcraw]]
 
* [[Dmalloc]]
 
* [[Dmalloc]]
* [[Electric Fence]]
+
* [[DUMA]]
 
* [[PGP]]
 
* [[PGP]]
 
* [[GnuPG]]
 
* [[GnuPG]]
Line 43: Line 44:
 
* [[GhostPCL]]
 
* [[GhostPCL]]
 
* [[GIMP]]
 
* [[GIMP]]
* [[Gnuplot]]
+
* [[GNUplot]]
 
* [[Graphviz]]
 
* [[Graphviz]]
 
* [[POV-Ray]]
 
* [[POV-Ray]]
Line 52: Line 53:
 
* [[Netpbm]]
 
* [[Netpbm]]
 
* [[TeTeX]]
 
* [[TeTeX]]
 
 
== Configuration Information ==
 
 
By default, GraphicsMagick do not build shared libraries. If you want enabled shared and static libraries, add the following to configure:
 
 
--with-shared --with-static
 
  
 
== Non-Multilib ==
 
== Non-Multilib ==
Line 64: Line 58:
 
Compile the package:
 
Compile the package:
  
  ./configure --prefix=/usr --enable-magick-compat &&
+
patch -Np1 -i ../GraphicsMagick-{{GraphicsMagick-Version}}-png_fix-1.patch &&
 +
  ./configure --prefix=/usr --enable-shared \
 +
    --enable-magick-compat &&
 
  make
 
  make
  
Line 77: Line 73:
 
Compile the package:
 
Compile the package:
  
  To do ...
+
  export USE_ARCH=32 &&
 +
patch -Np1 -i ../GraphicsMagick-{{GraphicsMagick-Version}}-png_fix-1.patch &&
 +
CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" \
 +
PKG_CONFIG_PATH="$PKG_CONFIG_PATH32" \
 +
./configure --prefix=/usr --enable-shared \
 +
    --enable-magick-compat &&
 +
make
  
 
Install the package:
 
Install the package:
  
  To do ...
+
  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 ===
 
=== N32 ===
Line 87: Line 93:
 
Compile the package:
 
Compile the package:
  
  To do ...
+
  export USE_ARCH=n32 &&
 +
patch -Np1 -i ../GraphicsMagick-{{GraphicsMagick-Version}}-png_fix-1.patch &&
 +
sed -i "/LDFLAGS=/s:/lib:&32:g" configure &&
 +
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:
 
Install the package:
  
  To do ...
+
  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 ===
 
=== 64Bit ===
Line 97: Line 114:
 
Compile the package:
 
Compile the package:
  
  To do ...
+
  export USE_ARCH=64 &&
 +
patch -Np1 -i ../GraphicsMagick-{{GraphicsMagick-Version}}-png_fix-1.patch &&
 +
sed -i "/LDFLAGS=/s:/lib:&64:g" configure &&
 +
CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" \
 +
PKG_CONFIG_PATH="$PKG_CONFIG_PATH64" \
 +
CPPFLAGS="-DPNG_NO_ASSEMBLER_CODE" \
 +
./configure --prefix=/usr --libdir=/usr/lib64 \
 +
    --enable-shared --enable-magick-compat &&
 +
make
  
 
Install the package:
 
Install the package:
  
  To do ...
+
  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 =
 
= Contents =
Line 116: Line 148:
 
| /usr/lib/GraphicsMagick-{{GraphicsMagick-Version}}, /usr/include/GraphicsMagick
 
| /usr/lib/GraphicsMagick-{{GraphicsMagick-Version}}, /usr/include/GraphicsMagick
 
|}
 
|}
 +
 +
[[Category:Graphics Utilities]]

Latest revision as of 07:09, 12 April 2009

Download Source: http://downloads.sourceforge.net/graphicsmagick/GraphicsMagick-1.1.7.tar.bz2
Download Patch: http://svn.cross-lfs.org/svn/repos/patches/GraphicsMagick/GraphicsMagick-1.1.7-png_fix-1.patch

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.

Project Homepage: Unknown

Dependencies

Required

X Window System

Optional

Non-Multilib

Compile the package:

patch -Np1 -i ../GraphicsMagick-1.1.7-png_fix-1.patch &&
./configure --prefix=/usr --enable-shared \
    --enable-magick-compat &&
make

Install the package:

make install

Multilib

32Bit

Compile the package:

export USE_ARCH=32 &&
patch -Np1 -i ../GraphicsMagick-1.1.7-png_fix-1.patch &&
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 &&
patch -Np1 -i ../GraphicsMagick-1.1.7-png_fix-1.patch &&
sed -i "/LDFLAGS=/s:/lib:&32:g" configure &&
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 &&
patch -Np1 -i ../GraphicsMagick-1.1.7-png_fix-1.patch &&
sed -i "/LDFLAGS=/s:/lib:&64:g" configure &&
CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" \
PKG_CONFIG_PATH="$PKG_CONFIG_PATH64" \
CPPFLAGS="-DPNG_NO_ASSEMBLER_CODE" \
./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