Andreas Wacknitz
2023-02-24 155bda94e3760951f57184ce9ab9ae7bcfd9dd5b
commit | author | age
622e82 1 #
AL 2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
6 #
7 # A full copy of the text of the CDDL should have accompanied this
8 # source.  A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
10 #
11
12 #
13 # Copyright 2015 Alexander Pyhalov
f81f97 14 # Copyright 2022 Niklas Poslovski
622e82 15 #
ac8dea 16 BUILD_BITS= 32_and_64
622e82 17 include ../../../make-rules/shared-macros.mk
AL 18
19 COMPONENT_NAME= enchant
155bda 20 COMPONENT_VERSION= 2.3.4
622e82 21 COMPONENT_SUMMARY= GNOME spell checker component
AL 22 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
23 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
155bda 24 COMPONENT_ARCHIVE_HASH=    sha256:1f7e26744db1c9a0fea61d2169f4e5c1ce435cf8c2731c37e3e4054119e994a0
ac8dea 25 COMPONENT_ARCHIVE_URL=    https://github.com/AbiWord/enchant/releases/download/v$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
AW 26 COMPONENT_PROJECT_URL=    https://abiword.github.io/enchant/
27 COMPONENT_FMRI=            library/spell-checking/enchant
28 COMPONENT_CLASSIFICATION=    Applications/Accessories
155bda 29 COMPONENT_LICENSE=        LGPLv2.1
AW 30 COMPONENT_LICENSE_FILE=    COPYING.LIB
622e82 31
ac8dea 32 # C tests pass but we do not have unittest-cpp
155bda 33 TEST_TARGET= $(NO_TESTS)
ac8dea 34 include $(WS_MAKE_RULES)/common.mk
622e82 35
AL 36 COMPONENT_PREP_ACTION = ( cd $(@D)  && autoreconf -vif )
37
38 CONFIGURE_OPTIONS += --sysconfdir=/etc
422921 39 CONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_LIBDIR.$(BITS))
622e82 40 CONFIGURE_OPTIONS += --localstatedir=/var
0d684f 41 CONFIGURE_OPTIONS += --with-hunspell-dir=/usr/share/spell/hunspell
622e82 42 CONFIGURE_OPTIONS += --disable-aspell
AL 43 CONFIGURE_OPTIONS += --disable-static
44 CONFIGURE_OPTIONS += OBJC=$(CC)
45
46 # Auto-generated dependencies
f81f97 47 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
NP 48 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
622e82 49 REQUIRED_PACKAGES += library/glib2
AL 50 REQUIRED_PACKAGES += system/library
f81f97 51 REQUIRED_PACKAGES += text/aspell
622e82 52 REQUIRED_PACKAGES += text/hunspell