aboutsummaryrefslogtreecommitdiffstats
path: root/irc/cwirc/Makefile
blob: 4c0c1ed70245d89b5e940da41650a14db38a41ca (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
# Created by: db
# $FreeBSD$

PORTNAME=   cwirc
PORTVERSION=    2.0.0
PORTREVISION=   5
CATEGORIES= irc comms hamradio
MASTER_SITES=   http://users.skynet.be/ppc/cwirc/download/ \
        ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= db

MAINTAINER= db@FreeBSD.org
COMMENT=    X-Chat Morse plugin

LICENSE=    GPLv2

BUILD_DEPENDS=  xchat:${PORTSDIR}/irc/xchat

USES=       pkgconfig

OPTIONS_DEFINE= DOCS

post-patch:
    @${CP} ${FILESDIR}/Makefile ${WRKSRC}
    @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' \
      -e 's|%%STAGEDIR%%|${STAGEDIR}|' ${WRKSRC}/Makefile

post-install:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in COPYING LISEZMOI README RELEASE_NOTES
    @${INSTALL_DATA}  ${WRKSRC}/$f ${STAGEDIR}${DOCSDIR}
.endfor
    @${MKDIR} ${STAGEDIR}${DOCSDIR}/schematics
.for f in cw_oscillator.jpg rs232_key_connection.jpg
    @${INSTALL_DATA} ${WRKSRC}/schematics/$f ${STAGEDIR}${DOCSDIR}/schematics
.endfor

.include <bsd.port.mk>