aboutsummaryrefslogtreecommitdiffstats
path: root/comms/kermit/Makefile
blob: dfc5ba4854a88cfd28f5795c5fecee563462a5fd (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
# Created by: Paul Traina <pst@FreeBSD.org>
# $FreeBSD$

PORTNAME=   kermit
PORTVERSION=    9.0.302
CATEGORIES= comms ftp net
MASTER_SITES=   ftp://kermit.columbia.edu/kermit/archives/ \
        ftp://ftp.icm.edu.pl/pub/kermit/archives/
DISTNAME=   cku${PORTVERSION:E}

MAINTAINER= danfe@FreeBSD.org
COMMENT=    Portable scriptable network and serial communication program

LICENSE=    BSD

USE_OPENSSL=    yes
NO_WRKSUBDIR=   yes
MAKEFILE=   makefile
ALL_TARGET= freebsd+ssl
MAKE_ARGS=  CC2=${CC} SSLINC=-I${OPENSSLINC} SSLLIB=-L${OPENSSLLIB}

PLIST_FILES=    bin/kermit
PORTDOCS=   *
PORTEXAMPLES=   *
MAN1=       kermit.1

NO_STAGE=   yes
post-patch:
    @${REINPLACE_CMD} -e 's,-O2 -pipe,${CFLAGS},' ${WRKSRC}/${MAKEFILE}

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/wermit ${PREFIX}/bin/kermit
    ${INSTALL_MAN} ${WRKSRC}/ckuker.nr ${MANPREFIX}/man/man1/kermit.1
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/*.txt ${DOCSDIR}
    ${LN} -sf ckaaaa.txt ${DOCSDIR}/READ.ME
.endif
.if !defined(NOPORTEXAMPLES)
    @${MKDIR} ${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/ckermit.ini ${EXAMPLESDIR}/dot.kermrc
    ${INSTALL_DATA} ${WRKSRC}/ckermod.ini ${EXAMPLESDIR}/dot.mykermrc
.endif

.include <bsd.port.mk>