blob: 7d2034b98e4cce42b09190a89606eba2c64d46e9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
PORTNAME= cava
DISTVERSION= 0.7.3
CATEGORIES= audio
MAINTAINER= vendion@gmail.com
COMMENT= Console-based Audio Visualizer for MPD, PulseAudio, and sndio
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libfftw3.so:math/fftw3 \
libiniparser.so:devel/iniparser
USES= autoreconf compiler:c11 libtool localbase ncurses
USE_GITHUB= yes
GH_ACCOUNT= karlstav
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-input-alsa
CONFIGURE_ENV= ac_cv_lib_asound_snd_pcm_open=no \
FONT_DIR=${DATADIR}
INSTALL_TARGET= install-strip
PLIST_FILES= bin/cava
PORTDOCS= README.md
PORTEXAMPLES= config
OPTIONS_DEFINE= DOCS EXAMPLES PORTAUDIO PULSEAUDIO SNDIO VT
OPTIONS_DEFAULT= PULSEAUDIO SNDIO VT
.if !exists(/usr/bin/vtfontcvt)
OPTIONS_EXCLUDE= VT
.endif
VT_DESC= Build with vt(4) support (installs custom font)
PORTAUDIO_LIB_DEPENDS= libportaudio.so:audio/portaudio
PORTAUDIO_CONFIGURE_OFF= --disable-input-portaudio
PULSEAUDIO_LIB_DEPENDS= libpulse-simple.so:audio/pulseaudio \
libpulse.so:audio/pulseaudio
PULSEAUDIO_CONFIGURE_OFF= --disable-input-pulse
SNDIO_LIB_DEPENDS= libsndio.so:audio/sndio
SNDIO_CONFIGURE_OFF= --disable-input-sndio
VT_BUILD_DEPENDS= psf2bdf:x11-fonts/psftools
VT_MAKE_ARGS_OFF= cava_font__DATA=""
VT_PLIST_FILES= ${DATADIR}/cava.fnt
pre-configure:
@${ECHO_CMD} ${DISTVERSION} > ${WRKSRC}/version
pre-build-VT-on:
psf2bdf --fontname="-gnu-cava-medium-r-normal--16-160-75-75-c-80-iso10646-1" \
${WRKSRC}/cava.psf > ${WRKSRC}/cava.bdf
vtfontcvt ${WRKSRC}/cava.bdf ${WRKSRC}/cava.fnt
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/example_files/config ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>
|