import audio/pianobar

pianobar is a console client for the personalized web radio pandora 
(http://www.pandora.com).

OK landry@
This commit is contained in:
dcoppa 2010-03-29 21:12:20 +00:00
parent 1090f160fd
commit 29836f11aa
6 changed files with 85 additions and 0 deletions

40
audio/pianobar/Makefile Normal file
View File

@ -0,0 +1,40 @@
# $OpenBSD: Makefile,v 1.1.1.1 2010/03/29 21:12:20 dcoppa Exp $
COMMENT = console client for pandora
VERSION = 0.20100313
DISTNAME = PromyLOPh-pianobar-34ff325
PKGNAME = pianobar-${VERSION}
CATEGORIES = audio
MAINTAINER = David Coppa <dcoppa@openbsd.org>
HOMEPAGE = http://6xq.net/html/00/17.html
MASTER_SITES = http://www.phil.uu.nl/~lievisse/distfiles/
# MIT
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB = c m pthread
MODULES = devel/cmake
LIB_DEPENDS = ao::audio/libao \
faad::audio/faad \
mad::audio/libmad
CONFIGURE_ARGS= -DMAN_INSTALL_DIR="${PREFIX}/man"
NO_REGRESS = Yes
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/pianobar
${INSTALL_DATA} ${WRKSRC}/COPYING ${PREFIX}/share/doc/pianobar
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/pianobar
${INSTALL_DATA} ${WRKSRC}/contrib/config-example \
${PREFIX}/share/examples/pianobar/config
.include <bsd.port.mk>

5
audio/pianobar/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (PromyLOPh-pianobar-34ff325.tar.gz) = qqZbo6td1+IYC+Yzp5WhgA==
RMD160 (PromyLOPh-pianobar-34ff325.tar.gz) = aBdNP9iFbharkjnIEc27t/vHCqM=
SHA1 (PromyLOPh-pianobar-34ff325.tar.gz) = /ORWkMUeJmgbYS/sPYmrEep4H0s=
SHA256 (PromyLOPh-pianobar-34ff325.tar.gz) = wiR2A9nw/E+FG6f9K25EfYM5Qa5Fayy7zo25CB/P6AY=
SIZE (PromyLOPh-pianobar-34ff325.tar.gz) = 63619

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_player_c,v 1.1.1.1 2010/03/29 21:12:20 dcoppa Exp $
--- src/player.c.orig Tue Mar 16 20:29:34 2010
+++ src/player.c Mon Mar 29 15:44:59 2010
@@ -185,7 +185,7 @@ static WaitressCbReturn_t BarPlayerAACCb (void *ptr, s
/* +1+4 needs to be replaced by <something>! */
player->bufferRead += 1+4;
char err = NeAACDecInit2 (player->aacHandle, player->buffer +
- player->bufferRead, 5, &player->samplerate,
+ player->bufferRead, 5, (void *)&player->samplerate,
&player->channels);
player->bufferRead += 5;
if (err != 0) {

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_ui_c,v 1.1.1.1 2010/03/29 21:12:20 dcoppa Exp $
--- src/ui.c.orig Tue Mar 16 20:29:34 2010
+++ src/ui.c Mon Mar 29 15:42:23 2010
@@ -420,7 +420,7 @@ void BarUiStartEventCmd (const BarSettings_t *settings
/* child */
close (pipeFd[1]);
dup2 (pipeFd[0], fileno (stdin));
- execl (settings->eventCmd, settings->eventCmd, type, NULL);
+ execl (settings->eventCmd, settings->eventCmd, type, (char *)NULL);
BarUiMsg (MSG_ERR, "Cannot start eventcmd. (%s)\n", strerror (errno));
close (pipeFd[0]);
exit (1);

9
audio/pianobar/pkg/DESCR Normal file
View File

@ -0,0 +1,9 @@
pianobar is a console client for the personalized web radio pandora
(http://www.pandora.com).
- play and manage (create, add more music, delete, rename, ...) your
stations
- rate played songs and let pandora explain why they have been selected
- show upcoming songs
- configure key bindings
- proxy support for listeners outside the USA

7
audio/pianobar/pkg/PLIST Normal file
View File

@ -0,0 +1,7 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2010/03/29 21:12:20 dcoppa Exp $
@bin bin/pianobar
@man man/man1/pianobar.1
share/doc/pianobar/
share/doc/pianobar/COPYING
share/examples/pianobar/
share/examples/pianobar/config