1999-04-30 13:08:25 -04:00
|
|
|
# New ports collection makefile for: irssi
|
|
|
|
# Date created: 14 Apr 1999
|
1999-08-14 03:11:57 -04:00
|
|
|
# Whom: Jim Mock <jim@FreeBSD.org>
|
1999-04-30 13:08:25 -04:00
|
|
|
#
|
1999-08-25 02:16:32 -04:00
|
|
|
# $FreeBSD$
|
1999-04-30 13:08:25 -04:00
|
|
|
#
|
|
|
|
|
2000-04-12 02:28:35 -04:00
|
|
|
PORTNAME= irssi
|
2001-03-26 11:23:55 -05:00
|
|
|
PORTVERSION= 0.7.98.3
|
2001-04-27 04:56:09 -04:00
|
|
|
PORTREVISION= 3
|
2001-04-27 12:39:50 -04:00
|
|
|
CATEGORIES+= irc ipv6 # `+=' is for slave ports
|
2000-07-01 15:25:36 -04:00
|
|
|
MASTER_SITES= http://irssi.org/files/
|
1999-04-30 13:08:25 -04:00
|
|
|
|
2001-05-06 16:17:43 -04:00
|
|
|
MAINTAINER?= vanilla@FreeBSD.org
|
1999-04-30 13:08:25 -04:00
|
|
|
|
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_PERL5= yes
|
2000-10-05 02:23:01 -04:00
|
|
|
USE_GLIB= yes
|
2000-12-11 15:21:39 -05:00
|
|
|
GNU_CONFIGURE= yes
|
2001-04-27 12:39:50 -04:00
|
|
|
# `+=' is for slave ports
|
|
|
|
CONFIGURE_ARGS+= --without-socks --with-bot --without-servertest \
|
2001-04-27 04:56:09 -04:00
|
|
|
--enable-perl-path=${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}
|
2001-03-10 09:32:47 -05:00
|
|
|
CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib -lintl"
|
2000-01-24 15:34:23 -05:00
|
|
|
|
2000-01-22 14:50:26 -05:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} >= 400014
|
|
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-ipv6
|
|
|
|
.endif
|
|
|
|
|
2000-10-05 02:23:01 -04:00
|
|
|
pre-patch:
|
2001-03-29 11:35:19 -05:00
|
|
|
@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
|
2000-10-05 02:23:01 -04:00
|
|
|
s|DATADIRNAME=lib|DATADIRNAME=share|g ; \
|
|
|
|
s|USE_INCLUDED_LIBINTL=yes|#USE_INCLUDED_LIBINTL=yes|g ; \
|
|
|
|
s|\$$\(top_builddir\)/intl/libintl.a|-lintl|g' ${WRKSRC}/configure
|
1999-04-30 13:08:25 -04:00
|
|
|
|
2000-12-11 15:21:39 -05:00
|
|
|
pre-configure:
|
|
|
|
@cd ${WRKSRC} && ${MV} config config.sample
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@if [ ! -f ${LOCALBASE}/etc/irssi/config ]; then \
|
|
|
|
${ECHO} "Installing default configuration file."; \
|
|
|
|
${INSTALL_SCRIPT} -m 644 ${WRKSRC}/config.sample ${LOCALBASE}/etc/irssi/config; \
|
|
|
|
fi
|
|
|
|
|
2000-01-22 14:50:26 -05:00
|
|
|
.include <bsd.port.post.mk>
|