# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

DESCRIPTION="Automatic photo adjusting software"
HOMEPAGE=http://log69.com/aaphoto_en.html""
SRC_URI="http://log69.com/downloads/${PN}_sources_v${PV}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="openmp"

inherit eutils

DEPEND="openmp? ( >=sys-devel/gcc-4.2[openmp] )
		media-libs/jasper
		virtual/jpeg
		media-libs/libpng
		sys-libs/zlib"

RDEPEND="${DEPEND}"

src_prepare() {
	epatch "${FILESDIR}/00-${P}-fixed-missing-zlib-include.patch"
}
