SDL_bgi-2
OBS-URL: https://build.opensuse.org/package/show/graphics/SDL_bgi?expand=0&rev=8
This commit is contained in:
parent
e154255e1b
commit
9c32fd20f4
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:1feb2037add2956617556aa53c84c60e65f69a3598a8ea247d7bc567d1e0a15f
|
|
||||||
size 55852
|
|
3
SDL_bgi-2.0.0.tar.gz
Normal file
3
SDL_bgi-2.0.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:6d8dc51d3fb42368f416a399389670f82ff08533a2a798f1b82d1dfd84f94e82
|
||||||
|
size 230625
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu May 7 11:24:57 UTC 2015 - jengelh@inai.de
|
||||||
|
|
||||||
|
- Update to new upstream release 2.0.0
|
||||||
|
* This uses SDL2 as backend
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Dec 18 09:25:45 UTC 2014 - jengelh@inai.de
|
Thu Dec 18 09:25:45 UTC 2014 - jengelh@inai.de
|
||||||
|
|
||||||
|
10
SDL_bgi.spec
10
SDL_bgi.spec
@ -18,10 +18,10 @@
|
|||||||
|
|
||||||
Name: SDL_bgi
|
Name: SDL_bgi
|
||||||
%define lname libSDL_bgi0
|
%define lname libSDL_bgi0
|
||||||
Version: 1.0.1
|
Version: 2.0.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: BGI-compatible 2D graphics C library with SDL backend
|
Summary: BGI-compatible 2D graphics C library with SDL backend
|
||||||
License: BSD-3-Clause
|
License: Zlib and GPL-2.0+
|
||||||
Group: Development/Libraries/X11
|
Group: Development/Libraries/X11
|
||||||
Url: http://libXbgi.sf.net/
|
Url: http://libXbgi.sf.net/
|
||||||
|
|
||||||
@ -30,7 +30,7 @@ Patch1: sdlbgi-automake.diff
|
|||||||
BuildRequires: automake >= 1.11
|
BuildRequires: automake >= 1.11
|
||||||
BuildRequires: libtool >= 2
|
BuildRequires: libtool >= 2
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
BuildRequires: pkgconfig(SDL_gfx)
|
BuildRequires: pkgconfig(sdl2)
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -94,8 +94,8 @@ EOF
|
|||||||
|
|
||||||
%files -n libSDL_bgi-devel
|
%files -n libSDL_bgi-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc *.txt
|
%doc 00_README doc/*
|
||||||
%_includedir/*.h
|
%_includedir/SDL2/
|
||||||
%_libdir/libSDL_bgi.so
|
%_libdir/libSDL_bgi.so
|
||||||
%_libdir/pkgconfig/SDL_bgi.pc
|
%_libdir/pkgconfig/SDL_bgi.pc
|
||||||
|
|
||||||
|
@ -1,23 +1,30 @@
|
|||||||
From: Jan Engelhardt <jengelh@inai.de>
|
From: Jan Engelhardt <jengelh@inai.de>
|
||||||
Date: 2014-12-18 11:43:21.385084191 +0100
|
Date: 2014-12-18 11:43:21.385084191 +0100
|
||||||
|
Refresh: Thu May 7 13:22:40 CEST 2015
|
||||||
|
|
||||||
|
Author could not decide between "sdlbgifast" and "bgifast"
|
||||||
|
(same for bgislow), so add extra symbols to enable both names.
|
||||||
|
|
||||||
---
|
---
|
||||||
Makefile.am | 2 ++
|
Makefile.am | 2 ++
|
||||||
configure.ac | 9 +++++++++
|
configure.ac | 9 +++++++++
|
||||||
src/Makefile.am | 6 ++++++
|
src/Makefile.am | 8 ++++++++
|
||||||
3 files changed, 17 insertions(+)
|
src/SDL_bgi.c | 8 ++++++++
|
||||||
|
src/SDL_bgi.h | 2 ++
|
||||||
|
src/test/Makefile.am | 10 ++++++++++
|
||||||
|
6 files changed, 39 insertions(+)
|
||||||
|
|
||||||
Index: SDL_bgi-1.0.1/Makefile.am
|
Index: SDL_bgi-2.0.0/Makefile.am
|
||||||
===================================================================
|
===================================================================
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ SDL_bgi-1.0.1/Makefile.am
|
+++ SDL_bgi-2.0.0/Makefile.am
|
||||||
@@ -0,0 +1,2 @@
|
@@ -0,0 +1,2 @@
|
||||||
+ACLOCAL_AMFLAGS = -I m4
|
+ACLOCAL_AMFLAGS = -I m4
|
||||||
+SUBDIRS = src
|
+SUBDIRS = src
|
||||||
Index: SDL_bgi-1.0.1/configure.ac
|
Index: SDL_bgi-2.0.0/configure.ac
|
||||||
===================================================================
|
===================================================================
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ SDL_bgi-1.0.1/configure.ac
|
+++ SDL_bgi-2.0.0/configure.ac
|
||||||
@@ -0,0 +1,9 @@
|
@@ -0,0 +1,9 @@
|
||||||
+AC_INIT([SDL_bgi], [1.0.1])
|
+AC_INIT([SDL_bgi], [1.0.1])
|
||||||
+AC_CONFIG_AUX_DIR([build-aux])
|
+AC_CONFIG_AUX_DIR([build-aux])
|
||||||
@ -25,17 +32,73 @@ Index: SDL_bgi-1.0.1/configure.ac
|
|||||||
+AC_PROG_CC
|
+AC_PROG_CC
|
||||||
+AM_INIT_AUTOMAKE([foreign subdir-objects tar-pax dist-xz no-dist-gzip])
|
+AM_INIT_AUTOMAKE([foreign subdir-objects tar-pax dist-xz no-dist-gzip])
|
||||||
+LT_INIT
|
+LT_INIT
|
||||||
+PKG_CHECK_MODULES([sdlgfx], [SDL_gfx])
|
+PKG_CHECK_MODULES([sdl2], [sdl2])
|
||||||
+AC_CONFIG_FILES([Makefile src/Makefile])
|
+AC_CONFIG_FILES([Makefile src/Makefile src/test/Makefile])
|
||||||
+AC_OUTPUT
|
+AC_OUTPUT
|
||||||
Index: SDL_bgi-1.0.1/src/Makefile.am
|
Index: SDL_bgi-2.0.0/src/Makefile.am
|
||||||
===================================================================
|
===================================================================
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ SDL_bgi-1.0.1/src/Makefile.am
|
+++ SDL_bgi-2.0.0/src/Makefile.am
|
||||||
@@ -0,0 +1,6 @@
|
@@ -0,0 +1,8 @@
|
||||||
+AM_CPPFLAGS = ${sdlgfx_CFLAGS}
|
+SUBDIRS = . test
|
||||||
|
+AM_CPPFLAGS = ${sdl2_CFLAGS}
|
||||||
+AM_CFLAGS = -Wall
|
+AM_CFLAGS = -Wall
|
||||||
+lib_LTLIBRARIES = libSDL_bgi.la
|
+lib_LTLIBRARIES = libSDL_bgi.la
|
||||||
+libSDL_bgi_la_SOURCES = SDL_bgi.c
|
+libSDL_bgi_la_SOURCES = SDL_bgi.c
|
||||||
+libSDL_bgi_la_LIBADD = ${sdlgfx_LIBS}
|
+libSDL_bgi_la_LIBADD = -lm ${sdl2_LIBS}
|
||||||
+include_HEADERS = SDL_bgi.h
|
+pkgincludedir = ${includedir}/SDL2
|
||||||
|
+pkginclude_HEADERS = SDL_bgi.h
|
||||||
|
Index: SDL_bgi-2.0.0/src/SDL_bgi.c
|
||||||
|
===================================================================
|
||||||
|
--- SDL_bgi-2.0.0.orig/src/SDL_bgi.c
|
||||||
|
+++ SDL_bgi-2.0.0/src/SDL_bgi.c
|
||||||
|
@@ -2069,6 +2069,10 @@ void sdlbgifast (void)
|
||||||
|
{
|
||||||
|
bgi_fast_mode = 1;
|
||||||
|
} // sdlbgifast ()
|
||||||
|
+void bgifast (void)
|
||||||
|
+{
|
||||||
|
+ bgi_fast_mode = 1;
|
||||||
|
+} // sdlbgifast ()
|
||||||
|
|
||||||
|
// -----
|
||||||
|
|
||||||
|
@@ -2076,6 +2080,10 @@ void bgislow (void)
|
||||||
|
{
|
||||||
|
bgi_fast_mode = 0;
|
||||||
|
} // sdlbgislow ()
|
||||||
|
+void sdlbgislow (void)
|
||||||
|
+{
|
||||||
|
+ bgi_fast_mode = 0;
|
||||||
|
+} // sdlbgislow ()
|
||||||
|
|
||||||
|
// -----
|
||||||
|
|
||||||
|
Index: SDL_bgi-2.0.0/src/SDL_bgi.h
|
||||||
|
===================================================================
|
||||||
|
--- SDL_bgi-2.0.0.orig/src/SDL_bgi.h
|
||||||
|
+++ SDL_bgi-2.0.0/src/SDL_bgi.h
|
||||||
|
@@ -307,6 +307,8 @@ int registerbgifont (void *);
|
||||||
|
void restorecrtmode (void);
|
||||||
|
void sdlbgifast (void);
|
||||||
|
void sdlbgislow (void);
|
||||||
|
+void bgifast (void);
|
||||||
|
+void bgislow (void);
|
||||||
|
void sector (int, int, int, int, int, int);
|
||||||
|
void setactivepage (int);
|
||||||
|
void setallpalette (struct palettetype *);
|
||||||
|
Index: SDL_bgi-2.0.0/src/test/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- /dev/null
|
||||||
|
+++ SDL_bgi-2.0.0/src/test/Makefile.am
|
||||||
|
@@ -0,0 +1,10 @@
|
||||||
|
+AM_CPPFLAGS = -I${top_srcdir}/src
|
||||||
|
+AM_CFLAGS = -Wall
|
||||||
|
+EXTRA_PROGRAMS = \
|
||||||
|
+ cellular dla fern floodfilltest hopalong life \
|
||||||
|
+ mandelbrot mousetest moveit sdlbgidemo simple turtledemo
|
||||||
|
+LDADD = ../libSDL_bgi.la
|
||||||
|
+hopalong_LDADD = ${LDADD} -lm
|
||||||
|
+sdlbgidemo_LDADD = ${LDADD} -lm
|
||||||
|
+turtledemo_SOURCES = turtle.c turtledemo.c
|
||||||
|
+turtledemo_LDADD = ${LDADD} -lm
|
||||||
|
Loading…
x
Reference in New Issue
Block a user