mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-22 00:35:15 +00:00
46 lines
1015 B
Makefile
46 lines
1015 B
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/ \
|
|
LOCAL/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
|
|
CONFIGURE_ARGS= --with-install-root="${STAGEDIR}"
|
|
USES= gmake
|
|
|
|
PORTDATA= *
|
|
|
|
OPTIONS_DEFINE= WORDVIEW
|
|
OPTIONS_DEFAULT=WORDVIEW
|
|
OPTIONS_SUB= yes
|
|
|
|
WORDVIEW_DESC= Build Tcl/Tk document viewer
|
|
|
|
.if !defined(LANG) || ${LANG} != ru_RU.KOI8-R
|
|
# Remove the below line to get Cyrillic code page support instead
|
|
CFLAGS+= -DLATIN1=1
|
|
.endif
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MWORDVIEW}
|
|
USES+= tk
|
|
CONFIGURE_ARGS+= --with-wish=${WISH}
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-wordview
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/doc/catdoc.1.in
|
|
|
|
.include <bsd.port.mk>
|