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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sat Sep 17 18:01:14 2011 UTC (2 years, 10 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
[This is a placeholder. Please ignore.]

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

1 # Copyright 1999-2011 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.4.5.ebuild,v 1.7 2011/02/13 08:52:18 grobian Exp $
4
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="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"
16 IUSE="static-libs"
17
18 RDEPEND="sys-libs/zlib"
19 DEPEND="${RDEPEND}
20 app-arch/xz-utils"
21
22 src_prepare() {
23 elibtoolize
24 }
25
26 src_configure() {
27 econf \
28 --disable-dependency-tracking \
29 $(use_enable static-libs static)
30 }
31
32 src_install() {
33 emake DESTDIR="${D}" install || die
34 dodoc ANNOUNCE CHANGES README TODO libpng-*.txt
35 }
36
37 pkg_preinst() {
38 has_version ${CATEGORY}/${PN}:1.2 && return 0
39 preserve_old_lib /usr/$(get_libdir)/libpng12$(get_libname 0)
40 }
41
42 pkg_postinst() {
43 has_version ${CATEGORY}/${PN}:1.2 && return 0
44 preserve_old_lib_notify /usr/$(get_libdir)/libpng12$(get_libname 0)
45 }

  ViewVC Help
Powered by ViewVC 1.1.20