summaryrefslogtreecommitdiff
path: root/news/knews/Makefile
blob: 1a22013fbf0b058c2480d4e11092cce66cf9ad14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# $NetBSD: Makefile,v 1.6 1998/04/15 10:38:41 agc Exp $
#

DISTNAME=	knews-0.9.8
CATEGORIES=	news
MASTER_SITES=	ftp://ftp.nada.kth.se/home/su95-kjo/knews/ \
		ftp://ftp.cs.tu-berlin.de/pub/net/news/knews/

MAINTAINER=	tron@netbsd.org

LIB_DEPENDS=	Xpm.4.:${PORTSDIR}/graphics/xpm

USE_IMAKE=	yes
WRKSRC=		${WRKDIR}/knews

# Set DOMAIN_NAME to a string appended to the From: header or
# assign it a file from which the domain name is read.
post-extract:
.if !defined(DOMAIN_NAME)
	@${ECHO_MSG} "Type \"make DOMAIN_NAME=xyz\" to set the domain name."
.else
	@${ECHO_MSG} "Using \"${DOMAIN_NAME}\" as the From: domain name."
.endif

post-patch:
.if defined(DOMAIN_NAME)
	${ECHO_MSG} >>${WRKSRC}/configure.h \
	"#define DOMAIN_NAME \"${DOMAIN_NAME}\""
.endif

.include "../../mk/bsd.pkg.mk"