2020-02-23 00:34:13 +01:00
|
|
|
package=libnatpmp
|
2021-02-17 08:06:30 +01:00
|
|
|
$(package)_version=4536032ae32268a45c073a4d5e91bbab4534773a
|
|
|
|
$(package)_download_path=https://github.com/miniupnp/libnatpmp/archive
|
|
|
|
$(package)_file_name=$($(package)_version).tar.gz
|
|
|
|
$(package)_sha256_hash=543b460aab26acf91e11d15e17d8798f845304199eea2d76c2f444ec749c5383
|
2020-02-23 00:34:13 +01:00
|
|
|
|
|
|
|
define $(package)_set_vars
|
|
|
|
$(package)_build_opts=CC="$($(package)_cc)"
|
2021-03-03 14:19:09 +01:00
|
|
|
$(package)_build_opts_mingw32=CPPFLAGS=-DNATPMP_STATICLIB
|
2021-02-17 08:06:30 +01:00
|
|
|
$(package)_build_opts_darwin=LIBTOOL="$($(package)_libtool)"
|
2021-03-01 07:00:36 +01:00
|
|
|
$(package)_build_env+=CFLAGS="$($(package)_cflags) $($(package)_cppflags)" AR="$($(package)_ar)"
|
2020-02-23 00:34:13 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_build_cmds
|
|
|
|
$(MAKE) libnatpmp.a $($(package)_build_opts)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_stage_cmds
|
|
|
|
mkdir -p $($(package)_staging_prefix_dir)/include $($(package)_staging_prefix_dir)/lib &&\
|
|
|
|
install *.h $($(package)_staging_prefix_dir)/include &&\
|
|
|
|
install libnatpmp.a $($(package)_staging_prefix_dir)/lib
|
|
|
|
endef
|