SHA256
1
0
forked from pool/SDL_bgi

- Update to release 2.4.1

OBS-URL: https://build.opensuse.org/package/show/graphics/SDL_bgi?expand=0&rev=47
This commit is contained in:
Jan Engelhardt 2020-08-11 12:09:22 +00:00 committed by Git OBS Bridge
parent b38e50882b
commit 9356baa7f6
5 changed files with 34 additions and 18 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fcdc9ec49b583412fee5825ca6446cc28a1bc61045bf9732db138e92bb9561b8
size 1396648

3
SDL_bgi-2.4.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:22729b99a093234308718b0e5ed176f0073ca3701ddf1cdfa2e5b78575a8421e
size 1501719

View File

@ -1,3 +1,19 @@
-------------------------------------------------------------------
Tue Aug 11 11:58:03 UTC 2020 - Jan Engelhardt <jengelh@inai.de>
- Update to release 2.4.1
* Implemented a 16-color palette that uses the same RGB values
as Turbo C. This palette is used if the environment variable
SDL_BGI_PALETTE is set to "BGI".
* Extended the setpalette() function to modify the default 16
colors too.
* Added initpalette() to restore the original 16 colors.
* Added more Hershey fonts: Cursive, Futural, Rowmant, and
Timesr.
* Fine tuning of Hershey font metrics; now they equal the
metrics of corresponding .CHR fonts.
* Preliminary .CHR font loading support.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Feb 20 15:46:54 UTC 2020 - Jan Engelhardt <jengelh@inai.de> Thu Feb 20 15:46:54 UTC 2020 - Jan Engelhardt <jengelh@inai.de>

View File

@ -17,8 +17,8 @@
Name: SDL_bgi Name: SDL_bgi
%define lname libSDL_bgi-suse3 %define lname libSDL_bgi-suse4
Version: 2.4.0 Version: 2.4.1
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: Zlib AND GPL-2.0-or-later License: Zlib AND GPL-2.0-or-later
@ -81,7 +81,7 @@ rm -v "%buildroot/%_includedir/graphics.h"
%files -n %lname %files -n %lname
%license LICENSE %license LICENSE
%_libdir/libSDL_bgi.so.suse3 %_libdir/libSDL_bgi.so.suse4
%files -n libSDL_bgi-devel %files -n libSDL_bgi-devel
%_defaultdocdir/%name/ %_defaultdocdir/%name/

View File

@ -1,17 +1,15 @@
Fix stupid build strategy. Add some library versioning.
And add some library versioning.
--- ---
CMakeLists.txt | 5 ++--- CMakeLists.txt | 6 ++----
1 file changed, 2 insertions(+), 3 deletions(-) 1 file changed, 2 insertions(+), 4 deletions(-)
Index: SDL_bgi-2.4.0/CMakeLists.txt Index: SDL_bgi-2.4.1/CMakeLists.txt
=================================================================== ===================================================================
--- SDL_bgi-2.4.0.orig/CMakeLists.txt --- SDL_bgi-2.4.1.orig/CMakeLists.txt
+++ SDL_bgi-2.4.0/CMakeLists.txt +++ SDL_bgi-2.4.1/CMakeLists.txt
@@ -20,9 +20,6 @@ include_directories (SDL2Test ${SDL2_INC @@ -21,9 +21,6 @@ include_directories (SDL_bgi ${SDL2_INCL
# Default install directory variables # Default install directory variables
include (GNUInstallDirs) include (GNUInstallDirs)
@ -21,12 +19,14 @@ Index: SDL_bgi-2.4.0/CMakeLists.txt
# Find source files # Find source files
file (GLOB SOURCES src/*.c) file (GLOB SOURCES src/*.c)
@@ -31,6 +28,8 @@ include_directories (src) @@ -32,8 +29,9 @@ include_directories (src)
# Create shared library # Create shared library
add_library (${PROJECT_NAME} SHARED ${SOURCES}) add_library (${PROJECT_NAME} SHARED ${SOURCES})
+set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION suse3) +set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION suse4)
+target_link_libraries(${PROJECT_NAME} -lm ${SDL2_LIBRARIES}) # fix provided by Austin Hurst
-target_link_libraries (SDL_bgi ${SDL2_LIBRARIES})
+target_link_libraries (SDL_bgi -lm ${SDL2_LIBRARIES})
# Install library # Install library
install (TARGETS ${PROJECT_NAME} install (TARGETS ${PROJECT_NAME}