summaryrefslogtreecommitdiff
path: root/textproc/catdoc/Makefile
blob: 3b238755cf32d99d284552ba3137db67a9ae2461 (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
# New ports collection makefile for:	catdoc
# Date created:				11 November 1997
# Whom:					Brion Moss <brion@queeg.com>
#
# $FreeBSD$
#

PORTNAME=	catdoc
PORTVERSION=	0.94.2
PORTREVISION=	2
CATEGORIES=	textproc
MASTER_SITES=	http://mirror.amdmi3.ru/distfiles/ \
		${MASTER_SITE_LOCAL:S|%SUBDIR%|amdmi3|} \
		ftp://ftp.dvo.ru/pub/Gentoo/distfiles/ \
		ftp://ftp.demos.ru/pub/sunfreeware/SOURCES/

MAINTAINER=	amdmi3@FreeBSD.org
COMMENT=	MS Word/Excel converter to plain ASCII or TeX. TK viewer included

GNU_CONFIGURE=	yes
USE_GMAKE=	yes
MAN1=		catdoc.1 xls2csv.1 catppt.1

OPTIONS=	WORDVIEW	"Build Tcl/Tk document viewer" On

.if !defined(LANG) || ${LANG} != ru_RU.KOI8-R
# Remove the below line to get Cyrillic code page support instead
CFLAGS+=	-DLATIN1=1
.endif

post-patch:
	@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/doc/catdoc.1.in

.include <bsd.port.pre.mk>

.if defined(WITH_WORDVIEW)
USE_TK=			82+
.include "${PORTSDIR}/Mk/bsd.tcl.mk"
CONFIGURE_ARGS+=	--with-wish=${WISH}
PLIST_SUB+=		WORDVIEW=""
MAN1+=			wordview.1
.else
CONFIGURE_ARGS+=	--disable-wordview
PLIST_SUB+=		WORDVIEW="@comment "
.endif

.include <bsd.port.post.mk>