aboutsummaryrefslogtreecommitdiff
path: root/textproc/enchant
diff options
context:
space:
mode:
authorStanislav Sedov <stas@FreeBSD.org>2009-02-12 17:11:09 +0000
committerStanislav Sedov <stas@FreeBSD.org>2009-02-12 17:11:09 +0000
commit3a9cefc5cd22b8f09b86e3f5283b300e59eeeefc (patch)
tree1abbda07736f0597a8dd3bd3843711ad45ec4745 /textproc/enchant
parentaf13aa1d5ade82c77983431447fe548a4a2a8b03 (diff)
downloadports-3a9cefc5cd22b8f09b86e3f5283b300e59eeeefc.tar.gz
ports-3a9cefc5cd22b8f09b86e3f5283b300e59eeeefc.zip
Notes
Diffstat (limited to 'textproc/enchant')
-rw-r--r--textproc/enchant/Makefile40
-rw-r--r--textproc/enchant/pkg-plist6
2 files changed, 22 insertions, 24 deletions
diff --git a/textproc/enchant/Makefile b/textproc/enchant/Makefile
index cc98cd033468..03e7bacf943e 100644
--- a/textproc/enchant/Makefile
+++ b/textproc/enchant/Makefile
@@ -15,8 +15,6 @@ DIST_SUBDIR= gnome2
MAINTAINER= gnome@FreeBSD.org
COMMENT= Dictionary/spellchecking framework
-LIB_DEPENDS= dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib
-
USE_GMAKE= yes
USE_AUTOTOOLS= libtool:15
USE_LDCONFIG= yes
@@ -28,15 +26,9 @@ CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
MAN1= enchant.1
-.ifndef(WITHOUT_ASPELL)
-LIB_DEPENDS+= pspell.16:${PORTSDIR}/textproc/aspell
-CONFIGURE_ARGS+=--enable-aspell \
- --with-aspell-prefix=${LOCALBASE}
-PLIST_SUB+= ASPELL=""
-.else
-CONFIGURE_ARGS+=--disable-aspell
-PLIST_SUB+= ASPELL="@comment "
-.endif
+OPTIONS= ASPELL "Enable aspell support" on \
+ ZEMBEREK "Enable zemberek backend (requires DBUS)" off
+
.include <bsd.port.pre.mk>
@@ -54,17 +46,23 @@ PLIST_SUB+= ASPELL="@comment "
#PLIST_SUB+= HSPELL="@comment "
#.endif
-pre-everything::
-.if !defined(WITHOUT_ASPELL) || !defined(WITH_HSPELL)
- @${ECHO_CMD} '===> The following options are available for this port:'
-.if !defined(WITHOUT_ASPELL)
- @${ECHO_CMD} '===>'
- @${ECHO_CMD} '===> Define WITHOUT_ASPELL to disable aspell support'
+.ifndef(WITHOUT_ASPELL)
+LIB_DEPENDS+= pspell.16:${PORTSDIR}/textproc/aspell
+CONFIGURE_ARGS+=--enable-aspell \
+ --with-aspell-prefix=${LOCALBASE}
+PLIST_SUB+= ASPELL=""
+.else
+CONFIGURE_ARGS+=--disable-aspell
+PLIST_SUB+= ASPELL="@comment "
.endif
-#.if !defined(WITH_HSPELL)
-# @${ECHO_CMD} '===>'
-# @${ECHO_CMD} '===> Define WITH_HSPELL to enable hspell (Hebrew) support'
-#.endif
+
+.if defined(WITH_ZEMBEREK) && !defined(WITHOUT_DBUS)
+LIB_DEPENDS+= dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib
+CONFIGURE_ARGS+= --enable-zemberek
+PLIST_SUB+= ZEMBEREK=""
+.else
+PLIST_SUB+= ZEMBEREK="@comment "
+CONFIGURE_ARGS+= --disable-zemberek
.endif
post-patch:
diff --git a/textproc/enchant/pkg-plist b/textproc/enchant/pkg-plist
index 7f6ffcfc0326..695e54ae2c4a 100644
--- a/textproc/enchant/pkg-plist
+++ b/textproc/enchant/pkg-plist
@@ -12,9 +12,9 @@ lib/enchant/libenchant_ispell.so
lib/enchant/libenchant_myspell.a
lib/enchant/libenchant_myspell.la
lib/enchant/libenchant_myspell.so
-lib/enchant/libenchant_zemberek.a
-lib/enchant/libenchant_zemberek.la
-lib/enchant/libenchant_zemberek.so
+%%ZEMBEREK%%lib/enchant/libenchant_zemberek.a
+%%ZEMBEREK%%lib/enchant/libenchant_zemberek.la
+%%ZEMBEREK%%lib/enchant/libenchant_zemberek.so
lib/libenchant.a
lib/libenchant.la
lib/libenchant.so