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

File: [cvs.NetBSD.org] / pkgsrc / news / nntpclnt / Makefile (download)

Revision 1.38, Thu Jan 1 11:19:28 2015 UTC (6 years, 1 month ago) by dholland
Branch: MAIN
CVS Tags: pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1
Changes since 1.37: +3 -2 lines

Use BROKEN_EXCEPT_ON_PLATFORM for where configs have to be created manually.

# $NetBSD: Makefile,v 1.38 2015/01/01 11:19:28 dholland Exp $

DISTNAME=	nntpclnt-1.6.1
PKGREVISION=	6
CATEGORIES=	news
MASTER_SITES=	http://ftp.sunet.se/pub/news/nntp/

MAINTAINER=	pkgsrc-users@NetBSD.org
COMMENT=	NNTP client library and inews client posting program
LICENSE=	nntpclnt-license

RESTRICTED=	Do not sell, rent, trade, market, or use for monetary profit
# No permission granted for derivative works.
NO_BIN_ON_FTP=	${RESTRICTED}
NO_SRC_ON_CDROM=${RESTRICTED}
NO_BIN_ON_CDROM=${RESTRICTED}

CONFLICTS+=	inn-[0-9]*

BUILD_TARGET=	inews
PKG_GROUPS=	news
PKG_SYSCONFSUBDIR=	nntp

PLIST_SUBST+=	PKG_SYSCONFDIR=${PKG_SYSCONFDIR:Q}

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

CONFIG_SH=	${FILESDIR}/config.${OPSYS}.sh
BROKEN_EXCEPT_ON_PLATFORM=	NetBSD-*-* DragonFly-*-* \
				SunOS-*-* Linux-*-* Darwin-*-*

INSTALLATION_DIRS=	bin include lib ${PKGMANDIR}/man3

do-configure:
	${SED} -e s,@PREFIX@,${PREFIX}, -e s,@PKGSYSCONFDIR@,${PKG_SYSCONFDIR}, \
		${CONFIG_SH} >${WRKSRC}/config.sh
	@cd ${WRKSRC} && ${SH} Makefile.SH && ${SH} config.h.SH

post-build:
	cd ${WRKSRC} && \
		${AR} clq libnntpclnt.a nntpclnt.o && ${RANLIB} libnntpclnt.a

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/inews ${DESTDIR}${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/nntp.h ${DESTDIR}${PREFIX}/include/
	${INSTALL_DATA} ${WRKSRC}/libnntpclnt.a ${DESTDIR}${PREFIX}/lib/
	${INSTALL_DATA} ${WRKSRC}/nntpclnt.3 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man3/

SPECIAL_PERMS+=	bin/inews ${REAL_ROOT_USER} ${PKG_GROUPS} 2555

.include "../../mk/bsd.pkg.mk"