2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL)". You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright (c) 2016 Alexander Pyhalov
13 # Copyright (c) 2017 Ken Mays
14 # Copyright (c) 2023 Klaus Ziegler
17 BUILD_BITS
= 64_and_32
18 USE_DEFAULT_TEST_TRANSFORMS
= yes
19 include ..
/..
/..
/make-rules
/shared-macros.mk
21 COMPONENT_NAME
= hunspell
22 COMPONENT_VERSION
= 1.7.2
24 COMPONENT_SUMMARY
= Hunspell is a free spell checker and morphological analyzer library and command-line tool
25 COMPONENT_PROJECT_URL
= https
://hunspell.github.io
/
26 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
27 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
28 COMPONENT_ARCHIVE_HASH
= sha256
:69fa312d3586c988789266eaf7ffc9861d9f6396c31fc930a014d551b59bbd6e
29 COMPONENT_ARCHIVE_URL
= https
://github.com
/hunspell
/hunspell
/archive
/v
$(COMPONENT_VERSION
).
tar.gz
30 COMPONENT_FMRI
= text
/hunspell
31 COMPONENT_CLASSIFICATION
= System
/Text Tools
32 COMPONENT_LICENSE
= GPLv3
, LGPLv3
, MPLv1.1
34 include $(WS_MAKE_RULES
)/common.mk
38 CPPFLAGS
+= -I
/usr
/include/ncurses
40 CFLAGS
+= $(CPP_XPG6MODE
)
42 COMPONENT_PREP_ACTION
= ( cd
$(@D
) && PATH
="$(PATH)" autoreconf
-vif
)
44 # Missing files in build dir without this.
45 COMPONENT_PRE_CONFIGURE_ACTION
= ( $(CLONEY
) $(SOURCE_DIR
) $(@D
) )
47 CONFIGURE_SCRIPT
= $(@D
)/configure
49 CONFIGURE_ENV
+= CPPFLAGS
="$(CPPFLAGS)"
51 CONFIGURE_OPTIONS
+= --with-ui
52 CONFIGURE_OPTIONS
+= --with-readline
54 # Drop 32-bit binaries
55 COMPONENT_POST_INSTALL_ACTION
+= $(RM
) -r
$(PROTOUSRBINDIR32
) ;
59 # Auto-generated dependencies
60 REQUIRED_PACKAGES
+= $(GCC_RUNTIME_PKG
)
61 REQUIRED_PACKAGES
+= $(GXX_RUNTIME_PKG
)
62 REQUIRED_PACKAGES
+= library
/ncurses
63 REQUIRED_PACKAGES
+= library
/readline
64 REQUIRED_PACKAGES
+= runtime
/perl
65 REQUIRED_PACKAGES
+= shell/ksh93
66 REQUIRED_PACKAGES
+= system
/library