summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-dotnet/libgdiplus/libgdiplus-1.0.5-r4.ebuild')
-rw-r--r--dev-dotnet/libgdiplus/libgdiplus-1.0.5-r4.ebuild60
1 files changed, 60 insertions, 0 deletions
diff --git a/dev-dotnet/libgdiplus/libgdiplus-1.0.5-r4.ebuild b/dev-dotnet/libgdiplus/libgdiplus-1.0.5-r4.ebuild
new file mode 100644
index 000000000000..2b9c0d91563c
--- /dev/null
+++ b/dev-dotnet/libgdiplus/libgdiplus-1.0.5-r4.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-dotnet/libgdiplus/libgdiplus-1.0.5-r4.ebuild,v 1.1 2005/06/03 22:00:37 latexer Exp $
+
+inherit libtool eutils
+
+DESCRIPTION="Library for using System.Drawing with Mono"
+
+HOMEPAGE="http://www.go-mono.com/"
+
+SRC_URI="http://www.go-mono.com/archive/${PV}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~x86 ~ppc"
+
+IUSE="tiff gif jpeg png"
+
+DEPEND="sys-devel/libtool
+ virtual/x11
+ =x11-libs/cairo-0.3.0*
+ tiff? ( media-libs/tiff )
+ gif? ( media-libs/libungif )
+ jpeg? ( media-libs/jpeg )
+ png? ( media-libs/libpng )"
+
+RDEPEND=">=dev-lang/mono-${PV}"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ epatch ${FILESDIR}/${P}-cairo-0.3.0-compat.diff || die "epatch failed"
+ epatch ${FILESDIR}/${PN}-1.0.6-giflib.diff || die "epatch failed"
+
+ # See bug #55916
+ einfo "Fixing a libtool problem"
+ aclocal || die "aclocal failed"
+ autoconf || die "autoconf failed"
+ libtoolize --force --copy || die "libtoolize failed"
+}
+
+src_compile() {
+ local myconf="--with-cairo=installed --disable-glitz"
+ use tiff || myconf="--without-libtiff ${myconf}"
+ use gif || myconf="--without-libgif ${myconf}"
+ use jpeg || myconf="--without-libjpeg ${myconf}"
+ use png || myconf="--without-libpng ${myconf}"
+
+ econf ${myconf} || die
+ # attribute((__stdcall__)) generate warnings on ppc
+ use ppc && sed -i -e 's:-Werror::g' src/Makefile
+ emake || die
+}
+
+src_install() {
+ einstall || die
+
+ dodoc AUTHORS ChangeLog NEWS README
+}