blob: a0cea4df4fc5a3c29eae8d50f4aff9c76bb1f667 (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Created by: Mikhail Teterin <mi@aldan.algebra.com>
# $FreeBSD$
PORTNAME= minidlna
PORTVERSION= 1.0.25
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= net multimedia www
MASTER_SITES= SF
DISTFILES= ${PORTNAME}_${PORTVERSION}_src.tar.gz
MAINTAINER= wg@FreeBSD.org
COMMENT= Media-server compatible with "Digital Life Network Alliance"
LIB_DEPENDS= sqlite3:${PORTSDIR}/databases/sqlite3 \
jpeg:${PORTSDIR}/graphics/jpeg \
exif:${PORTSDIR}/graphics/libexif \
id3tag:${PORTSDIR}/audio/libid3tag \
ogg:${PORTSDIR}/audio/libogg \
vorbis:${PORTSDIR}/audio/libvorbis \
FLAC:${PORTSDIR}/audio/flac \
avformat:${PORTSDIR}/multimedia/ffmpeg
MAKE_JOBS_SAFE= yes
MAKEFILE= ${FILESDIR}/BSDmakefile
MAKE_ENV+= FILESDIR="${FILESDIR}" INSTALL_DATA="${INSTALL_DATA}"
EXTRACT_AFTER_ARGS=--exclude getifaddr.c
PKGMESSAGE= ${WRKSRC}/pkg-message
SUB_FILES+= pkg-message
USE_RC_SUBR= minidlna
SUB_LIST+= USER=${USERS}
USERS= dlna
GROUPS= dlna
.include <bsd.port.options.mk>
do-configure:
.if ${PORT_OPTIONS:MNLS}
${CP} ${FILESDIR}/config.h.in ${WRKSRC}/config.h
.else
${SED} 's,^#define HAVE_ICONV_H,/* & */,' ${FILESDIR}/config.h.in > \
${WRKSRC}/config.h
.endif
post-install:
${FMT} ${PKGMESSAGE}
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 800500
EXTRA_PATCHES= ${FILESDIR}/scandir-patch
.endif
.include <bsd.port.post.mk>
|