v29.4-roots.4 · Commit 1: [PATCH 01/37] build: port platform and dependency support
depends/packages/miniupnpc.mk
Before: /dev/null · After: depends/packages/miniupnpc.mk
File metadata
new file mode 100644 index 0000000000000000000000000000000000000000..be11035b257a762404bdd3b9bc0c1405c2b44635
Download original patch · Release notes
Diff rows 1–43 of 43. Line numbers refer to the original before/after files.
+ Added− RemovedUnmarked lines are context.
Scroll the code area horizontally to read long lines. The two line-number columns refer to before and after.
depends/packages/miniupnpc.mk
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
package=miniupnpc
|
|
2
|
+
$(package)_version=2.3.4_pre20260407
|
|
3
|
+
$(package)_commithash=f83b5e2e21aa8dfa393ff80ea287ac4fca1a4df1
|
|
4
|
+
$(package)_download_path=https://github.com/miniupnp/miniupnp/archive/
|
|
5
|
+
$(package)_download_file=$($(package)_commithash).tar.gz
|
|
6
|
+
$(package)_file_name=$(package)-$($(package)_version).tar.gz
|
|
7
|
+
$(package)_sha256_hash=89dcf15c4ded25e86ec0600854dcc01aaf791b7747850cb65472142e64b3f925
|
|
8
|
+
$(package)_patches=dont_leak_info.patch
|
|
9
|
+
$(package)_build_subdir=build
|
|
10
|
+
|
|
11
|
+
define $(package)_set_vars
|
|
12
|
+
$(package)_config_opts = -DUPNPC_BUILD_SAMPLE=OFF -DUPNPC_BUILD_SHARED=OFF
|
|
13
|
+
$(package)_config_opts += -DUPNPC_BUILD_STATIC=ON -DUPNPC_BUILD_TESTS=OFF
|
|
14
|
+
$(package)_config_opts_mingw32 += -DMINIUPNPC_TARGET_WINDOWS_VERSION=0x0601
|
|
15
|
+
endef
|
|
16
|
+
|
|
17
|
+
define $(package)_extract_cmds
|
|
18
|
+
mkdir -p $$($(package)_extract_dir) && \
|
|
19
|
+
echo "$$($(package)_sha256_hash) $$($(package)_source)" > $$($(package)_extract_dir)/.$$($(package)_file_name).hash && \
|
|
20
|
+
$(build_SHA256SUM) -c $$($(package)_extract_dir)/.$$($(package)_file_name).hash && \
|
|
21
|
+
$(build_TAR) --no-same-owner --strip-components=2 -xf $$($(package)_source) miniupnp-$($(package)_commithash)/$(package)
|
|
22
|
+
endef
|
|
23
|
+
|
|
24
|
+
define $(package)_preprocess_cmds
|
|
25
|
+
patch -l -p1 < $($(package)_patch_dir)/dont_leak_info.patch
|
|
26
|
+
endef
|
|
27
|
+
|
|
28
|
+
define $(package)_config_cmds
|
|
29
|
+
$($(package)_cmake) -S .. -B .
|
|
30
|
+
endef
|
|
31
|
+
|
|
32
|
+
define $(package)_build_cmds
|
|
33
|
+
$(MAKE)
|
|
34
|
+
endef
|
|
35
|
+
|
|
36
|
+
define $(package)_stage_cmds
|
|
37
|
+
cmake --install . --prefix $($(package)_staging_prefix_dir)
|
|
38
|
+
endef
|
|
39
|
+
|
|
40
|
+
define $(package)_postprocess_cmds
|
|
41
|
+
rm -rf bin && \
|
|
42
|
+
rm -rf share
|
|
43
|
+
endef
|