aboutsummaryrefslogtreecommitdiff
path: root/editors/abiword-devel
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/abiword-devel
parent552a739e2bdf5acbf7053acbb9d908e5798bfcea (diff)
downloadports-8572b20f4b6e0da0f1f3d9ca632e68bdcaac55c6.tar.gz
ports-8572b20f4b6e0da0f1f3d9ca632e68bdcaac55c6.zip
Notes
Diffstat (limited to 'editors/abiword-devel')
-rw-r--r--editors/abiword-devel/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/editors/abiword-devel/Makefile b/editors/abiword-devel/Makefile
index cfd0c15a0452..4ce5933e4bf2 100644
--- a/editors/abiword-devel/Makefile
+++ b/editors/abiword-devel/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: