$OpenBSD: patch-src_tools_hunspell_cxx,v 1.2 2010/11/14 14:25:24 sthen Exp $ --- src/tools/hunspell.cxx.orig Mon Jul 5 11:06:21 2010 +++ src/tools/hunspell.cxx Sat Sep 25 11:45:07 2010 @@ -61,26 +61,17 @@ #include "firstparser.hxx" #define LIBDIR \ - "/usr/share/hunspell:" \ - "/usr/share/myspell:" \ - "/usr/share/myspell/dicts" + "${PREFIX}/share/hunspell:" \ + "${LOCALBASE}/share/myspell:" \ + "${LOCALBASE}/share/myspell/dicts:" \ + "${LOCALBASE}/share/mozilla-dicts" #define USEROOODIR \ ".openoffice.org/3/user/wordbook:" \ ".openoffice.org2/user/wordbook:" \ ".openoffice.org2.0/user/wordbook" #define OOODIR \ - "/opt/openoffice.org/basis3.0/share/dict/ooo:" \ - "/usr/lib/openoffice.org/basis3.0/share/dict/ooo:" \ - "/opt/openoffice.org2.4/share/dict/ooo:" \ - "/usr/lib/openoffice.org2.4/share/dict/ooo:" \ - "/opt/openoffice.org2.3/share/dict/ooo:" \ - "/usr/lib/openoffice.org2.3/share/dict/ooo:" \ - "/opt/openoffice.org2.2/share/dict/ooo:" \ - "/usr/lib/openoffice.org2.2/share/dict/ooo:" \ - "/opt/openoffice.org2.1/share/dict/ooo:" \ - "/usr/lib/openoffice.org2.1/share/dict/ooo:" \ - "/opt/openoffice.org2.0/share/dict/ooo:" \ - "/usr/lib/openoffice.org2.0/share/dict/ooo" + "${LOCALBASE}/openoffice.org3/share/extension/install:" \ + "${LOCALBASE}/openoffice/share/dict/ooo" #define HOME getenv("HOME") #define DICBASENAME ".hunspell_" #define LOGFILE "/tmp/hunspell.log"