summaryrefslogtreecommitdiff
path: root/japanese/epwutil/Makefile
blob: aa344bac482b6c14bd651de4d8a90ac39825619a (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
# New ports collection makefile for:	epwutil
# Date created:		22 January 1999
# Whom:			Kazutoki TAKAMUNE <takamune@avrl.mei.co.jp>
#
# $FreeBSD$
#

PORTNAME=	epwutil
PORTVERSION=	1.1
CATEGORIES=	japanese
MASTER_SITES=	http://openlab.ring.gr.jp/edict/epwutil/

MAINTAINER=	takamune@avrl.mei.co.jp

MAKEFILE=	makefile.unx
MANLANG=	ja

EPWPROGS=	bookinfo catdump squeeze
EPWDOCS=	epwutil.doc
EPWDOCDIR=	share/doc/epwutil

do-install:
.for file in ${EPWPROGS}
	cd ${WRKSRC};\
	${INSTALL_PROGRAM} ${file} ${PREFIX}/bin;\
	${INSTALL_MAN} ${file}.man ${MANPREFIX}/man/${MANLANG}/cat1/${file}.1
.if !defined(NOMANCOMPRESS)
	${GZIP_CMD} ${MANPREFIX}/man/${MANLANG}/cat1/${file}.1
.endif
.endfor
.if !defined(NOPORTDOCS)
	${MKDIR} ${PREFIX}/${EPWDOCDIR}
	cd ${WRKSRC}; ${INSTALL_DATA} ${EPWDOCS} ${PREFIX}/${EPWDOCDIR}
.endif

post-install:
.for file in ${EPWPROGS}
	${ECHO_CMD} man/${MANLANG}/cat1/${file}.1${MANEXT} >> ${TMPPLIST}
.endfor
.if !defined(NOPORTDOCS)
	${ECHO_CMD} ${EPWDOCDIR}/${EPWDOCS} >> ${TMPPLIST}
	${ECHO_CMD} "@dirrm ${EPWDOCDIR}" >> ${TMPPLIST}
.endif

.include <bsd.port.mk>