1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00
freebsd-ports/news/newsx/Makefile
Jimmy Olgeni 7dc406a7a1 Remove indefinite articles and trailing periods from COMMENT, plus minor
COMMENT typos and surrounding whitespace fixes. A few Makefiles where not
included as they contain Latin-1 characters that break the Phabricator
workflow. Category N.

CR:		D307
Approved by:	portmgr (bapt)
2014-07-10 12:13:11 +00:00

64 lines
1.6 KiB
Makefile

# Created by: Thierry Thomas <tthomas@mail.dotcom.fr>
# $FreeBSD$
PORTNAME= newsx
PORTVERSION= 1.6
PORTREVISION= 3
CATEGORIES= news
MASTER_SITES= http://www.kvaleberg.org/pub/
MAINTAINER= thierry@FreeBSD.org
COMMENT= Program to fetch news from and post news to a remote NNTP server
LICENSE= GPLv2
.if defined(WITH_CNEWS)
BUILD_DEPENDS= ${LOCALBASE}/news/lib/libcnews.a:${PORTSDIR}/news/cnews
.elif !defined(WITHOUT_INN_2-X)
BUILD_DEPENDS= ${LOCALBASE}/news/lib/libinn.a:${PORTSDIR}/news/inn
.endif
GNU_CONFIGURE= yes
CONFLICTS= leafnode-1.*
OPTIONS_DEFINE= DOCS
.if !defined(WITH_CNEWS)
.if !defined(WITHOUT_INN_2-X)
CPPFLAGS+= -I${LOCALBASE}/news/include
.endif
.endif
.if defined(PACKAGE_BUILDING)
CONFIGURE_ARGS+= --without-history
.endif
DOCS= AUTHORS COPYING ChangeLog FAQ INSTALL NEWS README TODO
.include <bsd.port.options.mk>
pre-configure:
${REINPLACE_CMD} -e "s:%%LOCALBASE%%:${LOCALBASE}:g" ${WRKSRC}/configure
@${ECHO} "*********************************************************"
@${ECHO} "If the configure step fails, then you probably don't have"
@${ECHO} "a news server package installed. Try installing INN from"
@${ECHO} "${PORTSDIR}/news/inn, and then try building this port"
@${ECHO} "again."
@${ECHO} "*********************************************************"
post-build:
.if !defined(WITH_DEBUG)
${STRIP_CMD} ${WRKSRC}/src/newsx
.endif
post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/news/spool/inhosts
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for FILE in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${DOCSDIR}
.endfor
@${ECHO} "Documentation installed in ${DOCSDIR}."
.include <bsd.port.mk>