1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 $(eval
$(call gb_UnpackedTarball_UnpackedTarball
,epoxy
))
12 $(eval
$(call gb_UnpackedTarball_set_tarball
,epoxy
,$(EPOXY_TARBALL
)))
14 $(call gb_UnpackedTarball_get_target
,epoxy
) :|
$(call gb_ExternalExecutable_get_dependencies
,python
)
16 epoxy_PYTHON
:= $(call gb_ExternalExecutable_get_command
,python
)
18 # previous versions of epoxy bundled the output, but now it has to be generated
19 $(eval
$(call gb_UnpackedTarball_set_pre_action
,epoxy
,\
20 $(epoxy_PYTHON
) .
/src
/gen_dispatch.py
--srcdir src
--includedir include/epoxy registry
/gl.xml
&& \
21 $(epoxy_PYTHON
) .
/src
/gen_dispatch.py
--srcdir src
--includedir include/epoxy registry
/glx.xml
&& \
22 $(epoxy_PYTHON
) .
/src
/gen_dispatch.py
--srcdir src
--includedir include/epoxy registry
/egl.xml
&& \
23 $(epoxy_PYTHON
) .
/src
/gen_dispatch.py
--srcdir src
--includedir include/epoxy registry
/wgl.xml \
26 $(eval
$(call gb_UnpackedTarball_set_patchlevel
,epoxy
,0))
28 # * external/external/epoxy/epoxy.android.patch upstream at
29 # <https://github.com/anholt/libepoxy/pull/263> "fix error: use of undeclared identifier 'OPENGL_LIB'":
30 $(eval
$(call gb_UnpackedTarball_add_patches
,epoxy
, \
31 external
/epoxy
/epoxy.visibility.patch \
32 external
/epoxy
/epoxy.windows.api.patch \
33 external
/epoxy
/epoxy.noegl.by.default.patch \
34 external
/epoxy
/clang-cl.patch \
37 # vim: set noet sw=4 ts=4: