2005-07-24 19:07:29 +02:00
|
|
|
# New ports collection makefile for: irssi-devel
|
|
|
|
# Date created: 03 Mar 2005
|
|
|
|
# Whom: Vsevolod Stakhov <vsevolod@highsecure.ru>
|
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
|
2009-04-29 00:48:21 +02:00
|
|
|
PORTVERSION= 20090427
|
2005-07-24 19:07:29 +02:00
|
|
|
CATEGORIES= irc
|
2008-09-05 16:02:17 +02:00
|
|
|
MASTER_SITES= http://freebsd.unixfreunde.de/sources/
|
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
|
|
|
|
|
|
|
|
CONFLICTS= irssi-0.8*
|
1999-04-30 19:08:25 +02:00
|
|
|
|
2005-07-24 19:07:29 +02:00
|
|
|
USE_GNOME= glib20
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2005-07-24 19:07:29 +02:00
|
|
|
USE_GMAKE= yes
|
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
|
|
|
|
2006-05-16 14:24:44 +02:00
|
|
|
OPTIONS= PERL "Enable Perl support" on \
|
2005-07-24 19:07:29 +02:00
|
|
|
PROXY "Enable proxy support" off \
|
|
|
|
SOCKS "Enable socks proxy support" off \
|
|
|
|
IPV6 "Enable IPv6" on \
|
|
|
|
BOT "Enable bot" off
|
2000-01-22 20:50:26 +01:00
|
|
|
|
2009-04-02 12:06:43 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-0.8.13
|
2009-04-04 19:37:32 +02:00
|
|
|
MAKE_JOBS_SAFE= yes
|
2006-05-16 14:24:44 +02:00
|
|
|
|
2005-07-24 19:07:29 +02:00
|
|
|
# USE_OPENSSL must be defined before bsd.port.pre.mk so use old schema
|
|
|
|
# for WITH_SSL option
|
2004-02-07 07:39:25 +01:00
|
|
|
|
2005-07-24 19:07:29 +02: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.
|
|
|
|
|
2006-05-16 14:24:44 +02:00
|
|
|
.if !defined(WITHOUT_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-07-24 19:07:29 +02: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-07-24 19:07:29 +02:00
|
|
|
.if defined(WITH_SOCKS)
|
2003-12-07 09:25:02 +01:00
|
|
|
CONFIGURE_ARGS+= --with-socks
|
|
|
|
.endif
|
|
|
|
|
2006-05-16 14:24:44 +02:00
|
|
|
.if !defined(WITHOUT_IPV6)
|
2003-12-07 09:25:02 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
2003-11-15 11:37:41 +01:00
|
|
|
CATEGORIES+= ipv6
|
2003-12-11 04:07:14 +01:00
|
|
|
.endif
|
|
|
|
|
2005-07-24 19:07:29 +02:00
|
|
|
.if defined(WITH_BOT)
|
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
|
|
|
|
|
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
|
|
|
|
|
2000-01-22 20:50:26 +01:00
|
|
|
.include <bsd.port.post.mk>
|