diff options
author | Vanilla I. Shu <vanilla@FreeBSD.org> | 2003-12-07 08:25:02 +0000 |
---|---|---|
committer | Vanilla I. Shu <vanilla@FreeBSD.org> | 2003-12-07 08:25:02 +0000 |
commit | 90bd0339cd6a9f03e6996ee12143c233741cd21a (patch) | |
tree | 9af4b7158e29a358eebd24e112cf5a8a66b95bab /irc/irssi/Makefile | |
parent | a32db480a7920862c2e3cdcd4e57551bbf781589 (diff) | |
download | ports-90bd0339cd6a9f03e6996ee12143c233741cd21a.tar.gz ports-90bd0339cd6a9f03e6996ee12143c233741cd21a.zip |
Upgrade to 0.8.8, add WITH_PERL, WITH_SOCKS, WITHOUT_IPV6, WITHOUT_GLIB2 knob.
PR: ports/59614
Submitted by: Jean-Yves Lefort <jylefort@brutele.be>
Notes
Notes:
svn path=/head/; revision=95252
Diffstat (limited to 'irc/irssi/Makefile')
-rw-r--r-- | irc/irssi/Makefile | 99 |
1 files changed, 84 insertions, 15 deletions
diff --git a/irc/irssi/Makefile b/irc/irssi/Makefile index d2a860503e46..c40d9d15d759 100644 --- a/irc/irssi/Makefile +++ b/irc/irssi/Makefile @@ -6,41 +6,110 @@ # PORTNAME= irssi -PORTVERSION= 0.8.6 -PORTREVISION?= 3 -CATEGORIES+= irc # `+=' is for slave ports +PORTVERSION= 0.8.8 +CATEGORIES= irc MASTER_SITES= http://irssi.org/files/ -MAINTAINER?= vanilla@FreeBSD.org -COMMENT?= A modular IRC client with many features +MAINTAINER= vanilla@FreeBSD.org +COMMENT= A modular IRC client with many features USE_BZIP2= yes -USE_PERL5= yes -USE_GNOME= glib12 GNU_CONFIGURE= yes -# `+=' is for slave ports -CONFIGURE_ARGS+= --without-socks --without-bot --with-textui \ - --with-perl-lib=site + +MAN1= irssi.1 .include <bsd.port.pre.mk> -.if defined(WITH_PROXY) +# Set option defaults. + +.if ! defined(WITH_GLIB) +.if exists(${LOCALBASE}/include/glib-2.0/glib.h) +WITH_GLIB= 2 +.else +WITH_GLIB= 1 +.endif +.endif + +.if ! defined(WITH_PERL) +WITH_PERL= no +.endif + +.if ! defined(WITH_PROXY) +WITH_PROXY= no +.endif + +.if ! defined(WITH_SOCKS) +WITH_SOCKS= no +.endif + +.if ! defined(WITH_IPV6) +WITH_IPV6= yes +.endif + +.if ! defined(WITH_SSL) +WITH_SSL= yes +.endif + +# Process options. + +.if ${WITH_GLIB} == "2" +USE_GNOME= glib20 +LIB_DEPENDS+= gc.1:${PORTSDIR}/deve/boehm-gc +CONFIGURE_ENV+= CPPFLAGS=-I${PREFIX}/include +CONFIGURE_ARGS+= --with-gc +.elif ${WITH_GLIB} == "1" +CONFIGURE_ARGS+= --with-glib1 +USE_GNOME= glib12 +.else +.error WITH_GLIB must be set to "1" or "2". +.endif + +.if ${WITH_PERL:L} == "yes" +USE_PERL5= yes +CONFIGURE_ARGS+= --with-perl-lib=site +PLIST_SUB+= WITH_PERL="" +.else +CONFIGURE_ARGS+= --without-perl +PLIST_SUB+= WITH_PERL="@comment " +.endif + +.if ${WITH_PROXY:L} == "yes" CONFIGURE_ARGS+= --with-proxy PLIST_SUB+= WITH_PROXY="" .else PLIST_SUB+= WITH_PROXY="@comment " .endif -.if defined(WITH_IPV6) +.if ${WITH_SOCKS:L} == "yes" +CONFIGURE_ARGS+= --with-socks +.endif + +.if ${WITH_IPV6:L} == "yes" .if ${OSVERSION} >= 400014 -CONFIGURE_ARGS+= --enable-ipv6 +CONFIGURE_ARGS+= --enable-ipv6 CATEGORIES+= ipv6 +.else +.error This version of FreeBSD does not support IPv6. Please use WITH_IPV6=no. +.endif .endif + +.if ${WITH_SSL:L} == "yes" +USE_OPENSSL= yes .else -CONFIGURE_ARGS+= --disable-ipv6 +CONFIGURE_ARGS+= --disable-ssl .endif -MAN1= irssi.1 +pre-everything:: + @${ECHO} "" + @${ECHO} "You may use the following build options:" + @${ECHO} "" + @${ECHO} " WITH_GLIB=1|2 Select a GLib version to use [auto]" + @${ECHO} " WITH_PERL=yes|no Enable Perl support [no]" + @${ECHO} " WITH_PROXY=yes|no Enable irssi-proxy [no]" + @${ECHO} " WITH_SOCKS=yes|no Enable Socks support [no]" + @${ECHO} " WITH_IPV6=yes|no Enable IPv6 support [yes]" + @${ECHO} " WITH_SSL=yes|no Enable SSL support [yes]" + @${ECHO} "" pre-configure: @cd ${WRKSRC} && ${MV} irssi.conf irssi.conf.sample |