import ports/audio/squeezelite, ok jca@
Squeezelite is a small squeezebox emulator using PortAudio. It is headless, and must be controlled via Logitech Media Server. It supports gapless playback, client synchronization (allowing groups of clients for simultaneous playback), and direct streaming for those LMS plugins which require it. It has a built-in decoder for PCM (wav/aiff); other formats (flac, mp3, ogg, aac, wma, alac) are available via libraries. It has resampling support via libsoxr.
This commit is contained in:
parent
1e8fd10fd6
commit
ae2290d52f
44
audio/squeezelite/Makefile
Normal file
44
audio/squeezelite/Makefile
Normal file
@ -0,0 +1,44 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2016/03/21 22:28:24 sthen Exp $
|
||||
|
||||
COMMENT= lightweight headless squeezebox emulator
|
||||
|
||||
V= 1.8
|
||||
DISTNAME= squeezelite-v$V
|
||||
PKGNAME= squeezelite-$V
|
||||
|
||||
CATEGORIES= audio
|
||||
|
||||
HOMEPAGE= https://code.google.com/archive/p/squeezelite
|
||||
|
||||
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
|
||||
|
||||
# GPLv3
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
|
||||
WANTLIB += FLAC avcodec avformat avutil c faad m mad mpg123 portaudio
|
||||
WANTLIB += pthread soxr vorbis vorbisfile
|
||||
|
||||
# https://squeezelite.googlecode.com/archive
|
||||
MASTER_SITES= https://spacehopper.org/mirrors/
|
||||
|
||||
LIB_DEPENDS= audio/faad \
|
||||
audio/flac \
|
||||
audio/libmad \
|
||||
audio/libsoxr \
|
||||
audio/libvorbis \
|
||||
audio/mpg123 \
|
||||
audio/portaudio-svn \
|
||||
graphics/ffmpeg
|
||||
LDFLAGS+= -L${LOCALBASE}/lib -lportaudio -lpthread -lFLAC -lmpg123
|
||||
LDFLAGS+= -lvorbis -lvorbisfile -lsoxr -lmad -lavcodec -lavformat -lfaad
|
||||
|
||||
MAKE_FLAGS= CFLAGS="-Wall -fPIC -DFFMPEG -DRESAMPLE -DLINKALL ${CFLAGS}" \
|
||||
CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="${LDFLAGS}"
|
||||
|
||||
USE_GMAKE= Yes
|
||||
NO_TEST= Yes
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/squeezelite ${PREFIX}/bin/
|
||||
|
||||
.include <bsd.port.mk>
|
2
audio/squeezelite/distinfo
Normal file
2
audio/squeezelite/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (squeezelite-v1.8.tar.gz) = MSqPTladVRqd4FwV7309NuHZDBweiYftvQKADjPetas=
|
||||
SIZE (squeezelite-v1.8.tar.gz) = 73994
|
11
audio/squeezelite/patches/patch-output_pack_c
Normal file
11
audio/squeezelite/patches/patch-output_pack_c
Normal file
@ -0,0 +1,11 @@
|
||||
$OpenBSD: patch-output_pack_c,v 1.1.1.1 2016/03/21 22:28:24 sthen Exp $
|
||||
--- output_pack.c.orig Fri Feb 13 23:15:17 2015
|
||||
+++ output_pack.c Fri Feb 13 23:15:28 2015
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
// Scale and pack functions
|
||||
|
||||
+#include <stdint.h>
|
||||
#include "squeezelite.h"
|
||||
|
||||
#define MAX_SCALESAMPLE 0x7fffffffffffLL
|
12
audio/squeezelite/patches/patch-squeezelite_h
Normal file
12
audio/squeezelite/patches/patch-squeezelite_h
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-squeezelite_h,v 1.1.1.1 2016/03/21 22:28:24 sthen Exp $
|
||||
--- squeezelite.h.orig Fri Feb 13 23:14:05 2015
|
||||
+++ squeezelite.h Fri Feb 13 23:14:08 2015
|
||||
@@ -46,7 +46,7 @@
|
||||
#define OSX 0
|
||||
#define WIN 1
|
||||
#define FREEBSD 0
|
||||
-#elif defined(__FreeBSD__)
|
||||
+#elif defined(__FreeBSD__) || defined(__OpenBSD__)
|
||||
#define LINUX 0
|
||||
#define OSX 0
|
||||
#define WIN 0
|
7
audio/squeezelite/pkg/DESCR
Normal file
7
audio/squeezelite/pkg/DESCR
Normal file
@ -0,0 +1,7 @@
|
||||
Squeezelite is a small squeezebox emulator using PortAudio. It is
|
||||
headless, and must be controlled via Logitech Media Server. It supports
|
||||
gapless playback, client synchronization (allowing groups of clients for
|
||||
simultaneous playback), and direct streaming for those LMS plugins which
|
||||
require it. It has a built-in decoder for PCM (wav/aiff); other formats
|
||||
(flac, mp3, ogg, aac, wma, alac) are available via libraries. It has
|
||||
resampling support via libsoxr.
|
2
audio/squeezelite/pkg/PLIST
Normal file
2
audio/squeezelite/pkg/PLIST
Normal file
@ -0,0 +1,2 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2016/03/21 22:28:24 sthen Exp $
|
||||
@bin bin/squeezelite
|
Loading…
x
Reference in New Issue
Block a user