aboutsummaryrefslogtreecommitdiff
path: root/ports/glad
diff options
context:
space:
mode:
authorAlexander Neumann <30894796+Neumann-A@users.noreply.github.com>2020-04-06 23:49:51 +0200
committerGitHub <noreply@github.com>2020-04-06 14:49:51 -0700
commit6028fd5e1afc8deb653d29cf93dfb7f11fe954b5 (patch)
tree276473a8892516330d5a71dfea87dbd7bb3bebb3 /ports/glad
parentbd0c7106f95d7a72c247441e2fbec39e7716ecaa (diff)
downloadvcpkg-6028fd5e1afc8deb653d29cf93dfb7f11fe954b5.tar.gz
vcpkg-6028fd5e1afc8deb653d29cf93dfb7f11fe954b5.zip
[angle] Improve port (#9965)
* update opengl and install all headers * improve angle * update egl-registry * fix osx regression * update baseline. * fix uwp regressions * fix osx and linux regression * add encoding patch * bump glad control * rechdeck gl visibility from native build * removed unnecessary commented code * add GL_VISIBILITY to the exported targets Co-authored-by: dan-shaw <51385773+dan-shaw@users.noreply.github.com>
Diffstat (limited to 'ports/glad')
-rw-r--r--ports/glad/CONTROL2
-rw-r--r--ports/glad/encoding.patch13
-rw-r--r--ports/glad/portfile.cmake1
3 files changed, 15 insertions, 1 deletions
diff --git a/ports/glad/CONTROL b/ports/glad/CONTROL
index dc556e13d..a0d234f36 100644
--- a/ports/glad/CONTROL
+++ b/ports/glad/CONTROL
@@ -1,5 +1,5 @@
Source: glad
-Version: 0.1.33
+Version: 0.1.33-1
Description: Multi-Language Vulkan/GL/GLES/EGL/GLX/WGL Loader-Generator based on the official specs.
Build-Depends: egl-registry, opengl-registry
Homepage: https://github.com/Dav1dde/glad
diff --git a/ports/glad/encoding.patch b/ports/glad/encoding.patch
new file mode 100644
index 000000000..0497cc79a
--- /dev/null
+++ b/ports/glad/encoding.patch
@@ -0,0 +1,13 @@
+diff --git a/glad/__main__.py b/glad/__main__.py
+index e7c0544a5..1e10dcc60 100644
+--- a/glad/__main__.py
++++ b/glad/__main__.py
+@@ -32,7 +32,7 @@ def main():
+ if reproducible:
+ logger.info('reproducible build, using packaged specification: \'%s.xml\'', value)
+ try:
+- return spec_cls.from_file(glad.files.open_local(value + '.xml'))
++ return spec_cls.from_file(glad.files.open_local(value + '.xml', encoding='utf-8-sig'))
+ except IOError:
+ raise ValueError('unable to open reproducible copy of {}.xml, '
+ 'try dropping --reproducible'.format(value))
diff --git a/ports/glad/portfile.cmake b/ports/glad/portfile.cmake
index 9f08fe660..1c14ca77f 100644
--- a/ports/glad/portfile.cmake
+++ b/ports/glad/portfile.cmake
@@ -6,6 +6,7 @@ vcpkg_from_github(
REF de6c39e3040c987323b8ed078c36442f4fb681b3
SHA512 a24523186d59de5c0895791c639c62573eaacf1d3843d3bf81eba848b4a33a9a8d17f9b6f791202dac77692bf147e25b3650989731d5ddb7a22e7d023b66885e
HEAD_REF master
+ PATCHES encoding.patch
)
vcpkg_find_acquire_program(PYTHON3)