Libart lgpl: Difference between revisions

From CBLFS
Jump to navigationJump to search
Added header fix for C++
Oppiz (talk | contribs)
No edit summary
 
(7 intermediate revisions by 5 users not shown)
Line 7: Line 7:
----
----


{{Blank-Package-Introduction}}
{{Package-Introduction|Libart is a library for high-performance 2D graphics. It supports a very powerful imaging model, basically the same as SVG and the Java 2D API.|http://www.gnome.org/}}


== Dependencies ==
== Dependencies ==
Line 60: Line 60:
  mv -v /usr/bin/libart2-config{,-64} &&
  mv -v /usr/bin/libart2-config{,-64} &&
  ln -sfv multiarch_wrapper /usr/bin/libart2-config
  ln -sfv multiarch_wrapper /usr/bin/libart2-config
== Needed alteration ==
There is a patch that needs to be applied to one of the installed headers to allow C++ programs/libraries (e.g. [[KdeLibs]]) to link correctly. You can find the patch referenced in the KDE mailing list [http://lists.kde.org/?l=kde-core-devel&m=117277196223668&w=2 Re: libart_lgpl 2.3.18+ breaks kdelibs3]. Perform the following commands to fix the library:
sed -i -e '/^void \*art_alloc/i #ifdef __cplusplus\nextern "C" {\n#endif' \
        -e '/^void \*art_realloc/a #ifdef __cplusplus\n}\n#endif' \
        /usr/include/libart-2.0/linart_lgpl/art_misc.h
= Contents =
= Contents =


Line 90: Line 81:
| is used as the anti-aliased render engine for libgnomecanvas and as a graphics support library for many other packages.
| is used as the anti-aliased render engine for libgnomecanvas and as a graphics support library for many other packages.
|}
|}
[[Category:Graphics Libraries]]

Latest revision as of 00:47, 21 September 2009

Download Source: http://ftp.gnome.org/pub/gnome/sources/libart_lgpl/2.3/libart_lgpl-2.3.21.tar.bz2

Introduction to Libart lgpl

Libart is a library for high-performance 2D graphics. It supports a very powerful imaging model, basically the same as SVG and the Java 2D API.

Project Homepage: http://www.gnome.org/

Dependencies

Non-Multilib

Compile the package:

./configure --prefix=/usr &&
make

Install the package

make install

Multilib

32Bit

Compile the package:

CC="gcc ${BUILD32}" ./configure --prefix=/usr &&
make

Install the package

make install &&
mv -v /usr/bin/libart2-config{,-32}

N32

Compile the package:

CC="gcc ${BUILDN32}" ./configure --prefix=/usr --libdir=/usr/lib32 &&
make

Install the package

make install &&
mv -v /usr/bin/libart2-config{,-n32}

64Bit

Compile the package:

CC="gcc ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib64 &&
make

Install the package

make install &&
mv -v /usr/bin/libart2-config{,-64} &&
ln -sfv multiarch_wrapper /usr/bin/libart2-config

Contents

Installed Programs: libart2-config
Installed Libraries: libart_lgpl_2.{so,a}
Installed Directories: /usr/include/libart-2.0

Short Descriptions

libart_lgpl_2.{so,a} is used as the anti-aliased render engine for libgnomecanvas and as a graphics support library for many other packages.