Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 499268 | Differences between
and this patch

Collapse All | Expand All

(-)portage/media-libs/imlib/imlib-1.9.15-r3.ebuild (-15 / +25 lines)
Lines 1-9 Link Here
1
# Copyright 1999-2011 Gentoo Foundation
1
# Copyright 1999-2014 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/media-libs/imlib/imlib-1.9.15-r3.ebuild,v 1.7 2011/10/11 20:19:49 ssuominen Exp $
3
# $Header: $
4
4
5
EAPI=2
5
EAPI=4
6
inherit autotools eutils
6
inherit autotools eutils multilib-minimal
7
7
8
PVP=(${PV//[-\._]/ })
8
PVP=(${PV//[-\._]/ })
9
DESCRIPTION="Image loading and rendering library"
9
DESCRIPTION="Image loading and rendering library"
Lines 13-28 SRC_URI="mirror://gnome/sources/${PN}/${ Link Here
13
13
14
LICENSE="GPL-2"
14
LICENSE="GPL-2"
15
SLOT="0"
15
SLOT="0"
16
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~x86-fbsd"
16
KEYWORDS="~amd64"
17
IUSE="doc static-libs"
17
IUSE="doc static-libs"
18
18
19
RDEPEND=">=media-libs/tiff-3.5.5
19
RDEPEND=">=media-libs/tiff-3.5.5[${MULTILIB_USEDEP}]
20
	>=media-libs/giflib-4.1.0
20
	>=media-libs/giflib-4.1.0[${MULTILIB_USEDEP}]
21
	>=media-libs/libpng-1.2.1
21
	>=media-libs/libpng-1.2.1[${MULTILIB_USEDEP}]
22
	virtual/jpeg
22
	virtual/jpeg[${MULTILIB_USEDEP}]
23
	x11-libs/libICE
23
	x11-libs/libICE[${MULTILIB_USEDEP}]
24
	x11-libs/libSM
24
	x11-libs/libSM[${MULTILIB_USEDEP}]
25
	x11-libs/libXext"
25
	x11-libs/libXext[${MULTILIB_USEDEP}]"
26
DEPEND="${RDEPEND}"
26
DEPEND="${RDEPEND}"
27
27
28
src_prepare() {
28
src_prepare() {
Lines 36-57 src_prepare() { Link Here
36
	epatch "${FILESDIR}"/${P}-asneeded.patch #207638
36
	epatch "${FILESDIR}"/${P}-asneeded.patch #207638
37
	epatch "${FILESDIR}"/${P}-libpng15.patch #357167
37
	epatch "${FILESDIR}"/${P}-libpng15.patch #357167
38
38
39
	# 499268
40
	epatch "${FILESDIR}"/${P}-giflib5support.patch
41
	epatch "${FILESDIR}"/${P}-t-load-requries-libx11.patch
42
	epatch "${FILESDIR}"/${P}-myPrintGifError.patch
43
39
	mkdir m4 && cp "${WORKDIR}"/gtk-1-for-imlib.m4 m4
44
	mkdir m4 && cp "${WORKDIR}"/gtk-1-for-imlib.m4 m4
40
45
41
	AT_M4DIR="m4" eautoreconf
46
	AT_M4DIR="m4" eautoreconf
42
}
47
}
43
48
44
src_configure() {
49
multilib_src_configure() {
45
	econf \
50
	ECONF_SOURCE="${S}" econf \
46
		--sysconfdir=/etc/imlib \
51
		--sysconfdir=/etc/imlib \
47
		$(use_enable static-libs static) \
52
		$(use_enable static-libs static) \
48
		--disable-gdk \
53
		--disable-gdk \
49
		--disable-gtktest
54
		--disable-gtktest
50
}
55
}
51
56
52
src_install() {
57
multilib_src_install() {
53
	emake DESTDIR="${D}" install || die
58
	emake DESTDIR="${D}" install || die
59
	# fix ldflags leaking into pkgconifg
60
	sed -e 's/-L\${libdir}.*-lImlib/-L${libdir} -lImlib/' \
61
		-i "${ED}"/usr/$(get_libdir)/pkgconfig/imlib.pc || die
62
}
54
63
64
multilib_src_install_all() {
55
	dodoc AUTHORS ChangeLog README
65
	dodoc AUTHORS ChangeLog README
56
	use doc && dohtml doc/*
66
	use doc && dohtml doc/*
57
67

Return to bug 499268