freebsd-ports/editors/abiword-devel/Makefile
Jeremy Messenger 749db0bcca Update to 2.2.4, see details:
http://www.abisource.com/release-notes/2.2.4.phtml
	http://www.abisource.com/changelogs/2.2.4.phtml

As for abiword-plugins:

	- the libwpd (WordPerfect) plugin has been disabled because the
	  textproc/libwpd needs to be update to 0.8.x. I will creating a
	  patch of update and bugging to the maintainer.
	- Remove AbiGdkPixbuf, it has been moved to the mainline (abiword)
	  and is enable by default (core; not a plugin). Finally, they did it!
2005-02-22 07:53:16 +00:00

104 lines
3.3 KiB
Makefile

# New ports collection makefile for: AbiWord2
# Date created: 22 February 2003
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= abiword
PORTVERSION= 2.2.4
CATEGORIES= editors
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://www.abisource.com/downloads/%SUBDIR%/${PORTVERSION}/source/
MASTER_SITE_SUBDIR= abiword
DISTNAME= abiword-${PORTVERSION}
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.0.0:${PORTSDIR}/textproc/wv \
fribidi.0:${PORTSDIR}/converters/fribidi
USE_BZIP2= yes
USE_GMAKE= yes
USE_ICONV= yes
USE_GNOME= gnomehier libglade2 libxml2
WANT_GNOME= yes
USE_X_PREFIX= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-xft \
--with-sys-wv \
--with-popt=${LOCALBASE} \
--with-zlib=${LOCALBASE} \
--with-libpng=${LOCALBASE} \
--with-libiconv=${LOCALBASE} \
--with-libjpeg-prefix=${LOCALBASE} \
--disable-peer-config
MAKEFILE= GNUmakefile
ABIVERSION= 2.2
PLIST_SUB+= "ABIVERSION=${ABIVERSION}"
WRKSRC= ${WRKDIR}/abiword-${PORTVERSION}/abi
.ifndef(WITHOUT_GTKSPELL)
LIB_DEPENDS+= enchant.2:${PORTSDIR}/textproc/enchant
PLIST_SUB+= DICT:="@comment "
.else
CONFIGURE_ARGS+= --disable-enchant
PLIST_SUB+= DICT:=""
.endif
.include <bsd.port.pre.mk>
.if ${HAVE_GNOME:Mnautilus2}!="" && ${HAVE_GNOME:Mlibgnomeprintui}!=""
USE_GNOME+= nautilus2 libgnomeprintui desktopfileutils
CONFIGURE_ARGS+= --enable-gnome
PKGNAMESUFFIX= -gnome
GNOME_ENABLED= yes
.endif
.if defined(WITH_GUCHARMAP) || exists(${X11BASE}/libdata/pkgconfig/gucharmap.pc)
LIB_DEPENDS+= gucharmap.4:${PORTSDIR}/deskutils/gucharmap
.else
CONFIGURE_ARGS+= --enable-cmap=no
.endif
pre-everything::
@${ECHO_MSG} ""
@${ECHO_MSG} "AbiWord2 has the following tunable option(s):"
@${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' \
${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|@.*PEER.*@||g ; \
s|WV_INCLUDES = |#WV_INCLUDES = |g ; \
s|[(]libdir[)]/@PACKAGE@|(datadir)/@PACKAGE@|g ; \
s|[(]libdir[)]/bonobo/servers|(prefix)/libdata/bonobo/servers|g'
post-install:
@${MKDIR} ${PREFIX}/lib/AbiWord-${ABIVERSION}/plugins
.if defined(GNOME_ENABLED)
@${INSTALL_DATA} ${WRKSRC}/abiword.desktop \
${X11BASE}/share/gnome/applications/abiword.desktop
@${LN} -sf ${PREFIX}/share/AbiSuite-${ABIVERSION}/icons/abiword_48.png \
${X11BASE}/share/gnome/pixmaps/abiword_48.png
@${LN} -sf ${PREFIX}/share/AbiSuite-${ABIVERSION}/GNOME_AbiWord_Control_${ABIVERSION:S/./_/}.server \
${X11BASE}/libdata/bonobo/servers/GNOME_AbiWord_Control_${ABIVERSION:S/./_/}.server
@${LN} -sf ${PREFIX}/share/AbiSuite-${ABIVERSION}/abi-nautilus-view-file.xml \
${X11BASE}/share/gnome/gnome-2.0/ui/abi-nautilus-view-file.xml
@-update-desktop-database
.endif
.include <bsd.port.post.mk>