blob: 3282e874d8e9e925a39d45e69b8b4eb043e44b6d (
plain)
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: putty
# Date created: 13 Feb 2004
# Whom: dirk.meyer@dinoex.sub.org
#
# $FreeBSD$
#
PORTNAME= putty
PORTVERSION= 0.62
CATEGORIES= security ipv6
MASTER_SITES= http://the.earth.li/~sgtatham/putty/%SUBDIR%/ \
ftp://ftp.chiark.greenend.org.uk/users/sgtatham/putty-latest/
MASTER_SITE_SUBDIR= ${PORTVERSION}
# Beat Gaetzi (beat@) is permitted to take maintainership back
# or commit to this port without my prior approval.
MAINTAINER= mandree@FreeBSD.org
COMMENT= Secure shell and telnet client
USE_GMAKE= yes
WRKSRC= ${WRKDIR}/${DISTNAME}/unix
MAKEFILE= Makefile.gtk
PLIST_FILES= bin/plink bin/pscp bin/psftp bin/puttygen
MAN1= plink.1 pscp.1 psftp.1 puttygen.1
OPTIONS= GSSAPI "Enable GSSAPI support" on \
GTK "Enable GTK+ 2 GUI (recommended)" on
.include <bsd.port.options.mk>
CFLAGS+= -DBSD_PTYS -DOMIT_UTMP -DIPV6
.if !defined(WITHOUT_GTK) && !defined(WITHOUT_X11)
USE_GNOME= gtk20
PLIST_FILES+= bin/pterm bin/putty bin/puttytel
MAN1+= pterm.1 putty.1 puttytel.1
MAKE_ARGS+= PUTTY_WITH_GTK=yes GTK_CONFIG="pkg-config gtk+-2.0 x11 --cflags"
.else
MAKE_ARGS+= GTK_CONFIG=:
.endif
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_GSSAPI)
_COMPAT= -DSTATIC_GSSAPI
.if ${OSVERSION} >= 900000
LIB_DEPENDS+= krb5support.0:${PORTSDIR}/security/krb5
.endif
.else
_COMPAT= -DNO_GSSAPI
.endif
_COMPAT+= -DOMIT_UTMP
.if defined(WITH_DEBUG) && ${WITH_DEBUG} != "no"
XFLAGS= -DDEBUG
.endif
.if ${CC:T} == clang
XFLAGS+= -Wno-empty-body
.endif
MAKE_ARGS+= COMPAT="${_COMPAT}" \
XFLAGS="${XFLAGS}" \
INSTALL_DATA="${INSTALL_DATA}" \
INSTALL_PROGRAM="${INSTALL_PROGRAM}"
post-patch:
@${REINPLACE_CMD} -e 's,prefix=/usr/local,prefix=${PREFIX},;\
s,make,${GMAKE},' \
${WRKSRC}/${MAKEFILE}
.include <bsd.port.post.mk>
|