Difference between revisions of "Cairo"

From CBLFS
Jump to navigationJump to search
Line 44: Line 44:
 
         -e 's/FORMAT_TYPE_COLOR/FOURCC_RGB/' \
 
         -e 's/FORMAT_TYPE_COLOR/FOURCC_RGB/' \
 
     src/cairo-glitz-surface.c &&
 
     src/cairo-glitz-surface.c &&
  CC="gcc ${BUILD32}" PKG_CONFIG_PATH=$PKG_CONFIG_PATH32 \
+
  CC="gcc ${BUILD32}" PKG_CONFIG_PATH="$PKG_CONFIG_PATH32" \
    ./configure --prefix=/usr &&
+
USE_ARCH=32 ./configure --prefix=/usr &&
 
  make
 
  make
  
Line 59: Line 59:
 
         -e 's/FORMAT_TYPE_COLOR/FOURCC_RGB/' \
 
         -e 's/FORMAT_TYPE_COLOR/FOURCC_RGB/' \
 
     src/cairo-glitz-surface.c &&
 
     src/cairo-glitz-surface.c &&
  CC="gcc ${BUILDN32}" PKG_CONFIG_PATH=$PKG_CONFIG_PATHN32 \
+
  CC="gcc ${BUILDN32}" PKG_CONFIG_PATH="$PKG_CONFIG_PATHN32" \
    ./configure --prefix=/usr --libdir=/usr/lib32 &&
+
USE_ARCH=n32 ./configure --prefix=/usr --libdir=/usr/lib32 &&
 
  make
 
  make
  
Line 74: Line 74:
 
         -e 's/FORMAT_TYPE_COLOR/FOURCC_RGB/' \
 
         -e 's/FORMAT_TYPE_COLOR/FOURCC_RGB/' \
 
     src/cairo-glitz-surface.c &&
 
     src/cairo-glitz-surface.c &&
  CC="gcc ${BUILD64}" PKG_CONFIG_PATH=$PKG_CONFIG_PATH64 \
+
  CC="gcc ${BUILD64}" PKG_CONFIG_PATH="$PKG_CONFIG_PATH64" \
    ./configure --prefix=/usr --libdir=/usr/lib64 &&
+
USE_ARCH=64 ./configure --prefix=/usr --libdir=/usr/lib64 &&
 
  make
 
  make
  

Revision as of 08:39, 23 December 2006

Download Source: http://cairographics.org/releases/cairo-1.10.0.tar.gz

Introduction to Cairo

Cairo is a 2D graphics library with support for multiple output devices. Currently supported output targets include the X Window System, win32, image buffers, PostScript, PDF and SVG. Experimental backends include OpenGL (through glitz), Quartz and XCB file output. cairo is designed to produce consistent output on all output media while taking advantage of display hardware acceleration when available (e.g., through the X Render Extension). The cairo API provides operations similar to the drawing operators of PostScript and PDF. Operations in cairo include stroking and filling cubic Bézier splines, transforming and compositing translucent images, and antialiased text rendering. All drawing operations can be transformed by any affine transformation (scale, rotation, shear, etc.).

Dependencies

Required

Optional

Non-Multilib

Compile the package:

sed -i -e 's/type == GLITZ/color.fourcc == GLITZ/' \
       -e 's/FORMAT_TYPE_COLOR/FOURCC_RGB/' \
    src/cairo-glitz-surface.c &&
./configure --prefix=/usr &&
make

Install the package

make install

Multilib

32Bit

Compile the package:

sed -i -e 's/type == GLITZ/color.fourcc == GLITZ/' \
       -e 's/FORMAT_TYPE_COLOR/FOURCC_RGB/' \
    src/cairo-glitz-surface.c &&
CC="gcc ${BUILD32}" PKG_CONFIG_PATH="$PKG_CONFIG_PATH32" \
USE_ARCH=32 ./configure --prefix=/usr &&
make

Install the package

make install

N32

Compile the package:

sed -i -e 's/type == GLITZ/color.fourcc == GLITZ/' \
       -e 's/FORMAT_TYPE_COLOR/FOURCC_RGB/' \
    src/cairo-glitz-surface.c &&
CC="gcc ${BUILDN32}" PKG_CONFIG_PATH="$PKG_CONFIG_PATHN32" \
USE_ARCH=n32 ./configure --prefix=/usr --libdir=/usr/lib32 &&
make

Install the package

make install

64Bit

Compile the package:

sed -i -e 's/type == GLITZ/color.fourcc == GLITZ/' \
       -e 's/FORMAT_TYPE_COLOR/FOURCC_RGB/' \
    src/cairo-glitz-surface.c &&
CC="gcc ${BUILD64}" PKG_CONFIG_PATH="$PKG_CONFIG_PATH64" \
USE_ARCH=64 ./configure --prefix=/usr --libdir=/usr/lib64 &&
make

Install the package

make install
Retrieved from "?title=Cairo&oldid=6079"