diff options
Diffstat (limited to 'dev-dotnet/libgdiplus/libgdiplus-1.0-r1.ebuild')
-rw-r--r-- | dev-dotnet/libgdiplus/libgdiplus-1.0-r1.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/dev-dotnet/libgdiplus/libgdiplus-1.0-r1.ebuild b/dev-dotnet/libgdiplus/libgdiplus-1.0-r1.ebuild new file mode 100644 index 000000000000..9920c44f900c --- /dev/null +++ b/dev-dotnet/libgdiplus/libgdiplus-1.0-r1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-dotnet/libgdiplus/libgdiplus-1.0-r1.ebuild,v 1.1 2004/07/03 01:58:18 latexer Exp $ + +inherit libtool + +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 + >=x11-libs/cairo-0.1.23 + tiff? ( media-libs/tiff ) + gif? ( media-libs/libungif ) + jpeg? ( media-libs/jpeg ) + png? ( media-libs/libpng )" + +RDEPEND=">=dev-dotnet/mono-1.0" + +src_unpack() { + unpack ${A} + cd ${S} + + # See bug #55916 + einfo "Fixing a libtool problem" + rm ltmain.sh + aclocal + libtoolize --force --copy +} + +src_compile() { + local myconf="" + use tiff || myconf="--without-libtiff ${myconf}" + use gif || myconf="--without-libungif ${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 +} |