opnsense-ports/audio/spotifyd/Makefile

363 lines
7.6 KiB
Makefile

# $FreeBSD$
PORTNAME= spotifyd
DISTVERSIONPREFIX= v
DISTVERSION= 0.2.8
PORTREVISION= 3
CATEGORIES= audio
MAINTAINER= tobik@FreeBSD.org
COMMENT= Spotify daemon
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENCE
LIB_DEPENDS= libogg.so:audio/libogg
USES= cargo ssl:build
USE_GITHUB= yes
GH_ACCOUNT= Spotifyd
GH_TUPLE= plietar:rust-alsa:8c63543fa0ccd971cf15f5675293d19febd6f79e:alsa \
plietar:dns-parser:1d3e5a5591bc72eb061c23bd426c4a25f2f73791:dnsparser \
librespot-org:librespot:a41ab28540537e5f277fc9556bbcc16e08f065d5:librespot \
plietar:rust-mdns:66a74033da6c9f1a06e7b0a29f4544fd189d6479:mdns \
awmath:rust-crypto:394c247254dbe2ac5d44483232cf335d10cf0260:rustcrypto \
plietar:rust-tremor:5958cc302e78f535dad90e9665da981ddff4000a:tremor
CARGO_CRATES= MacTypes-sys-2.1.0 \
adler32-1.0.3 \
advapi32-sys-0.2.0 \
aes-0.3.2 \
aes-ctr-0.3.0 \
aes-soft-0.3.3 \
aesni-0.6.0 \
aho-corasick-0.6.10 \
alsa-0.2.1 \
alsa-sys-0.1.2 \
ansi_term-0.11.0 \
arc-swap-0.3.7 \
arrayvec-0.4.10 \
atty-0.2.11 \
autocfg-0.1.2 \
backtrace-0.3.14 \
backtrace-sys-0.1.28 \
base64-0.10.1 \
base64-0.5.2 \
base64-0.6.0 \
base64-0.9.3 \
bit-set-0.4.0 \
bit-vec-0.4.4 \
bitflags-0.3.3 \
bitflags-0.7.0 \
bitflags-0.9.1 \
bitflags-1.0.4 \
block-buffer-0.7.0 \
block-cipher-trait-0.6.2 \
block-modes-0.2.0 \
block-padding-0.1.3 \
build_const-0.2.1 \
byte-tools-0.3.1 \
byteorder-0.5.3 \
byteorder-1.3.1 \
bytes-0.4.12 \
c_linked_list-1.1.1 \
cc-1.0.31 \
cfg-if-0.1.7 \
chrono-0.4.6 \
clap-2.32.0 \
cloudabi-0.0.3 \
core-foundation-0.5.1 \
core-foundation-sys-0.5.1 \
crc-1.8.1 \
crc32fast-1.2.0 \
crossbeam-deque-0.7.1 \
crossbeam-epoch-0.7.1 \
crossbeam-queue-0.1.2 \
crossbeam-utils-0.6.5 \
crypto-mac-0.7.0 \
ctr-0.3.2 \
daemonize-0.3.0 \
dbus-0.2.3 \
dbus-0.6.4 \
dbus-tokio-0.2.1 \
derive-error-chain-0.10.1 \
derive_builder-0.5.1 \
derive_builder_core-0.2.0 \
digest-0.8.0 \
dotenv-0.10.1 \
dtoa-0.4.3 \
either-1.5.1 \
encoding_rs-0.8.17 \
env_logger-0.4.3 \
env_logger-0.5.13 \
error-chain-0.10.0 \
error-chain-0.11.0 \
extprim-1.6.0 \
failure-0.1.5 \
failure_derive-0.1.5 \
fake-simd-0.1.2 \
flate2-1.0.7 \
fnv-1.0.6 \
foreign-types-0.3.2 \
foreign-types-shared-0.1.1 \
fuchsia-cprng-0.1.1 \
fuchsia-zircon-0.3.3 \
fuchsia-zircon-sys-0.3.3 \
futures-0.1.25 \
futures-cpupool-0.1.8 \
gcc-0.3.55 \
generic-array-0.12.0 \
get_if_addrs-0.5.3 \
get_if_addrs-sys-0.1.1 \
getopts-0.2.18 \
h2-0.1.17 \
hex-0.3.2 \
hmac-0.7.0 \
hostname-0.1.5 \
http-0.1.16 \
httparse-1.3.3 \
humantime-1.2.0 \
hyper-0.11.27 \
hyper-0.12.25 \
hyper-proxy-0.4.1 \
hyper-tls-0.3.2 \
idna-0.1.5 \
indexmap-1.0.2 \
iovec-0.1.2 \
itertools-0.7.11 \
itoa-0.4.3 \
kernel32-sys-0.2.2 \
keyring-0.6.1 \
language-tags-0.2.2 \
lazy_static-0.2.11 \
lazy_static-1.3.0 \
lazycell-1.2.1 \
lewton-0.9.4 \
libc-0.2.50 \
libdbus-sys-0.1.5 \
libpulse-sys-0.0.0 \
linear-map-1.2.0 \
lock_api-0.1.5 \
log-0.3.9 \
log-0.4.6 \
matches-0.1.8 \
memchr-2.2.0 \
memoffset-0.2.1 \
mime-0.3.13 \
mime_guess-2.0.0-alpha.6 \
miniz_oxide-0.2.1 \
miniz_oxide_c_api-0.2.1 \
mio-0.6.16 \
mio-named-pipes-0.1.6 \
mio-uds-0.6.7 \
miow-0.2.1 \
miow-0.3.3 \
multimap-0.4.0 \
native-tls-0.2.2 \
net2-0.2.33 \
nix-0.11.0 \
nix-0.9.0 \
nodrop-0.1.13 \
num-0.1.42 \
num-bigint-0.1.44 \
num-complex-0.1.43 \
num-integer-0.1.39 \
num-iter-0.1.37 \
num-rational-0.1.42 \
num-traits-0.1.43 \
num-traits-0.2.6 \
num_cpus-1.10.0 \
ogg-0.7.0 \
ogg-sys-0.0.9 \
opaque-debug-0.2.2 \
openssl-0.10.20 \
openssl-probe-0.1.2 \
openssl-sys-0.9.43 \
owning_ref-0.4.0 \
parking_lot-0.7.1 \
parking_lot_core-0.4.0 \
pbkdf2-0.3.0 \
percent-encoding-1.0.1 \
phf-0.7.24 \
phf_codegen-0.7.24 \
phf_generator-0.7.24 \
phf_shared-0.7.24 \
pkg-config-0.3.14 \
portaudio-rs-0.3.0 \
portaudio-sys-0.1.1 \
proc-macro2-0.4.27 \
protobuf-1.7.4 \
protobuf-2.4.0 \
protobuf-codegen-2.4.0 \
protobuf-codegen-pure-2.4.0 \
quick-error-1.2.2 \
quote-0.3.15 \
quote-0.6.11 \
rand-0.3.23 \
rand-0.4.6 \
rand-0.5.6 \
rand-0.6.5 \
rand_chacha-0.1.1 \
rand_core-0.3.1 \
rand_core-0.4.0 \
rand_hc-0.1.0 \
rand_isaac-0.1.1 \
rand_jitter-0.1.3 \
rand_os-0.1.3 \
rand_pcg-0.1.2 \
rand_xorshift-0.1.1 \
random-0.12.2 \
rdrand-0.4.0 \
redox_syscall-0.1.51 \
redox_termios-0.1.1 \
regex-0.2.11 \
regex-1.1.2 \
regex-syntax-0.5.6 \
regex-syntax-0.6.5 \
relay-0.1.1 \
remove_dir_all-0.5.1 \
reqwest-0.9.12 \
rpassword-0.3.1 \
rpassword-2.1.0 \
rspotify-0.2.5 \
rust-crypto-0.2.36 \
rust-gmp-0.3.2 \
rust-ini-0.13.0 \
rustc-demangle-0.1.13 \
rustc-serialize-0.3.24 \
rustc_version-0.2.3 \
ryu-0.2.7 \
safemem-0.2.0 \
safemem-0.3.0 \
schannel-0.1.15 \
scoped-tls-0.1.2 \
scopeguard-0.3.3 \
secret-service-0.4.0 \
security-framework-0.2.2 \
security-framework-sys-0.2.3 \
semver-0.9.0 \
semver-parser-0.7.0 \
serde-1.0.89 \
serde_derive-1.0.89 \
serde_json-1.0.39 \
serde_urlencoded-0.5.4 \
sha-1-0.8.1 \
sha2-0.8.0 \
shannon-0.2.0 \
signal-hook-0.1.8 \
simplelog-0.4.4 \
siphasher-0.2.3 \
slab-0.3.0 \
slab-0.4.2 \
smallvec-0.2.1 \
smallvec-0.6.9 \
socket2-0.2.4 \
socket2-0.3.8 \
stable_deref_trait-1.1.1 \
stream-cipher-0.3.0 \
string-0.1.3 \
strsim-0.7.0 \
subtle-1.0.0 \
syn-0.11.11 \
syn-0.15.29 \
synom-0.11.3 \
synstructure-0.10.1 \
syslog-4.0.1 \
take-0.1.0 \
tempfile-2.2.0 \
tempfile-3.0.7 \
term-0.4.6 \
termcolor-1.0.4 \
termion-1.5.1 \
termios-0.2.2 \
textwrap-0.10.0 \
thread_local-0.3.6 \
time-0.1.42 \
tokio-0.1.18 \
tokio-codec-0.1.1 \
tokio-core-0.1.17 \
tokio-current-thread-0.1.6 \
tokio-executor-0.1.7 \
tokio-fs-0.1.6 \
tokio-io-0.1.12 \
tokio-process-0.2.3 \
tokio-proto-0.1.1 \
tokio-reactor-0.1.9 \
tokio-service-0.1.0 \
tokio-signal-0.1.5 \
tokio-signal-0.2.8 \
tokio-sync-0.1.4 \
tokio-tcp-0.1.3 \
tokio-threadpool-0.1.13 \
tokio-timer-0.2.10 \
tokio-trace-core-0.1.0 \
tokio-udp-0.1.3 \
tokio-uds-0.2.5 \
try-lock-0.1.0 \
try-lock-0.2.2 \
typenum-1.10.0 \
ucd-util-0.1.3 \
unicase-1.4.2 \
unicase-2.3.0 \
unicode-bidi-0.3.4 \
unicode-normalization-0.1.8 \
unicode-width-0.1.5 \
unicode-xid-0.0.4 \
unicode-xid-0.1.0 \
url-1.7.2 \
utf8-ranges-1.0.2 \
uuid-0.4.0 \
uuid-0.7.2 \
vcpkg-0.2.6 \
vec_map-0.8.1 \
vergen-0.1.1 \
version_check-0.1.5 \
void-1.0.2 \
want-0.0.4 \
want-0.0.6 \
webbrowser-0.2.2 \
winapi-0.2.8 \
winapi-0.3.6 \
winapi-build-0.1.1 \
winapi-i686-pc-windows-gnu-0.4.0 \
winapi-util-0.1.2 \
winapi-x86_64-pc-windows-gnu-0.4.0 \
wincolor-1.0.1 \
winutil-0.1.1 \
ws2_32-sys-0.2.1 \
xdg-2.2.0
CARGO_USE_GITHUB= yes
CARGO_BUILD_ARGS= --no-default-features
CARGO_INSTALL_ARGS= --no-default-features
CARGO_TEST_ARGS= --no-default-features
PLIST_FILES= bin/spotifyd
PORTDOCS= README.md
OPTIONS_DEFINE= DBUS DOCS PORTAUDIO PULSEAUDIO
OPTIONS_DEFAULT= PORTAUDIO
DBUS_DESC= D-Bus MPRIS support
DBUS_LIB_DEPENDS= libdbus-1.so:devel/dbus
DBUS_VARS= CARGO_FEATURES+=dbus_mpris
PORTAUDIO_LIB_DEPENDS= libportaudio.so:audio/portaudio
PORTAUDIO_VARS= CARGO_FEATURES+=portaudio_backend
PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio
PULSEAUDIO_VARS= CARGO_FEATURES+=pulseaudio_backend
post-patch:
@${REINPLACE_CMD} 's,/etc/,${PREFIX}/etc/,g' ${WRKSRC}/src/config.rs
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/spotifyd
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>