freebsd-ports/audio/pacpl/Makefile
Stefan Eßer b7f05445c0 Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
2022-09-07 23:10:59 +02:00

103 lines
3.4 KiB
Makefile

PORTNAME= pacpl
PORTVERSION= 6.1.3
CATEGORIES= audio
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Perl Audio Converter
WWW= http://vorzox.wix.com/pacpl
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= p5-Audio-FLAC-Header>0:audio/p5-Audio-FLAC-Header \
p5-Audio-Scan>0:audio/p5-Audio-Scan \
p5-CDDB_get>0:audio/p5-CDDB_get \
p5-MP3-Tag>0:audio/p5-MP3-Tag \
p5-Parallel-ForkManager>0:devel/p5-Parallel-ForkManager \
p5-Switch>0:lang/p5-Switch \
p5-String-ShellQuote>0:textproc/p5-String-ShellQuote
USES= perl5 shebangfix
SHEBANG_FILES= pacpl.in plugins/gnome/nautilus/PACPL-Convert \
plugins/kde/PACPL-Konvert
NO_ARCH= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-code
OPTIONS_DEFINE= APE CDPARANOIA DOCS FAAC FAAD FFMPEG KDE4 \
LAME LAUDIO MUSEPACK MPLAYER OPTIMFROG OPUS \
SNDFILE SOX SPEEX TOOLAME TTA VORBIS WAVPACK
OPTIONS_DEFAULT= CDPARANOIA FAAC FAAD FFMPEG LAME VORBIS
OPTIONS_SUB= yes
KDE4_DESC= Konqueror/Dolphin integration
LAUDIO_DESC= Laudio support
OPTIMFROG_DESC= OptimFROG lossless audio support
OPUS_DESC= Ogg Opus audio codec support
SOX_DESC= Audio conversion support via SoX
APE_RUN_DEPENDS= mac:audio/mac
CDPARANOIA_RUN_DEPENDS= cdparanoia:audio/cdparanoia
FAAC_RUN_DEPENDS= faac:audio/faac
FAAD_RUN_DEPENDS= faad:audio/faad
FFMPEG_RUN_DEPENDS= ffmpeg:multimedia/ffmpeg
LAME_RUN_DEPENDS= lame:audio/lame
LAUDIO_RUN_DEPENDS= laudio:audio/linux-laudio
MPLAYER_RUN_DEPENDS= mplayer:multimedia/mplayer
MUSEPACK_RUN_DEPENDS= mpcenc:audio/musepack
OPTIMFROG_RUN_DEPENDS= ofr:audio/optimfrog
OPUS_RUN_DEPENDS= opusenc:audio/opus-tools
SNDFILE_RUN_DEPENDS= sndfile-convert:audio/libsndfile
SOX_RUN_DEPENDS= sox:audio/sox
SPEEX_RUN_DEPENDS= speexenc:audio/speex
TOOLAME_RUN_DEPENDS= toolame:audio/toolame
TTA_RUN_DEPENDS= ttaenc:audio/tta
VORBIS_RUN_DEPENDS= vorbiscomment:audio/vorbis-tools
WAVPACK_RUN_DEPENDS= wavpack:audio/wavpack
post-patch:
@${REINPLACE_CMD} -e \
's|"@sysconfdir@|"${ETCDIR}| ; \
s|"@pkgdatadir@|"${DATADIR}| ; \
s|^/etc/pacpl|${ETCDIR}|' ${WRKSRC}/pacpl.in
@${REINPLACE_CMD} -e \
's| /etc/pacpl| ${ETCDIR}|' ${WRKSRC}/pacpl.conf
@${REINPLACE_CMD} -e \
's|=/etc/pacpl|=${ETCDIR}| ; \
s|=/usr/bin|=${PREFIX}/libexec|' \
${WRKSRC}/plugins/kde/pacpl.desktop
@${MV} ${WRKSRC}/pacpl.in ${WRKSRC}/pacpl
do-build:
@(cd ${WRKSRC} && pod2man pacpl pacpl.1)
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/pacpl ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/pacpl.1 ${STAGEDIR}${MANPREFIX}/man/man1
@${MKDIR} ${STAGEDIR}${ETCDIR}
${INSTALL_DATA} ${WRKSRC}/pacpl.png ${STAGEDIR}${ETCDIR}
.for i in codecs.conf pacpl.conf
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${ETCDIR}/${i}.sample
.endfor
@${MKDIR} ${STAGEDIR}${ETCDIR}/modules
${INSTALL_DATA} ${WRKSRC}/extra/sample.m ${STAGEDIR}${ETCDIR}/modules
@${MKDIR} ${STAGEDIR}${DATADIR}/locale
${INSTALL_DATA} ${WRKSRC}/po/*.po ${STAGEDIR}${DATADIR}/locale
${INSTALL_SCRIPT} ${WRKSRC}/plugins/gnome/nautilus/PACPL-Convert \
${STAGEDIR}${PREFIX}/libexec
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/ChangeLog ${WRKSRC}/README \
${WRKSRC}/extra/README.module ${STAGEDIR}${DOCSDIR}
do-install-KDE4-on:
${INSTALL_SCRIPT} ${WRKSRC}/plugins/kde/PACPL-Konvert \
${STAGEDIR}${PREFIX}/libexec
@${MKDIR} ${STAGEDIR}${PREFIX}/share/kde4/services/ServiceMenus
${INSTALL_DATA} ${WRKSRC}/plugins/kde/pacpl.desktop \
${STAGEDIR}${PREFIX}/share/kde4/services/ServiceMenus
.include <bsd.port.mk>