aboutsummaryrefslogtreecommitdiff
path: root/depends/packages
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2014-11-05 19:59:29 -0500
committerPieter Wuille <pieter.wuille@gmail.com>2014-11-18 18:06:46 +0100
commitff1e5ba8c75254ccfb08f408c607e98859d88a74 (patch)
tree80f049ffa9af43af2c89feda5fb951daea5fc41f /depends/packages
parentcf61b5441bd6d7232a50f66f28c1b5c6bbdb1570 (diff)
depends: add gmp package
Diffstat (limited to 'depends/packages')
-rw-r--r--depends/packages/gmp.mk30
-rw-r--r--depends/packages/packages.mk2
2 files changed, 31 insertions, 1 deletions
diff --git a/depends/packages/gmp.mk b/depends/packages/gmp.mk
new file mode 100644
index 0000000000..bcbf50ceae
--- /dev/null
+++ b/depends/packages/gmp.mk
@@ -0,0 +1,30 @@
+package=gmp
+$(package)_version=6.0.0a
+$(package)_download_path=https://gmplib.org/download/gmp
+$(package)_file_name=$(package)-$($(package)_version).tar.bz2
+$(package)_sha256_hash=7f8e9a804b9c6d07164cf754207be838ece1219425d64e28cfa3e70d5c759aaf
+$(package)_patches=arm_gmp_build_fix.patch darwin_gmp_build_fix.patch
+
+define $(package)_preprocess_cmds
+ patch -p1 < $($(package)_patch_dir)/arm_gmp_build_fix.patch && \
+ patch -p1 < $($(package)_patch_dir)/darwin_gmp_build_fix.patch
+endef
+
+define $(package)_set_vars
+ $(package)_config_opts=--disable-shared CC_FOR_BUILD=$(build_CC)
+ $(package)_config_opts_x86_64_darwin=--with-pic
+ $(package)_config_opts_x86_64_linux=--with-pic
+ $(package)_config_opts_arm_linux=--with-pic
+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
diff --git a/depends/packages/packages.mk b/depends/packages/packages.mk
index 260cadb214..0e1fbeffaa 100644
--- a/depends/packages/packages.mk
+++ b/depends/packages/packages.mk
@@ -1,4 +1,4 @@
-packages:=boost openssl
+packages:=boost openssl gmp
native_packages := native_ccache native_comparisontool
qt_native_packages = native_protobuf