summaryrefslogtreecommitdiff
path: root/editors/abiword/Makefile
blob: 6d9dea019efaf1b1c1853f228bc0eb9fbbe25a40 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# $NetBSD: Makefile,v 1.30 2001/06/11 06:34:30 jlam Exp $
#
# According to AbiSource's explanation of their trademark rights,
# compilations/distributions of AbiWord not provided by AbiSource must
# be named "AbiWord Personal" or some name completely unlike AbiSource's
# registered trademarks.

DISTNAME=	abi-${ABIWORD_VERS}
PKGNAME=	abiword-personal-${ABIWORD_VERS}
ABIWORD_VERS=	0.7.14
CATEGORIES=	editors
MASTER_SITES=	http://www.abisource.com/downloads/Version-${ABIWORD_VERS}/
DIST_SUBDIR=	abisuite
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}
DISTFILES+=	abidistfiles-${ABIWORD_VERS}${EXTRACT_SUFX}
DISTFILES+=	expat-${ABIWORD_VERS}${EXTRACT_SUFX}
DISTFILES+=	psiconv-${ABIWORD_VERS}${EXTRACT_SUFX}
DISTFILES+=	unixfonts-${ABIWORD_VERS}${EXTRACT_SUFX}
DISTFILES+=	wv-${ABIWORD_VERS}${EXTRACT_SUFX}

MAINTAINER=	jlam@netbsd.org
HOMEPAGE=	http://www.abisource.com/
COMMENT=	Open Source cross-platform word processor

BUILD_DEPENDS+=	unzip-*:../../archivers/unzip
DEPENDS+=	ispell-base-*:../../textproc/ispell-base
DEPENDS+=	gtk+-1.2.*:../../x11/gtk

USE_X11=	# defined
USE_XPM=	# defined
USE_GMAKE=	# defined
ALL_TARGET=	compile canonical

.include "../../converters/libiconv/buildlink.mk"
.include "../../graphics/png/buildlink.mk"

OS_CFLAGS=	${CFLAGS}

.if exists(/usr/include/inttypes.h)
OS_CFLAGS+=	-DHAVE_INTTYPE_H=1
.endif

# AbiWord expects the iconv functions to be in the system libraries, so
# unconditionally link against the pkgsrc libiconv.so.
#
XLDFLAGS=	${LDFLAGS} -liconv

MAKE_ENV+=	OS_CFLAGS="${OS_CFLAGS}"
MAKE_ENV+=	XLDFLAGS="${XLDFLAGS}"

MAKE_FLAGS+=	ABI_BUILD_VERSION="${ABIWORD_VERS}"
MAKE_FLAGS+=	UNIX_CAN_BUILD_STATIC=0

WRKSRC=		${WRKDIR}/abi

post-extract:
	${RM} -rf ${WRKSRC}/user/wp/help/images/CVS

post-install:
	${CHMOD} -R a+r ${PREFIX}/share/AbiSuite
	${RM} -f ${PREFIX}/share/AbiSuite/dictionary/american.hash
	${LN} -sf ../../../lib/american.hash				\
		${PREFIX}/share/AbiSuite/dictionary/american.hash

.include "../../mk/bsd.pkg.mk"