blob: ab755956cb577cdecf970a7e1357bbb5af24fb79 (
plain) (
blame)
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
|
# Created by: Jimbo Bahooli <griffin@blackhole.iceworld.org>
# $FreeBSD$
PORTNAME= bitchx
PORTVERSION= 1.2.1
PORTEPOCH= 1
CATEGORIES+= irc
MASTER_SITES= SF/${PORTNAME}/ircii-pana/${PORTNAME}-${DISTVERSION}
MAINTAINER= freebsd@bitchx.org
COMMENT= Feature-rich scriptable IRC client
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
USES= cpe gmake
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--exec-prefix="${PREFIX}/share" \
--bindir="${PREFIX}/bin" \
--datadir="${PREFIX}/share" \
--libdir="${PREFIX}/share"
LIBS+= -L${LOCALBASE}/lib
OPTIONS_SUB= yes
PLIST_SUB+= DISTVERSION=${DISTVERSION}
DOCSDIR= ${PREFIX}/share/bx/help
PORTDOCS= *
DATADIR= ${PREFIX}/share/bx
MAKE_JOBS_UNSAFE= yes
OPTIONS_DEFINE= DOCS HEBREW IPV6 LATIN PLUGINS SSL TOGGLES
LATIN_DESC= Recommended for ISO-8859-1 display
PLUGINS_DESC= Build a handful of BitchX plugins
HEBREW_DESC= Add support for hebrew language
TOGGLES_DESC= Disable away,kick_ops,auto_rejoin
OPTIONS_DEFAULT= PLUGINS SSL
IPV6_CONFIGURE_ENABLE= ipv6
SSL_CONFIGURE_WITH= ssl
SSL_USE= openssl=yes
PLUGINS_CONFIGURE_WITH= plugins="${PLUGIN_LIST:C/\$$/,/g}"
PLUGIN_LIST= abot acro aim arcfour autocycle blowfish cavlink cdrom encrypt \
europa fserv hint nap nicklist pkga possum qbx qmail wavplay
.include <bsd.port.options.mk>
post-patch:
.if ${PORT_OPTIONS:MLATIN}
${REINPLACE_CMD} -e 's|#undef LATIN1|#define LATIN1|' \
${WRKSRC}/include/config.h
.endif
.if ${PORT_OPTIONS:MHEBREW}
${REINPLACE_CMD} -e 's|#undef WANT_HEBREW|#define WANT_HEBREW|' \
${WRKSRC}/include/config.h
.endif
.if ${PORT_OPTIONS:MTOGGLES}
${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
.endif
${REINPLACE_CMD} -e 's|bzip2|true|g' ${WRKSRC}/Makefile.in
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/bitchx-docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>
|