Andreas Wacknitz
2023-10-29 b157f71b2a1b6969e523a7d204ace3799610c113
commit | author | age
9840ef 1 #
AP 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.
5 #
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.
9 #
10
11 #
12 # Copyright (c) 2016 Alexander Pyhalov
922cd3 13 # Copyright (c) 2017 Ken Mays
14c49c 14 # Copyright (c) 2023 Klaus Ziegler
9840ef 15 #
AP 16
b825a9 17 BUILD_BITS = 64_and_32
AW 18 USE_DEFAULT_TEST_TRANSFORMS = yes
9840ef 19 include ../../../make-rules/shared-macros.mk
AP 20
21 COMPONENT_NAME=           hunspell
14c49c 22 COMPONENT_VERSION=        1.7.2
b157f7 23 COMPONENT_REVISION=       3
b825a9 24 COMPONENT_SUMMARY=        Hunspell is a free spell checker and morphological analyzer library and command-line tool
AW 25 COMPONENT_PROJECT_URL=    https://hunspell.github.io/
9840ef 26 COMPONENT_SRC=            $(COMPONENT_NAME)-$(COMPONENT_VERSION)
AP 27 COMPONENT_ARCHIVE=        $(COMPONENT_SRC).tar.gz
b825a9 28 COMPONENT_ARCHIVE_HASH=   sha256:69fa312d3586c988789266eaf7ffc9861d9f6396c31fc930a014d551b59bbd6e
AW 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
c49855 33
MT 34 include $(WS_MAKE_RULES)/common.mk
9840ef 35
b825a9 36 PATH = $(PATH.gnu)
9840ef 37
AP 38 CPPFLAGS += -I/usr/include/ncurses
b825a9 39
AW 40 CFLAGS += $(CPP_XPG6MODE)
9840ef 41
3237a7 42 COMPONENT_PREP_ACTION = ( cd $(@D) && PATH="$(PATH)" autoreconf -vif )
9840ef 43
AP 44 # Missing files in build dir without this.
b825a9 45 COMPONENT_PRE_CONFIGURE_ACTION = ( $(CLONEY) $(SOURCE_DIR) $(@D) )
9840ef 46
AP 47 CONFIGURE_SCRIPT = $(@D)/configure
48
49 CONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)"
50
b825a9 51 CONFIGURE_OPTIONS += --with-ui
AW 52 CONFIGURE_OPTIONS += --with-readline
9840ef 53
3237a7 54 # Drop 32-bit binaries
MT 55 COMPONENT_POST_INSTALL_ACTION += $(RM) -r $(PROTOUSRBINDIR32) ;
56
922cd3 57 unexport SHELLOPTS
AL 58
59 # Auto-generated dependencies
c49855 60 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
MT 61 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
922cd3 62 REQUIRED_PACKAGES += library/ncurses
AL 63 REQUIRED_PACKAGES += library/readline
c49855 64 REQUIRED_PACKAGES += runtime/perl
MT 65 REQUIRED_PACKAGES += shell/ksh93
922cd3 66 REQUIRED_PACKAGES += system/library