File tree Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ $(package)_version=2.2.7
3
3
$(package)_download_path =https://miniupnp.tuxfamily.org/files/
4
4
$(package)_file_name =$(package ) -$($(package ) _version) .tar.gz
5
5
$(package)_sha256_hash =b0c3a27056840fd0ec9328a5a9bac3dc5e0ec6d2e8733349cf577b0aa1e70ac1
6
- $(package)_patches =dont_leak_info.patch no_libtool.patch fix_windows_build.patch
6
+ $(package)_patches =dont_leak_info.patch no_libtool.patch fix_windows_build.patch cmake_get_src_addr.patch
7
7
8
8
define $(package)_set_vars
9
9
$(package ) _build_opts=CC="$($(package ) _cc) "
14
14
define $(package)_preprocess_cmds
15
15
patch -p1 < $($(package ) _patch_dir) /dont_leak_info.patch && \
16
16
patch -p1 < $($(package ) _patch_dir) /no_libtool.patch && \
17
- patch -p1 < $($(package ) _patch_dir) /fix_windows_build.patch
17
+ patch -p1 < $($(package ) _patch_dir) /fix_windows_build.patch && \
18
+ patch -p1 < $($(package ) _patch_dir) /cmake_get_src_addr.patch
18
19
endef
19
20
20
21
define $(package)_build_cmds
Original file line number Diff line number Diff line change
1
+ commit cb2026239c2a3aff393952ccb0ee1c448189402d
2
+ Author: fanquake <
[email protected] >
3
+ Date: Fri Mar 22 14:03:54 2024 +0000
4
+
5
+ build: add MINIUPNPC_GET_SRC_ADDR to CMake build
6
+
7
+ This mirrors the autotools build.
8
+
9
+ See https://github.com/miniupnp/miniupnp/pull/721.
10
+
11
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
12
+ index 1aa95a8..0cacf3e 100644
13
+ --- a/CMakeLists.txt
14
+ +++ b/CMakeLists.txt
15
+ @@ -31,6 +31,7 @@ endif ()
16
+ if (NOT WIN32)
17
+ target_compile_definitions(miniupnpc-private INTERFACE
18
+ MINIUPNPC_SET_SOCKET_TIMEOUT
19
+ + MINIUPNPC_GET_SRC_ADDR
20
+ _BSD_SOURCE _DEFAULT_SOURCE)
21
+ if (NOT APPLE AND NOT CMAKE_SYSTEM_NAME MATCHES ".*BSD" AND NOT CMAKE_SYSTEM_NAME STREQUAL "SunOS")
22
+ # add_definitions (-D_POSIX_C_SOURCE=200112L)
You can’t perform that action at this time.
0 commit comments