summaryrefslogtreecommitdiff
path: root/textproc/nfbtrans/Makefile
blob: 8a0ff09ca660a87125fb8565481430e3652fc25c (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
# New ports collection makefile for:	nfbtrans
# Version required:		7.55
# Date created:			30 Aug 1998
# Whom:				Masafumi NAKANE <max@FreeBSD.org>
#
# $FreeBSD$
#

DISTNAME=	nfbtr755
PKGNAME=	nfbtrans-7.55
CATEGORIES=	textproc
MASTER_SITES=	ftp://nfb.org/braille/nfbtrans/
EXTRACT_SUFX=	.exe

MAINTAINER=	max@FreeBSD.org

RESTRICTED=	"Unclear copyright status"

USE_ZIP=		yes
EXTRACT_BEFORE_ARGS=	-q -a -L -o
NO_WRKSUBDIR=		yes
ALL_TARGET=		freebsd
MAKEFILE=		makefile

do-install:
	${MKDIR} ${PREFIX}/lib/nfbtrans/tables
	${INSTALL_PROGRAM} ${WRKSRC}/nfbtrans ${PREFIX}/bin
.for f in braille.tab back.tab english.dic nfbtrans.cnf menu.cnf
	${INSTALL_DATA} ${WRKSRC}/$f ${PREFIX}/lib/nfbtrans
.endfor
	@unzip -q -L -a -o ${WRKSRC}/tables.zip -d ${PREFIX}/lib/nfbtrans/tables
.if !defined(NOPORTDOCS)
	@${ECHO} '~0 ~-pw=80 ~-ls=99 ~-pl=56 ~-if=12 ~-fc=. ~o5 ~p- ~-ip=0 ~-oc=1' \
	  | ${CAT} - ${WRKSRC}/nfbtrans.fmt > ${WRKSRC}/nfbprint.fmt
	@${WRKSRC}/nfbtrans st=${WRKSRC}/stat.txt qm=1 ob=oc=15 \
	  ${WRKSRC}/nfbprint.fmt > ${WRKSRC}/nfbtrans.doc
	${MKDIR} ${PREFIX}/share/doc/nfbtrans
.for f in read.me nfbtrans.doc nfbtrans.fmt tvfreqs.fmt
	${INSTALL_DATA} ${WRKSRC}/$f ${PREFIX}/share/doc/nfbtrans
.endfor
.endif

.include <bsd.port.mk>