View | Details | Raw Unified | Return to bug 93467
Collapse All | Expand All

(-)Makefile (-1 / +7 lines)
Lines 7-29 Link Here
7
7
8
PORTNAME=	antiword
8
PORTNAME=	antiword
9
PORTVERSION=	0.37
9
PORTVERSION=	0.37
10
PORTREVISION=	1
10
CATEGORIES=	textproc
11
CATEGORIES=	textproc
11
MASTER_SITES=	http://www.winfield.demon.nl/linux/
12
MASTER_SITES=	http://www.winfield.demon.nl/linux/
12
13
13
MAINTAINER=	leeym@FreeBSD.org
14
MAINTAINER=	leeym@FreeBSD.org
14
COMMENT=	An application to display Microsoft(tm) Word files
15
COMMENT=	An application to display Microsoft(tm) Word files
15
16
17
USE_GMAKE=	yes
18
16
INSTALL_TARGET=	global_install
19
INSTALL_TARGET=	global_install
17
20
18
MAN1=		antiword.1
21
MAN1=		antiword.1
19
PORTDOCS=	COPYING ChangeLog Emacs Exmh FAQ History Mozilla Mutt Netscape \
22
PORTDOCS=	COPYING ChangeLog Emacs Exmh FAQ History Mozilla Mutt Netscape \
20
		QandA ReadMe antiword.1 antiword.man antiword.php testdoc.doc
23
		QandA ReadMe antiword.1 antiword.man antiword.php testdoc.doc
21
24
25
CFLAGS+=	-DNDEBUG
26
MAKE_ENV+=	CC="${CC}"
27
22
post-patch:
28
post-patch:
23
	@${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} \
29
	@${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} \
24
		-e 's,/usr/local,${PREFIX},g' \
30
		-e 's,/usr/local,${PREFIX},g' \
25
		-e 's,/usr/share,${PREFIX}/share,g'
31
		-e 's,/usr/share,${PREFIX}/share,g'
26
	@${REINPLACE_CMD} -e 's,gcc,${CC},g' ${WRKSRC}/${MAKEFILE}
32
	@${REINPLACE_CMD} -E 's|LD|CC|g; /^(CC|CFLAGS)/d' ${WRKSRC}/${MAKEFILE}
27
33
28
post-install:
34
post-install:
29
	@${INSTALL_MAN} ${WRKSRC}/Docs/antiword.1 ${MANPREFIX}/man/man1
35
	@${INSTALL_MAN} ${WRKSRC}/Docs/antiword.1 ${MANPREFIX}/man/man1

Return to bug 93467