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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
# New ports collection makefile for: BitchX ircII client
# Date created: 26 Jan 1998
# Whom: griffin
#
# $FreeBSD$
#
PORTNAME= BitchX
PORTVERSION= 1.1
PORTREVISION= 1
CATEGORIES+= irc
MASTER_SITES= ftp://ftp.bitchx.org/pub/BitchX/source/ \
CENKES
DISTNAME= ircii-pana-${PORTVERSION}-final
MAINTAINER?= beech@FreeBSD.org
COMMENT?= ircII color client with GTK/GNOME support
WRKSRC= ${WRKDIR}/BitchX
USE_PERL5= yes
GNU_CONFIGURE= yes
WANT_GNOME= yes
USE_GMAKE= yes
CONFIGURE_TARGET=
CONFIGURE_ARGS+=--exec-prefix="${PREFIX}/share" \
--bindir="${PREFIX}/bin" \
--datadir="${PREFIX}/share" \
--libdir="${PREFIX}/share" \
--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib" \
CFLAGS="${CFLAGS}"
MAN1= BitchX.1
OPTIONS= ESOUND "With ESOUND support" off \
GNOME "With GTK/GNOME1 Frontend" off \
IPV6 "With IPV6 support" off \
LATIN "Recommended if you are using an ISO-8859-1 display" off \
PLUGINS "With BitchX Plugins" off \
SOCKS5 "With SOCKS5 support" off \
SSL "With SSL" off \
XMMS "With XMMS plugin" off
.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
CFLAGS+= -fPIC
.endif
.if defined(WITH_SSL)
CONFIGURE_ARGS+=--with-ssl
.endif
.if defined(WITH_GNOME)
USE_GNOME= gnomelibs
CONFIGURE_ARGS+=--with-gtk
CFLAGS+= -I${X11BASE}/include/gnome-1.0/
PLIST_SUB+= NOGNOME="@comment " GNOME=""
.else
CONFIGURE_ARGS+=--without-gtk
PLIST_SUB+= GNOME="@comment " NOGNOME=""
.endif
.if (defined(WITH_ESOUND) && defined(WITH_GNOME))
USE_GNOME+= esound
CONFIGURE_ARGS+=--enable-sound
.endif
.if defined(WITH_XMMS)
LIB_DEPENDS+= xmms.4:${PORTSDIR}/multimedia/xmms
.endif
.if defined(WITH_IPV6)
CONFIGURE_ARGS+=--enable-ipv6
.endif
.if defined(WITH_SOCKS5)
BUILD_DEPENDS+= ${LOCALBASE}/lib/libsocks5.a:${PORTSDIR}/net/socks5
CONFIGURE_ARGS+= --with-socks5=${LOCALBASE}
.endif
.if defined(WITH_PLUGINS)
PLUGINS= abot,acro,aim,arcfour,autocycle,blowfish,cavlink,encrypt,fserv,hint,identd,nap,pkga,possum,qbx,qmail,scan,wavplay
PLIST_SUB+= PLUGINS=""
.else
CONFIGURE_ARGS+=--without-plugins
PLIST_SUB+= PLUGINS="@comment "
.endif
.if defined(WITH_XMMS)
PLUGINS= xmms
PLIST_SUB+= XMMS=""
.else
PLIST_SUB+= XMMS="@comment "
.endif
.if (defined(WITH_XMMS) && defined(WITH_PLUGINS))
PLUGINS= abot,acro,aim,arcfour,autocycle,blowfish,cavlink,encrypt,fserv,hint,identd,nap,pkga,possum,qbx,qmail,scan,wavplay,xmms
.endif
.if (defined(WITH_PLUGINS) || defined(WITH_XMMS))
CONFIGURE_ARGS+= --with-plugins=${PLUGINS}
.endif
pre-patch:
.if defined(WITH_LATIN)
${REINPLACE_CMD} -e 's|#undef LATIN1|#define LATIN1|g' ${WRKSRC}/include/config.h
.endif
${REINPLACE_CMD} -e 's|bzip2|true|g' ${WRKSRC}/Makefile.in
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/bx/help
${TAR} --directory ${WRKSRC}/bitchx-docs -cf - . | \
${TAR} --directory ${PREFIX}/share/bx/help -xf -
.else
${RMDIR} ${PREFIX}/share/bx/help
.endif
.if defined(WITH_GNOME)
${STRIP_CMD} ${PREFIX}/bin/gtkBitchX-${PORTVERSION}-final
.else
${STRIP_CMD} ${PREFIX}/bin/BitchX-${PORTVERSION}-final
${STRIP_CMD} ${PREFIX}/bin/scr-bx
.endif
.include <bsd.port.post.mk>
|