1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00
freebsd-ports/news/suck/Makefile
2001-06-24 04:28:57 +00:00

46 lines
1.3 KiB
Makefile

# New ports collection makefile for: suck
# Date created: 30 Mar 1996
# Whom: graphite@taurus.bekkoame.or.jp
#
# $FreeBSD$
#
PORTNAME= suck
PORTVERSION= 4.2.5
CATEGORIES= news
MASTER_SITES= ${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR= system/news/transport
MAINTAINER= dinoex@FreeBSD.org
USE_GMAKE= yes
GNU_CONFIGURE= yes
MAN1= suck.1 rpost.1 testhost.1 lmove.1
.if defined(NEWSBIN)
PKGNAMESUFFIX= -cnews
EXTRA_PATCHES+= ${FILESDIR}/cnews.patch
BUILD_DEPENDS+= ${LOCALBASE}/lib/libcnews.a:${PORTSDIR}/news/cnews
.else
EXTRA_PATCHES+= ${FILESDIR}/inn2.patch
BUILD_DEPENDS+= ${LOCALBASE}/news/lib/libinn.a:${PORTSDIR}/news/inn
.endif
post-patch:
@${PERL5} -pi -e "s=/usr/local/=${LOCALBASE}/=" ${WRKSRC}/Makefile.in
@${PERL5} -pi -e "s=/usr/local/lib/suck=${PREFIX}/lib/suck=" \
${WRKSRC}/suck_config.h
@${PERL5} -pi -e "s=/usr/local/news/lib=${LOCALBASE}/news/lib=" \
${WRKSRC}/suck_config.h
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/examples/suck
${INSTALL_SCRIPT} ${WRKSRC}/sample/get.news.inn ${PREFIX}/share/examples/suck
${INSTALL_SCRIPT} ${WRKSRC}/sample/get.news.generic ${PREFIX}/share/examples/suck
${INSTALL_SCRIPT} ${WRKSRC}/sample/put.news ${PREFIX}/share/examples/suck
${INSTALL_DATA} ${WRKSRC}/sample/*.sample ${PREFIX}/share/examples/suck
.endif
.include <bsd.port.mk>