2002-08-06 22:58:38 +02:00
|
|
|
# New ports collection makefile for: abcde
|
|
|
|
# Date created: July 29, 2002
|
|
|
|
# Whom: Munish Chopra <mchopra@engmail.uwaterloo.ca>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= abcde
|
2005-10-19 19:51:12 +02:00
|
|
|
PORTVERSION= 2.3.3
|
2008-04-18 17:55:08 +02:00
|
|
|
PORTREVISION= 2
|
2002-08-06 22:58:38 +02:00
|
|
|
CATEGORIES= audio
|
2005-11-25 13:34:18 +01:00
|
|
|
MASTER_SITES= http://www.hispalinux.es/~data/files/
|
2003-09-25 11:50:28 +02:00
|
|
|
DISTNAME= abcde_${PORTVERSION}.orig
|
2002-08-06 22:58:38 +02:00
|
|
|
|
2006-04-05 23:04:30 +02:00
|
|
|
MAINTAINER= jmelo@FreeBSD.org
|
2003-09-25 11:50:28 +02:00
|
|
|
COMMENT= Front-end shell script to encode CDs in flac/mp3/ogg/speex format
|
2002-08-06 22:58:38 +02:00
|
|
|
|
2003-08-20 13:02:42 +02:00
|
|
|
RUN_DEPENDS= cd-discid:${PORTSDIR}/audio/cd-discid \
|
2003-01-12 00:44:11 +01:00
|
|
|
cdparanoia:${PORTSDIR}/audio/cdparanoia \
|
2002-08-06 22:58:38 +02:00
|
|
|
id3v2:${PORTSDIR}/audio/id3v2 \
|
2003-05-17 20:29:31 +02:00
|
|
|
lame:${PORTSDIR}/audio/lame \
|
2002-10-30 22:28:22 +01:00
|
|
|
oggenc:${PORTSDIR}/audio/vorbis-tools
|
2002-08-06 22:58:38 +02:00
|
|
|
|
|
|
|
NO_BUILD= yes
|
2002-10-30 22:28:22 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
MAN1= abcde.1 cddb-tool.1
|
2002-08-06 22:58:38 +02:00
|
|
|
|
2004-07-26 14:29:44 +02:00
|
|
|
PLIST_FILES= bin/abcde bin/cddb-tool etc/abcde.conf
|
|
|
|
|
2002-08-06 22:58:38 +02:00
|
|
|
.if defined(WITH_CDDA2WAV)
|
2007-01-31 15:07:59 +01:00
|
|
|
USE_CDRTOOLS= yes
|
2003-01-12 00:44:11 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_DAGRAB)
|
2003-08-20 13:02:42 +02:00
|
|
|
RUN_DEPENDS+= dagrab:${PORTSDIR}/audio/dagrab
|
2003-01-12 00:44:11 +01:00
|
|
|
.endif
|
|
|
|
|
2003-03-31 18:38:42 +02:00
|
|
|
.if defined(WITH_EJECT)
|
2003-08-20 13:02:42 +02:00
|
|
|
RUN_DEPENDS+= eject:${PORTSDIR}/sysutils/eject
|
2003-03-31 18:38:42 +02:00
|
|
|
.endif
|
|
|
|
|
2003-05-17 20:29:31 +02:00
|
|
|
.if defined(WITH_FLAC)
|
|
|
|
RUN_DEPENDS+= flac:${PORTSDIR}/audio/flac
|
2003-08-20 13:02:42 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_NORMALIZE)
|
|
|
|
RUN_DEPENDS+= normalize:${PORTSDIR}/audio/normalize
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_SPEEX)
|
|
|
|
RUN_DEPENDS+= speexenc:${PORTSDIR}/audio/speex
|
2003-05-17 20:29:31 +02:00
|
|
|
.endif
|
2003-03-31 18:38:42 +02:00
|
|
|
|
2003-12-31 01:50:29 +01:00
|
|
|
pre-everything::
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} "You can build ${PORTNAME} with the following options:"
|
|
|
|
@${ECHO} "WITH_CDDA2WAV enable cdda2wav support"
|
|
|
|
@${ECHO} "WITH_DAGRAB enable dagrab support"
|
|
|
|
@${ECHO} "WITH_EJECT enable auto-eject support"
|
|
|
|
@${ECHO} "WITH_FLAC enable FLAC support"
|
|
|
|
@${ECHO} "WITH_NORMALIZE enable normalize support"
|
|
|
|
@${ECHO} "WITH_SPEEX enable Speex support"
|
|
|
|
@${ECHO}
|
2003-03-31 18:38:42 +02:00
|
|
|
|
2003-08-07 11:30:07 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's#/etc/#${PREFIX}/etc/#g' \
|
|
|
|
${WRKSRC}/abcde.1
|
|
|
|
@${REINPLACE_CMD} -e 's#/etc/#${PREFIX}/etc/#g' \
|
|
|
|
${WRKSRC}/abcde
|
|
|
|
|
2002-08-06 22:58:38 +02: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."
|
2003-08-20 13:02:42 +02: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 22:58:38 +02:00
|
|
|
@${ECHO_MSG} ""
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|