aboutsummaryrefslogtreecommitdiffstats
path: root/comms/ebook2cw/Makefile
blob: 16692e4633bcfe09dc52a9e7fca9187bf88e81c7 (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
# ports collection makefile for:    ebook2cw
# Date created:     17 July 2008
# Whom:         db
#
# $FreeBSD$
#

PORTNAME=   ebook2cw
PORTVERSION=    0.8.1
PORTREVISION?=  2
CATEGORIES= comms hamradio
MASTER_SITES=   http://fkurz.net/ham/ebook2cw/ \
        ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= db

MAINTAINER= db@FreeBSD.org
COMMENT=    Convert text files into cw as an mp3 or ogg file

LIB_DEPENDS=    mp3lame:${PORTSDIR}/audio/lame \
        vorbis:${PORTSDIR}/audio/libvorbis

MAN1=       ebook2cw.1

post-patch:
    @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|'g \
         ${WRKSRC}/Makefile
do-install:
    @${INSTALL_SCRIPT} ${WRKSRC}/ebook2cw ${PREFIX}/bin/ebook2cw
    @${INSTALL_DATA} ${WRKSRC}/ebook2cw.1 ${MANPREFIX}/man/man1
.if !defined(NOPORTEXAMPLES)
    @${MKDIR} ${EXAMPLESDIR}
.for    f in ebook2cw.conf isomap.txt utf8map.txt
    @${INSTALL_DATA} ${WRKSRC}/$f ${EXAMPLESDIR}/$f
.endfor
.endif
.if     !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    @${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif

.include <bsd.port.mk>