aboutsummaryrefslogtreecommitdiffstats
path: root/editors/abiword/Makefile
blob: bc6164976ecad8354c3769e8d8ee9e77971abe4f (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
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# New ports collection makefile for:    AbiWord2
# Date created:         22 February 2003
# Whom:                 Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD$
#   $MCom: ports/editors/abiword/Makefile,v 1.13 2009/11/10 13:56:18 kwm Exp $
#

PORTNAME=   abiword
PORTVERSION=    2.8.4
PORTREVISION=   1
CATEGORIES= editors
MASTER_SITES=   http://www.abisource.com/downloads/%SUBDIR%/${PORTVERSION}/source/
MASTER_SITE_SUBDIR= abiword
DIST_SUBDIR=    AbiWord

MAINTAINER= gnome@FreeBSD.org
COMMENT=    An open-source, cross-platform WYSIWYG word processor

LIB_DEPENDS=    popt.0:${PORTSDIR}/devel/popt \
        png.6:${PORTSDIR}/graphics/png \
        wv-1.2:${PORTSDIR}/textproc/wv \
        jpeg.11:${PORTSDIR}/graphics/jpeg \
        fribidi.3:${PORTSDIR}/converters/fribidi \
        psiconv.10:${PORTSDIR}/converters/psiconv \
        goffice-0.8.8:${PORTSDIR}/devel/goffice
RUN_DEPENDS=    ${LOCALBASE}/lib/X11/fonts/dejavu/DejaVuSerif.ttf:${PORTSDIR}/x11-fonts/dejavu

USE_GMAKE=  yes
USE_ICONV=  yes
USE_GETTEXT=    yes
USE_GNOME=  gnomehack libxml2 gtk20 desktopfileutils librsvg2
WANT_GNOME= yes
GNU_CONFIGURE=  yes
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
CONFIGURE_ARGS= --without-gnomevfs --disable-collab-backend-xmpp \
        --disable-collab-backend-sugar
USE_LDCONFIG=   yes
INSTALLS_ICONS= yes

ABIVERSION= 2.8
PLIST_SUB+= ABIVERSION=${ABIVERSION}

MAN1=       abiword.1

OPTIONS=    DEBUG "Enable debug" off \
        BOOST "Build with boost" on \
        SPELLCHECK "Enable spell checking support" on \
        CLIPART "Install clipart" on \
        TEMPLATES "Install additional templates" on

.include <bsd.port.pre.mk>

.if defined(WITH_DEBUG)
CONFIGURE_ARGS+=    --enable-debug --enable-symbols
.endif

.if defined(WITH_BOOST)
CONFIGURE_ARGS+=    --with-boost
LIB_DEPENDS+=       boost_system.4:${PORTSDIR}/devel/boost-libs
.else
CONFIGURE_ARGS+=    --without-boost
.endif

.if defined(WITH_SPELLCHECK)
LIB_DEPENDS+=       enchant.1:${PORTSDIR}/textproc/enchant
CONFIGURE_ARGS+=    --enable-spell
PLIST_SUB+=     DICT=""
.else
CONFIGURE_ARGS+=    --disable-spell
PLIST_SUB+=     DICT="@comment "
.endif

.if defined(WITH_TEMPLATES)
CONFIGURE_ARGS+=    --enable-templates
PLIST_SUB+=     TEMPLATES=""
.else
CONFIGURE_ARGS+=    --disable-templates
PLIST_SUB+=     TEMPLATES="@comment "
.endif

.if defined(WITH_CLIPART)
CONFIGURE_ARGS+=    --enable-clipart
PLIST_SUB+=     CLIPART=""
.else
CONFIGURE_ARGS+=    --disable-clipart
PLIST_SUB+=     CLIPART="@comment "
.endif

post-install:
    @${MKDIR} ${PREFIX}/lib/${PORTNAME}-${ABIVERSION}/plugins
    @-update-desktop-database

.include <bsd.port.post.mk>