import shell-fm 0.6

Shell.FM is a lightweight and interactive console based player for
last.fm radio streams (e.g. lastfm://artistnames/someartist) featuring
proxy support and bookmarks saving.

from guillaume pinot (maintainer). with tweaks by giovanni bechis and jakemsr@
testing by many, thanks!
This commit is contained in:
jasper 2008-09-21 22:27:31 +00:00
parent 7a8012026a
commit 641f398e21
6 changed files with 89 additions and 0 deletions

30
audio/shell-fm/Makefile Normal file
View File

@ -0,0 +1,30 @@
# $OpenBSD: Makefile,v 1.1.1.1 2008/09/21 22:27:31 jasper Exp $
COMMENT= console based player for last.fm radio streams
DISTNAME= shell-fm-0.6
CATEGORIES= audio
EXTRACT_SUFX= .tar.bz2
HOMEPAGE= http://nex.scrapping.cc/code/shell-fm/
MAINTAINER= Guillaume Pinot <guillaume.pinot@tremplin-utc.net>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${HOMEPAGE}/downloads/
LIB_DEPENDS= ao::audio/libao \
mad::audio/libmad
WANTLIB= c m ossaudio pthread
USE_GMAKE= yes
FAKE_FLAGS= DESTDIR="${WRKINST}${PREFIX}"
NO_REGRESS= yes
.include <bsd.port.mk>

5
audio/shell-fm/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (shell-fm-0.6.tar.bz2) = 3Isf/t+T31ZfQm8mlDhCqw==
RMD160 (shell-fm-0.6.tar.bz2) = N0XRXNVm1YoLS7jktD1PlXXwlGc=
SHA1 (shell-fm-0.6.tar.bz2) = qemimOcLKIXl6b+5+qq9Wv72O5g=
SHA256 (shell-fm-0.6.tar.bz2) = tm3FG5WzI7MBmMjpWvE2sjK9Piquiz7EDAfK4Ac618c=
SIZE (shell-fm-0.6.tar.bz2) = 35422

View File

@ -0,0 +1,24 @@
$OpenBSD: patch-Makefile,v 1.1.1.1 2008/09/21 22:27:31 jasper Exp $
Don't install compressed man pages.
--- Makefile.orig Thu Sep 18 19:29:48 2008
+++ Makefile Thu Sep 18 19:30:07 2008
@@ -4,7 +4,7 @@ MANDIR := $(DESTDIR)/man
.PHONY : shell-fm manual all clean tags cscope
-all : shell-fm manual
+all : shell-fm
shell-fm :
$(MAKE) -C source
@@ -15,7 +15,7 @@ manual :
install :
mkdir -p $(DESTDIR)/bin $(MANDIR)/man1
install source/shell-fm $(DESTDIR)/bin/shell-fm
- install manual/shell-fm.1.gz $(MANDIR)/man1
+ install manual/shell-fm.1 $(MANDIR)/man1
install-strip : install
strip $(DESTDIR)/bin/shell-fm

View File

@ -0,0 +1,24 @@
$OpenBSD: patch-source_Makefile,v 1.1.1.1 2008/09/21 22:27:31 jasper Exp $
Respect CFLAGS.
--- source/Makefile.orig Fri Sep 19 08:46:46 2008
+++ source/Makefile Fri Sep 19 08:47:35 2008
@@ -1,7 +1,7 @@
SOURCE := $(wildcard *.c)
OBJECT := $(subst .c,.o,$(SOURCE))
BINARY := shell-fm
-LDFLAGS := $(shell pkg-config --exists ao && pkg-config ao --libs) \
+LDFLAGS += $(shell pkg-config --exists ao && pkg-config ao --libs) \
$(shell pkg-config mad --libs)
ifeq ($(shell uname -s), OpenBSD)
LDFLAGS += -lossaudio
@@ -10,7 +10,7 @@ ifeq ($(shell uname -s), NetBSD)
LDFLAGS += -lossaudio
endif
LIBAO := $(shell pkg-config --exists ao && echo -DLIBAO && pkg-config ao --cflags)
-CFLAGS := -Os -Wall -W -I./include/ $(LIBAO) $(shell pkg-config mad --cflags)
+CFLAGS += -Wall -W -I./include/ $(LIBAO) $(shell pkg-config mad --cflags)
.PHONY: clean tags cscope

3
audio/shell-fm/pkg/DESCR Normal file
View File

@ -0,0 +1,3 @@
Shell.FM is a lightweight and interactive console based player for
last.fm radio streams (e.g. lastfm://artistnames/someartist) featuring
proxy support and bookmarks saving.

3
audio/shell-fm/pkg/PLIST Normal file
View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/09/21 22:27:31 jasper Exp $
@bin bin/shell-fm
@man man/man1/shell-fm.1