PORTNAME=	ord
DISTVERSION=	0.20.0
PORTREVISION=	5
CATEGORIES=	finance
PKGNAMESUFFIX=	-crypto-wallet

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Block-chain index, block explorer, and command-line crypto-wallet
WWW=		https://ordinals.com

LICENSE=	CC0-1.0

USES=		cargo ssl

USE_GITHUB=	yes
GH_ACCOUNT=	ordinals

RUSTFLAGS=	${ARCH:S/i386/YES/:C/^[a-z].*//:S/YES/-C target-feature=+sse,+sse2/} # add sse sse2 target-features only on i386

CARGO_CRATES=	addr2line-0.22.0 \
		adler-1.0.2 \
		adler2-2.0.0 \
		aho-corasick-1.1.3 \
		alloc-no-stdlib-2.0.4 \
		alloc-stdlib-0.2.2 \
		android-tzdata-0.1.1 \
		android_system_properties-0.1.5 \
		anes-0.1.6 \
		anstream-0.6.15 \
		anstyle-1.0.8 \
		anstyle-parse-0.2.5 \
		anstyle-query-1.1.1 \
		anstyle-wincon-3.0.4 \
		anyhow-1.0.86 \
		arc-swap-1.7.1 \
		array-init-0.0.4 \
		asn1-rs-0.3.1 \
		asn1-rs-derive-0.1.0 \
		asn1-rs-impl-0.1.0 \
		async-channel-2.3.1 \
		async-compression-0.4.12 \
		async-http-codec-0.8.0 \
		async-io-1.13.0 \
		async-lock-2.8.0 \
		async-net-1.8.0 \
		async-task-4.7.1 \
		async-trait-0.1.82 \
		async-web-client-0.4.0 \
		async-ws-0.4.0 \
		atom_syndication-0.12.4 \
		atomic-waker-1.1.2 \
		autocfg-1.3.0 \
		axum-0.6.20 \
		axum-core-0.3.4 \
		axum-server-0.5.1 \
		backtrace-0.3.73 \
		base64-0.13.1 \
		base64-0.21.7 \
		base64-0.22.1 \
		bech32-0.9.1 \
		bip39-2.0.0 \
		bitcoin-0.30.2 \
		bitcoin-private-0.1.0 \
		bitcoin_hashes-0.11.0 \
		bitcoin_hashes-0.12.0 \
		bitflags-1.3.2 \
		bitflags-2.6.0 \
		block-buffer-0.10.4 \
		blocking-1.6.1 \
		boilerplate-1.0.1 \
		brotli-6.0.0 \
		brotli-decompressor-4.0.1 \
		bstr-1.10.0 \
		bumpalo-3.16.0 \
		byteorder-1.5.0 \
		bytes-1.7.1 \
		cast-0.3.0 \
		cc-1.1.15 \
		cfg-if-0.1.10 \
		cfg-if-1.0.0 \
		cfg_aliases-0.2.1 \
		chrono-0.4.38 \
		ciborium-0.2.2 \
		ciborium-io-0.2.2 \
		ciborium-ll-0.2.2 \
		clap-4.5.16 \
		clap_builder-4.5.15 \
		clap_derive-4.5.13 \
		clap_lex-0.7.2 \
		colorchoice-1.0.2 \
		colored-2.1.0 \
		concurrent-queue-2.5.0 \
		console-0.15.8 \
		core-foundation-0.9.4 \
		core-foundation-sys-0.8.7 \
		cpufeatures-0.2.13 \
		crc32fast-1.4.2 \
		criterion-0.5.1 \
		criterion-plot-0.5.0 \
		crossbeam-deque-0.8.5 \
		crossbeam-epoch-0.9.18 \
		crossbeam-utils-0.8.20 \
		crunchy-0.2.2 \
		crypto-common-0.1.6 \
		ctrlc-3.4.5 \
		darling-0.20.10 \
		darling_core-0.20.10 \
		darling_macro-0.20.10 \
		data-encoding-2.6.0 \
		der-parser-7.0.0 \
		deranged-0.3.11 \
		derive_builder-0.20.1 \
		derive_builder_core-0.20.1 \
		derive_builder_macro-0.20.1 \
		derive_more-1.0.0 \
		derive_more-impl-1.0.0 \
		diff-0.1.13 \
		digest-0.10.7 \
		diligent-date-parser-0.1.4 \
		dirs-5.0.1 \
		dirs-sys-0.4.1 \
		displaydoc-0.2.5 \
		either-1.13.0 \
		encode_unicode-0.3.6 \
		encoding_rs-0.8.34 \
		env_filter-0.1.2 \
		env_logger-0.11.5 \
		equivalent-1.0.1 \
		errno-0.3.9 \
		event-listener-2.5.3 \
		event-listener-5.3.1 \
		event-listener-strategy-0.5.2 \
		executable-path-1.0.0 \
		fastrand-1.9.0 \
		fastrand-2.1.1 \
		flate2-1.0.33 \
		fnv-1.0.7 \
		foreign-types-0.3.2 \
		foreign-types-shared-0.1.1 \
		form_urlencoded-1.2.1 \
		futures-0.3.30 \
		futures-channel-0.3.30 \
		futures-core-0.3.30 \
		futures-executor-0.3.30 \
		futures-io-0.3.30 \
		futures-lite-1.13.0 \
		futures-lite-2.3.0 \
		futures-macro-0.3.30 \
		futures-rustls-0.25.1 \
		futures-sink-0.3.30 \
		futures-task-0.3.30 \
		futures-util-0.3.30 \
		generic-array-0.14.7 \
		generic_static-0.2.0 \
		getrandom-0.2.15 \
		gimli-0.29.0 \
		globset-0.4.14 \
		gloo-net-0.2.6 \
		gloo-utils-0.1.7 \
		h2-0.3.26 \
		half-2.4.1 \
		hashbrown-0.12.3 \
		hashbrown-0.14.5 \
		heck-0.4.1 \
		heck-0.5.0 \
		hermit-abi-0.3.9 \
		hermit-abi-0.4.0 \
		hex-0.4.3 \
		hex_lit-0.1.1 \
		html-escaper-0.2.0 \
		http-0.2.12 \
		http-1.1.0 \
		http-body-0.4.6 \
		http-range-header-0.3.1 \
		httparse-1.9.4 \
		httpdate-1.0.3 \
		humantime-2.1.0 \
		hyper-0.14.30 \
		hyper-tls-0.5.0 \
		iana-time-zone-0.1.60 \
		iana-time-zone-haiku-0.1.2 \
		ident_case-1.0.1 \
		idna-0.5.0 \
		indexmap-1.9.3 \
		indexmap-2.5.0 \
		indicatif-0.17.8 \
		instant-0.1.13 \
		io-lifetimes-1.0.11 \
		ipnet-2.9.0 \
		is-terminal-0.4.13 \
		is_terminal_polyfill-1.70.1 \
		itertools-0.10.5 \
		itoa-1.0.11 \
		js-sys-0.3.70 \
		jsonrpc-0.14.1 \
		jsonrpc-core-18.0.0 \
		jsonrpc-derive-18.0.0 \
		jsonrpc-http-server-18.0.0 \
		jsonrpc-server-utils-18.0.0 \
		keccak-0.1.5 \
		lazy_static-1.5.0 \
		libc-0.2.158 \
		libredox-0.1.3 \
		linux-raw-sys-0.3.8 \
		linux-raw-sys-0.4.14 \
		lock_api-0.4.12 \
		log-0.4.22 \
		matchit-0.7.3 \
		maybe-uninit-2.0.0 \
		memchr-2.7.4 \
		mime-0.3.17 \
		mime_guess-2.0.5 \
		minimal-lexical-0.2.1 \
		miniscript-10.2.0 \
		miniz_oxide-0.7.4 \
		miniz_oxide-0.8.0 \
		mio-1.0.2 \
		mp4-0.14.0 \
		native-tls-0.2.12 \
		net2-0.2.39 \
		never-0.1.0 \
		new_mime_guess-4.0.4 \
		nix-0.29.0 \
		nodrop-0.1.14 \
		nom-7.1.3 \
		ntapi-0.4.1 \
		num-bigint-0.4.6 \
		num-conv-0.1.0 \
		num-integer-0.1.46 \
		num-rational-0.4.2 \
		num-traits-0.2.19 \
		number_prefix-0.4.0 \
		object-0.36.4 \
		oid-registry-0.4.0 \
		once_cell-1.19.0 \
		oorandom-11.1.4 \
		openssl-0.10.66 \
		openssl-macros-0.1.1 \
		openssl-probe-0.1.5 \
		openssl-sys-0.9.103 \
		option-ext-0.2.0 \
		ord-bitcoincore-rpc-0.17.2 \
		ord-bitcoincore-rpc-json-0.17.1 \
		parking-2.2.0 \
		parking_lot-0.11.2 \
		parking_lot_core-0.8.6 \
		pem-1.1.1 \
		percent-encoding-2.3.1 \
		pin-project-1.1.5 \
		pin-project-internal-1.1.5 \
		pin-project-lite-0.2.14 \
		pin-utils-0.1.0 \
		piper-0.2.4 \
		pkg-config-0.3.30 \
		plotters-0.3.6 \
		plotters-backend-0.3.6 \
		plotters-svg-0.3.6 \
		polling-2.8.0 \
		portable-atomic-1.7.0 \
		powerfmt-0.2.0 \
		ppv-lite86-0.2.20 \
		pretty_assertions-1.4.0 \
		proc-macro-crate-0.1.5 \
		proc-macro2-1.0.86 \
		quick-xml-0.36.1 \
		quote-1.0.37 \
		rand-0.8.5 \
		rand_chacha-0.3.1 \
		rand_core-0.6.4 \
		rayon-1.10.0 \
		rayon-core-1.12.1 \
		rcgen-0.10.0 \
		redb-2.1.2 \
		redox_syscall-0.2.16 \
		redox_users-0.4.6 \
		ref-cast-1.0.23 \
		ref-cast-impl-1.0.23 \
		regex-1.10.6 \
		regex-automata-0.4.7 \
		regex-syntax-0.8.4 \
		reqwest-0.11.27 \
		ring-0.16.20 \
		ring-0.17.8 \
		rss-2.0.9 \
		rust-embed-8.5.0 \
		rust-embed-impl-8.5.0 \
		rust-embed-utils-8.5.0 \
		rustc-demangle-0.1.24 \
		rusticata-macros-4.1.0 \
		rustix-0.37.27 \
		rustix-0.38.35 \
		rustls-0.21.12 \
		rustls-0.22.4 \
		rustls-acme-0.8.1 \
		rustls-pemfile-1.0.4 \
		rustls-pki-types-1.8.0 \
		rustls-webpki-0.101.7 \
		rustls-webpki-0.102.7 \
		rustversion-1.0.17 \
		ryu-1.0.18 \
		same-file-1.0.6 \
		schannel-0.1.23 \
		scopeguard-1.2.0 \
		sct-0.7.1 \
		secp256k1-0.27.0 \
		secp256k1-sys-0.8.1 \
		security-framework-2.11.1 \
		security-framework-sys-2.11.1 \
		serde-1.0.209 \
		serde-hex-0.1.0 \
		serde_derive-1.0.209 \
		serde_json-1.0.127 \
		serde_path_to_error-0.1.16 \
		serde_urlencoded-0.7.1 \
		serde_with-3.9.0 \
		serde_with_macros-3.9.0 \
		serde_yaml-0.9.34+deprecated \
		sha2-0.10.8 \
		sha3-0.10.8 \
		shlex-1.3.0 \
		slab-0.4.9 \
		smallvec-0.6.14 \
		smallvec-1.13.2 \
		snafu-0.8.4 \
		snafu-derive-0.8.4 \
		socket2-0.4.10 \
		socket2-0.5.7 \
		spin-0.5.2 \
		spin-0.9.8 \
		strsim-0.11.1 \
		strum-0.24.1 \
		strum_macros-0.24.3 \
		subtle-2.6.1 \
		syn-1.0.109 \
		syn-2.0.77 \
		sync_wrapper-0.1.2 \
		synstructure-0.12.6 \
		sysinfo-0.31.4 \
		system-configuration-0.5.1 \
		system-configuration-sys-0.5.0 \
		tempfile-3.12.0 \
		thiserror-1.0.63 \
		thiserror-impl-1.0.63 \
		time-0.3.36 \
		time-core-0.1.2 \
		time-macros-0.2.18 \
		tinytemplate-1.2.1 \
		tinyvec-1.8.0 \
		tinyvec_macros-0.1.1 \
		tokio-1.40.0 \
		tokio-macros-2.4.0 \
		tokio-native-tls-0.3.1 \
		tokio-rustls-0.24.1 \
		tokio-stream-0.1.15 \
		tokio-util-0.6.10 \
		tokio-util-0.7.11 \
		toml-0.5.11 \
		tower-0.4.13 \
		tower-http-0.4.4 \
		tower-layer-0.3.3 \
		tower-service-0.3.3 \
		tracing-0.1.40 \
		tracing-core-0.1.32 \
		try-lock-0.2.5 \
		typenum-1.17.0 \
		unicase-2.7.0 \
		unicode-bidi-0.3.15 \
		unicode-ident-1.0.12 \
		unicode-normalization-0.1.22 \
		unicode-width-0.1.13 \
		unicode-xid-0.2.5 \
		unindent-0.2.3 \
		unsafe-libyaml-0.2.11 \
		untrusted-0.7.1 \
		untrusted-0.9.0 \
		url-2.5.2 \
		urlencoding-2.1.3 \
		utf-8-0.7.6 \
		utf8parse-0.2.2 \
		vcpkg-0.2.15 \
		version_check-0.9.5 \
		waker-fn-1.2.0 \
		walkdir-2.5.0 \
		want-0.3.1 \
		wasi-0.11.0+wasi-snapshot-preview1 \
		wasm-bindgen-0.2.93 \
		wasm-bindgen-backend-0.2.93 \
		wasm-bindgen-futures-0.4.43 \
		wasm-bindgen-macro-0.2.93 \
		wasm-bindgen-macro-support-0.2.93 \
		wasm-bindgen-shared-0.2.93 \
		web-sys-0.3.70 \
		webpki-roots-0.25.4 \
		winapi-0.3.9 \
		winapi-i686-pc-windows-gnu-0.4.0 \
		winapi-util-0.1.9 \
		winapi-x86_64-pc-windows-gnu-0.4.0 \
		windows-0.57.0 \
		windows-core-0.52.0 \
		windows-core-0.57.0 \
		windows-implement-0.57.0 \
		windows-interface-0.57.0 \
		windows-result-0.1.2 \
		windows-sys-0.48.0 \
		windows-sys-0.52.0 \
		windows-sys-0.59.0 \
		windows-targets-0.48.5 \
		windows-targets-0.52.6 \
		windows_aarch64_gnullvm-0.48.5 \
		windows_aarch64_gnullvm-0.52.6 \
		windows_aarch64_msvc-0.48.5 \
		windows_aarch64_msvc-0.52.6 \
		windows_i686_gnu-0.48.5 \
		windows_i686_gnu-0.52.6 \
		windows_i686_gnullvm-0.52.6 \
		windows_i686_msvc-0.48.5 \
		windows_i686_msvc-0.52.6 \
		windows_x86_64_gnu-0.48.5 \
		windows_x86_64_gnu-0.52.6 \
		windows_x86_64_gnullvm-0.48.5 \
		windows_x86_64_gnullvm-0.52.6 \
		windows_x86_64_msvc-0.48.5 \
		windows_x86_64_msvc-0.52.6 \
		winreg-0.50.0 \
		x509-parser-0.13.2 \
		yansi-0.5.1 \
		yasna-0.5.2 \
		zerocopy-0.7.35 \
		zerocopy-derive-0.7.35 \
		zeroize-1.8.1

OPENSSLINC=	/usr/include
OPENSSLLIB=	/usr/lib

PLIST_FILES=	bin/${PORTNAME}

.include <bsd.port.mk>
