View | Details | Raw Unified | Return to bug 247041 | Differences between
and this patch

Collapse All | Expand All

(-)audio/squeezelite/Makefile (+56 lines)
Line 0 Link Here
1
# Created by: jockl <jockl@pianojockl.org>
2
# $FreeBSD$
3
4
PORTNAME=	squeezelite
5
PORTVERSION=	1.9.7.1253
6
CATEGORIES=	audio
7
8
MAINTAINER=	jockl@pianojockl.org
9
COMMENT=	Lightweight headless squeezebox player for Logitech Media Server
10
11
LICENSE=	GPLv3
12
13
LIB_DEPENDS=	libfaad.so:audio/faad \
14
		libportaudio.so:audio/portaudio \
15
		libmpg123.so:audio/mpg123 \
16
		libasound.so:audio/alsa-lib \
17
		libFLAC.so:audio/flac \
18
		libvorbis.so:audio/libvorbis \
19
		libogg.so:audio/libogg
20
21
USES=		gmake ssl
22
USE_GITHUB=	yes
23
GH_ACCOUNT=	ralph-irving
24
GH_PROJECT=	squeezelite
25
GH_TAGNAME=	7b13fd9
26
27
OPTIONS_DEFINE=	SSL FFMPEG RESAMPLE DSD SELFPIPE OPUS LINKALL
28
OPTIONS_DEFAULT=SSL RESAMPLE FFMPEG DSD LINKALL
29
30
RESAMPLE_DESC=		Resampling
31
SELFPIPE_DESC=		Selfpipe
32
LINKALL_DESC=		Link all libraries at build time
33
DSD_DESC=		Direct Stream Digital
34
SSL_VARS=	MENV+=" -DUSE_SSL -DNO_SSL_SYM"
35
RESAMPLE_VARS=	MENV+=" -DRESAMPLE"
36
FFMPEG_VARS=	MENV+=" -DFFMPEG"
37
DSD_VARS=	MENV+=" -DDSD"
38
VISEXPORT_VARS=	MENV+=" -DVISEXPORT"
39
LINKALL_VARS=	MENV+=" -DLINKALL"
40
SELFPIPE_VARS=	MENV+=" -DSELFPIPE"
41
OPUS_VARS=	MENV+=" -DOPUS"
42
43
MAKE_ENV=	OPTS="-DGPIO ${MENV}"
44
45
OPUS_LIB_DEPENDS=	libopusfile.so:audio/opusfile \
46
			libopus.so:audio/opus
