Blame


1 3baa2617 2022-02-16 op PROG= amused
2 3baa2617 2022-02-16 op SRCS= amused.c control.c log.c xmalloc.c player.c ctl.c playlist.c \
3 0ea0da1e 2022-02-23 op player_flac.c player_123.c player_opus.c player_oggvorbis.c
4 3baa2617 2022-02-16 op
5 3baa2617 2022-02-16 op .include "amused-version.mk"
6 3baa2617 2022-02-16 op
7 d307e5a2 2022-02-19 op CPPFLAGS += -I/usr/local/include -I/usr/local/include/opus
8 3baa2617 2022-02-16 op
9 3baa2617 2022-02-16 op LDADD = -levent -lm -lsndio -lutil \
10 0ea0da1e 2022-02-23 op -L/usr/local/lib -lmpg123 -lvorbisfile -lopusfile -lFLAC
11 3baa2617 2022-02-16 op DPADD = ${LIBEVENT} ${LIBM} ${LIBSNDIO} ${LIBUTIL}
12 3baa2617 2022-02-16 op
13 3baa2617 2022-02-16 op .if "${AMUSED_RELEASE}" == "Yes"
14 3baa2617 2022-02-16 op PREFIX ?= /usr/local
15 3baa2617 2022-02-16 op BINDIR ?= ${PREFIX}/bin
16 3baa2617 2022-02-16 op MANDIR ?= ${PREFIX}/man/man
17 3baa2617 2022-02-16 op .else
18 8c511b48 2022-02-16 op NOMAN = Yes
19 3baa2617 2022-02-16 op CFLAGS += -Werror -Wall -Wstrict-prototypes -Wunused-variable
20 3baa2617 2022-02-16 op PREFIX ?= ${HOME}
21 3baa2617 2022-02-16 op BINDIR ?= ${PREFIX}/bin
22 3baa2617 2022-02-16 op BINOWN ?= ${USER}
23 3baa2617 2022-02-16 op .if !defined(BINGRP)
24 3baa2617 2022-02-16 op BINGRP != id -g -n
25 3baa2617 2022-02-16 op .endif
26 3baa2617 2022-02-16 op DEBUG = -O0 -g
27 3baa2617 2022-02-16 op .endif
28 3baa2617 2022-02-16 op
29 3baa2617 2022-02-16 op release: clean
30 3baa2617 2022-02-16 op sed -i -e 's/_RELEASE=No/_RELEASE=Yes/' amused-version.mk
31 3baa2617 2022-02-16 op ${MAKE} dist
32 3baa2617 2022-02-16 op sed -i -e 's/_RELEASE=Yes/_RELEASE=No/' amused-version.mk
33 3baa2617 2022-02-16 op
34 3baa2617 2022-02-16 op dist: clean
35 3baa2617 2022-02-16 op mkdir /tmp/amused-${AMUSED_VERSION}
36 3baa2617 2022-02-16 op pax -rw * /tmp/amused-${AMUSED_VERSION}
37 3baa2617 2022-02-16 op find /tmp/amused-${AMUSED_VERSION} -type d -name obj -delete
38 3baa2617 2022-02-16 op rm /tmp/amused-${AMUSED_VERSION}/amused-dist.txt
39 3baa2617 2022-02-16 op tar -C /tmp -zcf amused-${AMUSED_VERSION}.tar.gz amused-${AMUSED_VERSION}
40 3baa2617 2022-02-16 op rm -rf /tmp/amused-${AMUSED_VERSION}
41 3baa2617 2022-02-16 op tar -ztf amused-${AMUSED_VERSION}.tar.gz | \
42 3baa2617 2022-02-16 op sed -e 's/^amused-${AMUSED_VERSION}//' | \
43 3baa2617 2022-02-16 op sort > amused-dist.txt.new
44 aafae3df 2022-02-16 op diff -u amused-dist.txt{,.new}
45 3baa2617 2022-02-16 op rm amused-dist.txt.new
46 3baa2617 2022-02-16 op
47 3baa2617 2022-02-16 op .include <bsd.prog.mk>