pkgsrc/security/libsecp256k1/Makefile
js bd4e438ec6 Add security/libsecp256k1
This is required for newer versions of finance/electrum.

Optimized C library for ECDSA signatures and secret/public key operations on
curve secp256k1.

This library is intended to be the highest quality publicly available library
for cryptography on the secp256k1 curve. However, the primary focus of its
development has been for usage in the Bitcoin system and usage unlike Bitcoin's
may be less well tested, verified, or suffer from a less well thought out
interface. Correct usage requires some care and consideration that the library
is fit for your application's purpose.

Features:
* secp256k1 ECDSA signing/verification and key generation.
* Additive and multiplicative tweaking of secret/public keys.
* Serialization/parsing of secret keys, public keys, signatures.
* Constant time, constant memory access signing and public key generation.
* Derandomized ECDSA (via RFC6979 or with a caller provided function.)
* Very efficient implementation.
* Suitable for embedded systems.
* Optional module for public key recovery.
* Optional module for ECDH key exchange.

Experimental features have not received enough scrutiny to satisfy the standard
of quality of this library but are made available for testing and review by the
community. The APIs of these features should not be considered stable.
2020-11-04 20:32:18 +00:00

31 lines
886 B
Makefile

# $NetBSD: Makefile,v 1.1 2020/11/04 20:32:18 js Exp $
GITHUB_PROJECT= secp256k1
GITHUB_TAG= ac05f61fcf639a15b5101131561620303e4bd808
DISTNAME= libsecp256k1-0.1
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_GITHUB:=bitcoin-core/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/bitcoin-core/secp256k1/
COMMENT= Optimized C library for EC operations on curve secp256k1
LICENSE= mit
WRKSRC= ${WRKDIR}/secp256k1-${GITHUB_TAG}
GNU_CONFIGURE= yes
USE_TOOLS+= autoconf automake gmake pkg-config
USE_LIBTOOL= yes
# Inspired by the configure flags ArchLinux uses
CONFIGURE_ARGS+= --disable-static
CONFIGURE_ARGS+= --disable-benchmark
CONFIGURE_ARGS+= --disable-coverage
CONFIGURE_ARGS+= --enable-module-ecdh
CONFIGURE_ARGS+= --enable-module-recovery
PKGCONFIG_OVERRIDE+= libsecp256k1.pc.in
pre-configure:
cd ${WRKSRC} && ./autogen.sh
.include "../../mk/bsd.pkg.mk"