blob: ca6256639459c0d22682e494a33bb94f50e23fee [file] [log] [blame]
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="4"
inherit eutils multilib
DESCRIPTION="An image comparison utility"
HOMEPAGE="http://pdiff.sourceforge.net/"
SRC_URI="mirror://sourceforge/pdiff/${P}-src.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="*"
IUSE=""
DEPEND="media-libs/freeimage"
RDEPEND="${DEPEND}"
DOCS="gpl.txt README.txt"
S=${WORKDIR}
src_prepare() {
epatch "${FILESDIR}"/CMakeFiles-search-in-SYSROOT.patch
epatch "${FILESDIR}"/Metric.cpp-printf-needs-stdio.patch
# Use the correct ABI lib dir.
sed -i \
-e "s:/lib$:/$(get_libdir):" \
CMakeLists.txt || die
}
src_configure() {
tc-export CC CXX AR RANLIB LD NM
cmake . || die cmake failed
}
src_install() {
dobin perceptualdiff
}