PORTNAME=	netease-music-tui
DISTVERSIONPREFIX=	v
DISTVERSION=	0.1.5
PORTREVISION=	14
CATEGORIES=	audio

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Netease cloud music terminal client by rust
WWW=		https://github.com/betta-cyber/netease-music-tui

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libasound.so:audio/alsa-lib

USES=		cargo
USE_GITHUB=	yes
GH_ACCOUNT=	betta-cyber

CARGO_CRATES=	addr2line-0.19.0 \
		adler-1.0.2 \
		aho-corasick-0.7.20 \
		alsa-0.6.0 \
		alsa-sys-0.3.1 \
		android_system_properties-0.1.5 \
		async-compression-0.3.15 \
		autocfg-1.1.0 \
		backtrace-0.3.67 \
		base-x-0.2.11 \
		base64-0.11.0 \
		base64-0.13.1 \
		bindgen-0.61.0 \
		bitflags-1.3.2 \
		bumpalo-3.11.1 \
		byteorder-1.4.3 \
		bytes-0.4.12 \
		bytes-0.5.6 \
		bytes-1.3.0 \
		cassowary-0.3.0 \
		cc-1.0.78 \
		cesu8-1.1.0 \
		cexpr-0.6.0 \
		cfg-if-0.1.10 \
		cfg-if-1.0.0 \
		chrono-0.4.23 \
		clang-sys-1.4.0 \
		claxon-0.4.3 \
		codespan-reporting-0.11.1 \
		combine-4.6.6 \
		config-0.9.3 \
		const_fn-0.4.9 \
		cookie-0.14.4 \
		cookie_store-0.12.0 \
		core-foundation-0.9.3 \
		core-foundation-sys-0.8.3 \
		coreaudio-rs-0.10.0 \
		coreaudio-sys-0.2.11 \
		cpal-0.13.5 \
		crc32fast-1.3.2 \
		cxx-1.0.85 \
		cxx-build-1.0.85 \
		cxxbridge-flags-1.0.85 \
		cxxbridge-macro-1.0.85 \
		darling-0.13.4 \
		darling_core-0.13.4 \
		darling_macro-0.13.4 \
		dbus-0.7.1 \
		dirs-2.0.2 \
		dirs-sys-0.3.7 \
		discard-1.0.4 \
		dtoa-0.4.8 \
		either-1.8.0 \
		encoding_rs-0.8.31 \
		failure-0.1.8 \
		failure_derive-0.1.8 \
		fastrand-1.8.0 \
		flate2-1.0.25 \
		fnv-1.0.7 \
		foreign-types-0.3.2 \
		foreign-types-shared-0.1.1 \
		form_urlencoded-1.1.0 \
		fuchsia-zircon-0.3.3 \
		fuchsia-zircon-sys-0.3.3 \
		futures-0.3.25 \
		futures-channel-0.3.25 \
		futures-core-0.3.25 \
		futures-executor-0.3.25 \
		futures-io-0.3.25 \
		futures-macro-0.3.25 \
		futures-sink-0.3.25 \
		futures-task-0.3.25 \
		futures-util-0.3.25 \
		getrandom-0.1.16 \
		getrandom-0.2.8 \
		gimli-0.27.0 \
		glob-0.3.0 \
		h2-0.2.7 \
		hashbrown-0.12.3 \
		hermit-abi-0.2.6 \
		hex-0.4.3 \
		hound-3.5.0 \
		http-0.2.8 \
		http-body-0.3.1 \
		httparse-1.8.0 \
		httpdate-0.3.2 \
		hyper-0.13.10 \
		hyper-tls-0.4.3 \
		iana-time-zone-0.1.53 \
		iana-time-zone-haiku-0.1.1 \
		ident_case-1.0.1 \
		idna-0.2.3 \
		idna-0.3.0 \
		indexmap-1.9.2 \
		instant-0.1.12 \
		iovec-0.1.4 \
		ipnet-2.7.0 \
		itertools-0.8.2 \
		itoa-0.4.8 \
		itoa-1.0.5 \
		jni-0.19.0 \
		jni-sys-0.3.0 \
		jobserver-0.1.25 \
		js-sys-0.3.60 \
		kernel32-sys-0.2.2 \
		lazy_static-0.2.11 \
		lazy_static-1.4.0 \
		lazycell-1.3.0 \
		lewton-0.10.2 \
		libc-0.2.139 \
		libdbus-sys-0.2.2 \
		libloading-0.7.4 \
		link-cplusplus-1.0.8 \
		linked-hash-map-0.3.0 \
		linked-hash-map-0.5.6 \
		lock_api-0.4.9 \
		log-0.4.17 \
		log-panics-2.1.0 \
		mach-0.3.2 \
		matches-0.1.9 \
		memchr-2.5.0 \
		memoffset-0.6.5 \
		mime-0.3.16 \
		mime_guess-2.0.4 \
		minimal-lexical-0.2.1 \
		minimp3-0.5.1 \
		minimp3-sys-0.3.2 \
		miniz_oxide-0.6.2 \
		mio-0.6.23 \
		miow-0.2.2 \
		mp3-duration-0.1.10 \
		native-tls-0.2.11 \
		ndk-0.6.0 \
		ndk-context-0.1.1 \
		ndk-glue-0.6.2 \
		ndk-macro-0.3.0 \
		ndk-sys-0.3.0 \
		net2-0.2.38 \
		nix-0.23.2 \
		nom-4.2.3 \
		nom-7.1.2 \
		num-bigint-0.2.6 \
		num-derive-0.3.3 \
		num-integer-0.1.45 \
		num-traits-0.1.43 \
		num-traits-0.2.15 \
		num_cpus-1.15.0 \
		num_enum-0.5.7 \
		num_enum_derive-0.5.7 \
		numtoa-0.1.0 \
		object-0.30.0 \
		oboe-0.4.6 \
		oboe-sys-0.4.5 \
		ogg-0.8.0 \
		once_cell-1.17.0 \
		openssl-0.10.45 \
		openssl-macros-0.1.0 \
		openssl-probe-0.1.5 \
		openssl-sys-0.9.80 \
		parking_lot-0.11.2 \
		parking_lot_core-0.8.6 \
		peeking_take_while-0.1.2 \
		percent-encoding-2.2.0 \
		pin-project-1.0.12 \
		pin-project-internal-1.0.12 \
		pin-project-lite-0.1.12 \
		pin-project-lite-0.2.9 \
		pin-utils-0.1.0 \
		pkg-config-0.3.26 \
		ppv-lite86-0.2.17 \
		proc-macro-crate-1.2.1 \
		proc-macro-hack-0.5.20+deprecated \
		proc-macro2-1.0.49 \
		publicsuffix-1.5.6 \
		quote-1.0.23 \
		rand-0.7.3 \
		rand_chacha-0.2.2 \
		rand_core-0.5.1 \
		rand_hc-0.2.0 \
		redox_syscall-0.1.57 \
		redox_syscall-0.2.16 \
		redox_termios-0.1.2 \
		redox_users-0.4.3 \
		regex-1.7.0 \
		regex-syntax-0.6.28 \
		remove_dir_all-0.5.3 \
		reqwest-0.10.10 \
		rodio-0.15.0 \
		rust-ini-0.13.0 \
		rustc-demangle-0.1.21 \
		rustc-hash-1.1.0 \
		rustc_version-0.2.3 \
		ryu-1.0.12 \
		same-file-1.0.6 \
		schannel-0.1.20 \
		scopeguard-1.1.0 \
		scratch-1.0.3 \
		security-framework-2.7.0 \
		security-framework-sys-2.6.1 \
		semver-0.9.0 \
		semver-parser-0.7.0 \
		serde-0.8.23 \
		serde-1.0.152 \
		serde-hjson-0.8.2 \
		serde_derive-1.0.152 \
		serde_json-1.0.91 \
		serde_test-0.8.23 \
		serde_urlencoded-0.6.1 \
		serde_urlencoded-0.7.1 \
		sha1-0.6.1 \
		sha1_smol-1.0.0 \
		shlex-1.1.0 \
		simple-logging-2.0.2 \
		slab-0.4.7 \
		slice-deque-0.3.0 \
		smallvec-1.10.0 \
		socket2-0.3.19 \
		standback-0.2.17 \
		stdweb-0.1.3 \
		stdweb-0.4.20 \
		stdweb-derive-0.5.3 \
		stdweb-internal-macros-0.2.9 \
		stdweb-internal-runtime-0.1.5 \
		strsim-0.10.0 \
		syn-1.0.107 \
		synstructure-0.12.6 \
		tempfile-3.3.0 \
		termcolor-1.1.3 \
		termion-1.5.6 \
		thiserror-1.0.38 \
		thiserror-impl-1.0.38 \
		thread-id-3.3.0 \
		time-0.1.45 \
		time-0.2.27 \
		time-macros-0.1.1 \
		time-macros-impl-0.1.2 \
		tinyvec-1.6.0 \
		tinyvec_macros-0.1.0 \
		tokio-0.2.25 \
		tokio-macros-0.2.6 \
		tokio-socks-0.3.0 \
		tokio-tls-0.3.1 \
		tokio-util-0.3.1 \
		toml-0.4.10 \
		toml-0.5.10 \
		tower-service-0.3.2 \
		tracing-0.1.37 \
		tracing-core-0.1.30 \
		tracing-futures-0.2.5 \
		try-lock-0.2.3 \
		tui-0.6.2 \
		unicase-2.6.0 \
		unicode-bidi-0.3.8 \
		unicode-ident-1.0.6 \
		unicode-normalization-0.1.22 \
		unicode-segmentation-1.10.0 \
		unicode-width-0.1.10 \
		unicode-xid-0.2.4 \
		url-2.3.1 \
		vcpkg-0.2.15 \
		version_check-0.1.5 \
		version_check-0.9.4 \
		walkdir-2.3.2 \
		want-0.3.0 \
		wasi-0.9.0+wasi-snapshot-preview1 \
		wasi-0.10.0+wasi-snapshot-preview1 \
		wasi-0.11.0+wasi-snapshot-preview1 \
		wasm-bindgen-0.2.83 \
		wasm-bindgen-backend-0.2.83 \
		wasm-bindgen-futures-0.4.33 \
		wasm-bindgen-macro-0.2.83 \
		wasm-bindgen-macro-support-0.2.83 \
		wasm-bindgen-shared-0.2.83 \
		web-sys-0.3.60 \
		winapi-0.2.8 \
		winapi-0.3.9 \
		winapi-build-0.1.1 \
		winapi-i686-pc-windows-gnu-0.4.0 \
		winapi-util-0.1.5 \
		winapi-x86_64-pc-windows-gnu-0.4.0 \
		windows-sys-0.36.1 \
		windows_aarch64_msvc-0.36.1 \
		windows_i686_gnu-0.36.1 \
		windows_i686_msvc-0.36.1 \
		windows_x86_64_gnu-0.36.1 \
		windows_x86_64_msvc-0.36.1 \
		winreg-0.7.0 \
		ws2_32-sys-0.2.1 \
		yaml-rust-0.4.5

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

PLIST_FILES=	bin/ncmt

post-install:
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/ncmt

.include <bsd.port.mk>
