aboutsummaryrefslogtreecommitdiff
path: root/audio/abcde/Makefile
diff options
context:
space:
mode:
authorThomas Zander <riggs@FreeBSD.org>2015-09-13 10:45:01 +0000
committerThomas Zander <riggs@FreeBSD.org>2015-09-13 10:45:01 +0000
commitf640a1a9bd6041a592ed11c54a6251c6d30cf188 (patch)
tree5e3751a524ad3746e9a0d8b3452572d51262c38c /audio/abcde/Makefile
parenteee31f9b22b5fe9190ec44190cf833a8a3922dd6 (diff)
downloadports-f640a1a9bd6041a592ed11c54a6251c6d30cf188.tar.gz
ports-f640a1a9bd6041a592ed11c54a6251c6d30cf188.zip
Notes
Diffstat (limited to 'audio/abcde/Makefile')
-rw-r--r--audio/abcde/Makefile72
1 files changed, 37 insertions, 35 deletions
diff --git a/audio/abcde/Makefile b/audio/abcde/Makefile
index b423358c6f40..9fe9736b5fef 100644
--- a/audio/abcde/Makefile
+++ b/audio/abcde/Makefile
@@ -2,67 +2,69 @@
# $FreeBSD$
PORTNAME= abcde
-PORTVERSION= 2.6
+PORTVERSION= 2.7
CATEGORIES= audio
MASTER_SITES= http://abcde.einval.com/download/
MAINTAINER= ports@FreeBSD.org
COMMENT= Front-end shell script to encode CDs in flac/mp3/ogg/speex format
-LICENSE= GPLv2
+LICENSE= ART10 GPLv2
+LICENSE_COMB= dual
RUN_DEPENDS= cd-discid:${PORTSDIR}/audio/cd-discid \
cdparanoia:${PORTSDIR}/audio/cdparanoia \
- oggenc:${PORTSDIR}/audio/vorbis-tools \
lame:${PORTSDIR}/audio/lame \
${PYTHON_PKGNAMEPREFIX}eyed3>=0.7:${PORTSDIR}/audio/py-eyed3 \
+ oggenc:${PORTSDIR}/audio/vorbis-tools \
bash:${PORTSDIR}/shells/bash
+NO_ARCH= yes
NO_BUILD= yes
+
USES= python:run shebangfix
-SHEBANG_FILES= ${PORTNAME} cddb-tool
+SHEBANG_FILES= abcde cddb-tool
+
+SUB_FILES= pkg-message
+
+PLIST_FILES= bin/abcde bin/cddb-tool etc/abcde.conf.sample \
+ man/man1/abcde.1.gz man/man1/cddb-tool.1.gz
OPTIONS_GROUP= CODEC RIPPER
OPTIONS_GROUP_CODEC= AAC FLAC MPP OPUS SPEEX
OPTIONS_GROUP_RIPPER= CDDA2WAV DAGRAB
OPTIONS_DEFINE= NORMALIZE REPLAYGAIN
-NORMALIZE_DESC?= Enable normalize support
-REPLAYGAIN_DESC?= Enable (vorbis|mp3)gain support
-
-AAC_RUN_DEPENDS+= faac:${PORTSDIR}/audio/faac
-FLAC_RUN_DEPENDS+= flac:${PORTSDIR}/audio/flac
-MPP_RUN_DEPENDS+= mpcenc:${PORTSDIR}/audio/musepack
-OPUS_RUN_DEPENDS+= opusenc:${PORTSDIR}/audio/opus-tools
-SPEEX_RUN_DEPENDS+= speexenc:${PORTSDIR}/audio/speex
-CDDA2WAV_RUN_DEPENDS+= cdda2wav:${PORTSDIR}/sysutils/cdrtools
-DAGRAB_RUN_DEPENDS+= dagrab:${PORTSDIR}/audio/dagrab
-NORMALIZE_RUN_DEPENDS+= normalize:${PORTSDIR}/audio/normalize
-REPLAYGAIN_RUN_DEPENDS+=mp3gain:${PORTSDIR}/audio/mp3gain \
+AAC_RUN_DEPENDS= faac:${PORTSDIR}/audio/faac
+CDDA2WAV_RUN_DEPENDS= cdda2wav:${PORTSDIR}/sysutils/cdrtools
+DAGRAB_RUN_DEPENDS= dagrab:${PORTSDIR}/audio/dagrab
+FLAC_RUN_DEPENDS= flac:${PORTSDIR}/audio/flac
+MPP_RUN_DEPENDS= mpcenc:${PORTSDIR}/audio/musepack
+NORMALIZE_DESC= Enable normalize support
+NORMALIZE_RUN_DEPENDS= normalize:${PORTSDIR}/audio/normalize
+OPUS_RUN_DEPENDS= opusenc:${PORTSDIR}/audio/opus-tools
+REPLAYGAIN_DESC= Enable (vorbis|mp3)gain support
+REPLAYGAIN_RUN_DEPENDS= mp3gain:${PORTSDIR}/audio/mp3gain \
vorbisgain:${PORTSDIR}/audio/vorbisgain
+SPEEX_RUN_DEPENDS= speexenc:${PORTSDIR}/audio/speex
-PLIST_FILES= bin/abcde bin/cddb-tool etc/abcde.conf.sample \
- man/man1/abcde.1.gz man/man1/cddb-tool.1.gz
+post-extract:
+ @${LN} -sf abcde.conf ${WRKSRC}/abcde.conf.sample
post-patch:
- ${REINPLACE_CMD} -e 's#/etc/#${PREFIX}/etc/#g' \
- ${WRKSRC}/abcde ${WRKSRC}/abcde.1
+ @${REINPLACE_CMD} -e \
+ 's|\([[:space:]]\)\(/etc/abcde.conf\)|\1${PREFIX}\2|' \
+ ${WRKSRC}/abcde
+ @${REINPLACE_CMD} -e \
+ 's|\(fI\)\(/etc/abcde.conf\)|\1${PREFIX}\2|' \
+ ${WRKSRC}/abcde.1
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/abcde ${STAGEDIR}${PREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/cddb-tool ${STAGEDIR}${PREFIX}/bin
- ${INSTALL_DATA} ${WRKSRC}/abcde.conf \
- ${STAGEDIR}${PREFIX}/etc/abcde.conf.sample
- ${INSTALL_MAN} ${WRKSRC}/abcde.1 ${STAGEDIR}${PREFIX}/man/man1
- ${INSTALL_MAN} ${WRKSRC}/cddb-tool.1 ${STAGEDIR}${PREFIX}/man/man1
-
-post-install:
- @${ECHO_MSG} ""
- @${ECHO_MSG} "Please copy ${PREFIX}/etc/abcde.conf.sample to ~/.abcde.conf"
- @${ECHO_MSG} "and edit as necessary. Sane defaults have been set."
- @${ECHO_MSG} ""
- @${ECHO_MSG} "NOTE: If you have been using ${PORTNAME}-2.1.4 or older,"
- @${ECHO_MSG} "you must start with a fresh ~/.abcde.conf."
- @${ECHO_MSG} ""
+ (cd ${WRKSRC} && ${INSTALL_SCRIPT} abcde cddb-tool \
+ ${STAGEDIR}${PREFIX}/bin)
+ (cd ${WRKSRC} && ${INSTALL_DATA} abcde.conf.sample \
+ ${STAGEDIR}${PREFIX}/etc)
+ (cd ${WRKSRC} && ${INSTALL_MAN} abcde.1 cddb-tool.1 \
+ ${STAGEDIR}${MANPREFIX}/man/man1)
.include <bsd.port.mk>