aboutsummaryrefslogtreecommitdiff
path: root/finance
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2022-05-07 20:51:24 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2022-05-07 20:51:50 +0000
commit1ffaad64df8abe261c00cf2f63b9bdd0b37f53f6 (patch)
tree6378aeb69f1826b4ba9565b028fd77e460eb2f96 /finance
parent31b5775232fcdaa199586608eb4a9ab54605a2bb (diff)
downloadports-1ffaad64df8abe261c00cf2f63b9bdd0b37f53f6.tar.gz
ports-1ffaad64df8abe261c00cf2f63b9bdd0b37f53f6.zip
finance/libbtc: New port: Tiny Bitcoin Library written in C
Diffstat (limited to 'finance')
-rw-r--r--finance/Makefile1
-rw-r--r--finance/libbtc/Makefile20
-rw-r--r--finance/libbtc/distinfo3
-rw-r--r--finance/libbtc/files/patch-include_btc_portable__endian.h18
-rw-r--r--finance/libbtc/pkg-descr4
-rw-r--r--finance/libbtc/pkg-plist61
6 files changed, 107 insertions, 0 deletions
diff --git a/finance/Makefile b/finance/Makefile
index 70af90836a7c..f1b566cff38f 100644
--- a/finance/Makefile
+++ b/finance/Makefile
@@ -41,6 +41,7 @@
SUBDIR += ktoblzcheck
SUBDIR += ledger
SUBDIR += ledgersmb12
+ SUBDIR += libbtc
SUBDIR += libofx
SUBDIR += libstocks
SUBDIR += moneymanagerex
diff --git a/finance/libbtc/Makefile b/finance/libbtc/Makefile
new file mode 100644
index 000000000000..7e7ff809085f
--- /dev/null
+++ b/finance/libbtc/Makefile
@@ -0,0 +1,20 @@
+PORTNAME= libbtc
+PORTVERSION= g20210428
+CATEGORIES= finance
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Tiny Bitcoin Library written in C
+
+LICENSE= MIT
+
+LIB_DEPENDS= libevent_core.so:devel/libevent
+
+USES= autoreconf gmake libtool localbase
+USE_LDCONFIG= yes
+
+USE_GITHUB= yes
+GH_TAGNAME= 0793399
+
+GNU_CONFIGURE= yes
+
+.include <bsd.port.mk>
diff --git a/finance/libbtc/distinfo b/finance/libbtc/distinfo
new file mode 100644
index 000000000000..603f2fcf7ef6
--- /dev/null
+++ b/finance/libbtc/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1621492607
+SHA256 (libbtc-libbtc-g20210428-0793399_GH0.tar.gz) = 02059305a8a5c8a26787ef74fdb2ec39fb2e68a99dc90310dad69be7ddc9726c
+SIZE (libbtc-libbtc-g20210428-0793399_GH0.tar.gz) = 1285466
diff --git a/finance/libbtc/files/patch-include_btc_portable__endian.h b/finance/libbtc/files/patch-include_btc_portable__endian.h
new file mode 100644
index 000000000000..578623acad8b
--- /dev/null
+++ b/finance/libbtc/files/patch-include_btc_portable__endian.h
@@ -0,0 +1,18 @@
+--- include/btc/portable_endian.h.orig 2022-05-07 20:37:35 UTC
++++ include/btc/portable_endian.h
+@@ -49,6 +49,7 @@
+
+ #include <sys/endian.h>
+
++#if !defined(__FreeBSD__)
+ #define be16toh(x) betoh16(x)
+ #define le16toh(x) letoh16(x)
+
+@@ -57,6 +58,7 @@
+
+ #define be64toh(x) betoh64(x)
+ #define le64toh(x) letoh64(x)
++#endif
+
+ #elif defined(__WINDOWS__)
+
diff --git a/finance/libbtc/pkg-descr b/finance/libbtc/pkg-descr
new file mode 100644
index 000000000000..2bda7cb02551
--- /dev/null
+++ b/finance/libbtc/pkg-descr
@@ -0,0 +1,4 @@
+Libbtc is a very portable C library for creating and manipulating
+bitcoin data structures and interacting with the p2p network.
+
+WWW: https://github.com/libbtc/libbtc
diff --git a/finance/libbtc/pkg-plist b/finance/libbtc/pkg-plist
new file mode 100644
index 000000000000..ac059b23c6b8
--- /dev/null
+++ b/finance/libbtc/pkg-plist
@@ -0,0 +1,61 @@
+bin/bitcoin-send-tx
+bin/bitcoin-spv
+bin/bitcointool
+include/btc/aes256_cbc.h
+include/btc/base58.h
+include/btc/bip32.h
+include/btc/block.h
+include/btc/blockchain.h
+include/btc/btc.h
+include/btc/buffer.h
+include/btc/chainparams.h
+include/btc/cstr.h
+include/btc/ctaes.h
+include/btc/ecc.h
+include/btc/ecc_key.h
+include/btc/hash.h
+include/btc/headersdb.h
+include/btc/headersdb_file.h
+include/btc/hmac.h
+include/btc/memory.h
+include/btc/net.h
+include/btc/netspv.h
+include/btc/portable_endian.h
+include/btc/protocol.h
+include/btc/random.h
+include/btc/ripemd160.h
+include/btc/script.h
+include/btc/segwit_addr.h
+include/btc/serialize.h
+include/btc/sha2.h
+include/btc/tool.h
+include/btc/tx.h
+include/btc/utils.h
+include/btc/vector.h
+include/btc/wallet.h
+include/logdb/logdb.h
+include/logdb/logdb_base.h
+include/logdb/logdb_core.h
+include/logdb/logdb_memdb_llist.h
+include/logdb/logdb_memdb_rbtree.h
+include/logdb/logdb_rec.h
+include/logdb/red_black_tree.h
+include/trezor-crypto/base58.h
+include/trezor-crypto/blake256.h
+include/trezor-crypto/blake2_common.h
+include/trezor-crypto/blake2b.h
+include/trezor-crypto/groestl.h
+include/trezor-crypto/groestl_internal.h
+include/trezor-crypto/hasher.h
+include/trezor-crypto/hmac.h
+include/trezor-crypto/memzero.h
+include/trezor-crypto/options.h
+include/trezor-crypto/ripemd160.h
+include/trezor-crypto/segwit_addr.h
+include/trezor-crypto/sha2.h
+include/trezor-crypto/sha3.h
+lib/libbtc.a
+lib/libbtc.so
+lib/libbtc.so.0
+lib/libbtc.so.0.0.0
+libdata/pkgconfig/libbtc.pc