Ravenports generated: 14 Dec 2019 09:17
[ravenports.git] / bucket_ED / ocl-icd
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               ocl-icd
4 VERSION=                2.2.12
5 KEYWORDS=               devel
6 VARIANTS=               standard
7 SDESC[standard]=        Utility to regenerate the GNU info page index
8 HOMEPAGE=               https://github.com/OCL-dev/ocl-icd
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            https://forge.imag.fr/frs/download.php/836/
13                         http://ravenports.elderlinux.org/distcache/
14 DISTFILE[1]=            ocl-icd-2.2.12.tar.gz:main
15 DF_INDEX=               1
16 SPKGS[standard]=        complete
17                         primary
18                         docs
19                         examples
20
21 OPTIONS_AVAILABLE=      none
22 OPTIONS_STANDARD=       none
23
24 BUILD_DEPENDS=          opencl:single:standard
25                         asciidoc:single:standard
26                         xmlto:single:standard
27
28 USES=                   gmake libtool ruby:build,v24
29
30 FPC_EQUIVALENT=         devel/ocl-icd
31
32 MUST_CONFIGURE=         gnu
33 CONFIGURE_ARGS=         --disable-official-khronos-headers
34                         --enable-custom-vendordir
35
36 MAKE_ARGS=              RUBY=ruby{{RUBY_SUFFIX}}
37
38 INSTALL_TARGET=         install-strip
39
40 post-patch:
41         ${REINPLACE_CMD} -e 's|/etc/|${LOCALBASE}/etc/|g' \
42                 ${WRKSRC}/doc/libOpenCL.7.txt.in
43         ${REINPLACE_CMD} -e 's|--destination-dir=$$(CURDIR)|--no-xmllint|' \
44                 ${WRKSRC}/doc/Makefile.in
45
46 [FILE:232:descriptions/desc.primary]
47 OpenCL implementations are provided as ICD (Installable Client Driver). An
48 OpenCL program can use several ICD thanks to the use of an ICD Loader as
49 provided by this project. This free ICD Loader can load any (free or non
50 free) ICD.
51
52
53 [FILE:100:distinfo]
54 7665f368354e3d2b7787ba4a23c6f061db1181195ba1914dd1cdcd462eca4df4       456646 ocl-icd-2.2.12.tar.gz
55
56
57 [FILE:162:manifests/plist.primary]
58 include/ocl_icd.h
59 lib/
60  libOpenCL.so
61  libOpenCL.so.1
62  libOpenCL.so.1.0.0
63 lib/pkgconfig/
64  OpenCL.pc
65  ocl-icd.pc
66 share/man/man7/
67  libOpenCL.7.gz
68  libOpenCL.so.7.gz
69
70
71 [FILE:38:manifests/plist.docs]
72 share/doc/ocl-icd/html/libOpenCL.html
73
74
75 [FILE:46:manifests/plist.examples]
76 share/doc/ocl-icd/examples/ocl_icd_bindings.c
77
78
79 [FILE:366:patches/patch-icd__generator.rb]
80 --- icd_generator.rb.orig       2015-12-16 14:59:05 UTC
81 +++ icd_generator.rb
82 @@ -441,7 +441,7 @@ EOF
83    end
84  
85    def self.generate_ocl_icd_loader_map
86 -    ocl_icd_loader_map = "/**\n#{$license}\n*/\n\n"
87 +    ocl_icd_loader_map = "\n"
88      prev_version=""
89      $versions_entries.keys.sort.each { |version|
90        ocl_icd_loader_map += "OPENCL_#{version.sub('_','.')} {\n";
91
92
93 [FILE:469:patches/patch-ocl__icd__debug.h]
94 --- ocl_icd_debug.h.orig        2016-04-24 12:11:57 UTC
95 +++ ocl_icd_debug.h
96 @@ -61,9 +61,9 @@ extern int debug_ocl_icd_mask;
97         return ret; \
98     } while(0)
99  #  define RETURN_STR(val) do { \
100 -       char* _ret=(char*)(val);                \
101 -       debug(D_TRACE, "return: %s", _ret);     \
102 -       return _ret; \
103 +       char* _return_str=(char*)(val);         \
104 +       debug(D_TRACE, "return: %s", _return_str);      \
105 +       return _return_str; \
106     } while(0)
107  #  ifdef DEBUG_OCL_ICD_PROVIDE_DUMP_FIELD
108  #    pragma GCC diagnostic push
109
110
111 [FILE:744:patches/patch-ocl__icd__loader.c]
112 --- ocl_icd_loader.c.orig       2017-01-19 13:55:12 UTC
113 +++ ocl_icd_loader.c
114 @@ -53,11 +53,23 @@ int debug_ocl_icd_mask=0;
115  
116  typedef __typeof__(clGetPlatformInfo) *clGetPlatformInfo_fn;
117  
118 -inline void dump_vendor_icd(const char* info, const struct vendor_icd *v) {
119 +static inline void dump_vendor_icd(const char* info, const struct vendor_icd *v) {
120    debug(D_DUMP, "%s %p={ num=%i, handle=%p, f=%p}\n", info,
121         v, v->num_platforms, v->dl_handle, v->ext_fn_ptr);
122  }
123  
124 +#ifdef __sun__
125 +static size_t
126 +strnlen(const char *s, size_t maxlen)
127 +{
128 +       size_t len;
129 +       for (len = 0; len < maxlen; len++, s++) {
130 +               if (!*s) break;
131 +       }
132 +       return (len);
133 +}
134 +#endif
135 +
136  struct vendor_icd *_icds=NULL;
137  struct platform_icd *_picds=NULL;
138  static cl_uint _num_icds = 0;
139