aboutsummaryrefslogtreecommitdiff
path: root/textproc/antiword
diff options
context:
space:
mode:
authorYen-Ming Lee <leeym@FreeBSD.org>2013-07-22 17:43:42 +0000
committerYen-Ming Lee <leeym@FreeBSD.org>2013-07-22 17:43:42 +0000
commit2f485cffb1920046fe96ba7513848b6f65db7994 (patch)
treebf5821c015097138c0e4ca97f709ce030e280674 /textproc/antiword
parent023e321d6f2526d8d45e653b502145108f118f9c (diff)
downloadports-2f485cffb1920046fe96ba7513848b6f65db7994.tar.gz
ports-2f485cffb1920046fe96ba7513848b6f65db7994.zip
- mark it MAKE_JOBS_UNSAFE=yes and unbreak it for ports clusters
- use PORT_OPTIONS:MDOCS instead of NOPORTDOCS
Notes
Notes: svn path=/head/; revision=323485
Diffstat (limited to 'textproc/antiword')
-rw-r--r--textproc/antiword/Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/textproc/antiword/Makefile b/textproc/antiword/Makefile
index 48321d56920c..93d1a09f5eac 100644
--- a/textproc/antiword/Makefile
+++ b/textproc/antiword/Makefile
@@ -1,7 +1,4 @@
-# New ports collection makefile for: antiword
-# Date created: 8 June 2000
-# Whom: Yen-Ming Lee <leeym@FreeBSD.org>
-#
+# Created by: Yen-Ming Lee <leeym@FreeBSD.org>
# $FreeBSD$
#
@@ -15,7 +12,7 @@ MAINTAINER= leeym@FreeBSD.org
COMMENT= An application to display Microsoft(tm) Word files
USE_GMAKE= yes
-
+MAKE_JOBS_UNSAFE=yes
INSTALL_TARGET= global_install
MAN1= antiword.1
@@ -24,15 +21,19 @@ PORTDOCS= COPYING ChangeLog Emacs Exmh FAQ History Mozilla Mutt Netscape \
CFLAGS+= -DNDEBUG
+.include <bsd.port.options.mk>
+
post-patch:
@${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} \
-e 's,/usr/local,${PREFIX},g' \
-e 's,/usr/share,${PREFIX}/share,g'
@${REINPLACE_CMD} -E 's|LD|CC|g; /^(CC|CFLAGS)/d' ${WRKSRC}/${MAKEFILE}
+ @${TOUCH} ${WRKSRC}/fontinfo.h
+ @${REINPLACE_CMD} -e 's,/usr/bin/perl,${PERL},' ${WRKSRC}/Unix-only/fontinfo.pl
post-install:
@${INSTALL_MAN} ${WRKSRC}/Docs/antiword.1 ${MANPREFIX}/man/man1
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
@cd ${WRKSRC}/Docs && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif