This commit is contained in:
milisbir 2018-07-01 06:10:10 +02:00
parent b3e8f122d3
commit d9bcf70333
4 changed files with 83 additions and 0 deletions

View File

@ -0,0 +1,18 @@
# Tanım: OpenCL binding for Erlang
# URL: http://github.com/tonyrog/cl
# Paketçi: milisarge
# Gerekler: opencl-headers rebar3 erlang ocl-icd
# Grup:
isim=erlang-cl
surum=1.2.3
devir=1
kaynak=(https://github.com/tonyrog/cl/archive/cl-1.2.3.tar.gz::erlang-cl-$surum.tar.gz)
derle() {
cd "cl-cl-$surum"
rebar3 compile
mkdir -p "$PKG/usr/lib/erlang/lib/cl-$surum"
cp -r * "$PKG/usr/lib/erlang/lib/cl-$surum"
install -Dm644 COPYRIGHT "$PKG/usr/share/licenses/$isim/LICENSE"
}

View File

@ -0,0 +1,20 @@
# Tanım: SDL and OpenGL bindings for Erlang
# URL: http://github.com/dgud/esdl/
# Paketçi: milisarge
# Gerekler: xorg-mesa rebar3 git erlang sdl xorg-glu
# Grup:
isim=erlang-sdl
surum=1.3.1
devir=1
kaynak=(https://github.com/dgud/esdl/archive/esdl-1.3.1.tar.gz::$isim-$surum.tar.gz)
derle() {
cd esdl-esdl-$surum
find -type f -print0 | xargs -0 chmod 644
CFLAGS="$CFLAGS -Wno-deprecated-declarations" rebar3 compile
install -d "$PKG/usr/lib/erlang/lib/esdl-$surum"
cp -ruv c_src doc ebin include priv src \
"$PKG/usr/lib/erlang/lib/esdl-$surum/"
install -Dm644 license.terms "$PKG/usr/share/licenses/$isim/LICENSE"
}

View File

@ -0,0 +1,20 @@
# Tanım: OpenCL ICD Bindings
# URL: https://forge.imag.fr/projects/ocl-icd/
# Paketçi: milisarge
# Gerekler: ruby xorg-mesa ruby opencl-headers
# Grup:
isim=ocl-icd
surum=2.2.12
devir=1
kaynak=(https://forge.imag.fr/frs/download.php/836/ocl-icd-$surum.tar.gz)
derle() {
cd "$SRC/$isim-$surum"
./configure --prefix=/usr
make
make -k check
make DESTDIR="$PKG/" install
install -m755 -d "$PKG/usr/share/licenses/ocl-icd"
install -m644 "$SRC/$isim-$surum/COPYING" "${PKG}/usr/share/licenses/ocl-icd/"
}

View File

@ -0,0 +1,25 @@
# Tanım: OpenCL (Open Computing Language) header files
# URL: https://www.khronos.org/registry/cl/
# Paketçi: milisarge
# Gerekler: python3
# Grup:
isim=opencl-headers
surum=2.2.20170516
devir=1
kaynak=(https://github.com/KhronosGroup/OpenCL-Headers/archive/master.tar.gz::opencl-headers-2.2.20170516.tar.gz
https://github.com/KhronosGroup/OpenCL-CLHPP/archive/master.tar.gz::openclhpp-2.2.20170516.tar.gz)
derle() {
cd "${SRC}"/OpenCL-Headers-master/CL
install -dm755 "${PKG}"/usr/include/CL
for h in *.h; do
install -m 644 ${h} "${PKG}"/usr/include/CL/
done
# remove useless headers
rm "${PKG}"/usr/include/CL/{cl_d3d,cl_dx9}*.h
cd "${SRC}"/OpenCL-CLHPP-master
python3 gen_cl_hpp.py -i input_cl.hpp -o cl.hpp
install -m 644 cl.hpp "${PKG}"/usr/include/CL/
install -m 644 input_cl2.hpp "${PKG}"/usr/include/CL/cl2.hpp
}