blob: fcc2f52e8c88bec8774f0177a27f87677e06fce6 (
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
96
97
98
99
100
101
102
|
# 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.11 2008/08/19 00:45:06 marcus Exp $
#
PORTNAME= abiword
PORTVERSION= 2.6.8
PORTREVISION= 2
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
# unzip is needed during the installation process
BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt \
png.5:${PORTSDIR}/graphics/png \
wv-1.2:${PORTSDIR}/textproc/wv \
jpeg.10:${PORTSDIR}/graphics/jpeg \
fribidi.0:${PORTSDIR}/converters/fribidi \
goffice-0.4:${PORTSDIR}/devel/goffice04
RUN_DEPENDS= ${LOCALBASE}/lib/X11/fonts/dejavu/DejaVuSerif.ttf:${PORTSDIR}/x11-fonts/dejavu
USE_GMAKE= yes
USE_ICONV= yes
USE_GNOME= gnomehack libglade2 libxml2 libgnomeprintui desktopfileutils
WANT_GNOME= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-popt=${LOCALBASE} \
--with-zlib=${LOCALBASE} \
--with-libpng=${LOCALBASE} \
--with-libiconv=${LOCALBASE} \
--with-libjpeg-prefix=${LOCALBASE} \
--disable-peer-config
MAKEFILE= GNUmakefile
GNOME_MAKEFILEIN=GNUmakefile.in
ABIVERSION= 2.6
PLIST_SUB+= ABIVERSION=${ABIVERSION}
.if defined(WITH_DEBUG)
CONFIGURE_ARGS+= --enable-debug \
--enable-symbols
.endif
.ifndef(WITHOUT_GTKSPELL)
LIB_DEPENDS+= enchant.1:${PORTSDIR}/textproc/enchant
CONFIGURE_ARGS+= --enable-spellcheck
PLIST_SUB+= DICT:=""
.else
CONFIGURE_ARGS+= --disable-spellcheck
PLIST_SUB+= DICT:="@comment "
.endif
.include <bsd.port.pre.mk>
#.if ${HAVE_GNOME:Mlibgnomeui}!=""
#USE_GNOME+= libgnomeui
#CONFIGURE_ARGS+= --enable-gnomeui
#PKGNAMESUFFIX:= -gnome
#.else
#CONFIGURE_ARGS+= --disable-gnomeui
#.endif
#.if (defined(WITH_GUCHARMAP) || \
# exists(${LOCALBASE}/libdata/pkgconfig/gucharmap.pc)) && \
# !defined(WITHOUT_GUCHARMAP)
#LIB_DEPENDS+= gucharmap.6:${PORTSDIR}/deskutils/gucharmap
#CONFIGURE_ARGS+= --enable-gucharmap
#.else
CONFIGURE_ARGS+= --disable-gucharmap
#.endif
pre-everything::
@${ECHO_MSG} ""
@${ECHO_MSG} "AbiWord2 has the following tunable option(s):"
@${ECHO_MSG} " WITH_DEBUG=yes Enable debug."
# @${ECHO_MSG} " WITH_GUCHARMAP=yes Enable use of Gucharmap as the symbol insertion tool (default: auto)"
@${ECHO_MSG} " WITHOUT_GTKSPELL=yes Don't use Enchant, but still enable spellchecking and install the dictionary."
@${ECHO_MSG} ""
post-patch:
@${REINPLACE_CMD} -e 's|-ansi||g ; s|-pedantic||g ; \
s|/usr/X11R6|${LOCALBASE}|g' \
${WRKSRC}/configure
@${FIND} ${WRKSRC}/src/config/platforms -name "*.mk" | ${XARGS} \
${REINPLACE_CMD} 's|-ansi||g ; s|-pedantic||g'
@${FIND} ${WRKSRC} -name GNUmakefile.in | ${XARGS} ${REINPLACE_CMD} -e \
's|[(]libdir[)]/@PACKAGE@|(datadir)/@PACKAGE@|g ; \
s|[(]datadir[)]/icons|(datadir)/pixmaps|g'
post-install:
@${MKDIR} ${PREFIX}/lib/${PORTNAME}-${ABIVERSION}/plugins
@-update-desktop-database
.include <bsd.port.post.mk>
|