2018-09-18 14:26:18 +02:00
|
|
|
package=gmp
|
2021-12-07 01:35:38 +01:00
|
|
|
$(package)_version=6.2.1
|
2018-09-18 14:26:18 +02:00
|
|
|
$(package)_download_path=https://gmplib.org/download/gmp
|
|
|
|
$(package)_file_name=gmp-$($(package)_version).tar.bz2
|
2021-12-07 01:35:38 +01:00
|
|
|
$(package)_sha256_hash=eae9326beb4158c386e39a356818031bd28f3124cf915f8c5b1dc4c7a36b4d7c
|
2018-09-18 14:26:18 +02:00
|
|
|
|
|
|
|
define $(package)_set_vars
|
|
|
|
$(package)_config_opts+=--enable-cxx --enable-fat --with-pic --disable-shared
|
2019-01-05 06:53:37 +01:00
|
|
|
$(package)_cflags_armv7l_linux+=-march=armv7-a
|
2021-12-07 01:35:38 +01:00
|
|
|
$(package)_cflags_aarch64_darwin+=-march=armv8-a
|
2018-09-18 14:26:18 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_config_cmds
|
|
|
|
$($(package)_autoconf)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_build_cmds
|
|
|
|
$(MAKE)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_stage_cmds
|
|
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install
|
|
|
|
endef
|
|
|
|
|
2019-06-05 16:34:12 +02:00
|
|
|
define $(package)_postprocess_cmds
|
|
|
|
rm lib/*.la
|
|
|
|
endef
|