mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
a8a919bec5
- Update kqueue patch to workaround issue waiting for the file transfer to complete Submitted by: se
60 lines
1.5 KiB
Makefile
60 lines
1.5 KiB
Makefile
# Created by: Mikhail Teterin <mi@aldan.algebra.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= minidlna
|
|
PORTVERSION= 1.1.1
|
|
PORTREVISION= 5
|
|
PORTEPOCH= 1
|
|
CATEGORIES= net multimedia www
|
|
MASTER_SITES= SF
|
|
|
|
MAINTAINER= wg@FreeBSD.org
|
|
COMMENT= Media-server compatible with "Digital Life Network Alliance"
|
|
|
|
LIB_DEPENDS= libsqlite3.so:${PORTSDIR}/databases/sqlite3 \
|
|
libjpeg.so:${PORTSDIR}/graphics/jpeg \
|
|
libexif.so:${PORTSDIR}/graphics/libexif \
|
|
libid3tag.so:${PORTSDIR}/audio/libid3tag \
|
|
libogg.so:${PORTSDIR}/audio/libogg \
|
|
libvorbis.so:${PORTSDIR}/audio/libvorbis \
|
|
libFLAC.so:${PORTSDIR}/audio/flac \
|
|
libavformat.so:${PORTSDIR}/multimedia/ffmpeg
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --with-db-path=/var/db/minidlna \
|
|
--with-os-url="http://www.FreeBSD.org"
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
USES= iconv
|
|
USE_AUTOTOOLS= autoconf aclocal automake
|
|
AUTOMAKE_ARGS= --add-missing
|
|
|
|
PKGMESSAGE= ${WRKSRC}/pkg-message
|
|
SUB_FILES+= pkg-message
|
|
USE_RC_SUBR= minidlna
|
|
SUB_LIST+= USER=${USERS}
|
|
|
|
USERS= dlna
|
|
GROUPS= dlna
|
|
|
|
OPTIONS_DEFINE= DEBUG KQUEUE NLS
|
|
OPTIONS_DEFAULT=KQUEUE
|
|
OPTIONS_SUB= yes
|
|
|
|
DEBUG_CFLAGS= -DDEBUG
|
|
KQUEUE_DESC= Experimental patch for automatic rescan using kqueue(2)
|
|
NLS_USES= gettext
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MKQUEUE}
|
|
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-kqueue
|
|
.endif
|
|
|
|
post-install:
|
|
${INSTALL_MAN} ${WRKSRC}/*.5 ${STAGEDIR}${MANPREFIX}/man/man5/
|
|
${INSTALL_MAN} ${WRKSRC}/*.8 ${STAGEDIR}${MANPREFIX}/man/man8/
|
|
${INSTALL_DATA} ${WRKSRC}/minidlna.conf ${STAGEDIR}${PREFIX}/etc/minidlna.conf.sample
|
|
|
|
.include <bsd.port.mk>
|