summaryrefslogtreecommitdiffstats
path: root/japanese/mnews/Makefile
blob: dab85083f714c582510c5f8e99364314d74272de (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# New ports collection makefile for:	mnews
# Version required:		1.19PL2
# Date created:			23 Sep 1996
# Whom:				Masafumi NAKANE <max@FreeBSD.ORG>
#
# $Id: Makefile,v 1.3 1996/10/27 00:20:23 max Exp $
#

DISTNAME=	mnews119
PKGNAME=	jp-mnews-1.19.2
CATEGORIES+=	japanese news
MASTER_SITES=	ftp://ftp.mei.co.jp/free/Network/news/readers/
DISTFILES=	mnews119.tar.gz mnews119_119PL1.tar.gz mnews119PL1_PL2.tar.gz

MAINTAINER=	max@FreeBSD.ORG

NO_WRKSUBDIR=yes
PATCH_DIST_STRIP= -p1
DOCS=		FAQ.doc board.doc mnews.doc mnews.1 prerel.doc		\
	present.doc		read1ST.doc readme.doc update.doc 
SAMPLES=	jnames.fj jnames.jp jnames.smp jnames.tnn

pre-patch:
	@for f in mnews119PL1.patch mnews119PL2.patch; do \
	  ${PATCH} ${PATCH_DIST_ARGS} < ${WRKSRC}/$$f ; done

do-configure:
	@for f in Makefile site_dep.h ; do \
	  sed s+@PREFIX@+${PREFIX}+ ${FILESDIR}/$$f.in > ${WRKSRC}/$$f ; done

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/mnews ${PREFIX}/bin
	${MKDIR} -p ${PREFIX}/lib/mnews
	${INSTALL_DATA} ${WRKSRC}/jnames.fj ${PREFIX}/lib/mnews/jnames
	${MKDIR} -p ${PREFIX}/share/doc/mnews
.for f in ${DOCS}
	${INSTALL_DATA} ${WRKSRC}/$f ${PREFIX}/share/doc/mnews
.endfor
	${MKDIR} -p ${PREFIX}/share/examples/mnews
.for f in ${SAMPLES}
	${INSTALL_DATA} ${WRKSRC}/$f ${PREFIX}/share/examples/mnews
.endfor
post-install:
.if !defined(BATCH)
	@(while [ X$$domain = X ]; do					\
	    echo -n "Enter the domain name of this host>"; read domain ;	\
	  done;								\
	echo $$domain > ${PREFIX}/lib/mnews/default-domain)
.else
	@echo "Now, you need to make sure ${PREFIX}/lib/mnews/default-domain"
	@echo "contains correct domain name."
	@echo my.domain.com > ${PREFIX}/lib/mnews/default-domain
.endif
	@echo "Please refer to the files in:"
	@echo "${PREFIX}/share/doc/mnews & ${PREFIX}/share/examples/mnews."

.include <bsd.port.mk>
OpenPOWER on IntegriCloud