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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Sat Apr 23 19:06:55 2011 UTC (3 years, 3 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Version bump.

(Portage version: 2.2.0_alpha30/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.5.1.ebuild,v 1.2 2011/02/13 08:52:18 grobian Exp $
4 ssuominen 1.1
5     EAPI="3"
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    
13     LICENSE="as-is"
14     SLOT="0"
15     KEYWORDS=""
16     #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 ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
17     IUSE="static-libs"
18    
19     RDEPEND="sys-libs/zlib"
20     DEPEND="${RDEPEND}
21     app-arch/xz-utils"
22    
23     src_prepare() {
24     elibtoolize
25     }
26    
27     src_configure() {
28     econf \
29     --disable-dependency-tracking \
30     $(use_enable static-libs static)
31     }
32    
33     src_install() {
34     emake DESTDIR="${D}" install || die
35     dodoc ANNOUNCE CHANGES libpng-manual.txt README TODO
36    
37     find "${ED}" -name '*.la' -exec rm -f {} +
38     }
39    
40     pkg_preinst() {
41     # has_version ${CATEGORY}/${PN}:1.4 && return 0
42 grobian 1.2 preserve_old_lib /usr/$(get_libdir)/libpng14$(get_libname 0)
43 ssuominen 1.1 }
44    
45     pkg_postinst() {
46     # has_version ${CATEGORY}/${PN}:1.4 && return 0
47 grobian 1.2 preserve_old_lib_notify /usr/$(get_libdir)/libpng14$(get_libname 0)
48 ssuominen 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20