2012-10-26 06:33:41 +00:00
|
|
|
# Created by: Munish Chopra <mchopra@engmail.uwaterloo.ca>
|
2002-08-06 20:58:38 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= abcde
|
2012-12-09 15:14:47 +00:00
|
|
|
PORTVERSION= 2.5.4
|
2013-09-29 09:31:11 +00:00
|
|
|
PORTREVISION= 2
|
2002-08-06 20:58:38 +00:00
|
|
|
CATEGORIES= audio
|
2011-03-11 06:59:15 +00:00
|
|
|
MASTER_SITES= GOOGLE_CODE
|
2002-08-06 20:58:38 +00:00
|
|
|
|
2012-12-09 15:14:47 +00:00
|
|
|
MAINTAINER= gblach@FreeBSD.org
|
2003-09-25 09:50:28 +00:00
|
|
|
COMMENT= Front-end shell script to encode CDs in flac/mp3/ogg/speex format
|
2002-08-06 20:58:38 +00:00
|
|
|
|
2011-11-25 22:23:30 +00:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2003-08-20 11:02:42 +00:00
|
|
|
RUN_DEPENDS= cd-discid:${PORTSDIR}/audio/cd-discid \
|
2003-01-11 23:44:11 +00:00
|
|
|
cdparanoia:${PORTSDIR}/audio/cdparanoia \
|
2012-12-09 15:14:47 +00:00
|
|
|
eyeD3:${PORTSDIR}/audio/py-eyed3 \
|
2003-05-17 18:29:31 +00:00
|
|
|
lame:${PORTSDIR}/audio/lame \
|
2011-03-11 06:59:15 +00:00
|
|
|
oggenc:${PORTSDIR}/audio/vorbis-tools \
|
|
|
|
bash:${PORTSDIR}/shells/bash
|
2002-08-06 20:58:38 +00:00
|
|
|
|
|
|
|
NO_BUILD= yes
|
2004-07-26 12:29:44 +00:00
|
|
|
|
2012-10-26 06:33:41 +00:00
|
|
|
OPTIONS_DEFINE= CDDA2WAV DAGRAB EJECT FLAC MPP NORMALIZE REPLAYGAIN SPEEX
|
2012-05-29 15:12:39 +00:00
|
|
|
|
|
|
|
EJECT_DESC?= Enable auto-eject support
|
|
|
|
NORMALIZE_DESC?= Enable normalize support
|
2012-11-28 06:53:03 +00:00
|
|
|
REPLAYGAIN_DESC?= Enable (vorbis|mp3)gain support
|
2011-03-11 06:59:15 +00:00
|
|
|
|
2013-05-07 06:45:39 +00:00
|
|
|
USES= shebangfix
|
|
|
|
SHEBANG_FILES= ${PORTNAME} cddb-tool
|
|
|
|
|
2011-03-11 06:59:15 +00:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2012-05-29 15:12:39 +00:00
|
|
|
.if ${PORT_OPTIONS:MCDDA2WAV}
|
2013-04-26 12:35:50 +00:00
|
|
|
RUN_DEPENDS+= cdda2wav:${PORTSDIR}/sysutils/cdrtools
|
2003-01-11 23:44:11 +00:00
|
|
|
.endif
|
|
|
|
|
2012-05-29 15:12:39 +00:00
|
|
|
.if ${PORT_OPTIONS:MDAGRAB}
|
2003-08-20 11:02:42 +00:00
|
|
|
RUN_DEPENDS+= dagrab:${PORTSDIR}/audio/dagrab
|
2003-01-11 23:44:11 +00:00
|
|
|
.endif
|
|
|
|
|
2012-05-29 15:12:39 +00:00
|
|
|
.if ${PORT_OPTIONS:MEJECT}
|
2003-08-20 11:02:42 +00:00
|
|
|
RUN_DEPENDS+= eject:${PORTSDIR}/sysutils/eject
|
2003-03-31 16:38:42 +00:00
|
|
|
.endif
|
|
|
|
|
2012-05-29 15:12:39 +00:00
|
|
|
.if ${PORT_OPTIONS:MFLAC}
|
2003-05-17 18:29:31 +00:00
|
|
|
RUN_DEPENDS+= flac:${PORTSDIR}/audio/flac
|
2003-08-20 11:02:42 +00:00
|
|
|
.endif
|
|
|
|
|
2012-05-29 15:12:39 +00:00
|
|
|
.if ${PORT_OPTIONS:MNORMALIZE}
|
2003-08-20 11:02:42 +00:00
|
|
|
RUN_DEPENDS+= normalize:${PORTSDIR}/audio/normalize
|
|
|
|
.endif
|
|
|
|
|
2012-05-29 15:12:39 +00:00
|
|
|
.if ${PORT_OPTIONS:MSPEEX}
|
2003-08-20 11:02:42 +00:00
|
|
|
RUN_DEPENDS+= speexenc:${PORTSDIR}/audio/speex
|
2003-05-17 18:29:31 +00:00
|
|
|
.endif
|
2003-03-31 16:38:42 +00:00
|
|
|
|
2012-05-29 15:12:39 +00:00
|
|
|
.if ${PORT_OPTIONS:MAAC}
|
2011-03-11 06:59:15 +00:00
|
|
|
RUN_DEPENDS+= faac:${PORTSDIR}/audio/faac
|
|
|
|
.endif
|
|
|
|
|
2012-05-29 15:12:39 +00:00
|
|
|
.if ${PORT_OPTIONS:MMPP}
|
2011-08-02 18:05:26 +00:00
|
|
|
RUN_DEPENDS+= mpcenc:${PORTSDIR}/audio/musepack
|
2011-03-11 06:59:15 +00:00
|
|
|
.endif
|
|
|
|
|
2012-05-29 15:12:39 +00:00
|
|
|
.if ${PORT_OPTIONS:MREPLAYGAIN}
|
2011-03-11 06:59:15 +00:00
|
|
|
RUN_DEPENDS+= mp3gain:${PORTSDIR}/audio/mp3gain \
|
|
|
|
vorbisgain:${PORTSDIR}/audio/vorbisgain
|
|
|
|
.endif
|
2003-03-31 16:38:42 +00:00
|
|
|
|
2003-08-07 09:30:07 +00:00
|
|
|
post-patch:
|
2011-03-11 06:59:15 +00:00
|
|
|
${REINPLACE_CMD} -e 's#/etc/#${PREFIX}/etc/#g' \
|
2003-08-07 09:30:07 +00:00
|
|
|
${WRKSRC}/abcde.1
|
2011-03-11 06:59:15 +00:00
|
|
|
${REINPLACE_CMD} -e 's#/etc/#${PREFIX}/etc/#g' \
|
2003-08-07 09:30:07 +00:00
|
|
|
${WRKSRC}/abcde
|
|
|
|
|
2002-08-06 20:58:38 +00:00
|
|
|
do-install:
|
2013-09-27 17:31:26 +00:00
|
|
|
${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
|
2002-08-06 20:58:38 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${ECHO_MSG} ""
|
2011-11-25 22:23:30 +00:00
|
|
|
@${ECHO_MSG} "Please copy ${PREFIX}/etc/abcde.conf.sample to ~/.abcde.conf"
|
2002-08-06 20:58:38 +00:00
|
|
|
@${ECHO_MSG} "and edit as necessary. Sane defaults have been set."
|
2003-08-20 11:02:42 +00:00
|
|
|
@${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."
|
2002-08-06 20:58:38 +00:00
|
|
|
@${ECHO_MSG} ""
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|