summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--patches/glew-2.1.0.local.patch21
-rw-r--r--vars/build.vars10
2 files changed, 30 insertions, 1 deletions
diff --git a/patches/glew-2.1.0.local.patch b/patches/glew-2.1.0.local.patch
new file mode 100644
index 00000000..4221c9c5
--- /dev/null
+++ b/patches/glew-2.1.0.local.patch
@@ -0,0 +1,21 @@
+diff -Nru glew-2.1.0.orig/config/Makefile.midipix glew-2.1.0/config/Makefile.midipix
+--- glew-2.1.0.orig/config/Makefile.midipix 1970-01-01 01:00:00.000000000 +0100
++++ glew-2.1.0/config/Makefile.midipix 2018-07-19 22:26:01.674783470 +0200
+@@ -0,0 +1,17 @@
++NAME = $(GLEW_NAME)
++CC = gcc
++LD = gcc
++LDFLAGS.GL = -lGL -lX11
++NAME = GLEW
++WARN = -Wall -W
++POPT = -O2
++CFLAGS.EXTRA += -fPIC -I./include
++CFLAGS.EXTRA += -Wcast-qual
++CFLAGS.EXTRA += -ansi -pedantic
++CFLAGS.EXTRA += -fno-stack-protector
++BIN.SUFFIX =
++LIB.SONAME = lib$(NAME).so.$(SO_MAJOR)
++LIB.DEVLNK = lib$(NAME).so
++LIB.SHARED = lib$(NAME).so.$(SO_VERSION)
++LIB.STATIC = lib$(NAME).a
++LDFLAGS.SO = -shared -Wl,-soname=$(LIB.SONAME) -Wl,--out-dsolib,lib/lib$(NAME).lib.a
diff --git a/vars/build.vars b/vars/build.vars
index d26bcc3a..d4a47212 100644
--- a/vars/build.vars
+++ b/vars/build.vars
@@ -653,7 +653,7 @@ NATIVE_PACKAGES_DEPS_X11_MAKEFLAGS_INSTALL="PREFIX= prefix=";
NATIVE_PACKAGES_DEPS_X11_PACKAGES="
inputproto kbproto xcb_proto xproto fixesproto recordproto glproto libXau libpthread_stubs xcb
xextproto xtrans libX11 libXext freetype fontconfig renderproto Xrender
-libXft libXfixes libXi libXtst libICE libSM libXt libXmu libXpm libXaw libxkbfile damageproto libXdamage mesa
+libXft libXfixes libXi libXtst libICE libSM libXt libXmu libXpm libXaw libxkbfile damageproto libXdamage mesa glew
harfbuzz pixman cairo dbus dbus_glib sdl2 pango atk at_spi2_core at_spi2_atk gdk libepoxy gtk2 gtk3 imlib2 libcaca libxfce4util xfconf libxfce4ui";
NATIVE_PACKAGES_DEPS_X11_PREFIX="${PREFIX_NATIVE}";
NATIVE_PACKAGES_DEPS_X11_PYTHON="${PREFIX}/bin/python";
@@ -764,6 +764,14 @@ NATIVE_PACKAGES_DEPS_X11_PYTHON="${PREFIX}/bin/python";
: ${PKG_MESA_LIBTOOL:=slibtool-shared};
: ${PKG_MESA_CFLAGS_CONFIGURE_EXTRA:="-D_GNU_SOURCE"};
: ${PKG_MESA_CXXFLAGS_CONFIGURE_EXTRA:="-D_GNU_SOURCE"};
+: ${PKG_GLEW_SHA256SUM:=04de91e7e6763039bc11940095cd9c7f880baba82196a7765f727ac05a993c95};
+: ${PKG_GLEW_VERSION:=2.1.0};
+: ${PKG_GLEW_URL:=http://sourceforge.mirrorservice.org/g/gl/glew/glew/${PKG_GLEW_VERSION}/glew-${PKG_GLEW_VERSION}.tgz};
+: ${PKG_GLEW_BUILD_STEPS_DISABLE:=install_make};
+: ${PKG_GLEW_CFLAGS_BUILD_EXTRA:=-Iinclude};
+: ${PKG_GLEW_INSTALL_FILES:="../glew-${PKG_GLEW_VERSION}/lib/libGLEW.lib.a=lib/ ../glew-${PKG_GLEW_VERSION}/lib/libGLEW.so=lib/ ../glew-${PKG_GLEW_VERSION}/lib/libGLEW.so.${PKG_GLEW_VERSION}=lib/ ../glew-${PKG_GLEW_VERSION}/lib/libGLEW.so.${PKG_GLEW_VERSION%.*}=lib/ ../glew-${PKG_GLEW_VERSION}/lib/libGLEW.a=lib/ ../glew-${PKG_GLEW_VERSION}/bin/glewinfo=bin/ ../glew-${PKG_GLEW_VERSION}/bin/visualinfo=bin/"};
+: ${PKG_GLEW_IN_TREE:=1};
+: ${PKG_GLEW_MAKEFLAGS_BUILD_EXTRA:="SYSTEM=midipix STRIP= LD=${DEFAULT_TARGET}-gcc CC=${DEFAULT_TARGET}-gcc CFLAGS=-isystem${PREFIX_NATIVE}/include LDFLAGS.EXTRA=-L${PREFIX_NATIVE}/lib"};
: ${PKG_PIXMAN_VERSION:=0.34.0};
: ${PKG_PIXMAN_URL:=https://www.cairographics.org/releases/pixman-${PKG_PIXMAN_VERSION}.tar.gz};
: ${PKG_PIXMAN_SHA256SUM:=21b6b249b51c6800dc9553b65106e1e37d0e25df942c90531d4c3997aa20a88e};