freebsd-ports/editors/abiword-devel/Makefile

113 lines
3.9 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: AbiWord2
# Date created: 22 February 2003
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
#
1999-08-25 07:57:29 +02:00
# $FreeBSD$
#
PORTNAME= AbiWord2
PORTVERSION= 2.0.7
PORTREVISION= 1
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}
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
2001-09-11 05:32:41 +02:00
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
fribidi.0:${PORTSDIR}/converters/fribidi \
popt.0:${PORTSDIR}/devel/popt
DIST_SUBDIR= AbiWord
WRKSRC= ${WRKDIR}/abiword-${PORTVERSION}/abi
2001-08-08 17:46:45 +02:00
2003-08-25 10:41:49 +02:00
USE_BZIP2= yes
USE_X_PREFIX= yes
USE_AUTOMAKE_VER=14
USE_AUTOCONF_VER=213
USE_GMAKE= yes
USE_REINPLACE= yes
USE_ICONV= yes
USE_GNOME= gnomehier libglade2 libxml2
WANT_GNOME= yes
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
.include <bsd.port.pre.mk>
.if exists(${LOCALBASE}/include/wv.h)
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"
.endif
.if ${HAVE_GNOME:Mnautilus2}!="" && ${HAVE_GNOME:Mlibgnomeprintui}!=""
USE_GNOME+= nautilus2 libgnomeprintui
CONFIGURE_ARGS+= --enable-gnome
PKGNAMESUFFIX= -gnome
GNOME_ENABLED= yes
.endif
#.if defined(WITH_GUCHARMAP) || exists(${X11BASE}/libdata/pkgconfig/gucharmap.pc)
#LIB_DEPENDS+= gucharmap.3:${PORTSDIR}/deskutils/gucharmap
#.else
CONFIGURE_ARGS+= --enable-cmap=no
#.endif
.if defined(WITH_ENCHANT) || exists(${LOCALBASE}/lib/libenchant.so)
LIB_DEPENDS+= enchant.2:${PORTSDIR}/textproc/enchant
.elif exists(${LOCALBASE}/lib/libaspell.so)
LIB_DEPENDS+= aspell.15:${PORTSDIR}/textproc/aspell
.else
LIB_DEPENDS+= enchant.2:${PORTSDIR}/textproc/enchant
.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} " WITH_ENCHANT=yes Enable use of the Enchant dictionary backend broker (default: auto)"
@${ECHO_MSG} ""
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'
@${RM} -rf ${WRKSRC}/autom4te.cache
2001-08-08 17:46:45 +02:00
pre-configure:
@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
@cd ${WRKSRC} && ./autogen.sh && ${TRUE}
@${FIND} ${WRKSRC} -name GNUmakefile.in | ${XARGS} ${REINPLACE_CMD} -e \
's|[(]libdir[)]/@PACKAGE@|(datadir)/@PACKAGE@|g ; \
2003-08-25 10:41:49 +02:00
s|[(]libdir[)]/bonobo/servers|(prefix)/libdata/bonobo/servers|g; \
s|@DEFS@|-I${WRKSRC}/../libiconv/include @DEFS@|g' && ${TRUE}
post-install:
.if defined(GNOME_ENABLED)
@${INSTALL_DATA} ${WRKSRC}/src/pkg/linux/rpm/data/abiword.desktop \
${PREFIX}/share/gnome/apps/Applications/abiword.desktop
@${LN} -sf ${PREFIX}/share/AbiSuite-2.0/icons/abiword_48.png \
${PREFIX}/share/gnome/pixmaps/abiword_48.png
@${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
.endif
.include <bsd.port.post.mk>