summaryrefslogtreecommitdiff
path: root/textproc/wv/Makefile
blob: b6b9d3181ee7b18a7d8d83ba05fff85584412b78 (plain) (blame)
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
PORTNAME=	wv
PORTVERSION=	1.2.9
PORTREVISION=	7
CATEGORIES=	textproc
MASTER_SITES=	http://www.abisource.com/downloads/wv/${PORTVERSION}/

MAINTAINER=	bofh@FreeBSD.org
COMMENT=	Library and executables to access Microsoft Word files
WWW=		http://wvware.sourceforge.net/

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libfreetype.so:print/freetype2 \
		libpng.so:graphics/png \
		libwmf.so:graphics/libwmf

USES=		gmake gnome jpeg pkgconfig libtool xorg
USE_GNOME=	libgsf
USE_LDCONFIG=	yes
USE_XORG=	x11

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-png=${LOCALBASE} \
		--with-libwmf=${LOCALBASE}
CONFIGURE_ENV=	MKDIR_P="${MKDIR}"

MAKEFILE=	GNUmakefile
MAKE_ARGS+=	pkgconfigdir="${PREFIX}/libdata/pkgconfig" \
	INSTALL_STRIP_FLAG="${STRIP}"

.include <bsd.port.options.mk>

.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
CFLAGS+=	-Wno-error=incompatible-function-pointer-types
.endif

.include <bsd.port.mk>