File tree Expand file tree Collapse file tree 2 files changed +6
-27
lines changed Expand file tree Collapse file tree 2 files changed +6
-27
lines changed Original file line number Diff line number Diff line change @@ -3,24 +3,18 @@ $(package)_version=f2433bec24ca3d3f22a8a7840728a3ac177f94ba
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 =ef84979950dfb3556705b63c9cd6c95501b75e887fba466234b187f3c9029669
6
- $(package)_patches =no_libtool.patch
6
+ $(package)_build_subdir =build
7
7
8
- define $(package)_set_vars
9
- $(package ) _build_opts=CC="$($(package ) _cc) "
10
- $(package ) _build_opts_mingw32=CPPFLAGS=-DNATPMP_STATICLIB
11
- $(package ) _build_env+=CFLAGS="$($(package ) _cflags) $($(package ) _cppflags) " AR="$($(package ) _ar) "
12
- endef
13
-
14
- define $(package)_preprocess_cmds
15
- patch -p1 < $($(package ) _patch_dir) /no_libtool.patch
8
+ define $(package)_config_cmds
9
+ $($(package ) _cmake) -S .. -B .
16
10
endef
17
11
18
12
define $(package)_build_cmds
19
- $(MAKE ) libnatpmp.a $( $( package ) _build_opts)
13
+ $(MAKE ) natpmp
20
14
endef
21
15
22
16
define $(package)_stage_cmds
23
- mkdir -p $($(package ) _staging_prefix_dir) /include $($(package ) _staging_prefix_dir) /lib &&\
24
- install *.h $($(package ) _staging_prefix_dir) /include &&\
17
+ mkdir -p $($(package ) _staging_prefix_dir) /include $($(package ) _staging_prefix_dir) /lib && \
18
+ install ../natpmp.h ../natpmp_declspec.h $($(package ) _staging_prefix_dir) /include && \
25
19
install libnatpmp.a $($(package ) _staging_prefix_dir) /lib
26
20
endef
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments