| 1 |
aballier |
1.2 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
scarabeus |
1.1 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
aballier |
1.2 |
# $Header: /var/cvsroot/gentoo-x86/media-libs/giflib/giflib-4.1.6-r2.ebuild,v 1.1 2011/07/17 22:48:34 scarabeus Exp $
|
| 4 |
scarabeus |
1.1 |
|
| 5 |
|
|
EAPI=4
|
| 6 |
|
|
|
| 7 |
|
|
inherit eutils libtool
|
| 8 |
|
|
|
| 9 |
|
|
DESCRIPTION="Library to handle, display and manipulate GIF images"
|
| 10 |
|
|
HOMEPAGE="http://sourceforge.net/projects/giflib/"
|
| 11 |
|
|
SRC_URI="mirror://sourceforge/giflib/${P}.tar.bz2"
|
| 12 |
|
|
|
| 13 |
|
|
LICENSE="MIT"
|
| 14 |
|
|
SLOT="0"
|
| 15 |
aballier |
1.2 |
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd"
|
| 16 |
scarabeus |
1.1 |
IUSE="rle static-libs X"
|
| 17 |
|
|
|
| 18 |
|
|
DEPEND="X? (
|
| 19 |
|
|
x11-libs/libXt
|
| 20 |
|
|
x11-libs/libX11
|
| 21 |
|
|
x11-libs/libICE
|
| 22 |
|
|
x11-libs/libSM
|
| 23 |
|
|
)
|
| 24 |
|
|
rle? ( media-libs/urt )"
|
| 25 |
|
|
RDEPEND="${DEPEND}"
|
| 26 |
|
|
|
| 27 |
|
|
src_prepare() {
|
| 28 |
|
|
epatch "${FILESDIR}"/${P}-gif2rle.patch
|
| 29 |
|
|
epatch "${FILESDIR}"/${P}-giffix-null-Extension-fix.patch
|
| 30 |
|
|
elibtoolize
|
| 31 |
|
|
epunt_cxx
|
| 32 |
|
|
}
|
| 33 |
|
|
|
| 34 |
|
|
src_configure() {
|
| 35 |
|
|
local myconf=""
|
| 36 |
|
|
|
| 37 |
|
|
# prevent circular depend #111455
|
| 38 |
|
|
if has_version media-libs/urt ; then
|
| 39 |
|
|
myconf="${myconf} $(use_enable rle)"
|
| 40 |
|
|
else
|
| 41 |
|
|
myconf="${myconf} --disable-rle"
|
| 42 |
|
|
fi
|
| 43 |
|
|
|
| 44 |
|
|
econf \
|
| 45 |
|
|
--disable-gl \
|
| 46 |
|
|
$(use_enable static-libs static) \
|
| 47 |
|
|
$(use_enable X x11) \
|
| 48 |
|
|
${myconf}
|
| 49 |
|
|
}
|
| 50 |
|
|
|
| 51 |
|
|
src_install() {
|
| 52 |
|
|
default
|
| 53 |
|
|
# for static libs the .la file is required if build with +rle or +X
|
| 54 |
|
|
use static-libs || find "${ED}" -name '*.la' -exec rm -f {} +
|
| 55 |
|
|
dodoc AUTHORS BUGS ChangeLog NEWS ONEWS README TODO doc/*.txt
|
| 56 |
|
|
dohtml -r doc
|
| 57 |
|
|
}
|