1 # $NetBSD: Makefile,v 1.19 2009/02/25 18:08:01 roy Exp $
7 MASTER_SITES= http://the.earth.li/~sgtatham/putty/0.60/
9 MAINTAINER= pkgsrc-users@NetBSD.org
10 HOMEPAGE= http://www.chiark.greenend.org.uk/~sgtatham/putty/
11 COMMENT= Free implementation of Telnet and SSH for Win32 and Unix platforms
13 PKG_DESTDIR_SUPPORT= user-destdir
15 USE_TOOLS+= gmake pkg-config
18 MAKE_FILE= Makefile.gtk
19 MAKE_FLAGS+= mandir=${PREFIX}/${PKGMANDIR}
21 INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
23 PKG_OPTIONS_VAR= PKG_OPTIONS.putty
24 PKG_SUPPORTED_OPTIONS= inet6
26 .include "../../mk/bsd.options.mk"
28 .if empty(OPSYS:MLinux)
29 CFLAGS+= -DHAVE_NO_SETRESUID
32 .if !empty(PKG_OPTIONS:Minet6)
36 .if !empty(OPSYS:M*BSD) || ${OPSYS} == "DragonFly" || ${OPSYS} == "Darwin"
40 # Unix98 ptys were added some weeks ago in NetBSD -current,
41 # so use it if we have the device, otherwise use the old style.
42 .if !exists(/dev/ptmx)
46 .include "../../x11/gtk/buildlink3.mk"
47 .include "../../mk/bsd.pkg.mk"