Merge from vendor branch TNF:
[pkgsrc.git] / security / putty / Makefile
1 # $NetBSD: Makefile,v 1.19 2009/02/25 18:08:01 roy Exp $
2 #
3
4 DISTNAME=       putty-0.60
5 PKGNAME=        putty-0.60nb1
6 CATEGORIES=     security
7 MASTER_SITES=   http://the.earth.li/~sgtatham/putty/0.60/
8
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
12
13 PKG_DESTDIR_SUPPORT=    user-destdir
14
15 USE_TOOLS+=     gmake pkg-config
16 BUILD_DIRS=     unix
17
18 MAKE_FILE=      Makefile.gtk
19 MAKE_FLAGS+=    mandir=${PREFIX}/${PKGMANDIR}
20
21 INSTALLATION_DIRS=      bin ${PKGMANDIR}/man1
22
23 PKG_OPTIONS_VAR=        PKG_OPTIONS.putty
24 PKG_SUPPORTED_OPTIONS=  inet6
25
26 .include "../../mk/bsd.options.mk"
27
28 .if empty(OPSYS:MLinux)
29 CFLAGS+=        -DHAVE_NO_SETRESUID
30 .endif
31
32 .if !empty(PKG_OPTIONS:Minet6)
33 CFLAGS+=        -DIPV6
34 .endif
35
36 .if !empty(OPSYS:M*BSD) || ${OPSYS} == "DragonFly" || ${OPSYS} == "Darwin"
37 CFLAGS+=        -DOMIT_UTMP
38 .endif
39
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)
43 CFLAGS+=        -DBSD_PTYS
44 .endif
45
46 .include "../../x11/gtk/buildlink3.mk"
47 .include "../../mk/bsd.pkg.mk"