#
|
# This file and its contents are supplied under the terms of the
|
# Common Development and Distribution License ("CDDL"), version 1.0.
|
# You may only use this file in accordance with the terms of version
|
# 1.0 of the CDDL.
|
#
|
# A full copy of the text of the CDDL should have accompanied this
|
# source. A copy of the CDDL is also available via the Internet at
|
# http://www.illumos.org/license/CDDL.
|
#
|
|
#
|
# Copyright 2015 Alexander Pyhalov
|
# Copyright 2022 Niklas Poslovski
|
#
|
|
BUILD_BITS= 64
|
include ../../../make-rules/shared-macros.mk
|
|
COMPONENT_NAME= enchant
|
COMPONENT_VERSION= 2.6.8
|
COMPONENT_SUMMARY= GNOME spell checker component
|
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
|
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
|
COMPONENT_ARCHIVE_HASH= sha256:f565923062c77f3d58846f0558d21e6d07ca4a488c58812dfdefb35202fac7ae
|
COMPONENT_ARCHIVE_URL= https://github.com/AbiWord/enchant/releases/download/v$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
|
COMPONENT_PROJECT_URL= https://abiword.github.io/enchant/
|
COMPONENT_FMRI= library/spell-checking/enchant
|
COMPONENT_CLASSIFICATION= Applications/Accessories
|
COMPONENT_LICENSE= LGPLv2.1
|
COMPONENT_LICENSE_FILE= COPYING.LIB
|
|
# C tests pass but we do not have unittest-cpp
|
TEST_TARGET= $(NO_TESTS)
|
include $(WS_MAKE_RULES)/common.mk
|
|
COMPONENT_PREP_ACTION = ( cd $(@D) && autoreconf -vif )
|
|
CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
|
CONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_LIBDIR.$(BITS))
|
CONFIGURE_OPTIONS += --localstatedir=$(VARDIR)
|
CONFIGURE_OPTIONS += --with-hunspell-dir=$(USRSHAREDIR)/spell/hunspell
|
CONFIGURE_OPTIONS += --disable-aspell
|
CONFIGURE_OPTIONS += --disable-static
|
CONFIGURE_OPTIONS += OBJC=$(CC)
|
|
# Auto-generated dependencies
|
REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
|
REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
|
REQUIRED_PACKAGES += library/glib2
|
REQUIRED_PACKAGES += system/library
|
REQUIRED_PACKAGES += text/aspell
|
REQUIRED_PACKAGES += text/hunspell
|