47
FFMPEG_LIB_DEPENDS=	libavcodec.so:multimedia/ffmpeg
48
RESAMPLE_LIB_DEPENDS=	libsoxr.so:audio/libsoxr
49
50
PLIST_FILES=    bin/${PORTNAME} man/man1/${PORTNAME}.1.gz
51
52
do-install:
53
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
54
	${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1
55
56
.include <bsd.port.mk>
(-)audio/squeezelite/distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1591519528
2
SHA256 (ralph-irving-squeezelite-1.9.7.1253-7b13fd9_GH0.tar.gz) = c79c5194d3ac39c4c11b0489c12a4158c6aff86eef4b5042494ad34393ebae0c
3
SIZE (ralph-irving-squeezelite-1.9.7.1253-7b13fd9_GH0.tar.gz) = 166420
(-)audio/squeezelite/files/patch-Makefile (+28 lines)
Line 0 Link Here
1
--- Makefile.orig	2020-06-04 15:03:39 UTC
2
+++ Makefile
3
@@ -1,3 +1,7 @@
4
+# FreeBSD's portaudio lives in usr/local
5
+CPPFLAGS = -I/usr/local/include -I/usr/local/include/portaudio2 -I/usr/local/include/opus
6
+LDFLAGS = -L/usr/local/lib /usr/local/lib/libportaudio.a -lm
7
+
8
 #Cross compile support - create a Makefile which defines these three variables and then includes this Makefile...
9
 CFLAGS	?= -Wall -fPIC -O2
10
 CFLAGS	+= -fcommon
11
@@ -24,7 +28,7 @@ OPT_PULSEAUDIO = -DPULSEAUDIO
12
 SOURCES = \
13
 	main.c slimproto.c buffer.c stream.c utils.c \
14
 	output.c output_alsa.c output_pa.c output_stdout.c output_pack.c output_pulse.c decode.c \
15
-	flac.c pcm.c mad.c vorbis.c mpg.c
16
+	flac.c pcm.c vorbis.c mpg.c
17
 
18
 SOURCES_DSD      = dsd.c dop.c dsd2pcm/dsd2pcm.c
19
 SOURCES_FF       = ffmpeg.c
20
@@ -45,7 +49,7 @@ LINK_PULSEAUDIO  = -lpulse
21
 LINK_SSL         = -lssl -lcrypto
22
 LINK_ALAC        = -lalac
23
 
24
-LINKALL          = -lmad -lmpg123 -lFLAC -lvorbisfile -lvorbis -logg
25
+LINKALL          = -lmpg123 -lFLAC -lvorbisfile -lvorbis -logg
26
 LINKALL_FF       = -lavformat -lavcodec -lavutil
27
 LINKALL_RESAMPLE = -lsoxr
28
 LINKALL_IR       = -llirc_client
(-)audio/squeezelite/files/patch-decode.c (+15 lines)
Line 0 Link Here
1
--- decode.c.orig	2020-06-07 11:02:26 UTC
2
+++ decode.c
3
@@ -183,11 +183,7 @@ void decode_init(log_level level, const char *include_
4
 	if (!strstr(exclude_codecs, "pcm")	&& (!include_codecs || (order_codecs = strstr(include_codecs, "pcm"))))
5
 		sort_codecs((include_codecs ? order_codecs - include_codecs : i), register_pcm());
6
 
7
-	// try mad then mpg for mp3 unless command line option passed
8
-	if (!(strstr(exclude_codecs, "mp3") || strstr(exclude_codecs, "mad")) &&
9
-		(!include_codecs || (order_codecs = strstr(include_codecs, "mp3")) || (order_codecs = strstr(include_codecs, "mad"))))
10
-		sort_codecs((include_codecs ? order_codecs - include_codecs : i), register_mad());
11
-	else if (!(strstr(exclude_codecs, "mp3") || strstr(exclude_codecs, "mpg")) &&
12
+	if (!(strstr(exclude_codecs, "mp3") || strstr(exclude_codecs, "mpg")) &&
13
 		(!include_codecs || (order_codecs = strstr(include_codecs, "mp3")) || (order_codecs = strstr(include_codecs, "mpg"))))
14
 		sort_codecs((include_codecs ? order_codecs - include_codecs : i), register_mpg());
15
 
(-)audio/squeezelite/files/patch-main.c (+11 lines)
Line 0 Link Here
1
--- main.c.orig	2020-06-07 11:03:18 UTC
2
+++ main.c
3
@@ -51,7 +51,7 @@
4
 #else
5
 #define CODECS_DSD  ""
6
 #endif
7
-#define CODECS_MP3  " (mad,mpg for specific mp3 codec)"
8
+#define CODECS_MP3  ""
9
 
10
 #define CODECS CODECS_BASE CODECS_AAC CODECS_FF CODECS_OPUS CODECS_DSD CODECS_MP3
11
 
(-)audio/squeezelite/files/patch-squeezelite.h (+34 lines)
Line 0 Link Here
1
--- squeezelite.h.orig	2020-06-07 11:03:51 UTC
2
+++ squeezelite.h
3
@@ -191,7 +191,6 @@
4
 
5
 #if LINUX
6
 #define LIBFLAC "libFLAC.so.8"
7
-#define LIBMAD  "libmad.so.0"
8
 #define LIBMPG "libmpg123.so.0"
9
 #define LIBVORBIS "libvorbisfile.so.3"
10
 #define LIBOPUS "libopusfile.so.0"
11
@@ -206,7 +205,6 @@
12
 
13
 #if OSX
14
 #define LIBFLAC "libFLAC.8.dylib"
15
-#define LIBMAD  "libmad.0.dylib"
16
 #define LIBMPG "libmpg123.0.dylib"
17
 #define LIBVORBIS "libvorbisfile.3.dylib"
18
 #define LIBTREMOR "libvorbisidec.1.dylib"
19
@@ -220,7 +218,6 @@
20
 
21
 #if WIN
22
 #define LIBFLAC "libFLAC.dll"
23
-#define LIBMAD  "libmad-0.dll"
24
 #define LIBMPG "libmpg123-0.dll"
25
 #define LIBVORBIS "libvorbisfile.dll"
26
 #define LIBOPUS "libopusfile-0.dll"
27
@@ -234,7 +231,6 @@
28
 
29
 #if FREEBSD
30
 #define LIBFLAC "libFLAC.so.8"
31
-#define LIBMAD  "libmad.so.0"
32
 #define LIBMPG "libmpg123.so.0"
33
 #define LIBVORBIS "libvorbisfile.so.3"
34
 #define LIBTREMOR "libvorbisidec.so.1"
(-)audio/squeezelite/pkg-descr (+3 lines)
Line 0 Link Here
1
Lightweight headless squeezebox player for Logitech Media Server
2
3
WWW: https://github.com/ralph-irving/squeezelite

Return to bug 247041