summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Meier <maekke@gentoo.org>2008-08-11 21:25:50 +0000
committerMarkus Meier <maekke@gentoo.org>2008-08-11 21:25:50 +0000
commit8750811dcfc6ac2f9a75429739d8ce716d215c1a (patch)
tree671dc4ea2d1732bc593761e24fc63d73a11ec952 /media-libs/amanith
parentBumping to version 0.6.4 and adding use flag info to metadata.xml (diff)
downloadhistorical-8750811dcfc6ac2f9a75429739d8ce716d215c1a.tar.gz
historical-8750811dcfc6ac2f9a75429739d8ce716d215c1a.tar.bz2
historical-8750811dcfc6ac2f9a75429739d8ce716d215c1a.zip
revision bump with patches from fedora, also reported in bug #202315
Package-Manager: portage-2.2_rc6/cvs/Linux 2.6.27-rc2 i686
Diffstat (limited to 'media-libs/amanith')
-rw-r--r--media-libs/amanith/ChangeLog19
-rw-r--r--media-libs/amanith/Manifest23
-rw-r--r--media-libs/amanith/amanith-0.3-r2.ebuild (renamed from media-libs/amanith/amanith-0.3-r1.ebuild)40
-rw-r--r--media-libs/amanith/files/amanith-0.3-build.patch60
-rw-r--r--media-libs/amanith/files/amanith-0.3-freetype-fix.patch (renamed from media-libs/amanith/files/amanith-0.3-freetype.patch)18
-rw-r--r--media-libs/amanith/files/amanith-0.3-gcc-C++fix.patch12
-rw-r--r--media-libs/amanith/files/amanith-0.3-gcc4.patch11
-rw-r--r--media-libs/amanith/files/amanith-0.3-gcc43.patch22
-rw-r--r--media-libs/amanith/files/amanith-0.3-nothirdpartystatic.patch45
-rw-r--r--media-libs/amanith/files/amanith-0.3-system-freetype.patch19
-rw-r--r--media-libs/amanith/files/amanith-0.3-system-glew.patch26
-rw-r--r--media-libs/amanith/files/amanith-0.3-system-libjpeg.patch12
-rw-r--r--media-libs/amanith/files/amanith-0.3-system-libpng.patch12
13 files changed, 207 insertions, 112 deletions
diff --git a/media-libs/amanith/ChangeLog b/media-libs/amanith/ChangeLog
index 3eecf8df1741..78523ec12f17 100644
--- a/media-libs/amanith/ChangeLog
+++ b/media-libs/amanith/ChangeLog
@@ -1,6 +1,21 @@
# ChangeLog for media-libs/amanith
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/amanith/ChangeLog,v 1.3 2007/06/11 04:40:45 vapier Exp $
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/amanith/ChangeLog,v 1.4 2008/08/11 21:25:50 maekke Exp $
+
+*amanith-0.3-r2 (11 Aug 2008)
+
+ 11 Aug 2008; Markus Meier <maekke@gentoo.org>
+ -files/amanith-0.3-build.patch, -files/amanith-0.3-freetype.patch,
+ +files/amanith-0.3-freetype-fix.patch,
+ +files/amanith-0.3-gcc-C++fix.patch, -files/amanith-0.3-gcc4.patch,
+ +files/amanith-0.3-gcc43.patch,
+ +files/amanith-0.3-nothirdpartystatic.patch,
+ +files/amanith-0.3-system-freetype.patch,
+ +files/amanith-0.3-system-glew.patch,
+ +files/amanith-0.3-system-libjpeg.patch,
+ +files/amanith-0.3-system-libpng.patch, -amanith-0.3-r1.ebuild,
+ +amanith-0.3-r2.ebuild:
+ revision bump with patches from fedora, also reported in bug #202315
11 Jun 2007; Mike Frysinger <vapier@gentoo.org>
+files/amanith-0.3-freetype.patch, amanith-0.3-r1.ebuild:
diff --git a/media-libs/amanith/Manifest b/media-libs/amanith/Manifest
index 972487aa2550..16147c332a3a 100644
--- a/media-libs/amanith/Manifest
+++ b/media-libs/amanith/Manifest
@@ -1,17 +1,22 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-AUX amanith-0.3-build.patch 1606 RMD160 068f1d7e9e95f106a2a0c18cd26757ec594b54d1 SHA1 652a754a21f1f150ff231344918d181bcf257bd9 SHA256 81af009afe75284631313de813dcc2b8c2fbbf1ec44112f70e463d5fe5f34edc
-AUX amanith-0.3-freetype.patch 2137 RMD160 cea5148dbc9ee2cb90931258bb2998cd619dcaca SHA1 513297d0c095ec05894621f19968271bf33c69b2 SHA256 07beab5492ac9c542c9268200433e99ce9a28f18df3f6d237c1d62c2a1ddc9b0
-AUX amanith-0.3-gcc4.patch 252 RMD160 2091c0f8f453f5868adf18d2500880e3fff622c3 SHA1 ab3c16309bb4d7e18d0db678d8d27439bc9e08ef SHA256 021603dff71d331772e52385b31709396ff6a54d60e8e835b65eeb4a1504e032
+AUX amanith-0.3-freetype-fix.patch 2339 RMD160 b89216ba8ec8d31d07423b846b09a625c7d7d553 SHA1 3773198d33cbd0f98da52688e0f2b28ad983087d SHA256 cf7bba976b3eb843dfdcf425455c581414588b57e4048f251ffa63ea7204a7aa
+AUX amanith-0.3-gcc-C++fix.patch 436 RMD160 8efea88217243e9a965925ad6c550a5845cb0472 SHA1 b8be74470fba1cf8bbd0c13618c1e1aa44ab0284 SHA256 fd9a97b045db312717876c47ee33c1f839b246a4722f69bd3e4dee4cd658e941
+AUX amanith-0.3-gcc43.patch 926 RMD160 040f5002056fd5a914737aeece2d3767348aeeeb SHA1 c256f96614de38f458cd7fcec2e4ec291d0d9341 SHA256 39c7f855c1d512656b9386a80f3cd92f96972ed7b9ac4fd22240fb15ad1d1a71
+AUX amanith-0.3-nothirdpartystatic.patch 1570 RMD160 3ce1c76e0d4230109256459a70108e34c41aeb7f SHA1 af2f312460a3fb888fe188f989ff46fe821ceaeb SHA256 6bbaec46a48fd6b29303d4e29a027fe98b374799fbca77b1c47335ff7d204ee7
+AUX amanith-0.3-system-freetype.patch 745 RMD160 30080be6856969d69c9cafcb036f605eda6fba2c SHA1 d50f2f837d815bb311bd7c1973544e1ef51f70f6 SHA256 b4db27e95133161b25ec8f74c7a55dfc621e8a0c0c06ae15704a70997d0c7974
+AUX amanith-0.3-system-glew.patch 1010 RMD160 2dad129c7dfc9ab7c82531a7f5ee331f06ac7b73 SHA1 550dd47754e5498d6909af90e0ccddbc2d16279c SHA256 1c83f5d6b3ab2c67dccaae3444ebb8848fb273ac3a2b7de9fb2557b6958e73b5
+AUX amanith-0.3-system-libjpeg.patch 456 RMD160 1e920709f60dfd991106408c504d1c270ff497cd SHA1 0359630f133e11d3836ca518a4a7b8d9d623ea36 SHA256 15f624df9bdfc855aacda727deaa8c02206dd2c8d652655ffe14ba896ce3f765
+AUX amanith-0.3-system-libpng.patch 441 RMD160 1a3717eb8242a89c4da0a7e32aba11b10a5d182b SHA1 932edb0081a600ece1b03137f18f80c603776005 SHA256 65091fe843d05bbeab2e28cac5b29f7f2eb1dea36be77e4ccc8a291bd9b7b1db
DIST amanith_03.tar.gz 7688202 RMD160 6bfe1f54bbf3ff70b299c5ebf9d2d13cfcfaa6fd SHA1 7bc3ab197a227d3dabf1902e420cba36e0a4e903 SHA256 2e92dde6e56abef0f5146fd61ad0310e176d25578673353afe4def99c6bdaa1a
-EBUILD amanith-0.3-r1.ebuild 1854 RMD160 971e9c61b0203aac8fbde046a78683530d178c5e SHA1 93a483830d64181393dd6d8af273992f1d9fb20e SHA256 d73e3cc22ce44eee4069807668b278c6aac158c5e2043bfbeee595fa19173a06
-MISC ChangeLog 686 RMD160 0a0aec5d9057940888a2333ef34c4f9e8f0aaf2d SHA1 cfce6964dc653e8b3ffeb053ac6c86adc48ea762 SHA256 35ec38a2c462a6062b7ec323e672023d6e8ccb2fd52951065f5c80e9af4c27a5
+EBUILD amanith-0.3-r2.ebuild 1941 RMD160 2365ff5910204784e7271ebcf693ee788e15bae6 SHA1 5058ab2f64c94409790c3b3392e069c5abd48997 SHA256 46409710c73a824d68b43772eecf179f29ed6734420019248657e21f4b01198c
+MISC ChangeLog 1317 RMD160 a2186f6bc877662037268ee562ad2bce0e57b402 SHA1 3206d28f22f21f4dbf4cc50e31eebe0ab7676c51 SHA256 2daed0e835da4c63c36c5605000caeec9baec20218de63e51d852fd199b1f16f
MISC metadata.xml 161 RMD160 60f70b15d67f0e6aafc59833b2f0a30e30b51765 SHA1 1c35398222ef7ed670c31965e42cca77fe4b1da6 SHA256 e8daadc5e27e3ef1148993b5b48d96e93bc36d798a1f416693f7f8c84be427e1
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.7 (GNU/Linux)
+Version: GnuPG v2.0.9 (GNU/Linux)
-iD8DBQFIQNljj9hvisErhMIRApSDAJ9wJO653Vqq2O0EiuEushEcwpph1gCg7VeU
-HRDRoF3yFBVbr2MOAItk31o=
-=cqI3
+iEYEARECAAYFAkigrq4ACgkQkKaRLQcq0GLbkgCeJEFrXNp3WCBpknfO3eSQHzOa
+4JYAoJCn49KfTFUhm2Kbr+CEvb98w7VR
+=QfEg
-----END PGP SIGNATURE-----
diff --git a/media-libs/amanith/amanith-0.3-r1.ebuild b/media-libs/amanith/amanith-0.3-r2.ebuild
index af202c83c823..a0914fb84542 100644
--- a/media-libs/amanith/amanith-0.3-r1.ebuild
+++ b/media-libs/amanith/amanith-0.3-r2.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/amanith/amanith-0.3-r1.ebuild,v 1.2 2007/06/11 04:40:45 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/amanith/amanith-0.3-r2.ebuild,v 1.1 2008/08/11 21:25:50 maekke Exp $
-inherit eutils toolchain-funcs
+inherit eutils toolchain-funcs qt4
DESCRIPTION="OpenSource C++ CrossPlatform framework designed for 2d & 3d vector graphics"
HOMEPAGE="http://www.amanith.org/"
@@ -13,21 +13,27 @@ SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="examples jpeg opengl png truetype"
-DEPEND="truetype? ( >=media-libs/freetype-2.2.1 )
+DEPEND="
jpeg? ( >=media-libs/jpeg-6b )
- png? ( >=media-libs/libpng-1.2.10 )
opengl? ( media-libs/glew )
+ png? ( >=media-libs/libpng-1.2.10 )
+ truetype? ( >=media-libs/freetype-2.2.1 )
>=x11-libs/qt-4.1.0"
-S=${WORKDIR}/${PN}
+S="${WORKDIR}/${PN}"
src_unpack() {
unpack ${A}
cd "${S}"
- epatch "${FILESDIR}"/${P}-build.patch
- epatch "${FILESDIR}"/${P}-gcc4.patch
- epatch "${FILESDIR}"/${P}-freetype.patch #179734
+ epatch "${FILESDIR}"/${P}-freetype-fix.patch
+ epatch "${FILESDIR}"/${P}-gcc-C++fix.patch
+ epatch "${FILESDIR}"/${P}-gcc43.patch
+ epatch "${FILESDIR}"/${P}-nothirdpartystatic.patch
+ epatch "${FILESDIR}"/${P}-system-freetype.patch
+ epatch "${FILESDIR}"/${P}-system-glew.patch
+ epatch "${FILESDIR}"/${P}-system-libjpeg.patch
+ epatch "${FILESDIR}"/${P}-system-libpng.patch
rm -rf 3rdpart include/GL || die
sed -i -e '/SUBDIRS/s:3rdpart::' amanith.pro || die
@@ -42,17 +48,11 @@ src_unpack() {
}
src_compile() {
- export AMANITHDIR=${S}
- # make sure our env settings are respected
- qmake \
- -unix \
- QMAKE_CC=$(tc-getCC) \
- QMAKE_CXX=$(tc-getCXX) \
- QMAKE_CFLAGS="${CFLAGS}" \
- QMAKE_CXXFLAGS="${CXXFLAGS}" \
- QMAKE_LFLAGS="${LDFLAGS}" \
- || die "qmake failed"
- emake || die "emake failed"
+ export AMANITHDIR="${S}"
+ export LD_LIBRARY_PATH="${AMANITHDIR}/lib:${LD_LIBRARY_PATH}"
+
+ eqmake4 || die
+ emake || die
}
src_install() {
diff --git a/media-libs/amanith/files/amanith-0.3-build.patch b/media-libs/amanith/files/amanith-0.3-build.patch
deleted file mode 100644
index 27e6f3a45fec..000000000000
--- a/media-libs/amanith/files/amanith-0.3-build.patch
+++ /dev/null
@@ -1,60 +0,0 @@
---- amanith/plugins/fonts/build.conf
-+++ amanith/plugins/fonts/build.conf
-@@ -38,9 +38,9 @@
- # take into account compilation mode (debug or release)
- DEFINES -= FT_DEBUG_LEVEL_ERROR FT_DEBUG_LEVEL_TRACE
-
--INCLUDEPATH += $$(AMANITHDIR)/3rdpart/freetype2/include
-+QMAKE_CXXFLAGS += `pkg-config --cflags freetype2`
-
--unix: LIBS += $$(AMANITHDIR)/lib/libfreetype2.a $$(AMANITHDIR)/lib/libzlib.a
-+unix: LIBS += `pkg-config --libs freetype2` -lz
- win32: {
-
- !contains(DEFINES, WIN32_MINGW) {
---- amanith/plugins/jpeg/build.conf
-+++ amanith/plugins/jpeg/build.conf
-@@ -25,7 +25,7 @@
- }
- }
-
--unix: LIBS += $$(AMANITHDIR)/lib/libjpeg.a
-+unix: LIBS += -ljpeg
- win32: {
-
- !contains(DEFINES, WIN32_MINGW) {
---- amanith/plugins/jpeg/gjpegimpexp.cpp
-+++ amanith/plugins/jpeg/gjpegimpexp.cpp
-@@ -36,7 +36,7 @@
- #include <csetjmp>
-
- G_EXTERN_C {
-- #include "../../3rdpart/libjpeg/jpeglib.h"
-+ #include <jpeglib.h>
- };
-
- /****************************************************************************
---- amanith/plugins/png/build.conf
-+++ amanith/plugins/png/build.conf
-@@ -25,9 +25,8 @@
- }
- }
-
--INCLUDEPATH += $$(AMANITHDIR)/3rdpart/zlib
-
--unix: LIBS += $$(AMANITHDIR)/lib/libpng.a $$(AMANITHDIR)/lib/libzlib.a
-+unix: LIBS += -lpng -lz
- win32: {
-
- !contains(DEFINES, WIN32_MINGW) {
---- amanith/plugins/png/gpngimpexp.cpp
-+++ amanith/plugins/png/gpngimpexp.cpp
-@@ -35,7 +35,7 @@
- //#include <csetjmp>
-
- G_EXTERN_C {
-- #include "../../3rdpart/libpng/png.h"
-+ #include <png.h>
- };
-
- /****************************************************************************
diff --git a/media-libs/amanith/files/amanith-0.3-freetype.patch b/media-libs/amanith/files/amanith-0.3-freetype-fix.patch
index bd5a93c6bb3e..fd6e052162ad 100644
--- a/media-libs/amanith/files/amanith-0.3-freetype.patch
+++ b/media-libs/amanith/files/amanith-0.3-freetype-fix.patch
@@ -1,9 +1,6 @@
-should be fixed upstream already
-
-http://bugs.gentoo.org/179734
-
---- amarinth/plugins/fonts/fontsimpexp.cpp
-+++ amarinth/plugins/fonts/gfontsimpexp.cpp
+diff -up amanith/plugins/fonts/gfontsimpexp.cpp.BAD amanith/plugins/fonts/gfontsimpexp.cpp
+--- amanith/plugins/fonts/gfontsimpexp.cpp.BAD 2007-11-15 10:02:49.000000000 -0500
++++ amanith/plugins/fonts/gfontsimpexp.cpp 2007-11-15 10:05:59.000000000 -0500
@@ -34,7 +34,6 @@
#include <ft2build.h>
@@ -12,17 +9,18 @@ http://bugs.gentoo.org/179734
namespace Amanith {
-@@ -198,7 +197,8 @@
+@@ -197,8 +196,9 @@ static void LoadGlyph(GFont2D& Font, con
+ GFontChar2D *c;
GGlyphMetrics tmpMetrics;
FT_Error error;
- GInt32 i, j, k0, k1, numVert;
-- FT_SubGlyphRec subGlyph;
+ FT_Matrix subGlyphMatrix;
+ FT_Int subGlyphArg1, subGlyphArg2;
+ GInt32 i, j, k0, k1, numVert;
+- FT_SubGlyphRec subGlyph;
GPoint2 p;
GReal x, y;
GVect<GReal, 2> v;
-@@ -223,19 +223,22 @@
+@@ -223,19 +223,22 @@ static void LoadGlyph(GFont2D& Font, con
GDynArray<GSubChar2D> subChars(Face->glyph->num_subglyphs);
for (i = 0; i < (GInt32)Face->glyph->num_subglyphs; i++) {
diff --git a/media-libs/amanith/files/amanith-0.3-gcc-C++fix.patch b/media-libs/amanith/files/amanith-0.3-gcc-C++fix.patch
new file mode 100644
index 000000000000..e7b2f41b8908
--- /dev/null
+++ b/media-libs/amanith/files/amanith-0.3-gcc-C++fix.patch
@@ -0,0 +1,12 @@
+diff -up amanith/examples/opengl/vectorizer/drawer.h.BAD amanith/examples/opengl/vectorizer/drawer.h
+--- amanith/examples/opengl/vectorizer/drawer.h.BAD 2007-11-14 17:52:37.000000000 -0500
++++ amanith/examples/opengl/vectorizer/drawer.h 2007-11-14 17:53:07.000000000 -0500
+@@ -71,7 +71,7 @@ public:
+ #endif
+ // destructor
+ ~QGLWidgetTest();
+- void QGLWidgetTest::timerEvent(QTimerEvent *e);
++ void timerEvent(QTimerEvent *e);
+ };
+
+
diff --git a/media-libs/amanith/files/amanith-0.3-gcc4.patch b/media-libs/amanith/files/amanith-0.3-gcc4.patch
deleted file mode 100644
index d1294bd1320d..000000000000
--- a/media-libs/amanith/files/amanith-0.3-gcc4.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- amanith/examples/opengl/vectorizer/drawer.h
-+++ amanith/examples/opengl/vectorizer/drawer.h
-@@ -71,7 +71,7 @@
- #endif
- // destructor
- ~QGLWidgetTest();
-- void QGLWidgetTest::timerEvent(QTimerEvent *e);
-+ void timerEvent(QTimerEvent *e);
- };
-
-
diff --git a/media-libs/amanith/files/amanith-0.3-gcc43.patch b/media-libs/amanith/files/amanith-0.3-gcc43.patch
new file mode 100644
index 000000000000..0e7e867e1a74
--- /dev/null
+++ b/media-libs/amanith/files/amanith-0.3-gcc43.patch
@@ -0,0 +1,22 @@
+diff -up amanith/include/amanith/support/gutilities.h.BAD amanith/include/amanith/support/gutilities.h
+--- amanith/include/amanith/support/gutilities.h.BAD 2008-02-19 11:00:42.000000000 -0500
++++ amanith/include/amanith/support/gutilities.h 2008-02-19 11:00:49.000000000 -0500
+@@ -34,6 +34,7 @@
+ #include "amanith/geometry/gvect.h"
+ #include "amanith/geometry/gquat.h"
+ #include <algorithm>
++#include <cstring>
+
+ /*!
+ \file gutilities.h
+diff -up amanith/include/amanith/rendering/gopenglboard.h.BAD amanith/include/amanith/rendering/gopenglboard.h
+--- amanith/include/amanith/rendering/gopenglboard.h.BAD 2008-02-19 10:59:06.000000000 -0500
++++ amanith/include/amanith/rendering/gopenglboard.h 2008-02-19 10:59:13.000000000 -0500
+@@ -32,6 +32,7 @@
+ #include "amanith/rendering/gdrawboard.h"
+ #include "amanith/2d/gtesselator2d.h"
+ #include "amanith/gopenglext.h"
++#include <cstring>
+ #include <utility>
+
+ /*!
diff --git a/media-libs/amanith/files/amanith-0.3-nothirdpartystatic.patch b/media-libs/amanith/files/amanith-0.3-nothirdpartystatic.patch
new file mode 100644
index 000000000000..1634234aa849
--- /dev/null
+++ b/media-libs/amanith/files/amanith-0.3-nothirdpartystatic.patch
@@ -0,0 +1,45 @@
+--- amanith/amanith.pro.BAD 2007-05-26 18:03:40.000000000 -0500
++++ amanith/amanith.pro 2007-05-26 18:03:48.000000000 -0500
+@@ -1,4 +1,4 @@
+ TEMPLATE = subdirs
+ CONFIG += ordered
+
+-SUBDIRS += 3rdpart build plugins examples
++SUBDIRS += build plugins examples
+--- amanith/plugins/jpeg/build.conf.BAD 2007-05-26 18:03:57.000000000 -0500
++++ amanith/plugins/jpeg/build.conf 2007-05-26 18:04:09.000000000 -0500
+@@ -25,7 +25,7 @@ contains(DEFINES, _JPEG_PLUGIN) {
+ }
+ }
+
+-unix: LIBS += $$(AMANITHDIR)/lib/libjpeg.a
++unix: LIBS += -ljpeg
+ win32: {
+
+ !contains(DEFINES, WIN32_MINGW) {
+--- amanith/plugins/png/build.conf.BAD 2007-05-26 18:04:21.000000000 -0500
++++ amanith/plugins/png/build.conf 2007-05-26 18:04:33.000000000 -0500
+@@ -25,9 +25,7 @@ contains(DEFINES, _PNG_PLUGIN) {
+ }
+ }
+
+-INCLUDEPATH += $$(AMANITHDIR)/3rdpart/zlib
+-
+-unix: LIBS += $$(AMANITHDIR)/lib/libpng.a $$(AMANITHDIR)/lib/libzlib.a
++unix: LIBS += -lpng -lz
+ win32: {
+
+ !contains(DEFINES, WIN32_MINGW) {
+--- amanith/plugins/fonts/build.conf.BAD 2007-05-26 18:04:44.000000000 -0500
++++ amanith/plugins/fonts/build.conf 2007-05-26 18:05:08.000000000 -0500
+@@ -38,9 +38,9 @@ contains(DEFINES, _FONTS_PLUGIN) {
+ # take into account compilation mode (debug or release)
+ DEFINES -= FT_DEBUG_LEVEL_ERROR FT_DEBUG_LEVEL_TRACE
+
+ INCLUDEPATH += $$(AMANITHDIR)/3rdpart/freetype2/include
+
+-unix: LIBS += $$(AMANITHDIR)/lib/libfreetype2.a $$(AMANITHDIR)/lib/libzlib.a
++unix: LIBS += -lfreetype -lz
+ win32: {
+
+ !contains(DEFINES, WIN32_MINGW) {
diff --git a/media-libs/amanith/files/amanith-0.3-system-freetype.patch b/media-libs/amanith/files/amanith-0.3-system-freetype.patch
new file mode 100644
index 000000000000..45158cf1d603
--- /dev/null
+++ b/media-libs/amanith/files/amanith-0.3-system-freetype.patch
@@ -0,0 +1,19 @@
+diff -up amanith/plugins/fonts/build.conf.BAD amanith/plugins/fonts/build.conf
+--- amanith/plugins/fonts/build.conf.BAD 2007-11-15 10:18:43.000000000 -0500
++++ amanith/plugins/fonts/build.conf 2007-11-15 10:19:10.000000000 -0500
+@@ -38,7 +38,7 @@ contains(DEFINES, _FONTS_PLUGIN) {
+ # take into account compilation mode (debug or release)
+ DEFINES -= FT_DEBUG_LEVEL_ERROR FT_DEBUG_LEVEL_TRACE
+
+-INCLUDEPATH += $$(AMANITHDIR)/3rdpart/freetype2/include
++QMAKE_CXXFLAGS += `pkg-config --cflags freetype2`
+
+ unix: LIBS += -lfreetype -lz
+ win32: {
+@@ -51,4 +51,4 @@ win32: {
+ contains(DEFINES, WIN32_MINGW) {
+ LIBS += $$(AMANITHDIR)/lib/libfreetype2.a $$(AMANITHDIR)/lib/libzlib.a
+ }
+-}
+\ No newline at end of file
++}
diff --git a/media-libs/amanith/files/amanith-0.3-system-glew.patch b/media-libs/amanith/files/amanith-0.3-system-glew.patch
new file mode 100644
index 000000000000..ab9d4394d754
--- /dev/null
+++ b/media-libs/amanith/files/amanith-0.3-system-glew.patch
@@ -0,0 +1,26 @@
+diff -up amanith/build/build.pro.BAD amanith/build/build.pro
+--- amanith/build/build.pro.BAD 2007-11-14 17:41:00.000000000 -0500
++++ amanith/build/build.pro 2007-11-14 17:41:41.000000000 -0500
+@@ -69,8 +69,9 @@ SOURCES = gelement.cpp \
+ #
+ #*********************************************************
+ contains(DEFINES, _OPENGLEXT_PLUGIN) {
+- SOURCES += support/glew.c gopenglext.cpp
++ SOURCES += gopenglext.cpp
+ CONFIG += opengl
++ LIBS += -lGLEW
+
+ # Qt4 syntax
+ contains(DEFINES, USE_QT4) {
+diff -up amanith/include/amanith/gopenglext.h.BAD amanith/include/amanith/gopenglext.h
+--- amanith/include/amanith/gopenglext.h.BAD 2007-11-14 17:42:28.000000000 -0500
++++ amanith/include/amanith/gopenglext.h 2007-11-14 17:42:52.000000000 -0500
+@@ -29,7 +29,7 @@
+ #ifndef GOPENGLEXT_H
+ #define GOPENGLEXT_H
+
+-#include "GL/glew.h"
++#include <GL/glew.h>
+ // this inclusion to make glew linking working with some platforms (ex: Mac)
+ #include "amanith/gelement.h"
+ #ifdef G_OS_WIN
diff --git a/media-libs/amanith/files/amanith-0.3-system-libjpeg.patch b/media-libs/amanith/files/amanith-0.3-system-libjpeg.patch
new file mode 100644
index 000000000000..de6bd334e816
--- /dev/null
+++ b/media-libs/amanith/files/amanith-0.3-system-libjpeg.patch
@@ -0,0 +1,12 @@
+diff -up amanith/plugins/jpeg/gjpegimpexp.cpp.BAD amanith/plugins/jpeg/gjpegimpexp.cpp
+--- amanith/plugins/jpeg/gjpegimpexp.cpp.BAD 2007-11-14 22:06:33.000000000 -0500
++++ amanith/plugins/jpeg/gjpegimpexp.cpp 2007-11-14 22:07:15.000000000 -0500
+@@ -36,7 +36,7 @@
+ #include <csetjmp>
+
+ G_EXTERN_C {
+- #include "../../3rdpart/libjpeg/jpeglib.h"
++ #include <jpeglib.h>
+ };
+
+ /****************************************************************************
diff --git a/media-libs/amanith/files/amanith-0.3-system-libpng.patch b/media-libs/amanith/files/amanith-0.3-system-libpng.patch
new file mode 100644
index 000000000000..c6a9ad808eca
--- /dev/null
+++ b/media-libs/amanith/files/amanith-0.3-system-libpng.patch
@@ -0,0 +1,12 @@
+diff -up amanith/plugins/png/gpngimpexp.cpp.BAD amanith/plugins/png/gpngimpexp.cpp
+--- amanith/plugins/png/gpngimpexp.cpp.BAD 2007-11-14 22:09:31.000000000 -0500
++++ amanith/plugins/png/gpngimpexp.cpp 2007-11-14 22:10:11.000000000 -0500
+@@ -35,7 +35,7 @@
+ //#include <csetjmp>
+
+ G_EXTERN_C {
+- #include "../../3rdpart/libpng/png.h"
++ #include <png.h>
+ };
+
+ /****************************************************************************