mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
70 lines
2.4 KiB
Tcl
70 lines
2.4 KiB
Tcl
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
|
|
|
|
PortSystem 1.0
|
|
|
|
name ReadyMedia
|
|
version 1.3.3
|
|
revision 3
|
|
categories net multimedia
|
|
maintainers {makr @mohd-akram} openmaintainer
|
|
license GPL-2
|
|
|
|
description a UPnP (TM) A/V & DLNA Media Server
|
|
|
|
long_description ReadyMedia (formerly MiniDLNA) is server software \
|
|
with the aim of being fully compliant with \
|
|
DLNA/UPnP-AV clients.
|
|
|
|
homepage https://minidlna.sourceforge.net
|
|
master_sites sourceforge:project/minidlna/minidlna/${version}/
|
|
distname minidlna-${version}
|
|
dist_subdir minidlna
|
|
|
|
checksums rmd160 c5633889418bf51fc7924ed6e1cbca1eaf746a80 \
|
|
sha256 39026c6d4a139b9180192d1c37225aa3376fdf4f1a74d7debbdbb693d996afa4 \
|
|
size 824527
|
|
|
|
depends_build port:gettext
|
|
|
|
depends_lib path:lib/libavcodec.dylib:ffmpeg \
|
|
port:flac \
|
|
path:include/turbojpeg.h:libjpeg-turbo \
|
|
port:libid3tag \
|
|
port:libexif \
|
|
port:libiconv \
|
|
port:libogg \
|
|
port:libvorbis \
|
|
port:sqlite3 \
|
|
port:gettext-runtime \
|
|
port:zlib
|
|
|
|
# https://sourceforge.net/p/minidlna/bugs/351/
|
|
patchfiles patch-kqueue.diff \
|
|
patch-ffmpeg7.diff
|
|
|
|
set db_path ${prefix}/var/cache/minidlna
|
|
|
|
configure.args --disable-silent-rules \
|
|
--with-db-path=${db_path} \
|
|
--with-log-path=${prefix}/var/log
|
|
|
|
add_users minidlna group=minidlna home=${db_path} \
|
|
realname=ReadyMedia shell=/usr/bin/false
|
|
|
|
startupitem.create yes
|
|
startupitem.executable \
|
|
${prefix}/sbin/minidlnad -S -u minidlna -g minidlna \
|
|
-P ${prefix}/var/run/minidlna/minidlna.pid \
|
|
-f ${prefix}/etc/minidlna.conf
|
|
|
|
post-destroot {
|
|
xinstall -d ${destroot}${prefix}/share/doc/minidlna
|
|
copy ${worksrcpath}/minidlna.conf \
|
|
${destroot}${prefix}/share/doc/minidlna/minidlna.conf
|
|
}
|
|
|
|
notes "
|
|
You may need to give daemondo Full Disk Access for ${name} to scan files when\
|
|
using the startup item.
|
|
"
|