summaryrefslogtreecommitdiff
path: root/editors/AbiWord2
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2004-02-28 18:37:39 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2004-02-28 18:37:39 +0000
commit8572b20f4b6e0da0f1f3d9ca632e68bdcaac55c6 (patch)
treec238d123c1ad6cc440dbc0839401f5b8a0e74102 /editors/AbiWord2
parentRespect CFLAGS. Fix build on AMD64 (diff)
AbiWord2 will prefer enchant over aspell if it's installed. So, register
a dependency on it if it exists. Furthermore, modify the default behaviour to install enchant if no dictionary backend is installed. Also introduced is a WITH_ENCHANT option. Noticed by: Tom McLaughlin <tmclaugh@sdf.lonestar.org>
Notes
Notes: svn path=/head/; revision=102436
Diffstat (limited to 'editors/AbiWord2')
-rw-r--r--editors/AbiWord2/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/editors/AbiWord2/Makefile b/editors/AbiWord2/Makefile
index cfd0c15a0452..4ce5933e4bf2 100644
--- a/editors/AbiWord2/Makefile
+++ b/editors/AbiWord2/Makefile
@@ -21,8 +21,7 @@ COMMENT= An open-source, cross-platform WYSIWYG word processor
BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
fribidi.0:${PORTSDIR}/converters/fribidi \
- popt.0:${PORTSDIR}/devel/popt \
- aspell.15:${PORTSDIR}/textproc/aspell
+ popt.0:${PORTSDIR}/devel/popt
DIST_SUBDIR= AbiWord
@@ -64,10 +63,19 @@ LIB_DEPENDS+= gucharmap.3:${PORTSDIR}/deskutils/gucharmap
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: