4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
23 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
24 # Copyright (c) 2013 Erol Zavidic. All rights reserverd.
25 # Copyright (c) 2016 Adam Stevko. All rights reserverd.
26 # Copyright (c) 2020 Michal Nowak
30 include ..
/..
/..
/make-rules
/shared-macros.mk
32 COMPONENT_NAME
= ncurses
33 COMPONENT_VERSION
= 6.5
34 COMPONENT_SUMMARY
= A CRT screen handling and optimization package.
35 COMPONENT_PROJECT_URL
= https
://www.gnu.org
/software
/ncurses
/
36 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
37 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
38 COMPONENT_ARCHIVE_HASH
= sha256
:136d91bc269a9a5785e5f9e980bc76ab57428f604ce3e5a5a90cebc767971cc6
39 COMPONENT_ARCHIVE_URL
= https
://invisible-mirror.net
/archives
/$(COMPONENT_NAME
)/$(COMPONENT_ARCHIVE
)
40 COMPONENT_CLASSIFICATION
= System
/Libraries
41 COMPONENT_FMRI
= library
/ncurses
42 COMPONENT_LICENSE
= MIT
43 COMPONENT_LICENSE_FILE
= COPYING
45 #TEST_TARGET= $(NO_TESTS)
46 include $(WS_MAKE_RULES
)/common.mk
48 # Needed for the 'test' target to work
49 COMPONENT_PRE_CONFIGURE_ACTION
= \
50 ($(CLONEY
) $(SOURCE_DIR
) $(@D
))
52 CONFIGURE_PREFIX
= /usr
/gnu
58 CFLAGS
+= -std
=c99
-D_POSIX_C_SOURCE
=200112L
60 CONFIGURE_OPTIONS
+= --enable-rpath
62 # NOTE: applications compiled with this configuration are not compatible
63 # with those built for 8-bit characters. You cannot simply make a
64 # symbolic link to equate libncurses.so with libncursesw.so.
65 CONFIGURE_OPTIONS
+= --enable-widec
66 CONFIGURE_OPTIONS
+= --enable-symlinks
67 CONFIGURE_OPTIONS
+= --enable-pc-files
68 CONFIGURE_OPTIONS
+= --disable-lib-suffixes
69 CONFIGURE_OPTIONS
+= --with-pkg-config-libdir
=$(PKG_CONFIG_PATH.
$(BITS
))
70 CONFIGURE_OPTIONS
+= --with-pcre2
71 CONFIGURE_OPTIONS
+= --with-shared
72 # Compatibility with older programs
73 CONFIGURE_OPTIONS
+= --with-abi-version
=5
74 # Disable static libraries
75 CONFIGURE_OPTIONS
+= --without-normal
76 CONFIGURE_OPTIONS
+= --without-debug
77 CONFIGURE_OPTIONS
+= --includedir=$(USRINCDIR
)/ncurses
79 CONFIGURE_ENV
+= CPPFLAGS
="$(CPPFLAGS)"
81 # We need ncurses.so in /usr/lib
82 COMPONENT_POST_INSTALL_ACTION
+= \
83 $(MV
) $(PROTO_DIR
)$(CONFIGURE_PREFIX
)/lib
/libncurses.so
* $(PROTO_DIR
)/usr
/lib
/ || \
84 $(MV
) $(PROTO_DIR
)$(CONFIGURE_PREFIX
)/lib
/$(MACH64
)/libncurses.so
* $(PROTO_DIR
)/usr
/lib
/$(MACH64
)/ ;
86 # The provided test programs are interactive, so they won't be usable for our machinery.
87 COMPONENT_TEST_DIR
= $(BUILD_DIR
)/$(MACH
$(BITS
))/test
88 COMPONENT_TEST_TARGETS
= check
89 COMPONENT_PRE_TEST_ACTION
= ( cd
$(COMPONENT_TEST_DIR
) && PATH
="$(PATH)" .
/configure
)
91 # Auto-generated dependencies
92 REQUIRED_PACKAGES
+= library
/pcre2
93 REQUIRED_PACKAGES
+= shell/bash
94 REQUIRED_PACKAGES
+= system
/library