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:
sthen 2016-03-21 22:28:24 +00:00
parent 1e8fd10fd6
commit ae2290d52f
6 changed files with 78 additions and 0 deletions

View 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>

View File

@ -0,0 +1,2 @@
SHA256 (squeezelite-v1.8.tar.gz) = MSqPTladVRqd4FwV7309NuHZDBweiYftvQKADjPetas=
SIZE (squeezelite-v1.8.tar.gz) = 73994

View 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

View 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

View 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.

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2016/03/21 22:28:24 sthen Exp $
@bin bin/squeezelite