Add glu.diff

This commit is contained in:
2025-11-17 20:59:42 +01:00
parent 66f86c83e4
commit 91f694812a
3 changed files with 68 additions and 1 deletions
+5
View File
@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Nov 17 19:59:27 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Add glu.diff for a successful build with sdl_compat
-------------------------------------------------------------------
Sat Sep 5 12:53:09 UTC 2020 - Jan Engelhardt <jengelh@inai.de>
+3 -1
View File
@@ -1,7 +1,7 @@
#
# spec file for package blockout
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -29,10 +29,12 @@ Source2: https://downloads.sf.net/blockout/bl25-linux-x86.tar.gz
Patch1: automake.diff
Patch2: compilefixes.diff
Patch3: bl2home.diff
Patch4: glu.diff
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: pkgconfig(SDL_mixer)
BuildRequires: pkgconfig(glu)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(sdl)
+60
View File
@@ -0,0 +1,60 @@
From: Jan Engelhardt <ej@inai.de>
Date: 2025-11-17 20:53:47.057848785 +0100
SDL-devel depends on glu and pulls the headers in, but not so
for sdl_compat. Address the compile failures ensuring from that.
---
BlockOut/GLApp/GLApp.h | 1 +
BlockOut/GLApp/GLFont.h | 1 +
BlockOut/GLApp/GLMatrix.h | 1 +
BlockOut/GLApp/GLSprite.h | 1 +
4 files changed, 4 insertions(+)
Index: BL_SRC/BlockOut/GLApp/GLApp.h
===================================================================
--- BL_SRC.orig/BlockOut/GLApp/GLApp.h
+++ BL_SRC/BlockOut/GLApp/GLApp.h
@@ -4,6 +4,7 @@
// -------------------------------------------
#include <SDL.h>
#include <SDL_opengl.h>
+#include <GL/glu.h>
#include <string.h>
#include <stdlib.h>
Index: BL_SRC/BlockOut/GLApp/GLFont.h
===================================================================
--- BL_SRC.orig/BlockOut/GLApp/GLFont.h
+++ BL_SRC/BlockOut/GLApp/GLFont.h
@@ -2,6 +2,7 @@
// Simple 2D font
// -----------------------------------------------
#include "SDL_opengl.h"
+#include <GL/glu.h>
#ifndef _GLFONT2DH_
#define _GLFONT2DH_
Index: BL_SRC/BlockOut/GLApp/GLMatrix.h
===================================================================
--- BL_SRC.orig/BlockOut/GLApp/GLMatrix.h
+++ BL_SRC/BlockOut/GLApp/GLMatrix.h
@@ -2,6 +2,7 @@
// 3x3 Matrix class
// -------------------------------------
#include <SDL_opengl.h>
+#include <GL/glu.h>
#ifndef _GLMATRIXH_
#define _GLMATRIXH_
Index: BL_SRC/BlockOut/GLApp/GLSprite.h
===================================================================
--- BL_SRC.orig/BlockOut/GLApp/GLSprite.h
+++ BL_SRC/BlockOut/GLApp/GLSprite.h
@@ -2,6 +2,7 @@
// 2D sprites
// -----------------------------------------------
#include "SDL_opengl.h"
+#include <GL/glu.h>
#ifndef _SPRITE2DH_
#define _SPRITE2DH_