2003-02-23 19:39:36 +01:00
# New ports collection makefile for: AbiWord2
# Date created: 22 February 2003
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
1999-05-04 14:26:02 +02:00
#
1999-08-25 07:57:29 +02:00
# $FreeBSD$
1999-05-04 14:26:02 +02:00
#
2003-02-23 19:39:36 +01:00
PORTNAME = AbiWord2
2004-05-20 07:53:54 +02:00
PORTVERSION = 2.0.7
2004-06-02 21:05:39 +02:00
PORTREVISION = 1
1999-05-04 14:26:02 +02:00
CATEGORIES = editors
2001-08-08 17:46:45 +02:00
MASTER_SITES = ${ MASTER_SITE_SOURCEFORGE } \
http://www.abisource.com/downloads/Version-${ PORTVERSION } /lf/
MASTER_SITE_SUBDIR = abiword
DISTNAME = abiword-${ PORTVERSION }
1999-05-04 14:26:02 +02:00
2001-05-11 18:36:50 +02:00
MAINTAINER = gnome@FreeBSD.org
2003-02-23 19:39:36 +01:00
COMMENT = An open-source, cross-platform WYSIWYG word processor
1999-05-04 14:26:02 +02:00
2000-05-22 11:41:36 +02:00
# unzip is needed during the installation process
2002-03-18 10:46:46 +01:00
BUILD_DEPENDS = unzip:${ PORTSDIR } /archivers/unzip
2001-09-11 05:32:41 +02:00
LIB_DEPENDS = png.5:${ PORTSDIR } /graphics/png \
2003-04-04 09:12:25 +02:00
fribidi.0:${ PORTSDIR } /converters/fribidi \
2004-02-28 19:37:39 +01:00
popt.0:${ PORTSDIR } /devel/popt
1999-05-04 14:26:02 +02:00
DIST_SUBDIR = AbiWord
2003-08-26 22:33:49 +02:00
WRKSRC = ${ WRKDIR } /abiword-${ PORTVERSION } /abi
2001-08-08 17:46:45 +02:00
2003-08-25 10:41:49 +02:00
USE_BZIP2 = yes
2002-02-13 00:17:36 +01:00
USE_X_PREFIX = yes
2003-02-23 19:39:36 +01:00
USE_AUTOMAKE_VER = 14
USE_AUTOCONF_VER = 213
1999-11-01 01:53:16 +01:00
USE_GMAKE = yes
2002-07-11 19:16:10 +02:00
USE_REINPLACE = yes
2004-02-27 19:21:07 +01:00
USE_ICONV = yes
2003-04-12 01:46:27 +02:00
USE_GNOME = gnomehier libglade2 libxml2
WANT_GNOME = yes
2003-02-23 19:39:36 +01:00
CONFIGURE_ENV = CPPFLAGS = " -I ${ LOCALBASE } /include -I ${ X11BASE } /include " \
LDFLAGS = " -L ${ LOCALBASE } /lib -L ${ X11BASE } /lib -liconv "
CONFIGURE_ARGS = --enable-xft
2001-08-08 17:46:45 +02:00
MAKEFILE = GNUmakefile
2002-02-13 00:17:36 +01:00
. i n c l u d e < b s d . p o r t . p r e . m k >
2002-09-17 18:17:18 +02:00
. i f e x i s t s ( $ { L O C A L B A S E } / i n c l u d e / w v . h )
2003-04-04 09:12:25 +02:00
BROKEN = " This port cannot be built when textproc/wv is installed because of a header conflict. Please remove textproc/wv, and resume the build. If textproc/wv is no longer installed, please remove ${ LOCALBASE } /include/wv.h, and resume the AbiWord2 build "
2002-09-17 18:17:18 +02:00
. e n d i f
2003-09-28 22:59:14 +02:00
.if ${HAVE_GNOME : Mnautilus 2}!="" && ${HAVE_GNOME :Mlibgnomeprintui }!=""
USE_GNOME += nautilus2 libgnomeprintui
2003-04-04 09:12:25 +02:00
CONFIGURE_ARGS += --enable-gnome
PKGNAMESUFFIX = -gnome
2003-04-20 07:19:38 +02:00
GNOME_ENABLED = yes
2003-04-04 09:12:25 +02:00
. e n d i f
2004-04-06 00:07:39 +02:00
#.if defined(WITH_GUCHARMAP) || exists(${X11BASE}/libdata/pkgconfig/gucharmap.pc)
#LIB_DEPENDS+= gucharmap.3:${PORTSDIR}/deskutils/gucharmap
#.else
2003-06-16 20:09:58 +02:00
CONFIGURE_ARGS += --enable-cmap= no
2004-04-06 00:07:39 +02:00
#.endif
2003-04-04 09:12:25 +02:00
2004-02-28 19:37:39 +01:00
. i f d e f i n e d ( W I T H _ E N C H A N T ) | | e x i s t s ( $ { L O C A L B A S E } / l i b / l i b e n c h a n t . s o )
LIB_DEPENDS += enchant.2:${ PORTSDIR } /textproc/enchant
. e l i f e x i s t s ( $ { L O C A L B A S E } / l i b / l i b a s p e l l . s o )
LIB_DEPENDS += aspell.15:${ PORTSDIR } /textproc/aspell
. e l s e
LIB_DEPENDS += enchant.2:${ PORTSDIR } /textproc/enchant
. e n d i f
2003-06-23 08:52:39 +02:00
pre-everything ::
@${ ECHO_MSG } ""
@${ ECHO_MSG } "AbiWord2 has the following tunable option(s):"
2004-04-06 00:07:39 +02:00
# @${ECHO_MSG} " WITH_GUCHARMAP=yes Enable use of Gucharmap as the symbol insertion tool (default: auto)"
2004-02-28 19:37:39 +01:00
@${ ECHO_MSG } " WITH_ENCHANT=yes Enable use of the Enchant dictionary backend broker (default: auto)"
2003-06-23 08:52:39 +02:00
@${ ECHO_MSG } ""
2003-04-04 09:12:25 +02:00
2003-02-23 19:39:36 +01:00
post-patch :
@${ REINPLACE_CMD } -e ' s| %%AUTOMAKE%%| ${ AUTOMAKE } | g ; \
s| %%ACLOCAL%%| ${ ACLOCAL } | g ; \
s| %%AUTOCONF%%| ${ AUTOCONF } | g' ${ WRKSRC } /autogen.sh
2003-07-17 21:28:12 +02:00
@${ FIND } ${ WRKSRC } /ac-helpers -name "*.m4" | ${ XARGS } ${ REINPLACE_CMD } \
' s| -ansi|| g ; \
s| -pedantic|| g'
@${ FIND } ${ WRKSRC } /src/config/platforms -name "*.mk" | ${ XARGS } \
${ REINPLACE_CMD } ' s| -ansi|| g ; \
s| -pedantic|| g'
2004-03-07 00:55:41 +01:00
@${ RM } -rf ${ WRKSRC } /autom4te.cache
2003-02-23 19:39:36 +01:00
2001-08-08 17:46:45 +02:00
pre-configure :
2003-01-23 17:22:00 +01:00
@cd ${ WRKSRC } && ${ TOUCH } NEWS README AUTHORS ChangeLog INSTALL
2001-08-16 15:13:50 +02:00
@cd ${ WRKSRC } /ac-helpers && ${ RM } -f install-sh mkinstalldirs missing
2001-10-02 09:21:21 +02:00
@${ RM } -f ${ WRKSRC } /configure.ac
2003-01-23 17:22:00 +01:00
@cd ${ WRKSRC } && ./autogen.sh && ${ TRUE }
2003-11-13 15:45:08 +01:00
@${ FIND } ${ WRKSRC } -name GNUmakefile.in | ${ XARGS } ${ REINPLACE_CMD } -e \
2003-01-23 17:22:00 +01:00
' s| [ ( ] libdir[ ) ] /@PACKAGE@| ( datadir) /@PACKAGE@| g ; \
2003-08-25 10:41:49 +02:00
s| [ ( ] libdir[ ) ] /bonobo/servers| ( prefix) /libdata/bonobo/servers| g; \
2003-01-23 17:22:00 +01:00
s| @DEFS@| -I${ WRKSRC } /../libiconv/include @DEFS@| g' && ${ TRUE }
1999-11-01 01:53:16 +01:00
2001-08-20 15:27:17 +02:00
post-install :
2004-05-20 07:53:54 +02:00
. i f d e f i n e d ( G N O M E _ E N A B L E D )
2002-02-13 00:17:36 +01:00
@${ INSTALL_DATA } ${ WRKSRC } /src/pkg/linux/rpm/data/abiword.desktop \
${ PREFIX } /share/gnome/apps/Applications/abiword.desktop
2003-02-23 19:39:36 +01:00
@${ LN } -sf ${ PREFIX } /share/AbiSuite-2.0/icons/abiword_48.png \
2002-02-13 00:17:36 +01:00
${ PREFIX } /share/gnome/pixmaps/abiword_48.png
2003-04-20 07:19:38 +02:00
@${ LN } -sf ${ PREFIX } /share/AbiSuite-2.0/GNOME_AbiWord_Control_2_0.server\
${ PREFIX } /libdata/bonobo/servers/GNOME_AbiWord_Control_2_0.server
@${ LN } -sf ${ PREFIX } /share/AbiSuite-2.0/abi-nautilus-view-file.xml \
${ PREFIX } /share/gnome/gnome-2.0/ui/abi-nautilus-view-file.xml
. e n d i f
2001-08-20 15:27:17 +02:00
2002-02-13 00:17:36 +01:00
. i n c l u d e < b s d . p o r t . p o s t . m k >