aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authormezz <mezz@FreeBSD.org>2004-06-10 03:09:27 +0800
committermezz <mezz@FreeBSD.org>2004-06-10 03:09:27 +0800
commit7cc1521d0de81362c481a2a637515d7d93735882 (patch)
tree3ad754c3698bc773cb8bc5bdba0a66b288023f41 /textproc
parentb24f7ce3c4bc95539c8fd146aa5aaabb7e82a74e (diff)
downloadfreebsd-ports-gnome-7cc1521d0de81362c481a2a637515d7d93735882.tar.gz
freebsd-ports-gnome-7cc1521d0de81362c481a2a637515d7d93735882.tar.zst
freebsd-ports-gnome-7cc1521d0de81362c481a2a637515d7d93735882.zip
Enable the Aspell support is turn on by default now. AbiWord's spell checker
will not work unless this compiles with Aspell support. Reviewed by: marcus and adamw
Diffstat (limited to 'textproc')
-rw-r--r--textproc/enchant/Makefile26
1 files changed, 11 insertions, 15 deletions
diff --git a/textproc/enchant/Makefile b/textproc/enchant/Makefile
index ad9f65f3c4b1..4bf292e5e5ae 100644
--- a/textproc/enchant/Makefile
+++ b/textproc/enchant/Makefile
@@ -7,7 +7,7 @@
PORTNAME= enchant
PORTVERSION= 1.1.3
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= textproc gnome
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= abiword
@@ -25,23 +25,19 @@ CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
MAN1= enchant.1
-.include <bsd.port.pre.mk>
-
-.if exists(${LOCALBASE}/lib/libpspell.so)
-WITH_ASPELL= yes
-.endif
-
-.if exists(${LOCALBASE}/bin/hspell)
-WITH_HSPELL= yes
-.endif
-
-.if defined(WITH_ASPELL)
+.ifndef(WITHOUT_ASPELL)
LIB_DEPENDS+= pspell.15:${PORTSDIR}/textproc/aspell
PLIST_SUB+= ASPELL=""
.else
PLIST_SUB+= ASPELL="@comment "
.endif
+.include <bsd.port.pre.mk>
+
+.if exists(${LOCALBASE}/bin/hspell)
+WITH_HSPELL= yes
+.endif
+
.if defined(WITH_HSPELL)
BUILD_DEPENDS+= hspell:${PORTSDIR}/hebrew/hspell
PLIST_SUB+= HSPELL=""
@@ -50,11 +46,11 @@ PLIST_SUB+= HSPELL="@comment "
.endif
pre-everything::
-.if !defined(WITH_ASPELL) || !defined(WITH_HSPELL)
+.if !defined(WITHOUT_ASPELL) || !defined(WITH_HSPELL)
@${ECHO_CMD} '===> The following options are available for this port:'
-.if !defined(WITH_ASPELL)
+.if !defined(WITHOUT_ASPELL)
@${ECHO_CMD} '===>'
- @${ECHO_CMD} '===> Define WITH_ASPELL to enable aspell support'
+ @${ECHO_CMD} '===> Define WITHOUT_ASPELL to disable aspell support'
.endif
.if !defined(WITH_HSPELL)
@${ECHO_CMD} '===>'