1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/news/newsx/Makefile
Thierry Thomas c542babb71 Update CONFLICTS (1).
Since I'm there, define the license.

Submitted by:	"Sulev-Madis 'ketas' Silber" <madis555 (at) hot.ee> (1)
2012-06-12 20:48:15 +00:00

73 lines
1.7 KiB
Makefile

# New ports collection makefile for: newsx
# Date created: 10th February, 2001
# Whom: Thierry Thomas <tthomas@mail.dotcom.fr>
#
# $FreeBSD$
#
PORTNAME= newsx
PORTVERSION= 1.6
PORTREVISION= 2
CATEGORIES= news
MASTER_SITES= http://www.kvaleberg.org/pub/
MAINTAINER= thierry@FreeBSD.org
COMMENT= A 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
.if defined(PACKAGE_BUILDING)
IGNORE= a configured INN is required
.endif
GNU_CONFIGURE= yes
CONFLICTS= leafnode-1.*
.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
post-patch:
@${REINPLACE_CMD} -e "s:%%LOCALBASE%%:${LOCALBASE}:g" ${WRKSRC}/configure
pre-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} "*********************************************************"
pre-install:
@${STRIP_CMD} ${WRKSRC}/src/newsx
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for FILE in ${DOCS}
@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
.endfor
@${ECHO} "Documentation installed in ${DOCSDIR}."
.endif
MAN1= newsq.1
MAN5= newsx.conf.5 in.hosts.5
MAN8= newsx.8
.include <bsd.port.mk>