summaryrefslogtreecommitdiffstats
path: root/dev-libs/pocl/pocl-1.4.ebuild
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-10-25 23:16:40 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-10-25 23:16:40 +0200
commitb6d14cb5db40c2c8f80450b9ac2288d71b49ad68 (patch)
treeb181bb0859681f93ec19f3d568e2c0dd23d18211 /dev-libs/pocl/pocl-1.4.ebuild
parentdd2aea324c07fe1bd13143bb37eff11117b6130a (diff)
downloaddarklin4-b6d14cb5db40c2c8f80450b9ac2288d71b49ad68.tar.gz
darklin4-b6d14cb5db40c2c8f80450b9ac2288d71b49ad68.tar.bz2
darklin4-b6d14cb5db40c2c8f80450b9ac2288d71b49ad68.tar.xz
darklin4-b6d14cb5db40c2c8f80450b9ac2288d71b49ad68.zip
Fix some old packages
Diffstat (limited to 'dev-libs/pocl/pocl-1.4.ebuild')
-rw-r--r--dev-libs/pocl/pocl-1.4.ebuild37
1 files changed, 37 insertions, 0 deletions
diff --git a/dev-libs/pocl/pocl-1.4.ebuild b/dev-libs/pocl/pocl-1.4.ebuild
new file mode 100644
index 0000000..1257feb
--- /dev/null
+++ b/dev-libs/pocl/pocl-1.4.ebuild
@@ -0,0 +1,37 @@
+EAPI="6"
+inherit cmake-utils cmake-multilib versionator
+
+DESCRIPTION="Portable Computing Language"
+HOMEPAGE="http://portablecl.org"
+
+PV_RC_SEPARATOR_FIXED=$(replace_version_separator '_' '-')
+PV_FILE_FORMAT=${PV_RC_SEPARATOR_FIXED^^}
+SRC_URI="https://github.com/pocl/pocl/archive/v${PV_FILE_FORMAT}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-${PV_FILE_FORMAT}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64"
+IUSE=""
+
+RDEPEND=">=sys-devel/llvm-6.0
+ sys-devel/clang
+ sys-apps/hwloc
+ "
+
+DEPEND="${RDEPEND}"
+
+PATCHES=("${FILESDIR}/vendor_opencl_libs_location.epatch"
+)
+
+
+src_configure() {
+ sed -i'' -e 's#typedef ptrdiff_t intptr_t#//typedef ptrdiff_t intptr_t#' include/pocl_types.h
+
+ local mycmakeargs=(
+ "-DENABLE_CUDA=ON"
+# "-DENABLE_HSA=ON"
+ )
+
+ cmake-multilib_src_configure
+}