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
|
2005-12-12 06:46:52 +01:00
|
|
|
PORTVERSION= 0.8.10
|
2006-09-25 10:29:18 +02:00
|
|
|
PORTREVISION?= 3
|
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
|
|
|
|
2005-12-12 06:46:52 +01:00
|
|
|
CONFLICTS= irssi-devel-[0-9]*
|
2005-07-24 19:16:19 +02:00
|
|
|
|
2002-02-17 17:12:20 +01:00
|
|
|
USE_BZIP2= yes
|
2005-12-12 06:46:52 +01:00
|
|
|
USE_GNOME= glib20
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2005-12-12 06:46:52 +01:00
|
|
|
CONFIGURE_ARGS= --with-module
|
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
|
|
|
|
2005-12-12 06:46:52 +01:00
|
|
|
OPTIONS= PERL "Enable perl support" on \
|
|
|
|
PROXY "Enable proxy support" off \
|
|
|
|
SOCKS "Enable socks proxy support" off \
|
|
|
|
IPV6 "Enable IPv6" on \
|
2006-12-08 18:39:33 +01:00
|
|
|
BOT "Enable bot" off
|
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
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
2003-12-07 09:25:02 +01:00
|
|
|
|
|
|
|
# Process options.
|
|
|
|
|
2005-12-12 06:46:52 +01:00
|
|
|
.if defined(WITH_PERL)
|
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
|
|
|
|
|
2005-12-12 06:46:52 +01:00
|
|
|
.if defined(WITH_PROXY)
|
2003-01-12 06:27:42 +01:00
|
|
|
CONFIGURE_ARGS+= --with-proxy
|
|
|
|
PLIST_SUB+= WITH_PROXY=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= WITH_PROXY="@comment "
|
|
|
|
.endif
|
|
|
|
|
2005-12-12 06:46:52 +01:00
|
|
|
.if defined(WITH_SOCKS)
|
2003-12-07 09:25:02 +01:00
|
|
|
CONFIGURE_ARGS+= --with-socks
|
|
|
|
.endif
|
|
|
|
|
2005-12-12 06:46:52 +01:00
|
|
|
.if defined(WITH_IPV6)
|
2003-11-15 11:37:41 +01:00
|
|
|
.if ${OSVERSION} >= 400014
|
2003-12-07 09:25:02 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
2003-11-15 11:37:41 +01:00
|
|
|
CATEGORIES+= ipv6
|
2003-12-07 09:25:02 +01:00
|
|
|
.else
|
2006-09-18 18:26:04 +02:00
|
|
|
BROKEN= This version of FreeBSD does not support IPv6. Please use WITH_IPV6=no
|
2003-12-07 09:25:02 +01:00
|
|
|
.endif
|
2003-11-15 11:37:41 +01:00
|
|
|
.endif
|
2003-12-07 09:25:02 +01:00
|
|
|
|
2005-12-12 06:46:52 +01:00
|
|
|
.if defined(WITH_BOT)
|
2003-12-08 17:28:54 +01:00
|
|
|
CONFIGURE_ARGS+= --with-bot
|
|
|
|
.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
|
|
|
|
2000-01-22 20:50:26 +01:00
|
|
|
.include <bsd.port.post.mk>
|