aboutsummaryrefslogtreecommitdiffstats
path: root/comms/yfklog/Makefile
blob: 4cafb81590394c6173f66628dafaffbf59e030ed (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
# Created by: db
# $FreeBSD$

PORTNAME=   yfklog
PORTVERSION=    0.3.5
CATEGORIES= comms hamradio
MASTER_SITES=   http://fkurz.net/ham/yfklog/ \
        ${MASTER_SITE_LOCAL} \
        http://www.db.net/downloads/
MASTER_SITE_SUBDIR= db
DISTFILES=  ${PORTNAME}-${PORTVERSION}.tar.gz yfk.png
DIST_SUBDIR=    ${PORTNAME}
EXTRACT_ONLY=   ${PORTNAME}-${PORTVERSION}.tar.gz

MAINTAINER= db@FreeBSD.org
COMMENT=    Amateur Radio curses based logging program

RUN_DEPENDS=    p5-Curses>=0:${PORTSDIR}/devel/p5-Curses \
        p5-DBD-SQLite>=0:${PORTSDIR}/databases/p5-DBD-SQLite \
        p5-DBI>=0:${PORTSDIR}/databases/p5-DBI \
        hamlib>=0:${PORTSDIR}/comms/hamlib \
        p5-Net-FTP-File>=0:${PORTSDIR}/net/p5-Net-FTP-File

USES=       perl5
NO_BUILD=   yes
MAN1=       yfklog.1

NO_STAGE=   yes

.include <bsd.port.options.mk>

post-patch:
    @${REINPLACE_CMD} -e 's|/usr/bin/perl|${PERL}|' \
         ${WRKSRC}/yfk ${WRKSRC}/yfksubs.pl
    @${REINPLACE_CMD} -e 's|prefix="/usr"|prefix="${PREFIX}"|' \
         ${WRKSRC}/yfk ${WRKSRC}/yfksubs.pl
do-install:
    @${INSTALL_SCRIPT} ${WRKSRC}/yfk ${PREFIX}/bin/yfklog
    @${INSTALL_DATA} ${FILESDIR}/yfklog.1 ${MANPREFIX}/man/man1
    @${INSTALL_SCRIPT} ${WRKSRC}/yfksubs.pl ${PREFIX}/libexec/yfksubs.pl
    @${INSTALL_DATA} ${_DISTDIR}/yfk.png ${PREFIX}/share/pixmaps/yfklog.png
    @${MKDIR} ${DATADIR}
.for    f in cty.dat db_calls.sql db_clubs.sql \
    db_config.sql db_log.sql db_log.sqlite \
    zweckform3421.lab zweckform3475.lab zweckform3657.lab config
    @${INSTALL_DATA} ${WRKSRC}/$f ${DATADIR}
.endfor
.if ${PORT_OPTIONS:MEXAMPLES}
    @${MKDIR} ${EXAMPLESDIR}/onlinelog
.for    f in README  search.php test.txt
    @${INSTALL_DATA} ${WRKSRC}/onlinelog/$f ${EXAMPLESDIR}/onlinelog
.endfor
    @${MKDIR} ${EXAMPLESDIR}/clubs
.for    f in README hsc2sql.awk hscmember.txt
    @${INSTALL_DATA} ${WRKSRC}/clubs/$f ${EXAMPLESDIR}/clubs
.endfor
.endif
.if     ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${DOCSDIR}
.for    f in AUTHORS CHANGELOG COPYING INSTALL MANUAL README RELEASENOTES
    @${INSTALL_DATA} ${WRKSRC}/$f ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>