summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-12-15 16:52:33 +0000
committerMike Frysinger <vapier@gentoo.org>2011-12-15 16:52:33 +0000
commitf5f60a7a978e8d033b1c67cbb67056eb4d419965 (patch)
tree68d1c02db3ffc9c974cd35d980d3b2ba863c2a74 /media-libs/gd/gd-2.0.35-r3.ebuild
parentold (diff)
downloadgentoo-2-f5f60a7a978e8d033b1c67cbb67056eb4d419965.tar.gz
gentoo-2-f5f60a7a978e8d033b1c67cbb67056eb4d419965.tar.bz2
gentoo-2-f5f60a7a978e8d033b1c67cbb67056eb4d419965.zip
Use libpng's pkg-config files rather than xxx-config scripts.
(Portage version: 2.2.0_alpha79/cvs/Linux x86_64)
Diffstat (limited to 'media-libs/gd/gd-2.0.35-r3.ebuild')
-rw-r--r--media-libs/gd/gd-2.0.35-r3.ebuild28
1 files changed, 8 insertions, 20 deletions
diff --git a/media-libs/gd/gd-2.0.35-r3.ebuild b/media-libs/gd/gd-2.0.35-r3.ebuild
index b8efe24f5a9c..bb3f9fb36eca 100644
--- a/media-libs/gd/gd-2.0.35-r3.ebuild
+++ b/media-libs/gd/gd-2.0.35-r3.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/gd/gd-2.0.35-r3.ebuild,v 1.10 2011/11/05 18:24:22 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/gd/gd-2.0.35-r3.ebuild,v 1.11 2011/12/15 16:52:33 vapier Exp $
EAPI="2"
@@ -17,7 +17,7 @@ IUSE="fontconfig jpeg png static-libs truetype xpm zlib"
RDEPEND="fontconfig? ( media-libs/fontconfig )
jpeg? ( virtual/jpeg )
- png? ( >=media-libs/libpng-1.5:0 )
+ png? ( >=media-libs/libpng-1.2:0 )
truetype? ( >=media-libs/freetype-2.1.5 )
xpm? ( x11-libs/libXpm x11-libs/libXt )
zlib? ( sys-libs/zlib )"
@@ -27,29 +27,17 @@ src_prepare() {
epatch "${FILESDIR}"/${P}-libpng14.patch #305101
epatch "${FILESDIR}"/${P}-maxcolors.patch #292130
epatch "${FILESDIR}"/${P}-fontconfig.patch #363367
-
- # Try libpng15 first, then fallback to plain libpng
- sed -i -e 's:png12:png15:' configure.ac || die
+ epatch "${FILESDIR}"/${P}-libpng-pkg-config.patch
# Avoid programs we never install
- sed -i '/^noinst_PROGRAMS/s:=:=\n___fooooo =:' Makefile.in || die
-
- if ! use png ; then
- sed -i -r \
- -e '/^bin_PROGRAMS/,/^noinst_PROGRAMS/s:(gdparttopng|gdtopng|gd2topng|pngtogd|pngtogd2|webpng)..EXEEXT.::g' \
- Makefile.in || die
- fi
- if ! use zlib ; then
- sed -i -r \
- -e '/^bin_PROGRAMS/,/^noinst_PROGRAMS/s:(gd2topng|gd2copypal|gd2togif|giftogd2|gdparttopng|pngtogd2)..EXEEXT.::g' \
- Makefile.in || die
- fi
+ local make_sed=( -e '/^noinst_PROGRAMS/s:noinst:check:' )
+ use png || make_sed+=( -e '/_PROGRAMS/s:(gdparttopng|gdtopng|gd2topng|pngtogd|pngtogd2|webpng)::g' )
+ use zlib || make_sed+=( -e '/_PROGRAMS/s:(gd2topng|gd2copypal|gd2togif|giftogd2|gdparttopng|pngtogd2)::g' )
+ sed -i "${make_sed[@]}" Makefile.am || die
- eautoconf
- find . -type f -print0 | xargs -0 touch -r configure
+ eautoreconf
}
-usex() { use $1 && echo ${2:-yes} || echo ${3:-no} ; }
src_configure() {
export ac_cv_lib_z_deflate=$(usex zlib)
econf \