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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.4 Revision 1.5
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/media-libs/libpng/Attic/libpng-1.4.8-r2.ebuild,v 1.4 2011/09/17 18:26:29 ssuominen Exp $ 3# $Header: /var/cvsroot/gentoo-x86/media-libs/libpng/Attic/libpng-1.4.8-r2.ebuild,v 1.5 2011/09/20 20:31:14 grobian Exp $
4 4
5# this ebuild is only for the libpng14.so.14 SONAME for ABI compat 5# this ebuild is only for the libpng14.so.14 SONAME for ABI compat
6 6
7EAPI=4 7EAPI=4
8 8
23DEPEND="${RDEPEND} 23DEPEND="${RDEPEND}
24 app-arch/xz-utils" 24 app-arch/xz-utils"
25 25
26pkg_setup() { 26pkg_setup() {
27 if ! has_version media-libs/libpng:${SLOT}; then 27 if ! has_version media-libs/libpng:${SLOT}; then
28 rm -f "${EROOT}"/usr/$(get_libdir)/libpng14.so.14 28 rm -f "${EROOT}"/usr/$(get_libdir)/libpng14$(get_libname 14)
29 fi 29 fi
30} 30}
31 31
32src_prepare() { 32src_prepare() {
33 use apng && epatch "${WORKDIR}"/${P}-apng.patch 33 use apng && epatch "${WORKDIR}"/${P}-apng.patch
41src_compile() { 41src_compile() {
42 emake libpng14.la 42 emake libpng14.la
43} 43}
44 44
45src_install() { 45src_install() {
46 newlib.so .libs/libpng14.so.14.* libpng14.so.14 46 local libn=libpng14$(get_libname 14)
47 newlib.so .libs/$(readlink .libs/${libn}) ${libn}
47} 48}

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.20