summaryrefslogtreecommitdiff
path: root/converters/wv/Makefile
blob: 9ced6ad5754e2c07174b52575d609e0e3f27c870 (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
# $NetBSD: Makefile,v 1.10 2001/06/11 06:34:23 jlam 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}
MAKE_ENV+=		RM="${RM} -f"

CPPFLAGS+=		-I${LOCALBASE}/include
CPPFLAGS+=		-I${LOCALBASE}/include/magick
CPPFLAGS+=		-I${LOCALBASE}/include/libwmf

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"