freebsd-ports/textproc/catdoc/Makefile
Pietro Cerutti fef02240ea - Remove lang/tcl83 and x11-toolkits/tk83 (expired)
- Remove references to Tcl/Tk 8.3 from bsd.tcl.mk
- Update ports that required 8.3+ to require 8.4+ (since 8.5 is the
  default, I don't expect this change to cause much trouble)
2013-04-23 11:51:52 +00:00

46 lines
1.1 KiB
Makefile

# Created by: 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_DEFINE= WORDVIEW
WORDVIEW_DESC= Build Tcl/Tk document viewer
OPTIONS_DEFAULT= WORDVIEW
.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>
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MWORDVIEW}
USE_TK= 84+
.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>