Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 542588 | Differences between
and this patch

Collapse All | Expand All

(-)libraw-0.16.0-r1.ebuild (-27 / +15 lines)
Lines 1-13 Link Here
1
# Copyright 1999-2014 Gentoo Foundation
1
# Copyright 1999-2015 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/libraw/libraw-0.16.0-r1.ebuild,v 1.4 2014/12/06 16:36:38 ago Exp $
3
# $Header: $
4
4
5
EAPI=5
5
EAPI=5
6
6
7
inherit cmake-multilib toolchain-funcs
7
inherit autotools-multilib eutils toolchain-funcs
8
8
9
MY_PN=LibRaw
9
MY_PN=LibRaw
10
MY_PV=${PV/_b/-B}
10
MY_PV=${PV/_a/-A}
11
MY_P=${MY_PN}-${MY_PV}
11
MY_P=${MY_PN}-${MY_PV}
12
12
13
DESCRIPTION="LibRaw is a library for reading RAW files obtained from digital photo cameras"
13
DESCRIPTION="LibRaw is a library for reading RAW files obtained from digital photo cameras"
Lines 22-29 Link Here
22
# can be obtained from here:
22
# can be obtained from here:
23
# http://www.libraw.org/data/LICENSE.LibRaw.pdf
23
# http://www.libraw.org/data/LICENSE.LibRaw.pdf
24
LICENSE="LGPL-2.1 CDDL GPL-2 GPL-3"
24
LICENSE="LGPL-2.1 CDDL GPL-2 GPL-3"
25
SLOT="0/10" # subslot = libraw soname version
25
SLOT="0/11" # subslot = libraw soname version
26
KEYWORDS="alpha amd64 arm ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux"
26
KEYWORDS=""
27
IUSE="demosaic examples jpeg jpeg2k +lcms openmp"
27
IUSE="demosaic examples jpeg jpeg2k +lcms openmp"
28
28
29
RDEPEND="jpeg? ( >=virtual/jpeg-0-r2:0[${MULTILIB_USEDEP}] )
29
RDEPEND="jpeg? ( >=virtual/jpeg-0-r2:0[${MULTILIB_USEDEP}] )
Lines 36-66 Link Here
36
36
37
DOCS=( Changelog.txt README )
37
DOCS=( Changelog.txt README )
38
38
39
PATCHES=(
40
	"${FILESDIR}"/${PN}-0.16.0_alpha2-docs.patch
41
	"${FILESDIR}"/${PN}-0.16.0_alpha2-automagic-jasper.patch
42
	"${FILESDIR}"/${PN}-0.16.0_alpha2-lcms2-first.patch
43
	"${FILESDIR}"/${PN}-0.16.0_alpha2-custom-demosaic-paths.patch
44
	"${FILESDIR}"/${PN}-0.16.0-pc.patch
45
)
46
47
pkg_pretend() {
39
pkg_pretend() {
48
	if use openmp ; then
40
	if use openmp ; then
49
		tc-has-openmp || die "Please switch to an openmp compatible compiler"
41
		tc-has-openmp || die "Please switch to an openmp compatible compiler"
50
	fi
42
	fi
51
}
43
}
52
44
53
src_configure() {
45
multilib_src_configure() {
54
	local mycmakeargs=(
46
	ECONF_SOURCE="${S}" econf \
55
		$(cmake-utils_use_enable openmp OPENMP)
47
		$(use_enable demosaic demosaic-pack-gpl2) \
56
		$(cmake-utils_use_enable jpeg JPEG)
48
		$(use_enable demosaic demosaic-pack-gpl3) \
57
		$(cmake-utils_use_enable jpeg2k JASPER)
49
		$(use_enable examples) \
58
		$(cmake-utils_use_enable lcms LCMS)
50
		$(use_enable jpeg) \
59
		$(cmake-utils_use_enable examples EXAMPLES)
51
		$(use_enable jpeg2k jasper) \
60
		$(cmake-utils_use_enable demosaic DEMOSAIC_PACK_GPL2)
52
		$(use_enable lcms) \
61
		$(cmake-utils_use_enable demosaic DEMOSAIC_PACK_GPL3)
53
		$(use_enable openmp)
62
		-DDEMOSAIC_PACK_GPL2_PATH="${WORKDIR}/${MY_PN}-demosaic-pack-GPL2-${MY_PV}"
63
		-DDEMOSAIC_PACK_GPL3_PATH="${WORKDIR}/${MY_PN}-demosaic-pack-GPL3-${MY_PV}"
64
	)
65
	cmake-multilib_src_configure
66
}
54
}

Return to bug 542588