freebsd-ports/editors/abiword/Makefile
Joe Marcus Clarke 610ae56816 Presenting GNOME 2.24 for FreeBSD.
See http://library.gnome.org/misc/release-notes/2.24/ for the general
release notes.  On the FreeBSD front, this release introduces Fuse support
in HAL, adds multi-CPU support to libgtop, WebKit updates, and fixes some
long-standing seahorse and gnome-keyring bugs.  The documentation updates
to the website are forthcoming.

This release features commits by adamw, ahze, kwm, mezz, and myself.  It would
not have been possible without are contributors and testers:

Alexander Loginov
Craig Butler [1]
Dmitry Marakasov [6]
Eric L. Chen
Joseph S. Atkinson
Kris Moore
Lapo Luchini [7]
Nikos Ntarmos
Pawel Worach
Romain Tartiere
TAOKA Fumiyoshi [3]
Yasuda Keisuke
Zyl
aZ [4]
bf [2] [5]
Florent Thoumie
Peter Wemm
pluknet

PR:		125857 [1]
		126993 [2]
		130031 [3]
		127399 [4]
		127661 [5]
		124302 [6]
		129570 [7]
		129936
		123790
2009-01-10 05:22:13 +00:00

100 lines
2.9 KiB
Makefile

# 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.3
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 \
fribidi.0:${PORTSDIR}/converters/fribidi \
goffice-0.4:${PORTSDIR}/devel/goffice04
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>