diff src/osmesa.mk @ 3785:e1e69acf0bb2

osmesa: added for offscreen rendering with OpenGL toolkits
author Andreas Weber <andy.weber.aw@gmail.com>
date Fri, 13 Feb 2015 21:25:57 +0100
parents
children 282bc5054a7f
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/osmesa.mk	Fri Feb 13 21:25:57 2015 +0100
@@ -0,0 +1,26 @@
+# This file is part of MXE Octave.
+# See index.html for further information.
+
+PKG             := osmesa
+$(PKG)_VERSION  := 10.2.2
+$(PKG)_CHECKSUM := 2cc7c5b80fd2ddbf540acf47dbaec68e8cab16a4
+$(PKG)_SUBDIR   := Mesa-$($(PKG)_VERSION)
+$(PKG)_FILE     := MesaLib-$($(PKG)_VERSION).tar.bz2
+$(PKG)_URL      := ftp://ftp.freedesktop.org/pub/mesa/current/$($(PKG)_FILE)
+$(PKG)_DEPS     := 
+
+define $(PKG)_UPDATE
+    echo 'Warning: Updates are temporarily disabled for package $(PKG).' >&2;
+    echo $($(PKG)_VERSION)
+endef
+
+define $(PKG)_BUILD
+    mkdir '$(1)/.build'
+    cd '$(1)/.build' && $($(PKG)_CONFIGURE_ENV) '$(1)/configure' \
+        $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
+        $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
+        --prefix='$(HOST_PREFIX)' \
+        --disable-dri --disable-egl --without-gallium-drivers \
+        --enable-osmesa \
+        && $(CONFIGURE_POST_HOOK)
+endef