1999-04-30 19:08:25 +02:00
|
|
|
# New ports collection makefile for: irssi
|
|
|
|
# Date created: 14 Apr 1999
|
1999-08-14 09:11:57 +02:00
|
|
|
# Whom: Jim Mock <jim@FreeBSD.org>
|
1999-04-30 19:08:25 +02:00
|
|
|
#
|
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-08-13 17:08:03 +02:00
|
|
|
PORTREVISION= 4
|
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
|
|
|
|
2002-02-17 17:12:20 +01:00
|
|
|
USE_BZIP2= yes
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2007-10-11 22:14:56 +02:00
|
|
|
USE_GMAKE= yes
|
2011-05-20 04:43:54 +02:00
|
|
|
USE_NCURSES= yes
|
2007-09-29 22:58:32 +02:00
|
|
|
WANT_PERL= yes
|
2004-02-04 06:25:22 +01:00
|
|
|
|
2003-12-07 09:25:02 +01:00
|
|
|
MAN1= irssi.1
|
2000-01-24 21:34:23 +01:00
|
|
|
|
2012-08-13 17:08:03 +02:00
|
|
|
OPTIONS_DEFINE= PERL PROXY SOCKS IPV6 BOT
|
|
|
|
SOCKS_DESC= Socks proxy support
|
|
|
|
BOT_DESC= Bot support
|
|
|
|
OPTIONS_DEFAULT= PERL IPV6
|
|
|
|
|
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}
|
2003-12-07 09:25:02 +01:00
|
|
|
USE_PERL5= yes
|
|
|
|
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
|
|
|
|
|
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:
|
2005-12-12 06:46:52 +01:00
|
|
|
@if [ ! -f ${PREFIX}/etc/irssi.conf ]; then \
|
2000-12-11 21:21:39 +01:00
|
|
|
${ECHO} "Installing default configuration file."; \
|
2005-12-12 06:46:52 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/irssi.conf.sample ${PREFIX}/etc/irssi.conf ; \
|
2000-12-11 21:21:39 +01:00
|
|
|
fi
|
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>
|