aboutsummaryrefslogtreecommitdiffstats
path: root/audio/abcde/Makefile
blob: f2d595a0101cbe61dfc482e6511de362906db134 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# 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
PORTREVISION=   4
CATEGORIES= audio
MASTER_SITES=   http://frantica.lly.org/~rcw/abcde/
DISTNAME=   abcde_2.0.3.orig

MAINTAINER= mchopra@engmail.uwaterloo.ca
COMMENT=    Front-end sh script to encode CDs in ogg or mp3 format

RUN_DEPENDS=    cd-discid:${PORTSDIR}/audio/cd-discid \
        cdparanoia:${PORTSDIR}/audio/cdparanoia \
        id3v2:${PORTSDIR}/audio/id3v2 \
        oggenc:${PORTSDIR}/audio/vorbis-tools

NO_BUILD=   yes
WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}
MAN1=       abcde.1 cddb-tool.1

.if defined(WITH_CDDA2WAV)
RUN_DEPENDS+=   cdda2wav:${PORTSDIR}/sysutils/cdrtools
.else
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

.if defined(WITH_EJECT)
RUN_DEPENDS+=   eject:${PORTSDIR}/sysutils/eject
.else
EJECT_MSG=     "Define WITH_EJECT to enable auto-eject support."
.endif


pre-fetch:
.if defined(DAGRAB_MSG)
    @${ECHO_MSG} ${DAGRAB_MSG}
    @${ECHO_MSG} ""
.endif
.if defined(CDDA2WAV_MSG)
    @${ECHO_MSG} ${CDDA2WAV_MSG}
    @${ECHO_MSG} ""
.endif
.if defined(EJECT_MSG)
    @${ECHO_MSG} ${EJECT_MSG}
    @${ECHO_MSG} ""
.endif


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>