[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.37, Mon Oct 8 12:27:41 2012 UTC (8 years, 6 months ago) by asau
Branch: MAIN
CVS Tags: pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4
Changes since 1.36: +1 -3 lines

Drop PKG_DESTDIR_SUPPORT setting, "user-destdir" is default these days.

# $NetBSD: Makefile,v 1.37 2012/10/08 12:27:41 asau 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
ONLY_FOR_PLATFORM=	NetBSD-*-* SunOS-*-* DragonFly-*-* 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"