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
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.
13 # Copyright 2015 Alexander Pyhalov
14 # Copyright 2022 Niklas Poslovski
17 USE_DEFAULT_TEST_TRANSFORMS
= yes
18 include ..
/..
/..
/make-rules
/shared-macros.mk
20 COMPONENT_NAME
= enchant
21 COMPONENT_VERSION
= 2.8.2
22 COMPONENT_SUMMARY
= GNOME spell checker component
23 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
24 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
25 COMPONENT_ARCHIVE_HASH
= sha256
:8f19535adb5577b83b00e02f330fe9b9eb40dd21f19e2899636fc4d3a7696375
26 COMPONENT_ARCHIVE_URL
= https
://github.com
/AbiWord
/enchant
/releases
/download
/v
$(COMPONENT_VERSION
)/$(COMPONENT_ARCHIVE
)
27 COMPONENT_PROJECT_URL
= https
://abiword.github.io
/enchant
/
28 COMPONENT_FMRI
= library
/spell-checking
/enchant
29 COMPONENT_CLASSIFICATION
= Applications
/Accessories
30 COMPONENT_LICENSE
= LGPLv2.1
31 COMPONENT_LICENSE_FILE
= COPYING.LIB
33 # C tests pass but we do not have unittest-cpp
34 #TEST_TARGET= $(NO_TESTS)
35 include $(WS_MAKE_RULES
)/common.mk
37 COMPONENT_PREP_ACTION
= ( cd
$(@D
) && autoreconf
-vif
)
39 CONFIGURE_OPTIONS
+= --sysconfdir
=$(ETCDIR
)
40 CONFIGURE_OPTIONS
+= --localstatedir
=$(VARDIR
)
41 CONFIGURE_OPTIONS
+= --with-hunspell-dir
=$(USRSHAREDIR
)/spell
/hunspell
42 CONFIGURE_OPTIONS
+= --disable-aspell
43 CONFIGURE_OPTIONS
+= --disable-static
44 CONFIGURE_OPTIONS
+= --enable-relocatable
45 CONFIGURE_OPTIONS
+= OBJC
=$(CC
)
47 # Manually added dependencies
48 TEST_REQUIRED_PACKAGES
+= developer
/unittest-cpp
50 # Auto-generated dependencies
51 REQUIRED_PACKAGES
+= $(GCC_RUNTIME_PKG
)
52 REQUIRED_PACKAGES
+= $(GXX_RUNTIME_PKG
)
53 REQUIRED_PACKAGES
+= library
/glib2
54 REQUIRED_PACKAGES
+= system
/library
55 REQUIRED_PACKAGES
+= text
/aspell
56 REQUIRED_PACKAGES
+= text
/hunspell