mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-18 19:49:40 +00:00
net-p2p/libutp: update to g20230213
In preparation of the following net-p2p/transmission update. The library must be updated in lockstep. PR: 269504 Reported by: dutchman01@quicknet.nl Approved by: rigoletto, tcberner (maintainer timeout) Reviewed By: fcharlier_ploup.net Differential Revision: https://reviews.freebsd.org/D40910
This commit is contained in:
parent
7bff4797eb
commit
e5731e2bf4
@ -1,10 +1,10 @@
|
||||
PORTNAME= libutp
|
||||
DISTVERSION= g20180515
|
||||
DISTVERSION= g20230213
|
||||
CATEGORIES= net-p2p
|
||||
|
||||
MAINTAINER= rigoletto@FreeBSD.org
|
||||
COMMENT= uTorrent Transport Protocol library and sample utilities
|
||||
WWW= https://github.com/bittorrent/libutp
|
||||
MAINTAINER= mondo.debater_0q@icloud.com
|
||||
COMMENT= uTorrent Transport Protocol library and sample utilities.
|
||||
WWW= https://github.com/transmission/libutp
|
||||
|
||||
LICENSE= MIT
|
||||
|
||||
@ -12,12 +12,11 @@ USES= cmake uidfix
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= transmission
|
||||
GH_TAGNAME= fda9f4b3db97ccb243fcbed2ce280eb4135d705b
|
||||
GH_TAGNAME= c95738b1a6644b919e5b64d3ea9736cfc5894e0b
|
||||
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
PLIST_FILES= include/libutp/utp.h \
|
||||
include/libutp/utypes.h \
|
||||
lib/libutp.so
|
||||
CMAKE_ON= LIBUTP_SHARED
|
||||
CMAKE_OFF= LIBUTP_ENABLE_WERROR
|
||||
CMAKE_BUILD_TYPE= Release
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1668792304
|
||||
SHA256 (transmission-libutp-g20180515-fda9f4b3db97ccb243fcbed2ce280eb4135d705b_GH0.tar.gz) = c515e6f9add47d3d202389e8a62feb765f0ae41d6398cc238e44028be520774e
|
||||
SIZE (transmission-libutp-g20180515-fda9f4b3db97ccb243fcbed2ce280eb4135d705b_GH0.tar.gz) = 71743
|
||||
TIMESTAMP = 1690649660
|
||||
SHA256 (transmission-libutp-g20230213-c95738b1a6644b919e5b64d3ea9736cfc5894e0b_GH0.tar.gz) = d856fde68828d52eb39df40e15ad5dc4efaa9a51d4121bcbfbe47fed2163d20a
|
||||
SIZE (transmission-libutp-g20230213-c95738b1a6644b919e5b64d3ea9736cfc5894e0b_GH0.tar.gz) = 59698
|
||||
|
@ -1,11 +1,25 @@
|
||||
--- CMakeLists.txt.orig 2017-01-01 23:21:43 UTC
|
||||
--- CMakeLists.txt.orig 2023-08-04 09:40:52 UTC
|
||||
+++ CMakeLists.txt
|
||||
@@ -11,7 +11,7 @@ include_directories(.)
|
||||
@@ -56,6 +56,13 @@ if(WIN32)
|
||||
libutp_inet_ntop.h)
|
||||
endif()
|
||||
|
||||
include_directories(.)
|
||||
+if(CMAKE_VERSION VERSION_LESS 3.25)
|
||||
+ set(BSD OFF)
|
||||
+ if(CMAKE_SYSTEM_NAME MATCHES "BSD")
|
||||
+ set(BSD ON)
|
||||
+ endif()
|
||||
+ endif()
|
||||
+
|
||||
add_library(libutp ${LIBUTP_LIBRARY_TYPE}
|
||||
include/libutp/utp.h
|
||||
include/libutp/utp_types.h
|
||||
@@ -118,7 +125,7 @@ if(LIBUTP_BUILD_PROGRAMS AND NOT MSVC)
|
||||
|
||||
-add_library(${PROJECT_NAME} STATIC
|
||||
+add_library(${PROJECT_NAME} SHARED
|
||||
utp.cpp
|
||||
utp_utils.cpp
|
||||
${${PROJECT_NAME}_ADD_SOURCES}
|
||||
target_compile_definitions(ucat
|
||||
PRIVATE
|
||||
- $<$<NOT:$<BOOL:${WIN32}>>:_POSIX_C_SOURCE=200112L>
|
||||
+ $<$<NOT:$<OR:$<BOOL:${WIN32}>,$<BOOL:${BSD}>>>:_POSIX_C_SOURCE=200112L>
|
||||
$<$<BOOL:${APPLE}>:_DARWIN_C_SOURCE>)
|
||||
|
||||
target_link_libraries(ucat
|
||||
|
10
net-p2p/libutp/pkg-plist
Normal file
10
net-p2p/libutp/pkg-plist
Normal file
@ -0,0 +1,10 @@
|
||||
bin/ucat
|
||||
lib/cmake/libutp/libutp-config-version.cmake
|
||||
lib/cmake/libutp/libutp-config.cmake
|
||||
lib/cmake/libutp/libutp-targets.cmake
|
||||
lib/cmake/libutp/libutp-targets-release.cmake
|
||||
include/libutp/utp.h
|
||||
include/libutp/utp_types.h
|
||||
lib/libutp.so
|
||||
%%DOCSDIR%%/LICENSE
|
||||
%%DOCSDIR%%/README.md
|
Loading…
Reference in New Issue
Block a user