blob: ca0f5a8d5eec744b434c778c7a8c690ca979874b (
plain)
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
|
# $NetBSD: Makefile,v 1.26 2014/12/02 23:50:23 wiz Exp $
DISTNAME= antiword-0.37
PKGREVISION= 2
CATEGORIES= textproc converters print
MASTER_SITES= http://www.winfield.demon.nl/linux/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.winfield.demon.nl/index.html
COMMENT= Free MS Word to text and PostScript converter
LICENSE= gnu-gpl-v2
CONFLICTS= siag<3.6.1
USE_TOOLS+= mktemp:run
CFLAGS.SunOS+= -D__STDC_ISO_10646__
REPLACE_INTERPRETER+= bash
REPLACE.bash.old= /bin/bash
REPLACE.bash.new= ${SH}
REPLACE_FILES.bash= kantiword
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
post-patch:
cd ${WRKSRC} ; \
for pf in antiword.h Docs/antiword.1 ; do \
${MV} $${pf} $${pf}.old ; \
${SED} -e "s|/usr/share|${PREFIX}/share|g" $${pf}.old > $${pf} ; \
done
.include "../../mk/bsd.pkg.mk"
|