vim: update to 9.1.0984
[oi-userland.git] / components / library / liblouis / Makefile
blob4b84a74d21d1f2463c6d97af224d1cd3b3ab25bd
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.
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 2016 Alexander Pyhalov
14 # Copyright 2021 Andreas Wacknitz
15 # Copyright 2022-2023 Niklas Poslovski
18 USE_DEFAULT_TEST_TRANSFORMS= yes
19 include ../../../make-rules/shared-macros.mk
21 COMPONENT_NAME= liblouis
22 COMPONENT_VERSION= 3.32.0
23 COMPONENT_SUMMARY= The Liblouis software suite provides an open-source braille translator, back-translator and formatter for a large number of languages and braille codes
24 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
25 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
26 COMPONENT_ARCHIVE_HASH= sha256:a5024d2a3f1b63336440e329f8cfb7166f64ce54da961ce97e847e4cef063e32
27 COMPONENT_ARCHIVE_URL= https://github.com/liblouis/liblouis/archive/refs/tags/v$(COMPONENT_VERSION).tar.gz
28 COMPONENT_PROJECT_URL = https://liblouis.io/
29 COMPONENT_CLASSIFICATION = System/Libraries
30 COMPONENT_FMRI = library/liblouis
31 COMPONENT_LICENSE = LGPLv3,GPLv3
32 COMPONENT_LICENSE_FILE = liblouis.license
34 include $(WS_MAKE_RULES)/common.mk
36 PATH= $(PATH.gnu)
38 COMPONENT_BUILD_ARGS=
40 COMPONENT_PREP_ACTION= ( cd $(@D) && autoreconf -f -i )
42 # Missing files in build dir for configure without this.
43 COMPONENT_PRE_CONFIGURE_ACTION += ( $(CLONEY) $(SOURCE_DIR) $(@D) );
44 COMPONENT_POST_INSTALL_ACTION += ( $(RM) $(PROTOUSRSHAREDIR)/info/dir );
46 CONFIGURE_SCRIPT= $(@D)/configure
48 CONFIGURE_OPTIONS += --enable-shared
49 CONFIGURE_OPTIONS += --disable-static
50 CONFIGURE_OPTIONS += --enable-ucs4
52 # While the main library is built with configure, the python module is
53 # built & installed with separate invocations of setup.py
54 PYTHON_ENV += CC="$(CC)"
55 PYTHON_ENV += CFLAGS="$(CFLAGS)"
56 PYTHON_ENV += PYTHONPATH='$(@D)/python'
58 COMPONENT_POST_BUILD_ACTION += ( \
59 cd $(@D)/python ; \
60 $(ENV) $(COMPONENT_BUILD_ENV) $(PYTHON_ENV) \
61 LD_LIBRARY_PATH_$(BITS)=$(@D)/liblouis/.libs/ \
62 $(PYTHON) ./setup.py build );
64 COMPONENT_POST_INSTALL_ACTION += ( \
65 cd $(@D)/python ; \
66 $(ENV) $(COMPONENT_INSTALL_ENV) $(PYTHON_ENV) \
67 LD_LIBRARY_PATH_$(BITS)=$(PROTO_DIR)$(USRLIB.$(BITS)) \
68 $(PYTHON) ./setup.py install --root $(PROTO_DIR) \
69 --install-lib $(PYTHON_LIB) );
71 # additional transforms for brltty
72 COMPONENT_TEST_TRANSFORMS += \
73 '-e "/^==*$$/p" ' \
74 '-e "/expected/p" '
76 # Manually added build dependencies
77 PYTHON_REQUIRED_PACKAGES += runtime/python
79 # Auto-generated dependencies
80 REQUIRED_PACKAGES += SUNWcs
81 REQUIRED_PACKAGES += library/libyaml
82 REQUIRED_PACKAGES += runtime/perl
83 REQUIRED_PACKAGES += system/library