diff options
Diffstat (limited to 'abs/core/libart-lgpl')
-rw-r--r-- | abs/core/libart-lgpl/PKGBUILD | 20 | ||||
-rw-r--r-- | abs/core/libart-lgpl/art_misc.h-cplusplus.patch | 35 |
2 files changed, 55 insertions, 0 deletions
diff --git a/abs/core/libart-lgpl/PKGBUILD b/abs/core/libart-lgpl/PKGBUILD new file mode 100644 index 0000000..f56c0b3 --- /dev/null +++ b/abs/core/libart-lgpl/PKGBUILD @@ -0,0 +1,20 @@ +# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $ +# Maintainer: Jan de Groot <jgc@archlinux.org> +pkgname=libart-lgpl +pkgver=2.3.20 +pkgrel=1 +pkgdesc="A library for high-performance 2D graphics" +url="http://www.levien.com/libart/" +arch=(i686 x86_64) +license=('LGPL') +depends=('glibc') +source=(http://ftp.gnome.org/pub/GNOME/sources/libart_lgpl/2.3/libart_lgpl-${pkgver}.tar.bz2) +md5sums=('d0ce67f2ebcef1e51a83136c69242a73') +options=('!libtool') + +build() { + cd ${startdir}/src/libart_lgpl-${pkgver} + ./configure --prefix=/usr || return 1 + make || return 1 + make DESTDIR=${startdir}/pkg install || return 1 +} diff --git a/abs/core/libart-lgpl/art_misc.h-cplusplus.patch b/abs/core/libart-lgpl/art_misc.h-cplusplus.patch new file mode 100644 index 0000000..dea8eb0 --- /dev/null +++ b/abs/core/libart-lgpl/art_misc.h-cplusplus.patch @@ -0,0 +1,35 @@ +Index: art_misc.h +=================================================================== +--- art_misc.h (revision 277) ++++ art_misc.h (working copy) +@@ -34,9 +34,15 @@ + #include <libart_lgpl/art_config.h> + #endif + ++#ifdef __cplusplus ++extern "C" { ++#endif + void *art_alloc(size_t size); + void art_free(void *ptr); + void *art_realloc(void *ptr, size_t size); ++#ifdef __cplusplus ++} ++#endif /* __cplusplus */ + + /* These aren't, strictly speaking, configuration macros, but they're + damn handy to have around, and may be worth playing with for +Index: ChangeLog +=================================================================== +--- ChangeLog (revision 277) ++++ ChangeLog (working copy) +@@ -1,3 +1,10 @@ ++2007-03-01 Frederic Crozat <fcrozat@mandriva.com> ++ ++ reviewed by: Dom Lachowicz <cinamod@hotmail.com> ++ ++ * art_misc.h: Fix header when included in C++. ++ Patch from Goetz Waschk and Laurent Montel. ++ + 2007-02-28 Kjartan Maraas <kmaraas@gnome.org> + + configure.in: Release 2.3.19 |