summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorwiz <wiz>2006-01-29 22:02:45 +0000
committerwiz <wiz>2006-01-29 22:02:45 +0000
commit3df93a1fa0f485fd52e903c3ee9190a91aca2c3a (patch)
tree88dcb9633cf7778e43af82d9555077f5d0fea61d /textproc
parent68fca5d60647b5010b48d38cdca5b6c41b3254ec (diff)
downloadpkgsrc-3df93a1fa0f485fd52e903c3ee9190a91aca2c3a.tar.gz
Prepare some code for an aspell-loadable-filter options,
which is not yet enabled because it currently does not work, but this way it is easier to test.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/aspell/Makefile18
-rw-r--r--textproc/aspell/PLIST15
2 files changed, 29 insertions, 4 deletions
diff --git a/textproc/aspell/Makefile b/textproc/aspell/Makefile
index 3ffef0268bb..a288aa3ef20 100644
--- a/textproc/aspell/Makefile
+++ b/textproc/aspell/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.38 2006/01/06 14:51:19 wiz Exp $
+# $NetBSD: Makefile,v 1.39 2006/01/29 22:02:45 wiz Exp $
#
DISTNAME= aspell-0.60.4
@@ -25,9 +25,21 @@ CONFIGURE_ARGS+= --enable-curses=ncurses
CONFIGURE_ARGS+= --enable-pkgdatadir=${PREFIX}/share/aspell
CONFIGURE_ARGS+= --enable-dict-dir=${PREFIX}/lib/aspell
-# configure fails to detect dlopen() on NetBSD. Disable dynamic
-# loading of filters until it is fixed.
+# Loadable filter currently don't work on NetBSD, see
+# https://sourceforge.net/tracker/?func=detail&atid=100245&aid=1336865&group_id=245
+# Disable dynamic loading of filters until it is fixed.
+PKG_OPTIONS_VAR= PKG_OPTIONS.aspell
+#PKG_SUPPORTED_OPTIONS= aspell-loadable-filters
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Maspell-loadable-filters)
+CONFIGURE_ARGS+= --disable-compile-in-filters
+PLIST_SUBST+= FILTER=""
+.else
CONFIGURE_ARGS+= --enable-compile-in-filters
+PLIST_SUBST+= FILTER="@comment "
+.endif
REPLACE_PERL= scripts/aspell-import
diff --git a/textproc/aspell/PLIST b/textproc/aspell/PLIST
index 5abb4fcdb3b..fc3d9e9b1ea 100644
--- a/textproc/aspell/PLIST
+++ b/textproc/aspell/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.8 2006/01/06 14:51:19 wiz Exp $
+@comment $NetBSD: PLIST,v 1.9 2006/01/29 22:02:45 wiz Exp $
bin/aspell
bin/aspell-import
bin/precat
@@ -12,13 +12,19 @@ include/aspell.h
include/pspell/pspell.h
lib/aspell/ccpp.amf
lib/aspell/comment.amf
+${FILTER}lib/aspell/context-filter.la
+${FILTER}lib/aspell/email-filter.la
lib/aspell/email.amf
lib/aspell/html.amf
lib/aspell/none.amf
+${FILTER}lib/aspell/nroff-filter.la
lib/aspell/nroff.amf
lib/aspell/perl.amf
+${FILTER}lib/aspell/sgml-filter.la
lib/aspell/sgml.amf
+${FILTER}lib/aspell/tex-filter.la
lib/aspell/tex.amf
+${FILTER}lib/aspell/texinfo-filter.la
lib/aspell/texinfo.amf
lib/aspell/url.amf
lib/libaspell.la
@@ -29,6 +35,7 @@ man/man1/prezip-bin.1
man/man1/pspell-config.1
man/man1/run-with-aspell.1
man/man1/word-list-compress.1
+${FILTER}share/aspell/context-filter.info
share/aspell/cp1250.cmap
share/aspell/cp1250.cset
share/aspell/cp1251.cmap
@@ -48,6 +55,8 @@ share/aspell/cp1257.cset
share/aspell/cp1258.cmap
share/aspell/cp1258.cset
share/aspell/dvorak.kbd
+${FILTER}share/aspell/email-filter.info
+${FILTER}share/aspell/html-filter.info
share/aspell/iso-8859-1.cmap
share/aspell/iso-8859-1.cset
share/aspell/iso-8859-10.cmap
@@ -83,9 +92,13 @@ share/aspell/koi8-r.cmap
share/aspell/koi8-r.cset
share/aspell/koi8-u.cmap
share/aspell/koi8-u.cset
+${FILTER}share/aspell/nroff-filter.info
+${FILTER}share/aspell/sgml-filter.info
share/aspell/spell
share/aspell/split.kbd
share/aspell/standard.kbd
+${FILTER}share/aspell/tex-filter.info
+${FILTER}share/aspell/texinfo-filter.info
@dirrm share/aspell
@dirrm lib/aspell
@dirrm include/pspell