1999-08-25 08:16:32 +02:00
|
|
|
# $FreeBSD$
|
1999-04-30 19:08:25 +02:00
|
|
|
|
2000-04-12 08:28:35 +02:00
|
|
|
PORTNAME= irssi
|
2010-04-07 03:53:34 +02:00
|
|
|
PORTVERSION= 0.8.15
|
2012-09-03 05:50:42 +02:00
|
|
|
PORTREVISION= 5
|
2003-12-15 05:12:40 +01:00
|
|
|
CATEGORIES?= irc
|
2005-12-12 06:46:52 +01:00
|
|
|
MASTER_SITES= http://mirror.irssi.org/
|
1999-04-30 19:08:25 +02:00
|
|
|
|
2003-12-15 05:12:40 +01:00
|
|
|
MAINTAINER?= vanilla@FreeBSD.org
|
|
|
|
COMMENT?= A modular IRC client with many features
|
1999-04-30 19:08:25 +02:00
|
|
|
|
2012-08-13 17:08:03 +02:00
|
|
|
LIB_DEPENDS= glib-2:${PORTSDIR}/devel/glib20
|
2008-07-29 08:03:46 +02:00
|
|
|
|
2010-04-07 05:24:37 +02:00
|
|
|
CONFLICTS= irssi-devel-[0-9]* zh-irssi-[0-9]*
|
2005-07-24 19:16:19 +02:00
|
|
|
|
2013-09-16 17:42:40 +02:00
|
|
|
USES= pkgconfig ncurses gmake
|
2002-02-17 17:12:20 +01:00
|
|
|
USE_BZIP2= yes
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2013-10-21 16:42:24 +02:00
|
|
|
CONFIGURE_ARGS= --with-ncurses=${NCURSESBASE}
|
2004-02-04 06:25:22 +01:00
|
|
|
|
2013-09-25 03:08:39 +02:00
|
|
|
OPTIONS_DEFINE= PERL PROXY SOCKS IPV6 BOT DOCS
|
2012-08-13 17:08:03 +02:00
|
|
|
SOCKS_DESC= Socks proxy support
|
|
|
|
BOT_DESC= Bot support
|
2013-09-25 03:08:39 +02:00
|
|
|
OPTIONS_DEFAULT= PERL IPV6 DOCS
|
2012-08-13 17:08:03 +02:00
|
|
|
|
2005-12-12 06:46:52 +01:00
|
|
|
# USE_OPENSSL must be defined before bsd.port.pre.mk so use old schema
|
|
|
|
# for WITH_SSL option
|
2000-01-22 20:50:26 +01:00
|
|
|
|
2005-12-12 06:46:52 +01:00
|
|
|
.if defined(WITHOUT_SSL)
|
2004-02-08 18:02:11 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-ssl
|
|
|
|
.else
|
|
|
|
USE_OPENSSL= yes
|
|
|
|
.endif
|
|
|
|
|
2012-08-13 17:08:03 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2003-12-07 09:25:02 +01:00
|
|
|
|
|
|
|
# Process options.
|
|
|
|
|
2012-08-13 17:08:03 +02:00
|
|
|
.if ${PORT_OPTIONS:MPERL}
|
2013-09-16 17:42:40 +02:00
|
|
|
USES+= perl5
|
2003-12-07 09:25:02 +01:00
|
|
|
CONFIGURE_ARGS+= --with-perl-lib=site
|
|
|
|
PLIST_SUB+= WITH_PERL=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-perl
|
|
|
|
PLIST_SUB+= WITH_PERL="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-08-13 17:08:03 +02:00
|
|
|
.if ${PORT_OPTIONS:MPROXY}
|
2003-01-12 06:27:42 +01:00
|
|
|
CONFIGURE_ARGS+= --with-proxy
|
|
|
|
PLIST_SUB+= WITH_PROXY=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= WITH_PROXY="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-08-13 17:08:03 +02:00
|
|
|
.if ${PORT_OPTIONS:MSOCKS}
|
2003-12-07 09:25:02 +01:00
|
|
|
CONFIGURE_ARGS+= --with-socks
|
|
|
|
.endif
|
|
|
|
|
2012-08-13 17:08:03 +02:00
|
|
|
.if !${PORT_OPTIONS:MIPV6}
|
2008-07-29 08:03:46 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-ipv6
|
2003-11-15 11:37:41 +01:00
|
|
|
CATEGORIES+= ipv6
|
|
|
|
.endif
|
2003-12-07 09:25:02 +01:00
|
|
|
|
2012-08-13 17:08:03 +02:00
|
|
|
.if ${PORT_OPTIONS:MBOT}
|
2003-12-08 17:28:54 +01:00
|
|
|
CONFIGURE_ARGS+= --with-bot
|
2007-03-11 02:52:32 +01:00
|
|
|
PLIST_SUB+= WITH_BOT=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-bot
|
|
|
|
PLIST_SUB+= WITH_BOT="@comment "
|
2003-12-08 17:28:54 +01:00
|
|
|
.endif
|
|
|
|
|
2005-09-29 08:55:18 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|/usr|${PREFIX}|' -e 's|/etc|${PREFIX}&|' \
|
|
|
|
${WRKSRC}/docs/irssi.1
|
2013-09-25 03:08:39 +02:00
|
|
|
.if empty(PORT_OPTIONS:MDOCS)
|
|
|
|
${REINPLACE_CMD} -e \
|
|
|
|
'/^install-data-am:/ s|install-docDATA||' \
|
|
|
|
${WRKSRC}/docs/Makefile.in
|
|
|
|
.endif
|
2005-09-29 08:55:18 +02:00
|
|
|
|
2005-12-12 06:46:52 +01:00
|
|
|
post-configure:
|
|
|
|
@${MV} ${WRKSRC}/irssi.conf ${WRKSRC}/irssi.conf.sample
|
2000-12-11 21:21:39 +01:00
|
|
|
|
|
|
|
post-install:
|
2006-12-08 18:39:33 +01:00
|
|
|
@${ECHO_MSG} "You may install x11-themes/irssi-themes for"
|
|
|
|
@${ECHO_MSG} " additional themes."
|
2000-12-11 21:21:39 +01:00
|
|
|
|
2012-08-13 17:08:03 +02:00
|
|
|
.include <bsd.port.mk>
|