You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.7 KiB
64 lines
1.7 KiB
13 years ago
|
# Copyright 1999-2012 Gentoo Foundation
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
12 years ago
|
# $Header: /var/cvsroot/gentoo-x86/media-libs/libraw/libraw-0.15.0_beta1.ebuild,v 1.2 2012/10/15 07:09:27 radhermit Exp $
|
||
13 years ago
|
|
||
|
EAPI="4"
|
||
|
|
||
12 years ago
|
inherit eutils autotools toolchain-funcs
|
||
|
|
||
|
MY_PV="${PV/_b/-B}"
|
||
|
MY_P="LibRaw-${MY_PV}"
|
||
13 years ago
|
|
||
|
DESCRIPTION="LibRaw is a library for reading RAW files obtained from digital photo cameras"
|
||
|
HOMEPAGE="http://www.libraw.org/"
|
||
|
SRC_URI="http://www.libraw.org/data/${MY_P}.tar.gz
|
||
12 years ago
|
demosaic? ( http://www.libraw.org/data/LibRaw-demosaic-pack-GPL2-${MY_PV}.tar.gz
|
||
|
http://www.libraw.org/data/LibRaw-demosaic-pack-GPL3-${MY_PV}.tar.gz )"
|
||
13 years ago
|
|
||
|
# Libraw also has it's own license, which is a pdf file and
|
||
|
# can be obtained from here:
|
||
|
# http://www.libraw.org/data/LICENSE.LibRaw.pdf
|
||
|
LICENSE="LGPL-2.1 CDDL GPL-2 GPL-3"
|
||
|
SLOT="0"
|
||
12 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
|
IUSE="demosaic examples jpeg jpeg2k +lcms openmp static-libs"
|
||
13 years ago
|
|
||
12 years ago
|
RDEPEND="jpeg? ( virtual/jpeg )
|
||
|
jpeg2k? ( media-libs/jasper )
|
||
13 years ago
|
lcms? ( media-libs/lcms:2 )"
|
||
|
DEPEND="${RDEPEND}
|
||
12 years ago
|
virtual/pkgconfig"
|
||
13 years ago
|
|
||
13 years ago
|
S=${WORKDIR}/${MY_P}
|
||
13 years ago
|
|
||
|
DOCS=( Changelog.txt README )
|
||
|
|
||
13 years ago
|
pkg_setup() {
|
||
|
if use openmp ; then
|
||
|
tc-has-openmp || die "Please switch to an openmp compatible compiler"
|
||
|
fi
|
||
13 years ago
|
}
|
||
|
|
||
12 years ago
|
src_prepare() {
|
||
|
epatch "${FILESDIR}"/${PN}-0.13.4-docs.patch
|
||
|
epatch "${FILESDIR}"/${PN}-0.14.7-pkgconfig.patch
|
||
|
eautoreconf
|
||
|
}
|
||
|
|
||
13 years ago
|
src_configure() {
|
||
12 years ago
|
econf \
|
||
|
$(use_enable static-libs static) \
|
||
|
$(use_enable openmp) \
|
||
|
$(use_enable jpeg) \
|
||
|
$(use_enable jpeg2k jasper) \
|
||
|
$(use_enable lcms) \
|
||
|
$(use_enable examples) \
|
||
|
$(use_enable demosaic demosaic-pack-gpl2) \
|
||
13 years ago
|
$(use_enable demosaic demosaic-pack-gpl3)
|
||
12 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
|
default
|
||
|
prune_libtool_files
|
||
13 years ago
|
}
|