2012-12-17 03:15:13 +01:00
|
|
|
# Created by: Vsevolod Stakhov <vsevolod@highsecure.ru>
|
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
|
2012-08-09 00:44:38 +02:00
|
|
|
PORTVERSION= 20120624
|
2012-08-25 18:18:59 +02:00
|
|
|
PORTREVISION= 1
|
2005-07-24 19:07:29 +02:00
|
|
|
CATEGORIES= irc
|
2012-08-25 18:18:59 +02:00
|
|
|
MASTER_SITES= http://bsdcrew.de/distfiles/
|
2005-07-24 19:07:29 +02:00
|
|
|
PKGNAMESUFFIX= -devel
|
1999-04-30 19:08:25 +02:00
|
|
|
|
2007-06-21 23:22:39 +02:00
|
|
|
MAINTAINER= miwi@FreeBSD.org
|
2005-07-24 19:07:29 +02:00
|
|
|
COMMENT= A modular IRC client with many features
|
|
|
|
|
2010-02-02 23:50:13 +01:00
|
|
|
LIB_DEPENDS= glib-2.0:${PORTSDIR}/devel/glib20
|
|
|
|
|
2005-07-24 19:07:29 +02:00
|
|
|
CONFLICTS= irssi-0.8*
|
1999-04-30 19:08:25 +02:00
|
|
|
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2005-07-24 19:07:29 +02:00
|
|
|
USE_GMAKE= yes
|
2013-03-08 11:51:34 +01:00
|
|
|
USE_PKGCONFIG= build
|
2007-09-30 06:10:20 +02:00
|
|
|
WANT_PERL= yes
|
2009-03-26 15:59:17 +01:00
|
|
|
MAKE_JOBS_SAFE= 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-12-17 03:15:13 +01:00
|
|
|
OPTIONS_DEFINE= PERL PROXY SOCKS IPV6 BOT SSL
|
|
|
|
SOCKS_DESC= Socks proxy support
|
|
|
|
BOT_DESC= Bot support
|
|
|
|
OPTIONS_DEFAULT= PERL IPV6 SSL
|
2000-01-22 20:50:26 +01:00
|
|
|
|
2010-05-09 13:22:58 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-0.8.15-svn
|
2006-05-16 14:24:44 +02:00
|
|
|
|
2012-12-17 03:15:13 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2004-02-07 07:39:25 +01:00
|
|
|
|
2012-12-17 03:15:13 +01:00
|
|
|
# Process options.
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MSSL}
|
2004-02-08 18:02:11 +01:00
|
|
|
USE_OPENSSL= yes
|
2012-12-17 03:15:13 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-ssl
|
2004-02-08 18:02:11 +01:00
|
|
|
.endif
|
|
|
|
|
2012-12-17 03:15:13 +01: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-12-17 03:15:13 +01: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-12-17 03:15:13 +01:00
|
|
|
.if ${PORT_OPTIONS:MSOCKS}
|
2003-12-07 09:25:02 +01:00
|
|
|
CONFIGURE_ARGS+= --with-socks
|
|
|
|
.endif
|
|
|
|
|
2012-12-17 03:15:13 +01:00
|
|
|
.if ${PORT_OPTIONS:MIPV6}
|
2003-12-07 09:25:02 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
2003-11-15 11:37:41 +01:00
|
|
|
CATEGORIES+= ipv6
|
2012-12-17 03:15:13 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-ipv6
|
2003-12-11 04:07:14 +01:00
|
|
|
.endif
|
|
|
|
|
2012-12-17 03:15:13 +01:00
|
|
|
.if ${PORT_OPTIONS:MBOT}
|
2003-12-08 17:28:54 +01:00
|
|
|
CONFIGURE_ARGS+= --with-bot
|
2007-06-21 23:22:39 +02:00
|
|
|
PLIST_SUB+= WITH_BOT=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-bot
|
|
|
|
PLIST_SUB+= WITH_BOT="@comment "
|
2003-12-08 17:28:54 +01:00
|
|
|
.endif
|
|
|
|
|
2010-02-02 23:50:13 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|/usr|${PREFIX}|' -e 's|/etc|${PREFIX}&|' \
|
|
|
|
${WRKSRC}/docs/irssi.1
|
|
|
|
|
2005-07-24 19:07:29 +02:00
|
|
|
post-configure:
|
|
|
|
@${MV} ${WRKSRC}/irssi.conf ${WRKSRC}/irssi.conf.sample
|
2000-12-11 21:21:39 +01:00
|
|
|
|
|
|
|
post-install:
|
2005-07-24 19:07:29 +02:00
|
|
|
@if [ ! -f ${PREFIX}/etc/irssi.conf ]; then \
|
2000-12-11 21:21:39 +01:00
|
|
|
${ECHO} "Installing default configuration file."; \
|
2005-07-24 19:07:29 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/irssi.conf.sample ${PREFIX}/etc/irssi.conf ; \
|
2000-12-11 21:21:39 +01:00
|
|
|
fi
|
|
|
|
|
2012-12-17 03:15:13 +01:00
|
|
|
.include <bsd.port.mk>
|