blob: 382536b44bd4736560b9f6bf727da021be5046b8 (
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
# $NetBSD: Makefile,v 1.34 2004/02/18 14:40:35 salo Exp $
#
DISTNAME= ${SILC_CLIENT_DISTNAME}
CATEGORIES= chat security
MASTER_SITES= http://www.silcnet.org/download/client/sources/ \
ftp://ftp.silcnet.org/silc/client/sources/ \
http://www.fi.silcnet.org/download/client/sources/ \
ftp://ftp.au.silcnet.org/pub/silcnet/client/sources/ \
http://www.at.silcnet.org/download/client/sources/
EXTRACT_SUFX= ${SILC_CLIENT_EXTRACT_SUFX}
MAINTAINER= salo@NetBSD.org
HOMEPAGE= http://www.silcnet.org/
COMMENT= Client for the Secure Internet Live Conferencing (SILC) protocol
.include "../../chat/silc-client/Makefile.common"
USE_BUILDLINK3= YES
USE_PKGINSTALL= YES
GNU_CONFIGURE= YES
USE_GNU_TOOLS+= make
USE_LIBTOOL= YES
SHLIBTOOL_OVERRIDE= libtool */libtool */*/*/libtool
PKG_SYSCONFSUBDIR?= silc
MAKE_ENV+= examplesdir=${PREFIX}/share/examples/silc
CONF_FILES+= ${PREFIX}/share/examples/silc/silc.conf.default \
${PKG_SYSCONFDIR}/silc.conf
CONFIGURE_ARGS+= --libdir=${PREFIX}/lib/silc
CONFIGURE_ARGS+= --with-helpdir=${PREFIX}/share/silc/help
CONFIGURE_ARGS+= --with-docdir=${PREFIX}/share/doc/silc
CONFIGURE_ARGS+= --with-etcdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --with-simdir=${PREFIX}/lib/silc/modules
CONFIGURE_ARGS+= --with-iconv=${BUILDLINK_DIR}
CONFIGURE_ARGS+= --with-terminfo
CONFIGURE_ARGS+= --without-libtoolfix
.include "../../mk/bsd.prefs.mk"
BUILD_DEFS+= USE_INET6 SILC_CLIENT_WITH_PERL
# Use native curses library.
.if (${OPSYS} == "NetBSD") || (${OPSYS} == "SunOS")
CONFIGURE_ARGS+= --with-vcurses
.elif (${OPSYS} == "Linux") || (${OPSYS} == "Darwin")
CONFIGURE_ARGS+= --with-ncurses
.else
# XXX: Need testing on other operating systems, use safe defaults for now.
CONFIGURE_ARGS+= --with-ncurses
.endif
.if defined(USE_INET6) && !empty(USE_INET6:M[Yy][Ee][Ss])
CONFIGURE_ARGS+= --enable-ipv6
.endif
# Optional support for perl scripting.
# If you want to disable it, set SILC_CLIENT_WITH_PERL to NO
# in your /etc/mk.conf
.if defined(SILC_CLIENT_WITH_PERL) && !empty(SILC_CLIENT_WITH_PERL:M[Yy][Ee][Ss])
CONFIGURE_ARGS+= --with-perl-lib=${PREFIX}/lib/silc/perl5
PERL5_REQD+= 5.6.1nb10
.include "../../lang/perl5/buildlink3.mk"
DEPENDS+= p5-File-MMagic>=1.20:../../misc/p5-File-MMagic
PLIST_SRC+= ${PKGDIR}/PLIST.perl
.else
CONFIGURE_ARGS+= --with-perl=no
.endif
# Assembler optimizations.
#
.if (${MACHINE_ARCH} != "i386")
CONFIGURE_ARGS+= --disable-asm
.endif
# If you want to debug silc-client, uncomment this.
#
#CONFIGURE_ARGS+= --enable-debug
PLIST_SRC+= ${PKGDIR}/PLIST
post-install:
${INSTALL_DATA} ${WRKSRC}/irssi/config.h ${SILC_CLIENT_CONFIG_H}
${INSTALL_DATA} ${WRKSRC}/irssi/irssi-config ${SILC_CLIENT_CONFIG}
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/glib/buildlink3.mk"
.include "../../devel/ncurses/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|