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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Apr 5 17:15:07 2013 UTC (20 months, 2 weeks ago) by ssuominen
Branch: MAIN
Version bump wrt #464728 by Lars Wendler. Include subslotting. Temporarily without KEYWORDS for testing.

(Portage version: 2.2.0_alpha170/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)

1 # Copyright 1999-2013 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.15.ebuild,v 1.1 2013/04/05 14:58:49 ssuominen Exp $
4
5 EAPI=5
6
7 inherit eutils libtool multilib
8
9 DESCRIPTION="Portable Network Graphics library"
10 HOMEPAGE="http://www.libpng.org/"
11 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz
12 apng? ( mirror://sourceforge/apng/${P}-apng.patch.gz )"
13
14 LICENSE="libpng"
15 SLOT="0/16"
16 KEYWORDS=""
17 #KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
18 IUSE="apng neon static-libs"
19
20 RDEPEND="sys-libs/zlib:="
21 DEPEND="${RDEPEND}
22 app-arch/xz-utils"
23
24 DOCS=( ANNOUNCE CHANGES libpng-manual.txt README TODO )
25
26 src_prepare() {
27 if use apng; then
28 epatch "${WORKDIR}"/${PN}-*-apng.patch
29 # Don't execute symbols check with apng patch wrt #378111
30 sed -i -e '/^check/s:scripts/symbols.chk::' Makefile.in || die
31 fi
32 elibtoolize
33 }
34
35 src_configure() {
36 econf \
37 $(use_enable static-libs static) \
38 --enable-arm-neon=$(usex neon on off)
39 }
40
41 src_install() {
42 default
43 # Even prune_libtool --all fails to remove libpng.la dead symlink wrt #436996
44 find "${ED}" -name '*.la' -exec rm -f {} +
45 }
46
47 pkg_preinst() {
48 # has_version ${CATEGORY}/${PN}:1.5 && return 0
49 preserve_old_lib /usr/$(get_libdir)/libpng15$(get_libname 15)
50 }
51
52 pkg_postinst() {
53 # has_version ${CATEGORY}/${PN}:1.5 && return 0
54 preserve_old_lib_notify /usr/$(get_libdir)/libpng15$(get_libname 15)
55 }

  ViewVC Help
Powered by ViewVC 1.1.20