/[gentoo-x86]/media-libs/imlib/imlib-1.9.15-r4.ebuild
Gentoo

Contents of /media-libs/imlib/imlib-1.9.15-r4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (show annotations) (download)
Sat Feb 28 13:26:28 2015 UTC (4 years, 10 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.13: +2 -2 lines
Stable for ia64, wrt bug #525758

(Portage version: 2.2.14/cvs/Linux x86_64, RepoMan options: --include-arches="ia64", signed Manifest commit with key 7194459F)

1 # Copyright 1999-2015 Gentoo Foundation
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-r4.ebuild,v 1.13 2015/02/24 08:54:10 ago Exp $
4
5 EAPI=4
6 inherit autotools eutils multilib-minimal
7
8 PVP=(${PV//[-\._]/ })
9 DESCRIPTION="Image loading and rendering library"
10 HOMEPAGE="http://ftp.acc.umu.se/pub/GNOME/sources/imlib/1.9/"
11 SRC_URI="mirror://gnome/sources/${PN}/${PVP[0]}.${PVP[1]}/${P}.tar.bz2
12 mirror://gentoo/gtk-1-for-imlib.m4.bz2"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~x86-fbsd"
17 IUSE="doc static-libs"
18
19 RDEPEND=">=media-libs/tiff-3.9.7-r1[${MULTILIB_USEDEP}]
20 >=media-libs/giflib-4.1.6-r3[${MULTILIB_USEDEP}]
21 >=media-libs/libpng-1.2.51[${MULTILIB_USEDEP}]
22 >=virtual/jpeg-0-r2:0[${MULTILIB_USEDEP}]
23 >=x11-libs/libICE-1.0.8-r1[${MULTILIB_USEDEP}]
24 >=x11-libs/libSM-1.2.1-r1[${MULTILIB_USEDEP}]
25 >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}]
26 abi_x86_32? (
27 !app-emulation/emul-linux-x86-gtklibs[-abi_x86_32(-)]
28 !<=app-emulation/emul-linux-x86-gtklibs-20140406
29 )"
30 DEPEND="${RDEPEND}"
31
32 src_prepare() {
33 # Fix aclocal underquoted definition warnings.
34 # Conditionalize gdk functions for bug 40453.
35 # Fix imlib-config for bug 3425.
36 epatch "${FILESDIR}"/${P}.patch
37 epatch "${FILESDIR}"/${PN}-security.patch #security #72681
38 epatch "${FILESDIR}"/${P}-bpp16-CVE-2007-3568.patch # security #201887
39 epatch "${FILESDIR}"/${P}-fix-rendering.patch #197489
40 epatch "${FILESDIR}"/${P}-asneeded.patch #207638
41 epatch "${FILESDIR}"/${P}-libpng15.patch #357167
42
43 mkdir m4 && cp "${WORKDIR}"/gtk-1-for-imlib.m4 m4
44
45 AT_M4DIR="m4" eautoreconf
46 }
47
48 multilib_src_configure() {
49 ECONF_SOURCE="${S}" econf \
50 --sysconfdir=/etc/imlib \
51 $(use_enable static-libs static) \
52 --disable-gdk \
53 --disable-gtktest
54 }
55
56 multilib_src_install() {
57 emake DESTDIR="${D}" install || die
58 }
59
60 multilib_src_install_all() {
61 dodoc AUTHORS ChangeLog README
62 use doc && dohtml doc/*
63
64 # Punt unused files
65 rm -f "${D}"/usr/lib*/pkgconfig/imlibgdk.pc
66 find "${D}" -name '*.la' -exec rm -f {} +
67 }

  ViewVC Help
Powered by ViewVC 1.1.20