2000-06-09 11:16:09 +02:00
|
|
|
# New ports collection makefile for: antiword
|
|
|
|
# Date created: 8 June 2000
|
2007-03-30 22:35:18 +02:00
|
|
|
# Whom: 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
|
2006-02-17 20:08:12 +01:00
|
|
|
PORTREVISION= 1
|
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
|
2006-02-06 03:14:47 +01:00
|
|
|
COMMENT= An application to display Microsoft(tm) Word files
|
2000-06-09 11:16:09 +02:00
|
|
|
|
2006-02-17 20:08:12 +01:00
|
|
|
USE_GMAKE= yes
|
|
|
|
|
2002-07-28 06:58:49 +02:00
|
|
|
INSTALL_TARGET= global_install
|
2000-06-09 11:16:09 +02:00
|
|
|
|
|
|
|
MAN1= antiword.1
|
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
|
|
|
|
MAKE_ENV+= CC="${CC}"
|
|
|
|
|
2001-11-20 21:33:28 +01:00
|
|
|
post-patch:
|
2004-11-04 01:38:28 +01:00
|
|
|
@${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} \
|
|
|
|
-e 's,/usr/local,${PREFIX},g' \
|
|
|
|
-e 's,/usr/share,${PREFIX}/share,g'
|
2006-02-17 20:08:12 +01:00
|
|
|
@${REINPLACE_CMD} -E 's|LD|CC|g; /^(CC|CFLAGS)/d' ${WRKSRC}/${MAKEFILE}
|
2001-11-20 21:33:28 +01:00
|
|
|
|
2002-07-28 06:58:49 +02:00
|
|
|
post-install:
|
2000-12-18 16:25:42 +01:00
|
|
|
@${INSTALL_MAN} ${WRKSRC}/Docs/antiword.1 ${MANPREFIX}/man/man1
|
2000-06-09 11:16:09 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2001-11-20 21:33:28 +01:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2004-04-01 16:32:47 +02:00
|
|
|
@cd ${WRKSRC}/Docs && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
|
2000-06-09 11:16:09 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|