1999-04-30 17:08:25 +00:00
|
|
|
# New ports collection makefile for: irssi
|
|
|
|
# Date created: 14 Apr 1999
|
1999-08-14 07:11:57 +00:00
|
|
|
# Whom: Jim Mock <jim@FreeBSD.org>
|
1999-04-30 17:08:25 +00:00
|
|
|
#
|
1999-08-25 06:16:32 +00:00
|
|
|
# $FreeBSD$
|
1999-04-30 17:08:25 +00:00
|
|
|
#
|
|
|
|
|
2000-04-12 06:28:35 +00:00
|
|
|
PORTNAME= irssi
|
2000-12-11 20:21:39 +00:00
|
|
|
PORTVERSION= 0.7.97
|
2000-06-12 19:16:51 +00:00
|
|
|
CATEGORIES= irc ipv6
|
2000-07-01 19:25:36 +00:00
|
|
|
MASTER_SITES= http://irssi.org/files/
|
2000-12-11 20:21:39 +00:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}.1
|
1999-04-30 17:08:25 +00:00
|
|
|
|
1999-08-14 07:11:57 +00:00
|
|
|
MAINTAINER= jim@FreeBSD.org
|
1999-04-30 17:08:25 +00:00
|
|
|
|
2000-10-05 06:23:01 +00:00
|
|
|
LIB_DEPENDS= intl.1:${PORTSDIR}/devel/gettext
|
1999-04-30 17:08:25 +00:00
|
|
|
|
2000-08-23 00:55:49 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
2000-10-05 06:23:01 +00:00
|
|
|
|
1999-04-30 17:08:25 +00:00
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_PERL5= yes
|
2000-10-05 06:23:01 +00:00
|
|
|
USE_GLIB= yes
|
2000-12-11 20:21:39 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2000-06-12 19:16:51 +00:00
|
|
|
CONFIGURE_ARGS= --without-socks --with-textui --with-bot \
|
2000-12-11 20:21:39 +00:00
|
|
|
--without-servertest \
|
|
|
|
--enable-perl-path=${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}
|
|
|
|
|
2000-10-05 06:23:01 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LIBS="-L${LOCALBASE}/lib -lintl"
|
2000-01-24 20:34:23 +00:00
|
|
|
|
2000-01-22 19:50:26 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} >= 400014
|
|
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-ipv6
|
|
|
|
.endif
|
|
|
|
|
2000-10-05 06:23:01 +00:00
|
|
|
pre-patch:
|
|
|
|
@${PERL} -pi -e 's|-lpthread|-pthread|g ; \
|
|
|
|
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 17:08:25 +00:00
|
|
|
|
2000-12-11 20:21:39 +00: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 19:50:26 +00:00
|
|
|
.include <bsd.port.post.mk>
|