1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00
freebsd-ports/news/nn/Makefile
2024-01-09 11:32:17 +01:00

32 lines
770 B
Makefile

PORTNAME= nn
PORTVERSION= 6.7.3
PORTREVISION= 3
CATEGORIES= news
MASTER_SITES= ftp://ftp.nndev.org/pub/nn-${PORTVERSION:R}/
MAINTAINER= ports@FreeBSD.org
COMMENT= Menu based USENET newsreader
WWW= http://www.nndev.org/
SUB_FILES= pkg-message
USES= tar:Z
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS} -Iconf -fcommon" LDFLAGS="${LDFLAGS} -s"
pre-patch:
@${CP} ${WRKSRC}/config.h-dist ${WRKSRC}/config.h.unparsed
pre-build:
@${SED} 's#SUB_PREFIX#${PREFIX}#; s#SUB_MANPREFIX#${PREFIX}/share#' \
${WRKSRC}/config.h.unparsed > ${WRKSRC}/config.h
post-build:
@${REINPLACE_CMD} 's#${PREFIX}#$${DESTDIR}&#' ${WRKSRC}/inst
post-install:
${INSTALL_DATA} ${FILESDIR}/nntp_domain.dist \
${FILESDIR}/nntp_server.dist \
${STAGEDIR}${PREFIX}/etc
.include <bsd.port.mk>