1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00
freebsd-ports/textproc/antiword/Makefile
Dmitry Marakasov 421c901675 - Fix LICENSE
- Don't install COPYING with docs
- Switch to options helpers
2017-04-10 11:35:12 +00:00

47 lines
1.4 KiB
Makefile

# Created by: Yen-Ming Lee <leeym@FreeBSD.org>
# $FreeBSD$
PORTNAME= antiword
PORTVERSION= 0.37
PORTREVISION= 4
CATEGORIES= textproc
MASTER_SITES= http://www.winfield.demon.nl/linux/
MAINTAINER= ports@FreeBSD.org
COMMENT= Application for displaying Microsoft(R) Word documents
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/Docs/COPYING
BUILD_DEPENDS= ${LOCALBASE}/share/ghostscript/fonts/n022003l.afm:print/gsfonts
RUN_DEPENDS= ${LOCALBASE}/share/ghostscript/fonts/n022003l.afm:print/gsfonts
USES= cpe gmake shebangfix perl5
CPE_VENDOR= antiword_project
USE_PERL5= build
SHEBANG_FILES= kantiword Unix-only/fontinfo.pl
MAKE_JOBS_UNSAFE=yes
INSTALL_TARGET= global_install
PORTDOCS= ChangeLog Emacs Exmh FAQ History Mozilla Mutt Netscape \
QandA ReadMe antiword.1 antiword.man antiword.php testdoc.doc
OPTIONS_DEFINE= DOCS DEBUG
DEBUG_CFLAGS= -DDEBUG
DEBUG_CFLAGS_OFF= -DNDEBUG
post-patch:
@${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|OPT)/d; s,/usr/share,${PREFIX}/share,g; s|/usr/local/bin|${PREFIX}/bin|g' ${WRKSRC}/Makefile.Linux
@${REINPLACE_CMD} -E 's,/usr/share,${PREFIX}/share,g' ${WRKSRC}/antiword.h
post-install:
${INSTALL_MAN} ${WRKSRC}/Docs/antiword.1 ${STAGEDIR}${MANPREFIX}/man/man1
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/Docs && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>