summaryrefslogtreecommitdiff
path: root/editors/abiword/Makefile
blob: 1f63d4cb98e5675d89eab7fc37fbcb8ddfed88f8 (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
# $NetBSD: Makefile,v 1.47 2002/07/03 21:59:07 hubertf Exp $
#
# According to AbiSource's explanation of their trademark rights,
# compilations/distributions of AbiWord not provided by AbiSource must
# be named either "AbiWord Personal" or some name completely unlike
# AbiSource's registered trademarks.

DISTNAME=	abiword-${ABIWORD_VERS}
PKGNAME=	abiword-personal-${ABIWORD_VERS}
CATEGORIES=	editors
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=abiword/}

MAINTAINER=	dawszy@arhea.net
HOMEPAGE=	http://www.abisource.com/
COMMENT=	Open Source cross-platform word processor

DEPENDS+=	ispell-base-[0-9]*:../../textproc/ispell-base

DIST_SUBDIR=	abisuite
ABIWORD_VERS=	1.0.2

USE_BUILDLINK_ONLY=	# defined
USE_X11=	# defined
USE_GMAKE=	# defined
HAS_CONFIGURE=	# defined
MAKEFILE=	GNUmakefile

CONFIGURE_ARGS+=	--with-libiconv=${BUILDLINK_DIR}
CONFIGURE_ARGS+=	--with-psiconv=${BUILDLINK_DIR}
CONFIGURE_ARGS+=	--with-expat=${BUILDLINK_DIR}
CONFIGURE_ARGS+=	--without-libwmf
CONFIGURE_ARGS+=	--prefix=${PREFIX}
CONFIGURE_ARGS+=	--datadir=${PREFIX}/share

OS_CFLAGS=	${CFLAGS}

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

MAKE_ENV+=	OS_CFLAGS="${OS_CFLAGS}"

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

WRKSRC=		${WRKDIR}/${DISTNAME}/abi

FILES_SUBST=		LN=${LN:Q}
FILES_SUBST+=		MKDIR=${MKDIR:Q}
FILES_SUBST+=		RM=${RM:Q}
FILES_SUBST+=		RMDIR=${RMDIR:Q}
FILES_SUBST+=		TRUE=${TRUE:Q}
FILES_SUBST_SED=	${FILES_SUBST:S/=/@!/:S/$/!g/:S/^/ -e s!@/}

.include "../../converters/libiconv/buildlink.mk"
.include "../../converters/psiconv/buildlink.mk"
.include "../../graphics/png/buildlink.mk"
.include "../../textproc/expat/buildlink.mk"
.include "../../graphics/xpm/buildlink.mk"
.include "../../x11/gtk/buildlink.mk"
.include "../../mk/x11.buildlink.mk"
.include "../../mk/bsd.pkg.mk"