freebsd-ports/textproc/catdoc/Makefile

49 lines
1.1 KiB
Makefile
Raw Normal View History

# Created by: Brion Moss <brion@queeg.com>
1999-08-31 04:11:56 +02:00
# $FreeBSD$
PORTNAME= catdoc
PORTVERSION= 0.94.2
PORTREVISION= 3
CATEGORIES= textproc
MASTER_SITES= http://mirror.amdmi3.ru/distfiles/ \
2013-10-30 15:58:58 +01:00
LOCAL/amdmi3 \
ftp://ftp.dvo.ru/pub/Gentoo/distfiles/ \
2009-01-04 17:58:37 +01:00
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
2013-10-30 15:58:58 +01:00
CONFIGURE_ARGS= --with-install-root="${STAGEDIR}"
USES= gmake
PORTDATA= *
OPTIONS_DEFINE= WORDVIEW
2013-10-30 15:58:58 +01:00
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}
2014-01-13 12:58:14 +01:00
USES+= tk
CONFIGURE_ARGS+= --with-wish=${WISH}
.else
CONFIGURE_ARGS+= --disable-wordview
.endif
2013-10-30 15:58:58 +01:00
post-patch:
@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/doc/catdoc.1.in
2014-08-10 09:42:57 +02:00
post-install:
cd ${STAGEDIR}${PREFIX}/bin && ${STRIP_CMD} catdoc catppt xls2csv
2014-08-10 09:42:57 +02:00
2013-10-30 15:58:58 +01:00
.include <bsd.port.mk>