Ravenports generated: 05 Mar 2021 22:52
[ravenports.git] / bucket_A0 / libepoxy
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               libepoxy
4 VERSION=                1.5.5
5 KEYWORDS=               graphics
6 VARIANTS=               standard
7 SDESC[standard]=        OpenGL function pointer management library
8 HOMEPAGE=               https://github.com/anholt/libepoxy
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            https://github.com/anholt/libepoxy/releases/download/1.5.5/
13 DISTFILE[1]=            libepoxy-1.5.5.tar.xz:main
14 DF_INDEX=               1
15 SPKGS[standard]=        single
16
17 OPTIONS_AVAILABLE=      none
18 OPTIONS_STANDARD=       none
19
20 B_DEPS[sunos]=          libbsd4sol:single:standard
21
22 USES=                   mesa meson pkgconfig python:build
23 XORG_COMPONENTS=        x11
24
25 LICENSE=                MIT:single
26 LICENSE_FILE=           MIT:{{WRKSRC}}/COPYING
27 LICENSE_SCHEME=         solo
28
29 FPC_EQUIVALENT=         graphics/libepoxy
30 MESON_ARGS=             -Denable-egl=yes
31
32 VAR_OPSYS[sunos]=       CFLAGS=-I{{LOCALBASE}}/include/bsd
33                         LDFLAGS=-lbsd
34
35 [FILE:333:descriptions/desc.single]
36 Epoxy is a library for handling OpenGL function pointer management.
37
38 It hides the complexity of dlopen(), dlsym(), glXGetProcAddress(),
39 eglGetProcAddress(), etc. from the app developer, with very little
40 knowledge needed on their part. They get to read GL specs and write code
41 using undecorated function names like glCompileShader().
42
43
44 [FILE:100:distinfo]
45 261663db21bcc1cc232b07ea683252ee6992982276536924271535875f5b0556       223688 libepoxy-1.5.5.tar.xz
46
47
48 [FILE:170:manifests/plist.single]
49 include/epoxy/
50  common.h
51  egl.h
52  egl_generated.h
53  gl.h
54  gl_generated.h
55  glx.h
56  glx_generated.h
57 lib/
58  libepoxy.so
59  libepoxy.so.0
60  libepoxy.so.0.0.0
61 lib/pkgconfig/epoxy.pc
62
63
64 [FILE:714:patches/patch-test_dlwrap.c]
65 --- test/dlwrap.c.orig  2020-12-22 14:41:49 UTC
66 +++ test/dlwrap.c
67 @@ -34,6 +34,8 @@
68  
69  /* dladdr is a glibc extension */
70  #define _GNU_SOURCE
71 +/* FreeBSD needs this to make asprintf() and dlvsym() visible */
72 +#define __BSD_VISIBLE 1
73  #include <dlfcn.h>
74  
75  #include <stdbool.h>
76 @@ -213,6 +215,10 @@ dlsym(void *handle, const char *name)
77  void *
78  dlwrap_real_dlsym(void *handle, const char *name)
79  {
80 +#ifdef __sun__
81 +    fprintf(stderr, "dlwrap_real_dlsym unsupported on SunOS (missing dlvsym)");
82 +    exit(1);
83 +#else
84      static fips_dlsym_t real_dlsym = NULL;
85  
86      if (!real_dlsym) {
87 @@ -275,6 +281,7 @@ dlwrap_real_dlsym(void *handle, const ch
88      }
89  
90      return real_dlsym(handle, name);
91 +#endif
92  }
93  
94  void *
95
96
97 [FILE:286:sunos/patch-test_meson.build]
98 --- test/meson.build.orig       2018-05-08 15:28:22 UTC
99 +++ test/meson.build
100 @@ -8,8 +8,7 @@ build_x11_tests = enable_x11 and x11_dep
101  test_cflags = common_cflags
102  if not has_dlvsym
103  test_cflags += [
104 -  '-D_XOPEN_SOURCE',
105 -  '-D_POSIX_C_SOURCE=200809L',
106 +  '-D_XOPEN_SOURCE=600',
107  ]
108  endif
109  
110