SHA256
1
0
forked from pool/allegro44

fix tumbleweed

OBS-URL: https://build.opensuse.org/package/show/games/allegro44?expand=0&rev=2
This commit is contained in:
Ferdinand Thiessen 2019-01-23 16:55:24 +00:00 committed by Git OBS Bridge
parent 9a5adaeaf5
commit 1832833571
2 changed files with 18 additions and 1 deletions

View File

@ -1,7 +1,7 @@
#
# spec file for package allegro44
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -42,6 +42,8 @@ Patch5: allegro-4.4.2-no_c++.patch
Patch6: allegro-4.4.2-monotonic.patch
# PATCH-FIX-OPENSUSE allegro4-4.4.2-src_x_xkeyboard.c.patch -- Fix include and 'XKeycodeToKeysym' is deprecated
Patch7: allegro-4.4.2-src_x_xkeyboard.c.patch
# PATCH-FIX-OPENSUSE fix-glx.patch -- Fix issue with GLXext
Patch8: fix-glx.patch
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: pkg-config
@ -195,6 +197,7 @@ This package is needed to build programs that use Allegro's logg.
%patch5
%patch6
%patch7
%patch8 -p1
# SED-FIX-OPENSUSE Fix include, warning "xf86dga.h is obsolete and may be removed in the future."
sed -i 's|X11/extensions/xf86dga.h|X11/extensions/Xxf86dga.h|' src/x/xdga2.c

14
fix-glx.patch Normal file
View File

@ -0,0 +1,14 @@
diff -Nur allegro-4.4.2/addons/allegrogl/include/allegrogl/GLext/glx_ext_defs.h new/addons/allegrogl/include/allegrogl/GLext/glx_ext_defs.h
--- allegro-4.4.2/addons/allegrogl/include/allegrogl/GLext/glx_ext_defs.h 2008-10-09 19:22:52.000000000 +0200
+++ new/addons/allegrogl/include/allegrogl/GLext/glx_ext_defs.h 2019-01-23 17:53:44.359602186 +0100
@@ -374,6 +374,10 @@
#define AGLX_ARB_fbconfig_float
#define GLX_RGBA_FLOAT_TYPE 0x20B9
#define GLX_RGBA_FLOAT_BIT 0x00000004
+#else
+#ifndef GLX_RGBA_FLOAT_BIT
+#define GLX_RGBA_FLOAT_BIT GLX_RGBA_FLOAT_BIT_ARB
+#endif
#endif
#ifndef GLX_EXT_framebuffer_sRGB