FreeBSD Bugzilla – Attachment 205736 Details for
Bug 239178
devel/erlang-cl: update to 1.2.4 and fix
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
update erlang-cl to 1.2.4 and make usable.
devel_erlang-cl.diff (text/plain), 3.09 KB, created by
Christoph Moench-Tegeder
on 2019-07-12 22:34:56 UTC
(
hide
)
Description:
update erlang-cl to 1.2.4 and make usable.
Filename:
MIME Type:
Creator:
Christoph Moench-Tegeder
Created:
2019-07-12 22:34:56 UTC
Size:
3.09 KB
patch
obsolete
>commit 227764fa7bd304899a41f73c164b93fca141d6e3 >Author: Christoph Moench-Tegeder <cmt@burggraben.net> >Date: Sat Jul 13 00:22:32 2019 +0200 > > update erlang-cl to 1.2.4 > > while here, patch erlang-cl's build system to actually build the opencl > NIF (Native Implemented Function) - previously, the build system didn't > know about FreeBSD and failed when building cl_nif.so, but the error > went unnoticed. > > While here, pet portlint. > >diff --git a/devel/erlang-cl/Makefile b/devel/erlang-cl/Makefile >index 9b0e887e6120..6ed15bd55e9e 100644 >--- a/devel/erlang-cl/Makefile >+++ b/devel/erlang-cl/Makefile >@@ -2,7 +2,7 @@ > # $FreeBSD$ > > PORTNAME= cl >-PORTVERSION= 1.2.3 >+PORTVERSION= 1.2.4 > DISTVERSIONPREFIX= cl- > CATEGORIES= devel > PKGNAMEPREFIX= erlang- >@@ -14,17 +14,15 @@ LICENSE= MIT > LICENSE_FILE= ${WRKSRC}/COPYRIGHT > > BUILD_DEPENDS= opencl>=0:devel/opencl >+LIB_DEPENDS= libOpenCL.so:devel/ocl-icd >+ >+USES= gmake erlang:rebar3 localbase:ldflags > > USE_GITHUB= yes > GH_ACCOUNT= tonyrog > >-USES= gmake erlang:rebar3 localbase >- > PORTDOCS= * > > OPTIONS_DEFINE= DOCS > >-post-build: >- @${RMDIR} ${WRKSRC}/priv >- > .include <bsd.port.mk> >diff --git a/devel/erlang-cl/distinfo b/devel/erlang-cl/distinfo >index 2d8359a54a1c..3a0dc9bb4958 100644 >--- a/devel/erlang-cl/distinfo >+++ b/devel/erlang-cl/distinfo >@@ -1,3 +1,3 @@ >-TIMESTAMP = 1479209283 >-SHA256 (tonyrog-cl-cl-1.2.3_GH0.tar.gz) = a9731825ee9b8057006ebb6b472466d51278d1a0e1fa496cf132b5456c54f15b >-SIZE (tonyrog-cl-cl-1.2.3_GH0.tar.gz) = 137921 >+TIMESTAMP = 1562967124 >+SHA256 (tonyrog-cl-cl-1.2.4_GH0.tar.gz) = 577b8788029148f93217d00a1bbdc500db68ee77b2246bbd892269b5bb98c41a >+SIZE (tonyrog-cl-cl-1.2.4_GH0.tar.gz) = 142258 >diff --git a/devel/erlang-cl/files/patch-c__src_Makefile b/devel/erlang-cl/files/patch-c__src_Makefile >new file mode 100644 >index 000000000000..1975f32b413c >--- /dev/null >+++ b/devel/erlang-cl/files/patch-c__src_Makefile >@@ -0,0 +1,16 @@ >+--- c_src/Makefile.orig 2018-09-26 08:28:15 UTC >++++ c_src/Makefile >+@@ -59,6 +59,13 @@ LD_SHARED := $(CC) -shared >+ LDFLAGS += -lOpenCL >+ endif >+ >++ifeq ($(OSNAME), FreeBSD) >++LINUX = Yes >++CFLAGS += -O3 -fPIC >++LD_SHARED := $(CC) -shared >++LDFLAGS += -lOpenCL >++endif >++ >+ ifeq ($(OSNAME), Darwin) >+ MAC_OS_X = Yes >+ ifeq ($(WORDSIZE), 32) >diff --git a/devel/erlang-cl/pkg-plist b/devel/erlang-cl/pkg-plist >index 1ef3ee8fbba9..dc88ebcf1770 100644 >--- a/devel/erlang-cl/pkg-plist >+++ b/devel/erlang-cl/pkg-plist >@@ -3,13 +3,12 @@ lib/erlang/lib/cl-%%VERSION%%/ebin/cl.beam > lib/erlang/lib/cl-%%VERSION%%/ebin/cl10.beam > lib/erlang/lib/cl-%%VERSION%%/ebin/cl11.beam > lib/erlang/lib/cl-%%VERSION%%/ebin/cl12.beam >-lib/erlang/lib/cl-%%VERSION%%/ebin/cl13.beam > lib/erlang/lib/cl-%%VERSION%%/ebin/clu.beam > lib/erlang/lib/cl-%%VERSION%%/include/cl.hrl >+lib/erlang/lib/cl-%%VERSION%%/priv/cl_nif.so > lib/erlang/lib/cl-%%VERSION%%/src/cl.app.src > lib/erlang/lib/cl-%%VERSION%%/src/cl.erl > lib/erlang/lib/cl-%%VERSION%%/src/cl10.erl > lib/erlang/lib/cl-%%VERSION%%/src/cl11.erl > lib/erlang/lib/cl-%%VERSION%%/src/cl12.erl >-lib/erlang/lib/cl-%%VERSION%%/src/cl13.erl > lib/erlang/lib/cl-%%VERSION%%/src/clu.erl
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 239178
: 205736