freebsd-ports/news/newsx/Makefile
Will Andrews f3171de7e6 First round of auto* cleanups:
- USE_AUTO* -> USE_AUTO*_VER=* where required
 - USE_AUTO* / *_DEPENDS=.*auto*:*/devel/auto* -> GNU_CONFIGURE where OK
 - Other minor changes to fix things

These changes should be no-ops with the current bsd.port.mk, but will
assist in preparing for the next generation of USE_AUTO*.

Submitted by:	bento 4-exp USE_AUTO* cleanups
		http://people.FreeBSD.org/~will/4-exp/
		http://bento.FreeBSD.org/errorlogs/4-exp-latest/
2002-01-06 06:20:22 +00:00

64 lines
1.9 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.4
PORTREVISION= 1
CATEGORIES= news
MASTER_SITES= ftp://ftp.kvaleberg.com/pub/
MAINTAINER= thierry@thomas.as
BUILD_DEPENDS= ${LOCALBASE}/news/lib/libinn.a:${PORTSDIR}/news/inn
hdr_dir= ${LOCALBASE}/news/include
DOCS= AUTHORS COPYING ChangeLog FAQ INSTALL NEWS README TODO
post-extract:
@${ECHO} "*********************************************************"
@${ECHO} "If this step fails, then you probably don't have made inn"
@${ECHO} "Go to ${PORTSDIR}/news/inn, and then make it (no need to"
@${ECHO} "make install again if inn is already installed)."
@${ECHO} "*********************************************************"
${CP} ${hdr_dir}/storage.h ${WRKSRC}/lib
${CP} ${hdr_dir}/config.h ${WRKSRC}/lib
${CP} ${hdr_dir}/libinn.h ${WRKSRC}/src
${CP} ${hdr_dir}/libinn.h ${WRKSRC}/dbz
${CP} ${hdr_dir}/clibrary.h ${WRKSRC}/dbz
# Remark: newsx does not really requires inn, but this port has specially
# been built to run with inn 2.3x.
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} "*********************************************************"
post-configure:
@${PERL} -pi -e "s:^LIBS = :LIBS = -L${LOCALBASE}/news/lib -linn:g" \
${WRKSRC}/test/Makefile
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for FILE in ${DOCS}
@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
.endfor
@${ECHO} "Documentation installed in ${DOCSDIR}."
.endif
#GNU_CONFIGURE= yes
USE_AUTOMAKE_VER=14
MAN1= newsq.1
MAN5= newsx.conf.5 in.hosts.5
MAN8= newsx.8
.include <bsd.port.mk>