2019-11-27 09:42:45 +01:00
|
|
|
PORTNAME= ncspot
|
2020-07-24 19:31:27 +02:00
|
|
|
DISTVERSIONPREFIX= v
|
2023-05-29 15:34:37 +02:00
|
|
|
DISTVERSION= 0.13.2
|
2023-06-09 13:36:53 +02:00
|
|
|
PORTREVISION= 1
|
2019-11-27 09:42:45 +01:00
|
|
|
CATEGORIES= audio
|
|
|
|
|
2021-01-14 17:32:11 +01:00
|
|
|
MAINTAINER= rodrigo@FreeBSD.org
|
2019-11-27 09:42:45 +01:00
|
|
|
COMMENT= Ncurses Spotify client
|
2022-09-07 23:06:12 +02:00
|
|
|
WWW= https://github.com/hrkfdn/ncspot
|
2019-11-27 09:42:45 +01:00
|
|
|
|
|
|
|
LICENSE= BSD2CLAUSE
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
|
2020-09-02 21:23:29 +02:00
|
|
|
LIB_DEPENDS= libdbus-1.so:devel/dbus
|
|
|
|
|
2023-05-29 15:34:37 +02:00
|
|
|
USES= cargo ssl
|
2019-11-27 09:42:45 +01:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= hrkfdn
|
|
|
|
|
2023-05-29 15:34:37 +02:00
|
|
|
CARGO_FEATURES= --no-default-features termion_backend
|
2019-11-27 09:42:45 +01:00
|
|
|
|
|
|
|
PLIST_FILES= bin/ncspot
|
|
|
|
PORTDOCS= README.md
|
|
|
|
|
2023-05-29 15:34:37 +02:00
|
|
|
OPTIONS_DEFINE= CLIPBOARD DOCS MPRIS NOTIFY
|
2021-08-23 08:49:54 +02:00
|
|
|
OPTIONS_DEFAULT= CLIPBOARD MPRIS NOTIFY PORTAUDIO
|
2023-05-29 15:34:37 +02:00
|
|
|
OPTIONS_MULTI= BACKEND
|
|
|
|
OPTIONS_MULTI_BACKEND= PORTAUDIO PULSEAUDIO
|
2019-11-27 09:42:45 +01:00
|
|
|
|
2020-07-24 19:31:27 +02:00
|
|
|
CLIPBOARD_DESC= Support for accessing X11 clipboard
|
2020-09-02 21:23:29 +02:00
|
|
|
MPRIS_DESC= D-Bus MPRIS support
|
2019-11-27 09:42:45 +01:00
|
|
|
|
2023-06-15 00:00:28 +02:00
|
|
|
CLIPBOARD_USES= python:build xorg
|
2019-11-27 09:42:45 +01:00
|
|
|
CLIPBOARD_USE= XORG=xcb
|
|
|
|
CLIPBOARD_BINARY_ALIAS= python3=${PYTHON_CMD}
|
|
|
|
CLIPBOARD_VARS= CARGO_FEATURES+=share_clipboard
|
|
|
|
|
2020-09-02 21:23:29 +02:00
|
|
|
MPRIS_VARS= CARGO_FEATURES+=mpris
|
2019-11-27 09:42:45 +01:00
|
|
|
|
2021-08-23 08:49:54 +02:00
|
|
|
NOTIFY_VARS= CARGO_FEATURES+=notify
|
|
|
|
|
2019-11-27 09:42:45 +01:00
|
|
|
PORTAUDIO_LIB_DEPENDS= libportaudio.so:audio/portaudio
|
|
|
|
PORTAUDIO_VARS= CARGO_FEATURES+=portaudio_backend
|
|
|
|
|
|
|
|
PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio
|
2020-07-24 19:31:27 +02:00
|
|
|
PULSEAUDIO_USES= localbase:ldflags
|
2019-11-27 09:42:45 +01:00
|
|
|
PULSEAUDIO_VARS= CARGO_FEATURES+=pulseaudio_backend
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/ncspot
|
|
|
|
|
|
|
|
post-install-DOCS-on:
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|