changeset 4516:e575e2afdae4

mesa-proto: new package
author John W. Eaton <jwe@octave.org>
date Thu, 19 Oct 2017 08:56:52 -0400
parents a8c3ca78f7a7
children 8e522798c9a7
files dist-files.mk index.html src/mesa-proto.mk src/s2tc.mk
diffstat 4 files changed, 33 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dist-files.mk	Thu Oct 19 08:55:49 2017 -0400
+++ b/dist-files.mk	Thu Oct 19 08:56:52 2017 -0400
@@ -312,6 +312,7 @@
   matio.mk \
   mdbtools.mk \
   mesa-1-fixes.patch \
+  mesa-proto.mk \
   mesa.mk \
   mingw-cairo-1-ssize-t-defined.patch \
   mingw-cfitsio-1-fixes.patch \
--- a/index.html	Thu Oct 19 08:55:49 2017 -0400
+++ b/index.html	Thu Oct 19 08:56:52 2017 -0400
@@ -2142,6 +2142,10 @@
         <td class="website"><a href="http://www.mesa3d.org/osmesa.html">Mesa</a></td>
     </tr>
     <tr>
+        <td class="package">mesa-proto</td>
+        <td class="website"><a href="http://www.mesa3d.org/osmesa.html">Mesa</a></td>
+    </tr>
+    <tr>
         <td class="package">pango</td>
         <td class="website"><a href="http://www.pango.org/">Pango</a></td>
     </tr>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/mesa-proto.mk	Thu Oct 19 08:56:52 2017 -0400
@@ -0,0 +1,27 @@
+# This file is part of MXE Octave.
+# See index.html for further information.
+
+PKG             := mesa-proto
+$(PKG)_VERSION  = $(mesa_VERSION)
+$(PKG)_CHECKSUM = $(mesa_CHECKSUM)
+$(PKG)_SUBDIR   = $(mesa_SUBDIR)
+$(PKG)_FILE     = $(mesa_FILE)
+$(PKG)_URL      = $(mesa_URL)
+$(PKG)_DEPS     := 
+
+define $(PKG)_UPDATE
+    echo 'Warning: Updates are temporarily disabled for package $(PKG).' >&2;
+    echo $($(PKG)_VERSION)
+endef
+
+ifeq ($(USE_SYSTEM_OPENGL),no)
+  define $(PKG)_BUILD
+    $(INSTALL) -d '$(3)$(HOST_INCDIR)/GL';
+    for f in '$(1)/include/GL/*.h' ; do \
+      $(INSTALL) -m 644 $$f '$(3)$(HOST_INCDIR)/GL'; \
+    done
+  endef
+else
+  define $(PKG)_BUILD
+  endef
+endif
--- a/src/s2tc.mk	Thu Oct 19 08:55:49 2017 -0400
+++ b/src/s2tc.mk	Thu Oct 19 08:56:52 2017 -0400
@@ -8,7 +8,7 @@
 $(PKG)_SUBDIR   := s2tc-$($(PKG)_VERSION)
 $(PKG)_FILE     := s2tc-$($(PKG)_VERSION).zip
 $(PKG)_URL      := https://github.com/divVerent/s2tc/archive/v$($(PKG)_VERSION).zip
-$(PKG)_DEPS     := 
+$(PKG)_DEPS     := mesa-proto
 
 define $(PKG)_BUILD
   cd '$(1)' && ./autogen.sh