summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuilherme Amadio <amadio@gentoo.org>2018-08-03 10:23:48 +0200
committerGuilherme Amadio <amadio@gentoo.org>2018-08-08 12:04:22 +0200
commita48bd78754f68235376af0d11b25c0dade398eef (patch)
treef8747950632709a6073bcaddb44d21e0c3fc0e63 /dev-libs
parentdev-util/astyle: fix on prefix (diff)
downloadgentoo-a48bd78754f68235376af0d11b25c0dade398eef.tar.gz
gentoo-a48bd78754f68235376af0d11b25c0dade398eef.tar.bz2
gentoo-a48bd78754f68235376af0d11b25c0dade398eef.zip
dev-libs/beignet: prefix support
Package-Manager: Portage-2.3.44, Repoman-2.3.10
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/beignet/beignet-1.3.2-r1.ebuild4
1 files changed, 2 insertions, 2 deletions
diff --git a/dev-libs/beignet/beignet-1.3.2-r1.ebuild b/dev-libs/beignet/beignet-1.3.2-r1.ebuild
index c562b68c13b3..7975dc31d3ce 100644
--- a/dev-libs/beignet/beignet-1.3.2-r1.ebuild
+++ b/dev-libs/beignet/beignet-1.3.2-r1.ebuild
@@ -82,7 +82,7 @@ multilib_src_configure() {
VENDOR_DIR="/usr/$(get_libdir)/OpenCL/vendors/${PN}"
local mycmakeargs=(
- -DCMAKE_INSTALL_PREFIX="${VENDOR_DIR}"
+ -DCMAKE_INSTALL_PREFIX="${EPREFIX%/}/${VENDOR_DIR}"
-DOCLICD_COMPAT=$(usex ocl-icd)
$(usex ocl20 "" "-DENABLE_OPENCL_20=OFF")
)
@@ -96,7 +96,7 @@ multilib_src_install() {
cmake-utils_src_install
insinto /etc/OpenCL/vendors/
- echo "${VENDOR_DIR}/lib/${PN}/libcl.so" > "${PN}-${ABI}.icd" || die "Failed to generate ICD file"
+ echo "${EPREFIX%/}/${VENDOR_DIR}/lib/${PN}/libcl.so" > "${PN}-${ABI}.icd" || die "Failed to generate ICD file"
doins "${PN}-${ABI}.icd"
dosym "lib/${PN}/libcl.so" "${VENDOR_DIR}"/libOpenCL.so.1