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

Collapse All | Expand All

(-)a/dev-libs/pocl/pocl-1.8-r2.ebuild (-2 / +16 lines)
Lines 17-25 SRC_URI="https://github.com/pocl/pocl/archive/v${PV}.tar.gz -> ${P}.tar.gz" Link Here
17
17
18
LICENSE="GPL-2"
18
LICENSE="GPL-2"
19
SLOT="0"
19
SLOT="0"
20
KEYWORDS="~amd64"
20
KEYWORDS="~amd64 ~ppc64"
21
# TODO: hsa tce
21
# TODO: hsa tce
22
IUSE="accel cl20 +conformance cuda debug examples float-conversion hardening +hwloc memmanager test"
22
IUSE="accel cl20 +conformance cuda debug examples float-conversion hardening +hwloc memmanager test"
23
24
23
# Tests not yet passing, fragile in Portage environment(?)
25
# Tests not yet passing, fragile in Portage environment(?)
24
RESTRICT="!test? ( test ) test"
26
RESTRICT="!test? ( test ) test"
25
27
Lines 68-79 pkg_setup() { Link Here
68
}
70
}
69
71
70
src_configure() {
72
src_configure() {
73
	local host_cpu_variants="generic"
74
	if use amd64
75
	then
76
		# Use pocl's curated list of CPU variants which should contain a good match for any given amd64 CPU
77
		host_cpu_variants="distro"
78
	elif use ppc64
79
	then
80
		# A selection of architectures in which new Altivec / VSX features were added
81
		# This attempts to recreate the amd64 "distro" option for ppc64
82
		host_cpu_variants="pwr10;pwr9;pwr8;pwr7;pwr6;g5;a2;generic"
83
	fi
84
71
	local mycmakeargs=(
85
	local mycmakeargs=(
72
		-DBUILD_SHARED_LIBS=ON
86
		-DBUILD_SHARED_LIBS=ON
73
		-DENABLE_HSA=OFF
87
		-DENABLE_HSA=OFF
74
		-DENABLE_ICD=ON
88
		-DENABLE_ICD=ON
75
		-DENABLE_POCL_BUILDING=ON
89
		-DENABLE_POCL_BUILDING=ON
76
		-DKERNELLIB_HOST_CPU_VARIANTS=distro
90
		-DKERNELLIB_HOST_CPU_VARIANTS="$host_cpu_variants"
77
		-DPOCL_ICD_ABSOLUTE_PATH=ON
91
		-DPOCL_ICD_ABSOLUTE_PATH=ON
78
		-DSTATIC_LLVM=OFF
92
		-DSTATIC_LLVM=OFF
79
		-DWITH_LLVM_CONFIG=$(get_llvm_prefix -d "${LLVM_MAX_SLOT}")/bin/llvm-config
93
		-DWITH_LLVM_CONFIG=$(get_llvm_prefix -d "${LLVM_MAX_SLOT}")/bin/llvm-config

Return to bug 831859