Introduce MANPAGES option; cleanup port (typo, remove unused gnome bit).
PR: 253095 Reported by: moonlapse81@gmail.com MFH: 2021Q1
This commit is contained in:
parent
a2cbd1786b
commit
e2708c398b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=564631
2 changed files with 13 additions and 9 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
PORTNAME= musicpd
|
||||
PORTVERSION= 0.22.4
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= audio
|
||||
MASTER_SITES= https://www.musicpd.org/download/mpd/${PORTVERSION:R}/
|
||||
DISTNAME= mpd-${PORTVERSION}
|
||||
|
@ -12,19 +13,15 @@ COMMENT= Remote-controllable music daemon
|
|||
LICENSE= GPLv2+
|
||||
LICENSE_FILE= ${WRKSRC}/COPYING
|
||||
|
||||
BUILD_DEPENDS= ${LOCALBASE}/bin/sphinx-build:textproc/py-sphinx@${PY_FLAVOR}
|
||||
LIB_DEPENDS= libboost_iostreams.so:devel/boost-libs \
|
||||
libicudata.so:devel/icu
|
||||
|
||||
USES= compiler:c++17-lang localbase:ldflags meson pkgconfig \
|
||||
python:build tar:xz
|
||||
|
||||
USE_GNOME= glib20
|
||||
|
||||
USE_RC_SUBR= ${PORTNAME}
|
||||
MESON_ARGS= -Dauto_features=disabled \
|
||||
-Dbzip2=enabled \
|
||||
-Ddocumentation=enabled \
|
||||
-Dhttpd=true \
|
||||
-Dicu=enabled \
|
||||
-Doss=enabled \
|
||||
|
@ -36,7 +33,9 @@ PORTDOCS= AUTHORS README.md NEWS
|
|||
|
||||
SUB_FILES= pkg-message
|
||||
|
||||
OPTIONS_DEFINE= DOCS ID3TAG IPV6 ISO9660 SQLITE3 \
|
||||
OPTIONS_SUB= yes
|
||||
|
||||
OPTIONS_DEFINE= DOCS ID3TAG IPV6 ISO9660 MANPAGES SQLITE3 \
|
||||
PROXYDB VORBISENC ZZIP
|
||||
|
||||
OPTIONS_RADIO= RESAMPLER ZEROCONF
|
||||
|
@ -78,9 +77,12 @@ WILDMIDI_DESC= WildMIDI support (MIDI files)
|
|||
YAJL_DESC= JSON support via libyajl
|
||||
ZZIP_DESC= Support for zzip archives
|
||||
|
||||
OPTIONS_DEFAULT=CURL FFMPEG FLAC ID3TAG LAME OPUS \
|
||||
OPTIONS_DEFAULT=CURL FFMPEG FLAC ID3TAG LAME MANPAGES OPUS \
|
||||
PLAYLISTS PROXYDB SNDFILE VORBIS VORBISENC
|
||||
|
||||
MANPAGES_MESON_ENABLED= documentation
|
||||
MANPAGES_BUILD_DEPENDS= ${LOCALBASE}/bin/sphinx-build:textproc/py-sphinx@${PY_FLAVOR}
|
||||
|
||||
# Decoder plugins
|
||||
ADPLUG_MESON_ENABLED= adplug
|
||||
ADPLUG_LIB_DEPENDS= libadplug.so:audio/libadplug
|
||||
|
@ -196,7 +198,7 @@ SOUNDCLOUD_IMPLIES= CURL YAJL
|
|||
TIDAL_MESON_ENABLED= tidal
|
||||
TIDAL_IMPLIES= CURL YAJL
|
||||
|
||||
# Misc library suppore
|
||||
# Misc library support
|
||||
AVAHI_MESON_ON= -Dzeroconf=avahi
|
||||
AVAHI_LIB_DEPENDS= libavahi-client.so:net/avahi-app
|
||||
MDNSRESPONDER_MESON_ON= -Dzeroconf=bonjour
|
||||
|
@ -259,10 +261,12 @@ post-patch:
|
|||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/_build/mpd \
|
||||
${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
||||
.if ${PORT_OPTIONS:MMANPAGES}
|
||||
${INSTALL_MAN} ${WRKSRC}/_build/doc/${PORTNAME}.1 \
|
||||
${STAGEDIR}${PREFIX}/man/man1
|
||||
${INSTALL_MAN} ${WRKSRC}/_build/doc/${PORTNAME}.conf.5 \
|
||||
${STAGEDIR}${PREFIX}/man/man5
|
||||
.endif
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/mpdconf.example \
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
bin/musicpd
|
||||
@sample etc/musicpd.conf.sample
|
||||
man/man1/musicpd.1.gz
|
||||
man/man5/musicpd.conf.5.gz
|
||||
%%MANPAGES%%man/man1/musicpd.1.gz
|
||||
%%MANPAGES%%man/man5/musicpd.conf.5.gz
|
||||
|
|
Loading…
Reference in a new issue