/[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.5 - (show annotations) (download)
Tue Sep 20 20:31:14 2011 UTC (2 years, 11 months ago) by grobian
Branch: MAIN
Changes since 1.4: +4 -3 lines
Fix installation on Darwin

(Portage version: 2.2.01.19295-prefix/cvs/Darwin i386)

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.8-r2.ebuild,v 1.4 2011/09/17 18:26:29 ssuominen Exp $
4
5 # this ebuild is only for the libpng14.so.14 SONAME for ABI compat
6
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 if ! has_version media-libs/libpng:${SLOT}; then
28 rm -f "${EROOT}"/usr/$(get_libdir)/libpng14$(get_libname 14)
29 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 local libn=libpng14$(get_libname 14)
47 newlib.so .libs/$(readlink .libs/${libn}) ${libn}
48 }

  ViewVC Help
Powered by ViewVC 1.1.20