blob: 703f708b1717ce737b460d0a485d003f3caecc94 (
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
|
PORTNAME= bitchx
PORTVERSION= 1.2.1
PORTREVISION= 4
PORTEPOCH= 1
CATEGORIES+= irc
MASTER_SITES= SF/${PORTNAME}/ircii-pana/${PORTNAME}-${DISTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Feature-rich scriptable IRC client
WWW= http://www.bitchx.org/
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
USES= cpe gmake ncurses
GNU_CONFIGURE= yes
GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
CONFIGURE_ARGS+=--exec-prefix="${PREFIX}/share" \
--bindir="${PREFIX}/bin" \
--datadir="${PREFIX}/share" \
--libdir="${PREFIX}/share"
MAKE_JOBS_UNSAFE= yes
CONFLICTS_INSTALL?= zh-bitchx
DATADIR= ${PREFIX}/share/bx
DOCSDIR= ${PREFIX}/share/bx/help
PLIST_SUB+= DISTVERSION=${DISTVERSION}
PORTDOCS= *
OPTIONS_DEFINE= DOCS LANG_HE IPV6 LATIN PLUGINS SSL TOGGLES
OPTIONS_DEFAULT= PLUGINS SSL
OPTIONS_SUB= yes
LATIN_DESC= Recommended for ISO-8859-1 display
PLUGINS_DESC= Build a handful of BitchX plugins
TOGGLES_DESC= Disable annoyance toggles
IPV6_CONFIGURE_ENABLE= ipv6
PLUGINS_CONFIGURE_WITH= plugins="${PLUGIN_LIST:C/\$$/,/g}"
SSL_USES= ssl
SSL_CONFIGURE_WITH= ssl="${OPENSSLBASE}"
PLUGIN_LIST= abot acro arcfour autocycle blowfish cavlink cdrom encrypt \
europa fserv hint nap nicklist pkga possum qbx qmail wavplay
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
CFLAGS+= -Wno-error=incompatible-function-pointer-types
.endif
post-patch:
${REINPLACE_CMD} -e 's|bzip2|true|g' ${WRKSRC}/Makefile.in
${REINPLACE_CMD} -e 's|SSLeay|ERR_get_error|' ${WRKSRC}/configure
post-patch-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/bitchx-docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
post-patch-LANG_HE-on:
${REINPLACE_CMD} -e 's|#undef WANT_HEBREW|#define WANT_HEBREW|' \
${WRKSRC}/include/config.h
post-patch-LATIN-on:
${REINPLACE_CMD} -e 's|#undef LATIN1|#define LATIN1|' \
${WRKSRC}/include/config.h
post-patch-TOGGLES-on:
${REINPLACE_CMD} -e 's|DEFAULT_AUTO_AWAY ON|DEFAULT_AUTO_AWAY OFF|' \
${WRKSRC}/include/config.h
${REINPLACE_CMD} -e 's|DEFAULT_KICK_OPS ON|DEFAULT_KICK_OPS OFF|' \
${WRKSRC}/include/config.h
${REINPLACE_CMD} -e 's|DEFAULT_AUTO_REJOIN ON|DEFAULT_AUTO_REJOIN OFF|' \
${WRKSRC}/include/config.h
post-stage:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*
${STRIP_CMD} ${STAGEDIR}${PREFIX}/share/bx/wserv
post-stage-PLUGINS-on:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/share/bx/plugins/*.so
.include <bsd.port.mk>
|