]>
Commit | Line | Data |
---|---|---|
c4da0970 NW |
1 | package=libsnark |
2 | $(package)_version=0.1 | |
3 | $(package)_download_path=https://github.com/scipr-lab/$(package)/archive/ | |
4 | $(package)_file_name=$(package)-$($(package)_git_commit).tar.gz | |
5 | $(package)_download_file=$($(package)_git_commit).tar.gz | |
6 | $(package)_sha256_hash=b5ec84a836d0d305407d5f39c8176bae2bb448abe802a8d11ba0f88f17e6d358 | |
7 | $(package)_git_commit=69f312f149cc4bd8def8e2fed26a7941ff41251d | |
8 | ||
1e62bba7 | 9 | $(package)_dependencies=libgmp |
e334392f | 10 | $(package)_patches=1_fix_Wl_flag.patch 2_include_iota_header.patch |
c4da0970 NW |
11 | |
12 | define $(package)_preprocess_cmds | |
e334392f TH |
13 | patch -p1 < $($(package)_patch_dir)/1_fix_Wl_flag.patch && \ |
14 | patch -p1 < $($(package)_patch_dir)/2_include_iota_header.patch | |
c4da0970 NW |
15 | endef |
16 | ||
17 | define $(package)_build_cmds | |
5dad8f56 | 18 | CXXFLAGS="-fPIC -DBINARY_OUTPUT -DNO_PT_COMPRESSION=1" $(MAKE) lib DEPINST=$(host_prefix) CURVE=ALT_BN128 MULTICORE=1 NO_PROCPS=1 NO_GTEST=1 NO_DOCS=1 STATIC=1 NO_SUPERCOP=1 FEATUREFLAGS=-DMONTGOMERY_OUTPUT |
c4da0970 NW |
19 | endef |
20 | ||
21 | define $(package)_stage_cmds | |
22 | $(MAKE) install STATIC=1 DEPINST=$(host_prefix) PREFIX=$($(package)_staging_dir)$(host_prefix) CURVE=ALT_BN128 NO_SUPERCOP=1 | |
23 | endef |