summaryrefslogtreecommitdiff
path: root/korean/man-doc/Makefile
blob: ea6dc5cc04d212c81066c9670d4a5a747417e790 (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
# Created by: Hye-Shik Chang
# $FreeBSD$

PORTNAME=	man
PORTVERSION=	021120
PORTREVISION=	3
CATEGORIES=	korean
MASTER_SITES=	LOCAL/perky \
		http://people.freebsd.org/~perky/distfiles/
PKGNAMESUFFIX=	-doc
DISTNAME=	ko-man-doc-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Korean online manual pages

RUN_DEPENDS=	${LOCALBASE}/bin/groff:japanese/groff

post-patch:
	${SED} -e 's,%%PREFIX%%,${PREFIX},g' -e 's,%%LOCALBASE%%,${LOCALBASE},g' \
		-e 's,gnroff,groff,g' ${WRKSRC}/scripts/kman.in > ${WRKDIR}/kman
	${RM} -r ${WRKSRC}/scripts

do-build:
	${FIND} ${WRKSRC} -type f | ${XARGS} ${GZIP_CMD}

do-install:
	${INSTALL_SCRIPT} ${WRKDIR}/kman ${STAGEDIR}${PREFIX}/bin
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/man/ko_KR.eucKR
	(cd ${WRKSRC} && ${COPYTREE_SHARE} . \
		${STAGEDIR}${PREFIX}/share/man/ko_KR.eucKR)

.include <bsd.port.mk>