pkgsrc/chat/irssi/Makefile

51 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.19 2003/05/02 11:54:03 wiz Exp $
DISTNAME= ${IRSSI_DISTNAME}
PKGREVISION= 2
CATEGORIES= chat
MASTER_SITES= http://real.irssi.org/files/
EXTRACT_SUFX= ${IRSSI_EXTRACT_SUFX}
MAINTAINER= mutru@iki.fi
HOMEPAGE= http://www.irssi.org/
COMMENT= Secure and modular IRC client with text mode user interface
.include "${.CURDIR}/Makefile.common"
# list it into IPv6-ready packages
BUILD_DEFS+= USE_INET6
GNU_CONFIGURE= yes
USE_BUILDLINK2= yes
USE_PKGINSTALL= yes
CONFIGURE_ARGS+= --with-terminfo \
--enable-ipv6 \
--without-ncurses \
--sysconfdir=${PKG_SYSCONFDIR}
EGDIR= ${PREFIX}/share/examples/irssi
CONF_FILES= ${EGDIR}/irssi.conf ${PKG_SYSCONFDIR}/irssi.conf
.include "../../mk/bsd.prefs.mk"
.if defined(IRSSI_USE_PERL) && (${IRSSI_USE_PERL} == "YES")
PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/Irssi/.packlist
PERL5_PACKLIST+= ${PERL5_SITEARCH}/auto/Irssi/Irc/.packlist
PERL5_PACKLIST+= ${PERL5_SITEARCH}/auto/Irssi/UI/.packlist
PERL5_PACKLIST+= ${PERL5_SITEARCH}/auto/Irssi/TextUI/.packlist
.include "../../lang/perl5/buildlink2.mk"
# actually we don't need --with-perl here, irssi is compiled with it by default
# but who knows what may happen in future versions
CONFIGURE_ARGS+= --with-perl
CONFIGURE_ARGS+= --with-perl-lib=site
.else
CONFIGURE_ARGS+= --with-perl=no
.endif
post-install:
${INSTALL_DATA} ${WRKSRC}/config.h ${IRSSI_CONFIG_H}
${INSTALL_DATA} ${WRKSRC}/irssi-config ${IRSSI_CONFIG}
.include "../../devel/glib/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"