*: Packages including C++ hunspell headers must use C++11 or newer. Some do not set -std=c++XX, so enforce this requirement with FORCE_CXX_STD.diff -r1.45 -r1.46 pkgsrc/textproc/enchant/Makefile
(nia)
@@ -1,42 +0,0 @@ | @@ -1,42 +0,0 @@ | |||
1 | # $NetBSD: Makefile,v 1.45 2023/07/06 07:24:26 nia Exp $ | |||
2 | # | |||
3 | ||||
4 | DISTNAME= enchant-1.6.0 | |||
5 | PKGREVISION= 10 | |||
6 | CATEGORIES= textproc | |||
7 | MASTER_SITES= http://www.abisource.com/downloads/enchant/1.6.0/ | |||
8 | ||||
9 | MAINTAINER= pkgsrc-users@NetBSD.org | |||
10 | HOMEPAGE= https://www.abisource.com/projects/enchant/ | |||
11 | COMMENT= Generic spell checking library | |||
12 | LICENSE= gnu-lgpl-v2.1 | |||
13 | ||||
14 | USE_TOOLS+= pkg-config autoconf | |||
15 | USE_LANGUAGES= c c++11 | |||
16 | USE_PKGLOCALEDIR= yes | |||
17 | USE_LIBTOOL= yes | |||
18 | PKGCONFIG_OVERRIDE+= enchant.pc.in | |||
19 | GNU_CONFIGURE= yes | |||
20 | CFLAGS.SunOS+= -D__EXTENSIONS__ | |||
21 | ||||
22 | INSTALLATION_DIRS+= share/examples | |||
23 | MAKE_DIRS+= ${PREFIX}/share/enchant | |||
24 | CONF_FILES= ${PREFIX}/share/examples/enchant-1.ordering ${PREFIX}/share/enchant/enchant.ordering | |||
25 | ||||
26 | # Unsupported in pkgsrc: | |||
27 | # hspell - Hebrew spelling | |||
28 | # uspell - Yiddish spelling | |||
29 | # voikko - Finnish spelling | |||
30 | # | |||
31 | # hunspell or aspell can be used for these languages. | |||
32 | CONFIGURE_ARGS+= --disable-hspell | |||
33 | CONFIGURE_ARGS+= --disable-uspell | |||
34 | CONFIGURE_ARGS+= --disable-voikko | |||
35 | ||||
36 | post-install: | |||
37 | cd ${DESTDIR}${PREFIX}/share && ${MV} enchant/enchant.ordering examples/enchant-1.ordering | |||
38 | ||||
39 | .include "options.mk" | |||
40 | ||||
41 | .include "../../devel/glib2/buildlink3.mk" | |||
42 | .include "../../mk/bsd.pkg.mk" |
@@ -1,39 +1,42 @@ | @@ -1,39 +1,42 @@ | |||
1 | # $NetBSD: Makefile,v 1.28 2023/07/18 18:47:53 nia Exp $ | 1 | # $NetBSD: Makefile,v 1.29 2023/08/02 19:36:51 nia Exp $ | |
2 | 2 | |||
3 | DISTNAME= enchant-2.5.0 | 3 | DISTNAME= enchant-2.5.0 | |
4 | PKGNAME= ${DISTNAME:S/enchant/enchant2/} | 4 | PKGNAME= ${DISTNAME:S/enchant/enchant2/} | |
5 | CATEGORIES= textproc | 5 | CATEGORIES= textproc | |
6 | MASTER_SITES= ${MASTER_SITE_GITHUB:=AbiWord/} | 6 | MASTER_SITES= ${MASTER_SITE_GITHUB:=AbiWord/} | |
7 | GITHUB_PROJECT= enchant | 7 | GITHUB_PROJECT= enchant | |
8 | GITHUB_RELEASE= v${PKGVERSION_NOREV} | 8 | GITHUB_RELEASE= v${PKGVERSION_NOREV} | |
9 | 9 | |||
10 | MAINTAINER= pkgsrc-users@NetBSD.org | 10 | MAINTAINER= pkgsrc-users@NetBSD.org | |
11 | HOMEPAGE= https://abiword.github.io/enchant/ | 11 | HOMEPAGE= https://abiword.github.io/enchant/ | |
12 | COMMENT= Generic spell checking library | 12 | COMMENT= Generic spell checking library | |
13 | LICENSE= gnu-lgpl-v2.1 | 13 | LICENSE= gnu-lgpl-v2.1 | |
14 | 14 | |||
15 | USE_TOOLS+= autoconf groff pkg-config | 15 | USE_TOOLS+= autoconf groff pkg-config | |
16 | USE_LANGUAGES= c c++11 | 16 | USE_LANGUAGES= c c++ | |
17 | USE_CXX_FEATURES+= c++11 | |||
18 | USE_PKGLOCALEDIR= yes | 17 | USE_PKGLOCALEDIR= yes | |
19 | USE_LIBTOOL= yes | 18 | USE_LIBTOOL= yes | |
20 | PKGCONFIG_OVERRIDE+= enchant.pc.in | 19 | PKGCONFIG_OVERRIDE+= enchant.pc.in | |
21 | GNU_CONFIGURE= yes | 20 | GNU_CONFIGURE= yes | |
22 | CFLAGS.SunOS+= -D__EXTENSIONS__ | 21 | CFLAGS.SunOS+= -D__EXTENSIONS__ | |
23 | INSTALLATION_DIRS+= share/examples | 22 | INSTALLATION_DIRS+= share/examples | |
24 | MAKE_DIRS+= ${PREFIX}/share/enchant | 23 | MAKE_DIRS+= ${PREFIX}/share/enchant | |
25 | CONF_FILES= ${PREFIX}/share/examples/enchant.ordering ${PREFIX}/share/enchant/enchant.ordering | 24 | CONF_FILES= ${PREFIX}/share/examples/enchant.ordering ${PREFIX}/share/enchant/enchant.ordering | |
26 | 25 | |||
26 | # Mostly needed due to hunspell headers making c++98 default unacceptable. | |||
27 | FORCE_CXX_STD= c++11 | |||
28 | USE_CXX_FEATURES+= c++11 | |||
29 | ||||
27 | # unsupported in pkgsrc - other dictionaries can be used instead | 30 | # unsupported in pkgsrc - other dictionaries can be used instead | |
28 | # avoid PLIST problems | 31 | # avoid PLIST problems | |
29 | CONFIGURE_ARGS+= --without-hspell | 32 | CONFIGURE_ARGS+= --without-hspell | |
30 | CONFIGURE_ARGS+= --without-voikko | 33 | CONFIGURE_ARGS+= --without-voikko | |
31 | 34 | |||
32 | # As of 2.3.2 | 35 | # As of 2.3.2 | |
33 | # FAILURE: 230 out of 425 tests failed (390 failures). | 36 | # FAILURE: 230 out of 425 tests failed (390 failures). | |
34 | TEST_TARGET= check | 37 | TEST_TARGET= check | |
35 | 38 | |||
36 | post-install: | 39 | post-install: | |
37 | cd ${DESTDIR}${PREFIX}/share && ${MV} enchant/enchant.ordering examples/enchant.ordering | 40 | cd ${DESTDIR}${PREFIX}/share && ${MV} enchant/enchant.ordering examples/enchant.ordering | |
38 | 41 | |||
39 | .include "options.mk" | 42 | .include "options.mk" |
@@ -1,24 +1,28 @@ | @@ -1,24 +1,28 @@ | |||
1 | # $NetBSD: Makefile,v 1.19 2022/06/28 11:36:12 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.20 2023/08/02 19:36:51 nia Exp $ | |
2 | 2 | |||
3 | DISTNAME= mythes-1.2.4 | 3 | DISTNAME= mythes-1.2.4 | |
4 | PKGREVISION= 3 | 4 | PKGREVISION= 3 | |
5 | CATEGORIES= textproc | 5 | CATEGORIES= textproc | |
6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=hunspell}/ | 6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=hunspell}/ | |
7 | 7 | |||
8 | MAINTAINER= ftigeot@wolfpond.org | 8 | MAINTAINER= ftigeot@wolfpond.org | |
9 | HOMEPAGE= http://hunspell.sourceforge.net/ | 9 | HOMEPAGE= http://hunspell.sourceforge.net/ | |
10 | COMMENT= Simple thesaurus library | 10 | COMMENT= Simple thesaurus library | |
11 | LICENSE= modified-bsd | 11 | LICENSE= modified-bsd | |
12 | 12 | |||
13 | USE_LANGUAGES= c c++ | 13 | USE_LANGUAGES= c c++ | |
14 | USE_LIBTOOL= yes | 14 | USE_LIBTOOL= yes | |
15 | USE_TOOLS+= pkg-config perl:run | 15 | USE_TOOLS+= pkg-config perl:run | |
16 | 16 | |||
17 | GNU_CONFIGURE= yes | 17 | GNU_CONFIGURE= yes | |
18 | 18 | |||
19 | REPLACE_PERL= th_gen_idx.pl | 19 | REPLACE_PERL= th_gen_idx.pl | |
20 | 20 | |||
21 | # Mostly needed due to hunspell headers making c++98 default unacceptable. | |||
22 | FORCE_CXX_STD= c++11 | |||
23 | USE_CXX_FEATURES+= c++11 | |||
24 | ||||
21 | PKGCONFIG_OVERRIDE= mythes.pc.in | 25 | PKGCONFIG_OVERRIDE= mythes.pc.in | |
22 | 26 | |||
23 | .include "../../textproc/hunspell/buildlink3.mk" | 27 | .include "../../textproc/hunspell/buildlink3.mk" | |
24 | .include "../../mk/bsd.pkg.mk" | 28 | .include "../../mk/bsd.pkg.mk" |