aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorstas <stas@FreeBSD.org>2009-02-13 01:11:09 +0800
committerstas <stas@FreeBSD.org>2009-02-13 01:11:09 +0800
commit5ab469ee88cfe9cf5d2cc382ecac1ae582fbee3f (patch)
treee37102b1e2a6f22660d65e84248550ae54bf8825 /textproc
parentdd54e702b369ec8748da6a90659acb155d74504f (diff)
downloadfreebsd-ports-gnome-5ab469ee88cfe9cf5d2cc382ecac1ae582fbee3f.tar.gz
freebsd-ports-gnome-5ab469ee88cfe9cf5d2cc382ecac1ae582fbee3f.tar.zst
freebsd-ports-gnome-5ab469ee88cfe9cf5d2cc382ecac1ae582fbee3f.zip
- Use OPTIONS
- Make zemberek optional (requires dbus). Approved by: gnome (marcus)
Diffstat (limited to 'textproc')
-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