freebsd-ports/net/minidlna/Makefile

52 lines
1.2 KiB
Makefile

PORTNAME= minidlna
PORTVERSION= 1.3.0
PORTREVISION= 3
PORTEPOCH= 1
CATEGORIES= net multimedia www
MAINTAINER= glebius@FreeBSD.org
COMMENT= Media-server compatible with "Digital Life Network Alliance"
WWW= http://minidlna.sourceforge.net
LICENSE= GPLv2
LIB_DEPENDS= libsqlite3.so:databases/sqlite3 \
libexif.so:graphics/libexif \
libid3tag.so:audio/libid3tag \
libogg.so:audio/libogg \
libvorbis.so:audio/libvorbis \
libFLAC.so:audio/flac \
libavformat.so:multimedia/ffmpeg
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-db-path=/var/db/minidlna \
--with-os-url="http://www.FreeBSD.org"
USES= autoreconf:2.69 cpe gettext-tools iconv jpeg localbase
CPE_VENDOR= minidlna_project
USE_GITHUB= yes
GH_ACCOUNT= glebius
GH_TAGNAME= 4f6a473
PKGMESSAGE= ${WRKSRC}/pkg-message
SUB_FILES+= pkg-message
USE_RC_SUBR= minidlna
SUB_LIST+= USER=${USERS}
USERS= dlna
GROUPS= dlna
OPTIONS_DEFINE= DEBUG NLS
OPTIONS_SUB= yes
DEBUG_CFLAGS= -DDEBUG
NLS_USES= gettext-runtime
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>