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

Contents of /media-libs/libpng/libpng-1.4.8-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Sat Sep 17 18:16:35 2011 UTC (3 years ago) by ssuominen
Branch: MAIN
Changes since 1.2: +2 -2 lines
two off typing error inside comment

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

1 ssuominen 1.1 # Copyright 1999-2011 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 ssuominen 1.3 # $Header: /var/cvsroot/gentoo-x86/media-libs/libpng/libpng-1.4.8-r2.ebuild,v 1.2 2011/09/17 17:55:22 ssuominen Exp $
4 ssuominen 1.1
5 ssuominen 1.3 # this ebuild is only for the libpng14.so.14 SONAME for ABI compat
6 ssuominen 1.1
7     EAPI=4
8    
9     inherit eutils libtool multilib
10    
11     DESCRIPTION="Portable Network Graphics library"
12     HOMEPAGE="http://www.libpng.org/"
13     SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz
14     apng? ( mirror://sourceforge/${PN}-apng/${PN}-master/${PV}/${P}-apng.patch.gz )"
15    
16     LICENSE="as-is"
17     SLOT="1.4"
18     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"
19     IUSE="apng"
20    
21     RDEPEND="sys-libs/zlib
22     !=media-libs/libpng-1.4*:0"
23     DEPEND="${RDEPEND}
24     app-arch/xz-utils"
25    
26     pkg_setup() {
27 ssuominen 1.2 if [[ -e ${EROOT}/usr/$(get_libdir)/libpng14.so.14 ]]; then
28     rm -f "${EROOT}"/usr/$(get_libdir)/libpng14.so.14
29 ssuominen 1.1 fi
30     }
31    
32     src_prepare() {
33     use apng && epatch "${WORKDIR}"/${P}-apng.patch
34     elibtoolize
35     }
36    
37     src_configure() {
38     econf --disable-static
39     }
40    
41     src_compile() {
42     emake libpng14.la
43     }
44    
45     src_install() {
46     newlib.so .libs/libpng14.so.14.* libpng14.so.14
47     }

  ViewVC Help
Powered by ViewVC 1.1.20