Skip to content

Commit a8dc8a1

Browse files
committed
fix pkg-config file 'requires' field, a few build clean-ups.
1 parent db93234 commit a8dc8a1

File tree

10 files changed

+5
-317
lines changed

10 files changed

+5
-317
lines changed

Android.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ LOCAL_CFLAGS :=
99

1010
LOCAL_SRC_FILES := src/SDLnet.c src/SDLnetTCP.c src/SDLnetUDP.c src/SDLnetselect.c
1111

12-
LOCAL_SHARED_LIBRARIES := SDL2
12+
LOCAL_SHARED_LIBRARIES := SDL3
1313

1414
LOCAL_EXPORT_C_INCLUDES += $(LOCAL_PATH)/include
1515

Makefile.am

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ EXTRA_DIST = \
2020
CHANGES.txt \
2121
CMakeLists.txt \
2222
LICENSE.txt \
23-
Makefile.os2 \
2423
Makefile.psp \
2524
README.txt \
2625
SDL2_net.spec \

Makefile.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,6 @@ EXTRA_DIST = \
428428
CHANGES.txt \
429429
CMakeLists.txt \
430430
LICENSE.txt \
431-
Makefile.os2 \
432431
Makefile.psp \
433432
README.txt \
434433
SDL2_net.spec \

Makefile.os2

Lines changed: 0 additions & 103 deletions
This file was deleted.

Makefile.psp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ OBJS= src/SDLnet.o \
55
src/SDLnetUDP.o \
66

77
INCDIR = include src
8-
CFLAGS = -g -O2 -G0 -Wall -D__PSP__ -I$(shell psp-config --psp-prefix)/include/SDL2
8+
CFLAGS = -g -O2 -G0 -Wall -D__PSP__ -I$(shell psp-config --psp-prefix)/include
99
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
1010
ASFLAGS = $(CFLAGS)
1111

SDL2_net.pc.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ includedir=@includedir@
66
Name: SDL2_net
77
Description: net library for Simple DirectMedia Layer
88
Version: @VERSION@
9-
Requires: sdl2 >= @SDL_VERSION@
9+
Requires: sdl3 >= @SDL_VERSION@
1010
@ENABLE_SHARED_TRUE@Libs: -L${libdir} -lSDL2_net
1111
@ENABLE_SHARED_TRUE@@ENABLE_STATIC_TRUE@Libs.private: @INETLIB@
1212
@ENABLE_SHARED_FALSE@Libs: -L${libdir} -lSDL2_net @INETLIB@

acinclude/sdl2.m4

Lines changed: 0 additions & 180 deletions
This file was deleted.

build-scripts/test-versioning.sh

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,6 @@ else
7070
not_ok "CMakeLists.txt SDL_REQUIRED_VERSION=$sdl_req disagrees with configure.ac SDL_VERSION=$ref_sdl_req"
7171
fi
7272

73-
major=$(sed -ne 's/^MAJOR_VERSION *= *//p' Makefile.os2)
74-
minor=$(sed -ne 's/^MINOR_VERSION *= *//p' Makefile.os2)
75-
micro=$(sed -ne 's/^MICRO_VERSION *= *//p' Makefile.os2)
76-
version="${major}.${minor}.${micro}"
77-
78-
if [ "$ref_version" = "$version" ]; then
79-
ok "Makefile.os2 $version"
80-
else
81-
not_ok "Makefile.os2 $version disagrees with $header $ref_version"
82-
fi
83-
8473
for rcfile in src/version.rc VisualC/Version.rc; do
8574
tuple=$(sed -ne 's/^ *FILEVERSION *//p' "$rcfile" | tr -d '\r')
8675
ref_tuple="${ref_major},${ref_minor},${ref_micro},0"

configure

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12606,14 +12606,6 @@ case "$host" in
1260612606
use_version_rc=true
1260712607
LT_EXTRA="-Wl,src/version.o"
1260812608
;;
12609-
*-*-os2*)
12610-
# disable static builds on os/2
12611-
enable_static=no
12612-
# -DBUILD_SDL is needed for DECLSPEC
12613-
CFLAGS="$CFLAGS -DBUILD_SDL"
12614-
# OS/2 does not support a DLL name longer than 8 characters.
12615-
LT_EXTRA="-os2dllname SDL2net"
12616-
;;
1261712609
esac
1261812610
if test x$use_version_rc = xtrue; then
1261912611
USE_VERSION_RC_TRUE=
@@ -12699,7 +12691,7 @@ CheckVisibilityHidden()
1269912691
printf %s "checking for GCC -fvisibility=hidden option... " >&6; }
1270012692
have_gcc_fvisibility=no
1270112693
case "$host" in
12702-
*-*-cygwin* | *-*-mingw* | *-*-os2*)
12694+
*-*-cygwin* | *-*-mingw*)
1270312695
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ignored for $host_os" >&5
1270412696
printf "%s\n" "ignored for $host_os" >&6; }
1270512697
return

configure.ac

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,6 @@ case "$host" in
9292
use_version_rc=true
9393
LT_EXTRA="-Wl,src/version.o"
9494
;;
95-
*-*-os2*)
96-
# disable static builds on os/2
97-
enable_static=no
98-
# -DBUILD_SDL is needed for DECLSPEC
99-
CFLAGS="$CFLAGS -DBUILD_SDL"
100-
# OS/2 does not support a DLL name longer than 8 characters.
101-
LT_EXTRA="-os2dllname SDL2net"
102-
;;
10395
esac
10496
AM_CONDITIONAL(USE_VERSION_RC, test x$use_version_rc = xtrue)
10597

@@ -162,7 +154,7 @@ CheckVisibilityHidden()
162154
AC_MSG_CHECKING(for GCC -fvisibility=hidden option)
163155
have_gcc_fvisibility=no
164156
case "$host" in
165-
*-*-cygwin* | *-*-mingw* | *-*-os2*)
157+
*-*-cygwin* | *-*-mingw*)
166158
AC_MSG_RESULT([ignored for $host_os])
167159
return
168160
;;

0 commit comments

Comments
 (0)