2017-07-06 16:51:00 +02:00
|
|
|
# $NetBSD: Makefile,v 1.78 2017/07/06 14:51:00 mrg Exp $
|
2000-12-15 01:36:25 +01:00
|
|
|
|
2002-03-10 11:37:27 +01:00
|
|
|
DISTNAME= ircii-${VERS}
|
|
|
|
PKGNAME= ircII-${VERS}
|
2000-12-15 01:36:25 +01:00
|
|
|
CATEGORIES= chat
|
2014-01-02 08:57:49 +01:00
|
|
|
MASTER_SITES= http://ircii.warped.com/
|
2000-12-15 01:36:25 +01:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2004-02-21 23:06:37 +01:00
|
|
|
HOMEPAGE= http://www.eterna.com.au/ircii/
|
2012-05-23 15:16:34 +02:00
|
|
|
COMMENT= 'Internet Relay Chat' and 'Internet Citizens Band' Client
|
2010-01-22 01:22:18 +01:00
|
|
|
LICENSE= modified-bsd
|
2000-12-15 01:36:25 +01:00
|
|
|
|
2001-09-28 01:17:41 +02:00
|
|
|
CONFLICTS= blackened-[0-9]*
|
2001-04-12 12:35:41 +02:00
|
|
|
|
2017-07-06 16:51:00 +02:00
|
|
|
VERS= 20170704
|
2007-02-22 20:26:05 +01:00
|
|
|
PLIST_SUBST+= VERS=${VERS:Q}
|
2002-03-10 11:37:27 +01:00
|
|
|
|
2000-12-15 01:36:25 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2014-08-25 08:22:18 +02:00
|
|
|
# By default, mandir defaults to @datarootdir@/man, and then it gets
|
|
|
|
# ${DESTDIR} applied already. However, if you pass --mandir it does
|
|
|
|
# not provide it, and you have to supply it directly as well. To do
|
|
|
|
# this in pkgsrc, we have to set CONFIGURE_HAS_MANDIR=no so that
|
|
|
|
# we don't pass --mandir=${PREFIX}/man as well, last.
|
|
|
|
CONFIGURE_HAS_MANDIR= no
|
2016-03-28 00:53:39 +02:00
|
|
|
CONFIGURE_ARGS+= --mandir=${DESTDIR}${PREFIX}/${PKGMANDIR}
|
2014-08-25 08:22:18 +02:00
|
|
|
|
2004-01-20 13:07:06 +01:00
|
|
|
WRKSRC= ${WRKDIR}/ircii-${VERS}
|
2000-12-15 01:36:25 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
.if defined(DEFAULT_IRC_SERVER)
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --with-default-server=${DEFAULT_IRC_SERVER:Q}
|
2000-12-15 01:36:25 +01:00
|
|
|
.endif
|
2008-01-04 21:00:32 +01:00
|
|
|
USE_TOOLS+= chmod # see post-extract
|
2000-12-15 01:36:25 +01:00
|
|
|
|
2007-09-08 00:12:10 +02:00
|
|
|
# This pkg auto-detects IPv6.
|
|
|
|
BUILD_DEFS+= IPV6_READY
|
2000-12-15 01:36:25 +01:00
|
|
|
|
2005-06-03 00:21:18 +02:00
|
|
|
.include "options.mk"
|
2000-12-15 01:36:25 +01:00
|
|
|
|
2004-04-14 19:33:38 +02:00
|
|
|
# Allow customizations from ${MAKECONF}
|
2001-07-07 22:54:52 +02:00
|
|
|
CONFIGURE_ARGS+= ${IRCII_CONFIGURE_ARGS}
|
|
|
|
CONFIGURE_ENV+= ${IRCII_CONFIGURE_ENV}
|
|
|
|
|
2015-03-15 00:43:28 +01:00
|
|
|
LDFLAGS.SunOS+= -lsocket -lnsl
|
|
|
|
LDFLAGS+= ${BUILDLINK_LDADD.iconv}
|
2003-11-25 14:35:20 +01:00
|
|
|
|
2016-02-25 12:21:11 +01:00
|
|
|
CONFIGURE_ARGS.Interix+= --with-non-blocking=none
|
2006-01-01 17:17:15 +01:00
|
|
|
|
2006-06-14 16:23:32 +02:00
|
|
|
# Optionally install compressed help files if MANZ is defined.
|
|
|
|
.if defined(MANZ)
|
|
|
|
PLIST_SUBST+= GZSUFFIX=".gz"
|
2010-03-30 12:29:40 +02:00
|
|
|
DOC_COMPRESS_ARGS= -z ${DESTDIR}${PREFIX}
|
2006-06-14 16:23:32 +02:00
|
|
|
.else
|
|
|
|
PLIST_SUBST+= GZSUFFIX=
|
2010-03-30 12:29:40 +02:00
|
|
|
DOC_COMPRESS_ARGS= ${DESTDIR}${PREFIX}
|
2006-06-14 16:23:32 +02:00
|
|
|
.endif
|
2000-12-15 01:36:25 +01:00
|
|
|
|
2008-01-04 21:00:32 +01:00
|
|
|
post-extract:
|
|
|
|
chmod -R g-w ${WRKSRC}/help/.
|
|
|
|
|
2000-12-15 01:36:25 +01:00
|
|
|
post-install:
|
2006-06-14 16:23:32 +02:00
|
|
|
${AWK} '/^share\/irc\/help\// { sub("\\$${GZSUFFIX}$$", ""); print }' \
|
|
|
|
${PLIST_SRC} | \
|
|
|
|
${SETENV} PATH=${PATH:Q} PKG_VERBOSE=${PKG_VERBOSE:Q} \
|
|
|
|
${SH} ${PKGSRCDIR}/mk/plist/doc-compress ${DOC_COMPRESS_ARGS}
|
2000-12-15 01:36:25 +01:00
|
|
|
|
2014-08-25 17:09:41 +02:00
|
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
2011-12-18 00:42:40 +01:00
|
|
|
.include "../../mk/termcap.buildlink3.mk"
|
2000-12-15 01:36:25 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|