[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / chat / znc

File: [cvs.NetBSD.org] / pkgsrc / chat / znc / Makefile (download)

Revision 1.22, Fri Dec 4 20:45:03 2020 UTC (3 years, 2 months ago) by nia
Branch: MAIN
CVS Tags: pkgsrc-2020Q4-base, pkgsrc-2020Q4
Changes since 1.21: +2 -2 lines

Revbump packages with a runtime Python dep but no version prefix.

For the Python 3.8 default switch.

# $NetBSD: Makefile,v 1.22 2020/12/04 20:45:03 nia Exp $

DISTNAME=	znc-1.8.2
PKGREVISION=	2
CATEGORIES=	chat
MASTER_SITES=	https://znc.in/releases/archive/

MAINTAINER=	nia@NetBSD.org
HOMEPAGE=	https://znc.in/
COMMENT=	Advanced IRC bouncer with IPv6 and SSL support
LICENSE=	gnu-gpl-v2

USE_CMAKE=	yes
USE_TOOLS+=	pkg-config msgfmt
USE_LANGUAGES=	c c++11
MANCOMPRESSED=	yes

# C++11
GCC_REQD+=	4.7

LDFLAGS.SunOS+=	-lsocket -lnsl

PLIST_SRC=	PLIST
PLIST_SUBST+=	ZNC_USER="${ZNC_USER}"
PLIST_SUBST+=	PKG_SYSCONFDIR="${PKG_SYSCONFDIR}"
PLIST_SUBST+=	PKG_PREFIX="${PREFIX}"

BUILD_DEFS+=	VARBASE
BUILD_DEFS+=	PKG_SYSCONFDIR
BUILD_DEFS+=	ZNC_USER
BUILD_DEFS+=	ZNC_GROUP

PKG_SYSCONFSUBDIR=	${PKGBASE}

.include "../../mk/bsd.prefs.mk"

ZNC_USER?=	znc
ZNC_GROUP?=	znc
PKG_GROUPS=	${ZNC_GROUP}
PKG_USERS=	${ZNC_USER}:${ZNC_GROUP}

PKG_GROUPS_VARS=	ZNC_USER
PKG_USERS_VARS=		ZNC_GROUP

RCD_SCRIPTS+=		znc
PTHREAD_AUTO_VARS=	yes

OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR} ${ZNC_USER} ${ZNC_GROUP} 0755

PKGCONFIG_OVERRIDE+=	znc.pc.in

SUBST_CLASSES+=		man
SUBST_STAGE.man=	pre-configure
SUBST_MESSAGE.man=	Fixing absolute paths in znc.1 manpage.
SUBST_FILES.man=	man/znc.1
SUBST_SED.man=		-e 's,\~\/\.znc,${PKG_SYSCONFDIR},g'
SUBST_SED.man+=		-e 's,\/usr\/local,${PREFIX},g'

.include "options.mk"
.include "../../devel/libgetopt/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"