Blame
Date:
Wed Feb 23 22:38:30 2022 UTC
Message:
switch from libmad to libmpg123 libmpg123 is more "loud" than libmad, at least for the mp3s that I have around. Is also newer and maintained. I've heard is also faster, but amused is so simple that it doesn't make any difference.
01
2022-02-16
op
PROG= amused
02
2022-02-16
op
SRCS= amused.c control.c log.c xmalloc.c player.c ctl.c playlist.c \
03
2022-02-23
op
player_flac.c player_123.c player_opus.c player_oggvorbis.c
04
2022-02-16
op
05
2022-02-16
op
.include "amused-version.mk"
06
2022-02-16
op
07
2022-02-19
op
CPPFLAGS += -I/usr/local/include -I/usr/local/include/opus
08
2022-02-16
op
09
2022-02-16
op
LDADD = -levent -lm -lsndio -lutil \
10
2022-02-23
op
-L/usr/local/lib -lmpg123 -lvorbisfile -lopusfile -lFLAC
11
2022-02-16
op
DPADD = ${LIBEVENT} ${LIBM} ${LIBSNDIO} ${LIBUTIL}
12
2022-02-16
op
13
2022-02-16
op
.if "${AMUSED_RELEASE}" == "Yes"
14
2022-02-16
op
PREFIX ?= /usr/local
15
2022-02-16
op
BINDIR ?= ${PREFIX}/bin
16
2022-02-16
op
MANDIR ?= ${PREFIX}/man/man
17
2022-02-16
op
.else
18
2022-02-16
op
NOMAN = Yes
19
2022-02-16
op
CFLAGS += -Werror -Wall -Wstrict-prototypes -Wunused-variable
20
2022-02-16
op
PREFIX ?= ${HOME}
21
2022-02-16
op
BINDIR ?= ${PREFIX}/bin
22
2022-02-16
op
BINOWN ?= ${USER}
23
2022-02-16
op
.if !defined(BINGRP)
24
2022-02-16
op
BINGRP != id -g -n
25
2022-02-16
op
.endif
26
2022-02-16
op
DEBUG = -O0 -g
27
2022-02-16
op
.endif
28
2022-02-16
op
29
2022-02-16
op
release: clean
30
2022-02-16
op
sed -i -e 's/_RELEASE=No/_RELEASE=Yes/' amused-version.mk
31
2022-02-16
op
${MAKE} dist
32
2022-02-16
op
sed -i -e 's/_RELEASE=Yes/_RELEASE=No/' amused-version.mk
33
2022-02-16
op
34
2022-02-16
op
dist: clean
35
2022-02-16
op
mkdir /tmp/amused-${AMUSED_VERSION}
36
2022-02-16
op
pax -rw * /tmp/amused-${AMUSED_VERSION}
37
2022-02-16
op
find /tmp/amused-${AMUSED_VERSION} -type d -name obj -delete
38
2022-02-16
op
rm /tmp/amused-${AMUSED_VERSION}/amused-dist.txt
39
2022-02-16
op
tar -C /tmp -zcf amused-${AMUSED_VERSION}.tar.gz amused-${AMUSED_VERSION}
40
2022-02-16
op
rm -rf /tmp/amused-${AMUSED_VERSION}
41
2022-02-16
op
tar -ztf amused-${AMUSED_VERSION}.tar.gz | \
42
2022-02-16
op
sed -e 's/^amused-${AMUSED_VERSION}//' | \
43
2022-02-16
op
sort > amused-dist.txt.new
44
2022-02-16
op
diff -u amused-dist.txt{,.new}
45
2022-02-16
op
rm amused-dist.txt.new
46
2022-02-16
op
47
2022-02-16
op
.include <bsd.prog.mk>
Omar Polo