blob: 0d2c182b668fdb04f0feb635dde4b779cb1fa368 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# $NetBSD: Makefile,v 1.9 2001/02/16 13:59:31 wiz Exp $
#
DISTNAME= wv-0.6.0
CATEGORIES= converters
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=wvware/}
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.wvWare.com/
COMMENT= Microsoft Word 6, 7, and 8 (95/97/2000) doc to HTML/LaTeX converter
DEPENDS+= libwmf>=0.1.17nb1:../../graphics/libwmf
DEPENDS+= ImageMagick>=5.2.2:../../graphics/ImageMagick
# not detected by configure, causes conflicts with the one coming with wv
#CONFLICTS+= libgetopt-*
USE_X11= YES
USE_XPM= YES
WRKSRC= ${WRKDIR}/wv
GNU_CONFIGURE= YES
EVAL_PREFIX= XPMDIR=xpm
CONFIGURE_ARGS+= --with-Magick=${LOCALBASE}
CONFIGURE_ARGS+= --with-png=${LOCALBASE}
CONFIGURE_ARGS+= --with-ttf=${LOCALBASE}
CONFIGURE_ARGS+= --with-wmf=${LOCALBASE}
CONFIGURE_ARGS+= --with-xpm=${XPMDIR}
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}"
MAKE_ENV+= RM="${RM} -f"
CPPFLAGS+= -I${LOCALBASE}/include
CPPFLAGS+= -I${LOCALBASE}/include/magick
CPPFLAGS+= -I${LOCALBASE}/include/libwmf
MAKE_ENV+= CPPFLAGS="${CPPFLAGS}"
pre-patch:
${FIND} ${WRKSRC} -name "*.orig" -exec ${RM} {} \;
post-install:
${TOUCH} ${PREFIX}/share/wv/ttf/.directory
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/wv
cd ${WRKSRC} && ${INSTALL_DATA} COPYING CREDITS INSTALL KNOWN-BUGS \
README Documentation/XML_Tags ${PREFIX}/share/doc/wv
.include "../../mk/bsd.pkg.mk"
|