2002-08-06 20:58:38 +00:00
|
|
|
# New ports collection makefile for: abcde
|
|
|
|
# Date created: July 29, 2002
|
|
|
|
# Whom: Munish Chopra <mchopra@engmail.uwaterloo.ca>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= abcde
|
|
|
|
PORTVERSION= 2.0.3
|
2003-03-31 16:38:42 +00:00
|
|
|
PORTREVISION= 4
|
2002-08-06 20:58:38 +00:00
|
|
|
CATEGORIES= audio
|
|
|
|
MASTER_SITES= http://frantica.lly.org/~rcw/abcde/
|
|
|
|
DISTNAME= abcde_2.0.3.orig
|
|
|
|
|
|
|
|
MAINTAINER= mchopra@engmail.uwaterloo.ca
|
2003-02-21 11:08:38 +00:00
|
|
|
COMMENT= Front-end sh script to encode CDs in ogg or mp3 format
|
2002-08-06 20:58:38 +00:00
|
|
|
|
|
|
|
RUN_DEPENDS= cd-discid:${PORTSDIR}/audio/cd-discid \
|
2003-01-11 23:44:11 +00:00
|
|
|
cdparanoia:${PORTSDIR}/audio/cdparanoia \
|
2002-08-06 20:58:38 +00:00
|
|
|
id3v2:${PORTSDIR}/audio/id3v2 \
|
2002-10-30 21:28:22 +00:00
|
|
|
oggenc:${PORTSDIR}/audio/vorbis-tools
|
2002-08-06 20:58:38 +00:00
|
|
|
|
|
|
|
NO_BUILD= yes
|
2002-10-30 21:28:22 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
MAN1= abcde.1 cddb-tool.1
|
2002-08-06 20:58:38 +00:00
|
|
|
|
|
|
|
.if defined(WITH_CDDA2WAV)
|
|
|
|
RUN_DEPENDS+= cdda2wav:${PORTSDIR}/sysutils/cdrtools
|
2002-10-30 21:28:22 +00:00
|
|
|
.else
|
2003-01-11 23:44:11 +00:00
|
|
|
CDDA2WAV_MSG= "Define WITH_CDDA2WAV to enable support for cdda2wav."
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_DAGRAB)
|
|
|
|
RUN_DEPENDS+= dagrab:${PORTSDIR}/audio/dagrab
|
|
|
|
.else
|
|
|
|
DAGRAB_MSG= "Define WITH_DAGRAB to enable support for dagrab."
|
|
|
|
.endif
|
|
|
|
|
2003-03-31 16:38:42 +00:00
|
|
|
.if defined(WITH_EJECT)
|
|
|
|
RUN_DEPENDS+= eject:${PORTSDIR}/sysutils/eject
|
|
|
|
.else
|
|
|
|
EJECT_MSG= "Define WITH_EJECT to enable auto-eject support."
|
|
|
|
.endif
|
|
|
|
|
|
|
|
|
2002-08-06 20:58:38 +00:00
|
|
|
pre-fetch:
|
2003-01-11 23:44:11 +00:00
|
|
|
.if defined(DAGRAB_MSG)
|
|
|
|
@${ECHO_MSG} ${DAGRAB_MSG}
|
2002-08-06 20:58:38 +00:00
|
|
|
@${ECHO_MSG} ""
|
2003-01-11 23:44:11 +00:00
|
|
|
.endif
|
|
|
|
.if defined(CDDA2WAV_MSG)
|
|
|
|
@${ECHO_MSG} ${CDDA2WAV_MSG}
|
2002-08-06 20:58:38 +00:00
|
|
|
@${ECHO_MSG} ""
|
2002-10-30 21:28:22 +00:00
|
|
|
.endif
|
2003-03-31 16:38:42 +00:00
|
|
|
.if defined(EJECT_MSG)
|
|
|
|
@${ECHO_MSG} ${EJECT_MSG}
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
.endif
|
|
|
|
|
2002-08-06 20:58:38 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/abcde ${PREFIX}/bin
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/cddb-tool ${PREFIX}/bin
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/abcde.conf ${PREFIX}/etc
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/abcde.1 ${PREFIX}/man/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/cddb-tool.1 ${PREFIX}/man/man1
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "Please copy ${PREFIX}/etc/abcde.conf to ~/.abcde.conf"
|
|
|
|
@${ECHO_MSG} "and edit as necessary. Sane defaults have been set."
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|