summaryrefslogtreecommitdiff
path: root/japanese/man-doc/Makefile
blob: 631b90345dbb779b5546a04dc7fca92c9fb64eb2 (plain) (blame)
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
# New ports collection makefile for:	Japanese man documents
# Version required:	2.2
# Date created:		6 January 1997
# Whom:			Kiriyama Kazuhiko <kiri@kiri.toba-cmt.ac.jp>
#
# $Id: Makefile,v 1.17 1998/01/12 02:48:47 steve Exp $
#

DISTNAME=	jpman-2.2
PKGNAME=	ja-man-doc-2.2
CATEGORIES=	japanese
DISTFILES=	# none

MAINTAINER=	kiri@kiri.toba-cmt.ac.jp

PREFIX?=	/usr
NO_CHECKSUM=	yes
NO_MTREE=	yes
WRKSRC=		${WRKDIR}/man

LANGNAME=	ja
MANSECS=	1 5 8
JAMANDIR?=	/usr/opt/doc/ja/man

do-extract:
	@if [ ! -d ${JAMANDIR} ]; then \
	  ${ECHO} "You need the Japanese manual source in"; \
	  ${ECHO} "\"${JAMANDIR}\""; \
	  ${ECHO} "in order to build this port."; \
	  exit 1; \
	fi
	@${RM} -rf ${WRKDIR}
	@${MKDIR} ${WRKSRC}
	@(cd ${JAMANDIR}; ${CP} Makefile Makefile.inc  ${WRKSRC})
.for sec in ${MANSECS}
	@if [ -d ${JAMANDIR}/man${sec} ]; then \
		${CP} -R ${JAMANDIR}/man${sec} ${WRKSRC}/ ; \
	fi
.endfor

pre-install:
.for sec in ${MANSECS}
	@${MKDIR} ${PREFIX}/share/man/ja/man${sec}
.endfor

post-install:
	@${CAT} ${PKGDIR}/MESSAGE

.include <bsd.port.mk>