blob: 14b2646e1122d1ef203f24e6df6a763c86c9cfc6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
PROG= minidlna
NO_MAN= Ha-ha...
OS!= uname
VERS!= uname -r
CFLAGS=-I${FILESDIR} -I${.CURDIR} -I${LOCALBASE}/include -I${LOCALBASE}/include/ffmpeg
CFLAGS+=-I${LOCALBASE}/include/libavutil
CFLAGS+=-DPREFIX='"${PREFIX}"' -DOS='"${OS}"' -DOSVERSION='"${VERS}"'
CFLAGS+=-Wformat -Wunused -Wall
CFLAGS+=-Wno-deprecated-declarations
LDADD+= -L${LOCALBASE}/lib
LDADD+= -lsqlite3 -ljpeg -lexif -lid3tag -logg -lvorbis -lFLAC -lavformat
SRCS= albumart.c daemonize.c getifaddr.c image_utils.c log.c \
metadata.c minidlna.c minissdp.c minixml.c options.c playlist.c \
scanner.c sql.c upnpdescgen.c upnpevents.c upnpglobalvars.c \
upnphttp.c upnpreplyparse.c upnpsoap.c utils.c uuid.c
# TiVo-related sources still need massaging to compile on BSD:
# SRCS+= tivo_beacon.c tivo_commands.c tivo_utils.c
.PATH: ${FILESDIR} ${.CURDIR}/tagutils
SRCS+= misc.c tagutils.c textutils.c
WARNS= 3
BINDIR= ${PREFIX}/sbin
beforeinstall:
${INSTALL_DATA} ${.CURDIR}/minidlna.conf ${PREFIX}/etc/minidlna.conf.sample
test -e ${PREFIX}/etc/minidlna.conf || \
${INSTALL_DATA} ${.CURDIR}/minidlna.conf ${PREFIX}/etc/minidlna.conf
.include <bsd.prog.mk>
|