summaryrefslogtreecommitdiff
path: root/textproc/antiword/Makefile
blob: f1ab5bdb4473e03bb31c81fec2585fb7e3e029c7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# New ports collection makefile for:	antiword
# Date created:				8 June 2000
# Whom:	      				Yen-Ming Lee <leeym@cae.ce.ntu.edu.tw>
#
# $FreeBSD$
#

PORTNAME=	antiword
PORTVERSION=	0.35
CATEGORIES=	textproc
MASTER_SITES=	http://www.winfield.demon.nl/linux/

MAINTAINER=	leeym@FreeBSD.org
COMMENT=	"An application to display Microsoft(tm) Word files"

USE_REINPLACE=	yes
INSTALL_TARGET=	global_install

MAN1=		antiword.1
PORTDOCS=	COPYING ChangeLog Emacs Exmh FAQ History Mozilla Mutt Netscape \
		QandA ReadMe antiword.1 antiword.man antiword.php testdoc.doc

post-patch:
	@${REINPLACE_CMD} -e 's,/usr/local,${PREFIX},g' \
		-e 's,/usr/share,${PREFIX}/share,g' \
		${WRKSRC}/Makefile.* ${WRKSRC}/*.[ch]
	@${REINPLACE_CMD} -e 's,gcc,${CC},g' \
		-e 's,-O2,${CFLAGS},g' \
		${WRKSRC}/${MAKEFILE} ${WRKSRC}/Makefile.*

post-install:
	@${INSTALL_MAN} ${WRKSRC}/Docs/antiword.1 ${MANPREFIX}/man/man1
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	@cd ${WRKSRC}/Docs && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif

.include <bsd.port.mk>