File tree Expand file tree Collapse file tree 4 files changed +38
-4
lines changed Expand file tree Collapse file tree 4 files changed +38
-4
lines changed Original file line number Diff line number Diff line change @@ -3,14 +3,18 @@ $(package)_version=07004b97cf691774efebe70404cf22201e4d330d
3
3
$(package)_download_path =https://github.com/miniupnp/libnatpmp/archive
4
4
$(package)_file_name =$($(package ) _version) .tar.gz
5
5
$(package)_sha256_hash =9321953ceb39d07c25463e266e50d0ae7b64676bb3a986d932b18881ed94f1fb
6
+ $(package)_patches =no_libtool.patch
6
7
7
8
define $(package)_set_vars
8
9
$(package ) _build_opts=CC="$($(package ) _cc) "
9
10
$(package ) _build_opts_mingw32=CPPFLAGS=-DNATPMP_STATICLIB
10
- $(package ) _build_opts_darwin=LIBTOOL="$($(package ) _libtool) "
11
11
$(package ) _build_env+=CFLAGS="$($(package ) _cflags) $($(package ) _cppflags) " AR="$($(package ) _ar) "
12
12
endef
13
13
14
+ define $(package)_preprocess_cmds
15
+ patch -p1 < $($(package ) _patch_dir) /no_libtool.patch
16
+ endef
17
+
14
18
define $(package)_build_cmds
15
19
$(MAKE ) libnatpmp.a $($(package ) _build_opts)
16
20
endef
Original file line number Diff line number Diff line change @@ -3,20 +3,20 @@ $(package)_version=2.2.2
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 =888fb0976ba61518276fe1eda988589c700a3f2a69d71089260d75562afd3687
6
- $(package)_patches =dont_leak_info.patch respect_mingw_cflags.patch
6
+ $(package)_patches =dont_leak_info.patch respect_mingw_cflags.patch no_libtool.patch
7
7
8
8
# Next time this package is updated, ensure that _WIN32_WINNT is still properly set.
9
9
# See discussion in https://github.com/bitcoin/bitcoin/pull/25964.
10
10
define $(package)_set_vars
11
11
$(package ) _build_opts=CC="$($(package ) _cc) "
12
- $(package ) _build_opts_darwin=LIBTOOL="$($(package ) _libtool) "
13
12
$(package ) _build_opts_mingw32=-f Makefile.mingw CFLAGS="$($(package ) _cflags) -D_WIN32_WINNT=0x0601"
14
13
$(package ) _build_env+=CFLAGS="$($(package ) _cflags) $($(package ) _cppflags) " AR="$($(package ) _ar) "
15
14
endef
16
15
17
16
define $(package)_preprocess_cmds
18
17
patch -p1 < $($(package ) _patch_dir) /dont_leak_info.patch && \
19
- patch -p1 < $($(package ) _patch_dir) /respect_mingw_cflags.patch
18
+ patch -p1 < $($(package ) _patch_dir) /respect_mingw_cflags.patch && \
19
+ patch -p1 < $($(package ) _patch_dir) /no_libtool.patch
20
20
endef
21
21
22
22
define $(package)_build_cmds
Original file line number Diff line number Diff line change
1
+ diff -ruN libnatpmp-07004b97cf691774efebe70404cf22201e4d330d/Makefile libnatpmp-07004b97cf691774efebe70404cf22201e4d330d.new/Makefile
2
+ --- libnatpmp-07004b97cf691774efebe70404cf22201e4d330d/Makefile 2022-07-05 07:49:50.000000000 +0000
3
+ +++ libnatpmp-07004b97cf691774efebe70404cf22201e4d330d.new/Makefile 2024-01-23 20:59:35.674821779 +0000
4
+ @@ -197,11 +197,7 @@
5
+ $(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)
6
+
7
+ $(STATICLIB): $(LIBOBJS)
8
+ - ifneq (, $(findstring darwin, $(OS)))
9
+ - $(LIBTOOL) -static -o $@ $?
10
+ - else
11
+ $(AR) crs $@ $?
12
+ - endif
13
+
14
+ $(SHAREDLIB): $(LIBOBJS)
15
+ ifneq (, $(findstring darwin, $(OS)))
Original file line number Diff line number Diff line change
1
+ diff -ruN miniupnpc-2.2.2/Makefile miniupnpc-2.2.2.new/Makefile
2
+ --- miniupnpc-2.2.2/Makefile 2020-11-27 18:25:02.000000000 +0000
3
+ +++ miniupnpc-2.2.2.new/Makefile 2024-01-23 20:58:08.387188527 +0000
4
+ @@ -298,11 +298,7 @@
5
+ makedepend -Y -- $(CFLAGS) -- $(SRCS) 2>/dev/null
6
+
7
+ $(LIBRARY): $(LIBOBJS)
8
+ - ifneq (, $(findstring darwin, $(OS)))
9
+ - $(LIBTOOL) -static -o $@ $?
10
+ - else
11
+ $(AR) crs $@ $?
12
+ - endif
13
+
14
+ $(SHAREDLIBRARY): $(LIBOBJS)
15
+ ifneq (, $(findstring darwin, $(OS)))
You can’t perform that action at this time.
0 commit comments