Skip to content

Commit

Permalink
audio/cava: Update to 0.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bsdcode authored and Tectu committed Feb 10, 2024
1 parent 5213f6e commit 9807a6d
Show file tree
Hide file tree
Showing 10 changed files with 54 additions and 258 deletions.
81 changes: 46 additions & 35 deletions audio/cava/Makefile
@@ -1,75 +1,86 @@
PORTNAME= cava
DISTVERSION= 0.7.4
PORTREVISION= 2
DISTVERSION= 0.10.1
CATEGORIES= audio

MAINTAINER= vendion@gmail.com
COMMENT= Console-based Audio Visualizer for MPD, PulseAudio, and sndio
WWW= https://karlstav.github.io/cava
COMMENT= Cross-platform Audio Visualizer
WWW= https://github.com/karlstav/cava

LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE

LIB_DEPENDS= libfftw3.so:math/fftw3 \
libiniparser.so:devel/iniparser

USES= autoreconf compiler:c11 libtool localbase ncurses
USES= autoreconf compiler:c11 libtool localbase pkgconfig
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
CONFIGURE_ARGS= --disable-input-alsa \
--disable-input-pipewire

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
OPTIONS_DEFINE= DOCS EXAMPLES VT
OPTIONS_DEFAULT= GLSL JACK NCURSES OSS PORTAUDIO PULSEAUDIO SDL SNDIO VT

OPTIONS_GROUP= INPUT OUTPUT
OPTIONS_GROUP_INPUT= JACK OSS PORTAUDIO PULSEAUDIO SNDIO
OPTIONS_GROUP_OUTPUT= GLSL NCURSES SDL

GLSL_DESC= Build with GLSL support (implies ${GLSL_IMPLIES})
GLSL_BUILD_DEPENDS= ${LOCALBASE}/share/aclocal/ax_check_gl.m4:devel/autoconf-archive
GLSL_USES= gl
GLSL_USE= gl=egl
GLSL_CONFIGURE_ENABLE= output-sdl-glsl
GLSL_IMPLIES= SDL

JACK_DESC= Build with JACK support
JACK_LIB_DEPENDS= libjack.so:audio/jack
JACK_CONFIGURE_ENABLE= input-jack

NCURSES_DESC= Build with ncurses support
NCURSES_USES= ncurses
NCURSES_CONFIGURE_ENABLE= output-ncurses

VT_DESC= Build with vt(4) support (installs custom font)
OSS_DESC= Build with OSS support
OSS_CONFIGURE_ENABLE= input-oss

PORTAUDIO_DESC= Build with portaudio support
PORTAUDIO_LIB_DEPENDS= libportaudio.so:audio/portaudio
PORTAUDIO_CONFIGURE_OFF= --disable-input-portaudio
PORTAUDIO_CONFIGURE_ENABLE= input-portaudio

PULSEAUDIO_DESC= Build with pulseaudio support
PULSEAUDIO_LIB_DEPENDS= libpulse-simple.so:audio/pulseaudio \
libpulse.so:audio/pulseaudio
PULSEAUDIO_CONFIGURE_OFF= --disable-input-pulse
PULSEAUDIO_CONFIGURE_ENABLE= input-pulse

SDL_DESC= Build with SDL support
SDL_USES= sdl
SDL_USE= sdl=sdl2
SDL_CONFIGURE_ENABLE= output-sdl

SNDIO_DESC= Build with sndio support
SNDIO_LIB_DEPENDS= libsndio.so:audio/sndio
SNDIO_CONFIGURE_OFF= --disable-input-sndio
SNDIO_CONFIGURE_ENABLE= input-sndio

VT_DESC= Build and install custom font for vt(4)
VT_BUILD_DEPENDS= psf2bdf:x11-fonts/psftools
VT_MAKE_ARGS_OFF= cava_font__DATA=""
VT_CONFIGURE_ENABLE= cava-font
VT_PLIST_FILES= ${DATADIR}/cava.fnt

.include <bsd.port.pre.mk>

.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
CFLAGS+= -Wno-error=deprecated-non-prototype
.endif

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
${ECHO_CMD} ${DISTVERSION} > ${WRKSRC}/version

post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}

post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/example_files/config ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.post.mk>
.include <bsd.port.mk>
6 changes: 3 additions & 3 deletions audio/cava/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1627884520
SHA256 (karlstav-cava-0.7.4_GH0.tar.gz) = fefd3cc04d41b03ca416630cafadbfda6c75e2ca0869da1f03963dcb13e1ecb7
SIZE (karlstav-cava-0.7.4_GH0.tar.gz) = 101847
TIMESTAMP = 1707006507
SHA256 (karlstav-cava-0.10.1_GH0.tar.gz) = a3a60814326fa34b54e93ce0b1e66460d55f1007e576c5152fd47024d9ceaff9
SIZE (karlstav-cava-0.10.1_GH0.tar.gz) = 129520
22 changes: 0 additions & 22 deletions audio/cava/files/patch-Makefile.am

This file was deleted.

96 changes: 0 additions & 96 deletions audio/cava/files/patch-cava.c

This file was deleted.

34 changes: 0 additions & 34 deletions audio/cava/files/patch-config.c

This file was deleted.

13 changes: 0 additions & 13 deletions audio/cava/files/patch-configure.ac

This file was deleted.

14 changes: 0 additions & 14 deletions audio/cava/files/patch-example__files_config

This file was deleted.

22 changes: 0 additions & 22 deletions audio/cava/files/patch-input_sndio.c

This file was deleted.

16 changes: 0 additions & 16 deletions audio/cava/files/patch-output_terminal__ncurses.c

This file was deleted.

8 changes: 5 additions & 3 deletions audio/cava/pkg-descr
@@ -1,5 +1,7 @@
C.A.V.A. is a bar spectrum audio visualizer for the terminal using
PulseAudio, sndio or fifo buffer for input.
CAVA (Cross-platform Audio Visualizer) is a bar spectrum audio visualizer for
the terminal (ncurses) or desktop (SDL). It also provides a GLSL shader output
backend which can enhance the desktop experience even more. The supported input
backends include OSS, sndio, JACK, portaudio, pulseaudio and fifo.

This program is not intended for scientific use. It's written to look
This program is not intended for scientific use. It's written to look
responsive and aesthetic when used to visualize music.

0 comments on commit 9807a6d

Please sign in to comment.