2013-07-22 19:43:42 +02:00
|
|
|
# Created by: Yen-Ming Lee <leeym@FreeBSD.org>
|
2000-06-09 11:16:09 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= antiword
|
2006-02-06 03:14:47 +01:00
|
|
|
PORTVERSION= 0.37
|
2014-08-28 21:59:15 +02:00
|
|
|
PORTREVISION= 3
|
2000-06-09 11:16:09 +02:00
|
|
|
CATEGORIES= textproc
|
|
|
|
MASTER_SITES= http://www.winfield.demon.nl/linux/
|
|
|
|
|
2002-08-19 10:01:34 +02:00
|
|
|
MAINTAINER= leeym@FreeBSD.org
|
2014-08-03 16:15:08 +02:00
|
|
|
COMMENT= Application for displaying Microsoft(R) Word documents
|
2000-06-09 11:16:09 +02:00
|
|
|
|
2014-01-25 23:03:15 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2014-07-14 22:50:20 +02:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/share/ghostscript/fonts/n022003l.afm:${PORTSDIR}/print/gsfonts
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/share/ghostscript/fonts/n022003l.afm:${PORTSDIR}/print/gsfonts
|
|
|
|
|
2014-07-18 07:44:31 +02:00
|
|
|
USES= gmake shebangfix perl5
|
|
|
|
USE_PERL5= build
|
2014-07-14 21:30:30 +02:00
|
|
|
SHEBANG_FILES= kantiword Unix-only/fontinfo.pl
|
2013-07-22 19:43:42 +02:00
|
|
|
MAKE_JOBS_UNSAFE=yes
|
2002-07-28 06:58:49 +02:00
|
|
|
INSTALL_TARGET= global_install
|
2000-06-09 11:16:09 +02:00
|
|
|
|
2004-04-01 16:32:47 +02:00
|
|
|
PORTDOCS= COPYING ChangeLog Emacs Exmh FAQ History Mozilla Mutt Netscape \
|
|
|
|
QandA ReadMe antiword.1 antiword.man antiword.php testdoc.doc
|
2000-06-09 11:16:09 +02:00
|
|
|
|
2006-02-17 20:08:12 +01:00
|
|
|
CFLAGS+= -DNDEBUG
|
|
|
|
|
2001-11-20 21:33:28 +01:00
|
|
|
post-patch:
|
2014-08-28 21:59:15 +02:00
|
|
|
@${REINPLACE_CMD} -E 's,/usr/share,${LOCALBASE}/share,g; s,fonts2,fonts,' ${WRKSRC}/Unix-only/fontinfo.pl
|
|
|
|
@${REINPLACE_CMD} -E 's|LD|CC|g; /^(CC|CFLAGS)/d; s,/usr/share,${PREFIX}/share,g; s|/usr/local/bin|${PREFIX}/bin|g' ${WRKSRC}/${MAKEFILE}
|
|
|
|
@${REINPLACE_CMD} -E 's,/usr/share,${PREFIX}/share,g' ${WRKSRC}/antiword.h
|
2001-11-20 21:33:28 +01:00
|
|
|
|
2002-07-28 06:58:49 +02:00
|
|
|
post-install:
|
2014-01-25 23:03:15 +01:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/Docs/antiword.1 ${STAGEDIR}${MANPREFIX}/man/man1
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
cd ${WRKSRC}/Docs && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
2000-06-09 11:16:09 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|