blob: 21b99f6fce667df31a564bb10f5165d68de576c9 (
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
|
# $NetBSD: Makefile,v 1.68 2021/07/24 14:54:08 ryoon Exp $
#
DISTNAME= putty-0.76
CATEGORIES= security
MASTER_SITES= http://the.earth.li/~sgtatham/putty/${PKGVERSION_NOREV}/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://www.chiark.greenend.org.uk/~sgtatham/putty/
COMMENT= Free implementation of Telnet and SSH for Win32 and Unix platforms
LICENSE= mit
USE_TOOLS+= gmake pkg-config
BUILD_DIRS= unix
MAKE_FILE= Makefile.gtk
MAKE_FLAGS+= mandir=${PREFIX}/${PKGMANDIR}
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
.include "options.mk"
.if !empty(OPSYS:M*BSD) || ${OPSYS} == "DragonFly" || ${OPSYS} == "Darwin"
CFLAGS+= -DOMIT_UTMP
.endif
# Unix98 ptys were added some time ago in NetBSD -current,
# so use it if we have the device, otherwise use the old style.
.if !exists(/dev/ptmx)
CFLAGS+= -DBSD_PTYS
.endif
LDFLAGS.SunOS+= -lsocket -lnsl
CFLAGS.SunOS+= -DBSD_COMP
CFLAGS.Darwin+= -DHAVE_FUTIMES -DHAVE_NO_SETRESUID
CFLAGS.NetBSD+= -DHAVE_FUTIMES -DHAVE_NO_SETRESUID
CFLAGS.Linux+= -DHAVE_FUTIMES -DHAVE_NO_SETRESUID
LDFLAGS.Linux+= -ldl
.include "../../x11/gtk3/buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|