2013-03-21 01:01:44 +01:00
|
|
|
# Created by: Brion Moss <brion@queeg.com>
|
1999-08-31 04:11:56 +02:00
|
|
|
# $FreeBSD$
|
1998-02-12 18:30:29 +01:00
|
|
|
|
2000-04-09 23:54:47 +02:00
|
|
|
PORTNAME= catdoc
|
2006-03-21 13:45:25 +01:00
|
|
|
PORTVERSION= 0.94.2
|
2009-02-23 15:46:37 +01:00
|
|
|
PORTREVISION= 2
|
1998-02-12 18:30:29 +01:00
|
|
|
CATEGORIES= textproc
|
2009-07-28 18:34:36 +02:00
|
|
|
MASTER_SITES= http://mirror.amdmi3.ru/distfiles/ \
|
2013-10-30 15:58:58 +01:00
|
|
|
LOCAL/amdmi3 \
|
2008-02-18 19:22:23 +01:00
|
|
|
ftp://ftp.dvo.ru/pub/Gentoo/distfiles/ \
|
2009-01-04 17:58:37 +01:00
|
|
|
ftp://ftp.demos.ru/pub/sunfreeware/SOURCES/
|
1998-02-12 18:30:29 +01:00
|
|
|
|
2008-06-19 19:28:24 +02:00
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
2006-03-21 13:45:25 +01:00
|
|
|
COMMENT= MS Word/Excel converter to plain ASCII or TeX. TK viewer included
|
1998-02-12 18:30:29 +01:00
|
|
|
|
1998-12-22 04:03:32 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2013-10-30 15:58:58 +01:00
|
|
|
CONFIGURE_ARGS= --with-install-root="${STAGEDIR}"
|
|
|
|
USES= gmake
|
|
|
|
|
|
|
|
PORTDATA= *
|
2008-04-11 14:37:12 +02:00
|
|
|
|
2013-03-21 01:01:44 +01:00
|
|
|
OPTIONS_DEFINE= WORDVIEW
|
2013-10-30 15:58:58 +01:00
|
|
|
OPTIONS_DEFAULT=WORDVIEW
|
|
|
|
OPTIONS_SUB= yes
|
|
|
|
|
2013-03-21 01:01:44 +01:00
|
|
|
WORDVIEW_DESC= Build Tcl/Tk document viewer
|
1998-02-12 18:30:29 +01:00
|
|
|
|
1998-07-24 13:48:20 +02:00
|
|
|
.if !defined(LANG) || ${LANG} != ru_RU.KOI8-R
|
1998-03-16 22:17:29 +01:00
|
|
|
# Remove the below line to get Cyrillic code page support instead
|
|
|
|
CFLAGS+= -DLATIN1=1
|
1998-07-24 13:48:20 +02:00
|
|
|
.endif
|
1998-03-16 22:17:29 +01:00
|
|
|
|
2013-03-21 01:01:44 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2001-03-20 14:53:47 +01:00
|
|
|
|
2013-03-21 01:01:44 +01:00
|
|
|
.if ${PORT_OPTIONS:MWORDVIEW}
|
2014-01-13 12:58:14 +01:00
|
|
|
USES+= tk
|
2008-04-11 14:37:12 +02:00
|
|
|
CONFIGURE_ARGS+= --with-wish=${WISH}
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-wordview
|
2001-03-20 14:53:47 +01:00
|
|
|
.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:
|
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*
|
|
|
|
|
2013-10-30 15:58:58 +01:00
|
|
|
.include <bsd.port.mk>
|