diff options
author | thierry <thierry@FreeBSD.org> | 2008-04-19 15:46:27 +0800 |
---|---|---|
committer | thierry <thierry@FreeBSD.org> | 2008-04-19 15:46:27 +0800 |
commit | 0e76649db27f1661e460fbfdfe4830aad8e41798 (patch) | |
tree | 1e90d10d8b1fdade87104fc08ce4536e28fa58dd /textproc/aspell | |
parent | 9d43274187a71bd41ba02527074db16a51727abc (diff) | |
download | freebsd-ports-gnome-0e76649db27f1661e460fbfdfe4830aad8e41798.tar.gz freebsd-ports-gnome-0e76649db27f1661e460fbfdfe4830aad8e41798.tar.zst freebsd-ports-gnome-0e76649db27f1661e460fbfdfe4830aad8e41798.zip |
- Disable wide char utf8 cursor control for $OSVERSION < 602107; (1)
- Fix segfault when checking TeX files. (2)
Reported by: Pav (1)
PR: ports/122873 (2)
Submitted by: Roland Smith <rsmith (at) xs4all.nl> (2)
Patch from: Kevin Atkinson <kevina (at) gnu.org> (author) (2)
Diffstat (limited to 'textproc/aspell')
-rw-r--r-- | textproc/aspell/Makefile | 12 | ||||
-rw-r--r-- | textproc/aspell/files/patch-gen_mk-static-filter.pl | 11 |
2 files changed, 21 insertions, 2 deletions
diff --git a/textproc/aspell/Makefile b/textproc/aspell/Makefile index a9e4460622cf..6ee822b611b9 100644 --- a/textproc/aspell/Makefile +++ b/textproc/aspell/Makefile @@ -7,6 +7,7 @@ PORTNAME= aspell PORTVERSION= 0.60.6 +PORTREVISION= 1 CATEGORIES= textproc MASTER_SITES= ${MASTER_SITE_GNU} MASTER_SITE_SUBDIR= aspell @@ -23,7 +24,6 @@ GNU_CONFIGURE= yes CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL} CONFIGURE_ARGS= --enable-dict-dir=${DATADIR} \ --enable-docdir=${DOCSDIR} \ - --enable-curses=ncursesw \ --enable-static PTHREAD_CFLAGS= # Disable threading PTHREAD_LIBS= # libaspell may be used by unthreaded apps. @@ -84,6 +84,14 @@ INFO= aspell-dev aspell CFLAGS+= -O .endif +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 602107 +CONFIGURE_ARGS+= --disable-wide-curses +.else +CONFIGURE_ARGS+= --enable-curses=ncursesw +.endif + pre-everything:: @${ECHO_MSG} "" .if !defined(WITH_ISPELL) @@ -123,4 +131,4 @@ inst-dicten: >> ${TMPPLIST} .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/textproc/aspell/files/patch-gen_mk-static-filter.pl b/textproc/aspell/files/patch-gen_mk-static-filter.pl new file mode 100644 index 000000000000..7ff663380b20 --- /dev/null +++ b/textproc/aspell/files/patch-gen_mk-static-filter.pl @@ -0,0 +1,11 @@ +--- gen/mk-static-filter.pl.orig 2007-12-03 07:43:09.000000000 +0100 ++++ gen/mk-static-filter.pl 2008-04-18 22:34:26.000000000 +0200 +@@ -159,7 +159,7 @@ + printf STATICFILTERS "\n const KeyInfo * ".${$filter}{"NAME"}."_options_begin = ". + ${$filter}{"NAME"}."_options;\n"; + # If structure is empty, set options_end to same as options_begin. +- if (%{$filter}) { ++ if ($firstopt) { + printf STATICFILTERS "\n const KeyInfo * ".${$filter}{"NAME"}."_options_end = ". + ${$filter}{"NAME"}."_options;\n"; + } else { |