2001-04-08 10:51:45 +00:00
|
|
|
# New ports collection makefile for: newsx
|
2001-04-08 18:51:32 +00:00
|
|
|
# Date created: 10th February, 2001
|
2001-04-08 10:51:45 +00:00
|
|
|
# Whom: Thierry Thomas <tthomas@mail.dotcom.fr>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= newsx
|
2003-05-18 05:50:16 +00:00
|
|
|
PORTVERSION= 1.6
|
2005-04-23 17:42:52 +00:00
|
|
|
PORTREVISION= 2
|
2001-04-08 10:51:45 +00:00
|
|
|
CATEGORIES= news
|
2010-10-23 10:37:19 +00:00
|
|
|
MASTER_SITES= http://www.kvaleberg.org/pub/
|
2001-04-08 10:51:45 +00:00
|
|
|
|
2006-07-04 20:09:51 +00:00
|
|
|
MAINTAINER= thierry@FreeBSD.org
|
2003-02-21 13:28:59 +00:00
|
|
|
COMMENT= A program to fetch news from and post news to a remote NNTP server
|
2001-04-08 10:51:45 +00:00
|
|
|
|
2012-06-12 20:48:15 +00:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2002-02-23 14:23:48 +00:00
|
|
|
.if defined(WITH_CNEWS)
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/news/lib/libcnews.a:${PORTSDIR}/news/cnews
|
2005-04-23 17:42:52 +00:00
|
|
|
.elif !defined(WITHOUT_INN_2-X)
|
2001-08-07 16:25:27 +00:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/news/lib/libinn.a:${PORTSDIR}/news/inn
|
2002-02-23 14:23:48 +00:00
|
|
|
.endif
|
|
|
|
|
2007-02-11 17:21:33 +00:00
|
|
|
.if defined(PACKAGE_BUILDING)
|
|
|
|
IGNORE= a configured INN is required
|
|
|
|
.endif
|
2007-02-10 22:54:08 +00:00
|
|
|
|
2006-07-04 20:09:51 +00:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
2012-06-12 20:48:15 +00:00
|
|
|
CONFLICTS= leafnode-1.*
|
2003-10-14 07:28:44 +00:00
|
|
|
|
2002-02-23 14:23:48 +00:00
|
|
|
.if !defined(WITH_CNEWS)
|
|
|
|
.if !defined(WITHOUT_INN_2-X)
|
2011-09-23 22:26:39 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/news/include
|
2002-02-23 14:23:48 +00:00
|
|
|
.endif
|
|
|
|
.endif
|
2001-04-08 10:51:45 +00:00
|
|
|
|
2006-07-04 20:09:51 +00:00
|
|
|
.if defined(PACKAGE_BUILDING)
|
|
|
|
CONFIGURE_ARGS+= --without-history
|
|
|
|
.endif
|
|
|
|
|
2001-08-07 16:25:27 +00:00
|
|
|
DOCS= AUTHORS COPYING ChangeLog FAQ INSTALL NEWS README TODO
|
|
|
|
|
2002-02-23 14:23:48 +00:00
|
|
|
post-patch:
|
2003-05-18 05:50:16 +00:00
|
|
|
@${REINPLACE_CMD} -e "s:%%LOCALBASE%%:${LOCALBASE}:g" ${WRKSRC}/configure
|
2001-04-08 10:51:45 +00:00
|
|
|
|
|
|
|
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} "*********************************************************"
|
|
|
|
|
2003-05-18 05:50:16 +00:00
|
|
|
pre-install:
|
|
|
|
@${STRIP_CMD} ${WRKSRC}/src/newsx
|
|
|
|
|
2001-08-07 16:25:27 +00:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for FILE in ${DOCS}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
@${ECHO} "Documentation installed in ${DOCSDIR}."
|
|
|
|
.endif
|
|
|
|
|
2001-04-08 10:51:45 +00:00
|
|
|
MAN1= newsq.1
|
|
|
|
MAN5= newsx.conf.5 in.hosts.5
|
|
|
|
MAN8= newsx.8
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|