vim: update to 9.1.0984
[oi-userland.git] / components / library / brltty / Makefile
blob915a6d14c2e61951e407ec60a0d01549bebd5acf
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 2017 Gary Mills
14 # Copyright 2016 Alexander Pyhalov
15 # Copyright 2021 Andreas Wacknitz
16 # Copyright 2022-2023 Niklas Poslovski
19 include ../../../make-rules/shared-macros.mk
21 COMPONENT_NAME= brltty
22 COMPONENT_VERSION= 6.6
23 COMPONENT_SUMMARY= Braille support
24 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
25 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
26 COMPONENT_ARCHIVE_HASH= sha256:ab11cfc5fbd7ef0ec876ffea7e131e424b2fd004b6158064e1a2e46412825529
27 COMPONENT_PROJECT_URL= https://brltty.app/
28 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/archive/$(COMPONENT_ARCHIVE)
29 COMPONENT_FMRI= library/accessibility/brltty
30 COMPONENT_CLASSIFICATION=Applications/Universal Access
31 COMPONENT_LICENSE= GPLv2,LGPLv2.1
33 TEST_TARGET= $(NO_TESTS)
34 include $(WS_MAKE_RULES)/common.mk
36 PATH= $(PATH.gnu)
38 # Missing files on install without this
39 COMPONENT_PRE_CONFIGURE_ACTION= ($(CLONEY) $(SOURCE_DIR) $(@D)) ;
41 # Needed because we patch configure.ac
42 COMPONENT_PRE_CONFIGURE_ACTION += (cd $(@D) ; ./autogen) ;
44 CC += $(CC_BITS)
45 CFLAGS += $(CC_PIC)
46 CFLAGS += -I/usr/include/pcre -I/usr/include/liblouis -I/usr/include/ncurses
47 CPPFLAGS += -D_SYS_UCONTEXT_H # Workaround Bug Id 15558893
49 # Disable python bindings for now.
50 CONFIGURE_ENV += PYTHON="$(PYTHON)"
51 PKG_MACROS += PYVER="$(PYTHON_VERSION)"
53 CONFIGURE_OPTIONS += --disable-python-bindings
54 CONFIGURE_OPTIONS += --disable-java-bindings
55 CONFIGURE_OPTIONS += --disable-lisp-bindings
56 CONFIGURE_OPTIONS += --disable-ocaml-bindings
57 CONFIGURE_OPTIONS += --disable-tcl-bindings
58 CONFIGURE_OPTIONS += --disable-speech-support
59 CONFIGURE_OPTIONS += --disable-stripping
60 CONFIGURE_OPTIONS += --disable-lua-bindings
61 CONFIGURE_OPTIONS += --disable-polkit # requires SO_PEERCRED support
62 CONFIGURE_OPTIONS += --without-midi-package
63 CONFIGURE_OPTIONS += --without-writable-directory
64 CONFIGURE_OPTIONS += --with-gui-toolkit=Xaw
65 CONFIGURE_OPTIONS += --with-curses=ncurses
66 CONFIGURE_OPTIONS += --localstatedir=$(VARDIR)
67 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
69 CONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)"
70 CONFIGURE_ENV += PYTHON="$(PYTHON)"
71 CONFIGURE_ENV += CYTHON="$(CYTHON)"
72 CONFIGURE_ENV += ac_cv_path_MSGFMT="/usr/gnu/bin/msgfmt"
74 # Needed by call to setup.py for python module in build phase
75 # (copied from make-rules/setup.py.mk)
76 PYTHON_ENV += CC="$(CC)"
77 PYTHON_ENV += CFLAGS="$(CFLAGS)"
78 PYTHON_ENV += LDFLAGS="$(LDFLAGS) -m64"
79 PYTHON_ENV += LDSHARED="$(CC) -shared -m64"
80 COMPONENT_BUILD_ENV += $(PYTHON_ENV)
81 COMPONENT_INSTALL_ENV += $(PYTHON_ENV)
82 COMPONENT_TEST_ENV += $(PYTHON_ENV)
84 # brltty's Makefile doesn't let us pass --install-lib to setup.py so we
85 # fake it with a symlink in the proto area
86 #COMPONENT_POST_INSTALL_ACTION += \
87 # $(MKDIR) $(PROTO_DIR)$(PYTHON_DIR) && \
88 # $(RM) $(PROTO_DIR)$(PYTHON_LIB) && \
89 # $(SYMLINK) site-packages $(PROTO_DIR)$(PYTHON_LIB)
91 COMPONENT_INSTALL_ARGS += INSTALL_ROOT=$(PROTO_DIR)
93 # Build dependencies
94 REQUIRED_PACKAGES += system/header/header-ugen
96 # Auto-generated dependencies
97 REQUIRED_PACKAGES += SUNWcs
98 REQUIRED_PACKAGES += gnome/accessibility/at-spi2-core
99 REQUIRED_PACKAGES += library/expat
100 REQUIRED_PACKAGES += library/icu
101 REQUIRED_PACKAGES += library/liblouis
102 REQUIRED_PACKAGES += library/ncurses
103 REQUIRED_PACKAGES += library/pcre2
104 REQUIRED_PACKAGES += shell/bash
105 REQUIRED_PACKAGES += shell/ksh93
106 REQUIRED_PACKAGES += system/library
107 REQUIRED_PACKAGES += system/library/libdbus
108 REQUIRED_PACKAGES += x11/library/libx11
109 REQUIRED_PACKAGES += x11/library/libxfixes
110 REQUIRED_PACKAGES += x11/library/libxtst
111 REQUIRED_PACKAGES += x11/library/toolkit/libxaw7
112 REQUIRED_PACKAGES += x11/library/toolkit/libxt