1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-29 10:18:30 +00:00
freebsd-ports/textproc/catdoc/Makefile
Pav Lucistnik 70f146ba0d - Make Tk viewer optional
- Use USE_TK

PR:		ports/122219
Submitted by:	bf <bf2006a@yahoo.com>
Approved by:	Dmitry Marakasov <amdmi3@amdmi3.ru> (maintainer)
2008-04-11 12:37:12 +00:00

49 lines
1.2 KiB
Makefile

# 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= 1
CATEGORIES= textproc
MASTER_SITES= http://www.amdmi3.ru/distfiles/ \
ftp://ftp.dvo.ru/pub/Gentoo/distfiles/ \
ftp://ftp.demos.ru/pub/sunfreeware/SOURCES/ \
ftp://ftp.45.free.net/pub/catdoc/
# ${MASTER_SITE_TEX_CTAN:S/$/support\/catdoc\//}
MAINTAINER= amdmi3@amdmi3.ru
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= 80+
.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>