/[gentoo-x86]/media-libs/libpng/libpng-1.5.7.ebuild
Gentoo

Contents of /media-libs/libpng/libpng-1.5.7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Mon Feb 6 20:00:18 2012 UTC (2 years, 6 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
old

(Portage version: 2.2.0_alpha84/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-libs/libpng/libpng-1.5.7.ebuild,v 1.5 2012/02/01 02:16:00 jer Exp $
4
5 # WARNING: media-gfx/optipng is shipping internal copy of libpng14. Look out for
6 # security.
7
8 EAPI=4
9
10 inherit eutils libtool multilib
11
12 DESCRIPTION="Portable Network Graphics library"
13 HOMEPAGE="http://www.libpng.org/"
14 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz
15 apng? ( mirror://sourceforge/${PN}-apng/${P}-apng.patch.gz )"
16
17 LICENSE="as-is"
18 SLOT="0"
19 KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
20 IUSE="apng neon static-libs"
21
22 RDEPEND="sys-libs/zlib"
23 DEPEND="${RDEPEND}
24 !<x11-libs/gdk-pixbuf-2.24.0-r1
25 !<x11-libs/libsexy-0.1.11-r3
26 app-arch/xz-utils"
27
28 DOCS=( ANNOUNCE CHANGES libpng-manual.txt README TODO )
29
30 src_prepare() {
31 if use apng; then
32 epatch "${WORKDIR}"/${P}-apng.patch
33 # Don't execute symbols check with apng patch wrt #378111
34 sed -i -e '/^check/s:scripts/symbols.chk::' Makefile.in || die
35 fi
36 elibtoolize
37 }
38
39 src_configure() {
40 econf \
41 $(use_enable static-libs static) \
42 $(use_enable neon arm-neon)
43 }
44
45 src_install() {
46 default
47 find "${ED}" -name '*.la' -exec rm -f {} +
48 }
49
50 pkg_preinst() {
51 has_version ${CATEGORY}/${PN}:1.4 && return 0
52 preserve_old_lib /usr/$(get_libdir)/libpng14$(get_libname 14)
53 }
54
55 pkg_postinst() {
56 has_version ${CATEGORY}/${PN}:1.4 && return 0
57 preserve_old_lib_notify /usr/$(get_libdir)/libpng14$(get_libname 14)
58 }

  ViewVC Help
Powered by ViewVC 1.1.20