git: e06560dd18c1 - main - net/sdl2_net: update 2.0.1 → 2.2.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 31 Aug 2022 10:16:20 UTC
The branch main has been updated by amdmi3: URL: https://cgit.FreeBSD.org/ports/commit/?id=e06560dd18c102e5c732342c9f1da4d727cec655 commit e06560dd18c102e5c732342c9f1da4d727cec655 Author: Dmitry Marakasov <amdmi3@FreeBSD.org> AuthorDate: 2022-08-30 17:03:58 +0000 Commit: Dmitry Marakasov <amdmi3@FreeBSD.org> CommitDate: 2022-08-31 10:15:29 +0000 net/sdl2_net: update 2.0.1 → 2.2.0 --- net/sdl2_net/Makefile | 18 +++++++++--------- net/sdl2_net/distinfo | 5 +++-- net/sdl2_net/files/patch-CMakeLists.txt | 11 +++++++++++ net/sdl2_net/pkg-descr | 6 ++---- net/sdl2_net/pkg-plist | 8 ++++++-- 5 files changed, 31 insertions(+), 17 deletions(-) diff --git a/net/sdl2_net/Makefile b/net/sdl2_net/Makefile index 8a5457e290e7..81b3ea8008c1 100644 --- a/net/sdl2_net/Makefile +++ b/net/sdl2_net/Makefile @@ -1,21 +1,21 @@ PORTNAME= sdl2_net -PORTVERSION= 2.0.1 +DISTVERSIONPREFIX= release- +DISTVERSION= 2.2.0 CATEGORIES= net -MASTER_SITES= https://www.libsdl.org/projects/SDL_net/release/ -DISTNAME= SDL2_net-${PORTVERSION} MAINTAINER= amdmi3@FreeBSD.org COMMENT= Small sample cross-platform networking library LICENSE= ZLIB -LICENSE_FILE= ${WRKSRC}/COPYING.txt +LICENSE_FILE= ${WRKSRC}/LICENSE.txt +USES= cmake sdl +USE_GITHUB= yes +GH_ACCOUNT= libsdl-org +GH_PROJECT= SDL_net USE_SDL= sdl2 -USES= gmake libtool pathfix pkgconfig:build sdl -GNU_CONFIGURE= yes -INSTALL_TARGET= install-strip USE_LDCONFIG= yes - -CONFIGURE_ARGS= --disable-gui +CMAKE_OFF= SDL2NET_SAMPLES +CMAKE_ARGS= -DSDL2NET_DEBUG_POSTFIX:STRING= .include <bsd.port.mk> diff --git a/net/sdl2_net/distinfo b/net/sdl2_net/distinfo index 906f07b47fba..9084ef589a15 100644 --- a/net/sdl2_net/distinfo +++ b/net/sdl2_net/distinfo @@ -1,2 +1,3 @@ -SHA256 (SDL2_net-2.0.1.tar.gz) = 15ce8a7e5a23dafe8177c8df6e6c79b6749a03fff1e8196742d3571657609d21 -SIZE (SDL2_net-2.0.1.tar.gz) = 347436 +TIMESTAMP = 1661877280 +SHA256 (libsdl-org-SDL_net-release-2.2.0_GH0.tar.gz) = 08d741282c0c22b82ed134f09cd319803132289cae06fb47b5ada2752faf0493 +SIZE (libsdl-org-SDL_net-release-2.2.0_GH0.tar.gz) = 8698437 diff --git a/net/sdl2_net/files/patch-CMakeLists.txt b/net/sdl2_net/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..d0a6c7001225 --- /dev/null +++ b/net/sdl2_net/files/patch-CMakeLists.txt @@ -0,0 +1,11 @@ +--- CMakeLists.txt.orig 2022-08-19 16:58:25 UTC ++++ CMakeLists.txt +@@ -227,7 +227,7 @@ if(SDL2NET_INSTALL) + endif() + # Only install a SDL2_net.pc file in Release mode + install(CODE " +- if(CMAKE_INSTALL_CONFIG_NAME MATCHES \"Release\") ++ if(1) + # FIXME: use file(COPY_FILE) if minimum CMake version >= 3.21 + execute_process(COMMAND \"\${CMAKE_COMMAND}\" -E copy_if_different + \"${CMAKE_CURRENT_BINARY_DIR}/SDL2_net-$<CONFIG>.pc\" diff --git a/net/sdl2_net/pkg-descr b/net/sdl2_net/pkg-descr index 15996f1c2d45..3d985968589b 100644 --- a/net/sdl2_net/pkg-descr +++ b/net/sdl2_net/pkg-descr @@ -1,5 +1,3 @@ -This is a small sample cross-platform networking library, with a sample chat -client and server application. The chat client uses the GUIlib GUI framework -library. +This is an example portable network library for use with SDL. -WWW: https://www.libsdl.org/projects/SDL_net/ +WWW: https://github.com/libsdl-org/SDL_net diff --git a/net/sdl2_net/pkg-plist b/net/sdl2_net/pkg-plist index 924a27e5aa14..c8d7b3b10a6a 100644 --- a/net/sdl2_net/pkg-plist +++ b/net/sdl2_net/pkg-plist @@ -1,6 +1,10 @@ include/SDL2/SDL_net.h +lib/cmake/SDL2_net/SDL2_net-shared-targets-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/SDL2_net/SDL2_net-shared-targets.cmake +lib/cmake/SDL2_net/SDL2_netConfig.cmake +lib/cmake/SDL2_net/SDL2_netConfigVersion.cmake +lib/libSDL2_net-2.0.so lib/libSDL2_net-2.0.so.0 -lib/libSDL2_net-2.0.so.0.0.1 -lib/libSDL2_net.a +lib/libSDL2_net-2.0.so.0.200.0 lib/libSDL2_net.so libdata/pkgconfig/SDL2_net.pc