changeset 4507:4c645e979279

s2tc: New package.
author John W. Eaton <jwe@octave.org>
date Thu, 12 Oct 2017 05:55:18 -0400
parents f3d64fe692e6
children 7dc3bebccab9
files dist-files.mk index.html src/mesa.mk src/s2tc.mk
diffstat 4 files changed, 34 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dist-files.mk	Thu Oct 12 05:54:48 2017 -0400
+++ b/dist-files.mk	Thu Oct 12 05:55:18 2017 -0400
@@ -598,6 +598,7 @@
   readline-2-event-hook.patch \
   readline.mk \
   renderproto.mk \
+  s2tc.mk \
   sdl-test.c \
   sdl.mk \
   sdl_image-test.c \
--- a/index.html	Thu Oct 12 05:54:48 2017 -0400
+++ b/index.html	Thu Oct 12 05:55:18 2017 -0400
@@ -2290,6 +2290,10 @@
         <td class="website"><a href="http://xorg.freedesktop.org/">renderproto></a></td>
     </tr>
     <tr>
+        <td class="package">s2tc</td>
+        <td class="website"><a href="https://github.com/divVerent/s2tc/wiki/">s2tc</a></td>
+    </tr>
+    <tr>
         <td class="package">sdl</td>
         <td class="website"><a href="http://www.libsdl.org/">SDL</a></td>
     </tr>
--- a/src/mesa.mk	Thu Oct 12 05:54:48 2017 -0400
+++ b/src/mesa.mk	Thu Oct 12 05:55:18 2017 -0400
@@ -7,7 +7,7 @@
 $(PKG)_SUBDIR   := mesa-$($(PKG)_VERSION)
 $(PKG)_FILE     := mesa-$($(PKG)_VERSION).tar.xz
 $(PKG)_URL      := ftp://ftp.freedesktop.org/pub/mesa/$($(PKG)_FILE)
-$(PKG)_DEPS     := build-mako zlib
+$(PKG)_DEPS     := build-mako s2tc zlib
 ifeq ($(MXE_WINDOWS_BUILD),yes)
   ifeq ($(USE_SYSTEM_OPENGL),no)
     $(PKG)_CONFIGURE_OPENGL_OPTIONS := libgl-gdi
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/s2tc.mk	Thu Oct 12 05:55:18 2017 -0400
@@ -0,0 +1,28 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG             := s2tc
+$(PKG)_IGNORE   :=
+$(PKG)_VERSION  := 1.0
+$(PKG)_CHECKSUM := 08295ae27abe2718f7be01f490e7a08353060291
+$(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     := 
+
+ifeq ($(MXE_WINDOWS_BUILD),yes)
+  define $(PKG)_BUILD
+  endef
+else
+  define $(PKG)_BUILD
+    cd '$(1)' && ./autogen.sh
+    mkdir '$(1)/.build'
+    cd '$(1)/.build' && $($(PKG)_CONFIGURE_ENV) '$(1)/configure' \
+        $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
+        $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
+        --prefix='$(HOST_PREFIX)' \
+        && $(CONFIGURE_POST_HOOK)
+
+    $(MAKE) -C '$(1)/.build' -j '$(JOBS)' install DESTDIR='$(3)'
+  endef
+endif