Makefile revision 5198
200N/A#
200N/A# CDDL HEADER START
200N/A#
200N/A# The contents of this file are subject to the terms of the
200N/A# Common Development and Distribution License (the "License").
200N/A# You may not use this file except in compliance with the License.
200N/A#
200N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
200N/A# or http://www.opensolaris.org/os/licensing.
200N/A# See the License for the specific language governing permissions
200N/A# and limitations under the License.
200N/A#
200N/A# When distributing Covered Code, include this CDDL HEADER in each
200N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
200N/A# If applicable, add the following below this CDDL HEADER, with the
200N/A# fields enclosed by brackets "[]" replaced with your own identifying
200N/A# information: Portions Copyright [yyyy] [name of copyright owner]
200N/A#
200N/A# CDDL HEADER END
200N/A#
200N/A
200N/A#
5452N/A# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
200N/A#
5852N/A
5852N/Ainclude ../../make-rules/shared-macros.mk
200N/A
200N/ACOMPONENT_NAME= ncurses
5776N/ACOMPONENT_VERSION= 5.7
206N/ACOMPONENT_PROJECT_URL= http://www.gnu.org/software/ncurses/
200N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
6680N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
618N/ACOMPONENT_ARCHIVE_HASH= \
844N/A sha256:0a9bdea5c7de8ded5c9327ed642915f2cc380753f12d4ad120ef7da3ea3498f4
6680N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/pub/gnu/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
903N/ACOMPONENT_BUGDB= library/ncurses
1258N/A
200N/ATPNO= 5931
6680N/A
200N/Ainclude $(WS_MAKE_RULES)/prep.mk
5776N/Ainclude $(WS_MAKE_RULES)/configure.mk
5769N/Ainclude $(WS_MAKE_RULES)/ips.mk
5852N/A
200N/A# Needed to make "gmake test" work.
5776N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
200N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
5852N/A
206N/ACONFIGURE_PREFIX = /usr/gnu
7292N/A
206N/A# Needed to correctly build that 64-bit library.
5852N/ALDFLAGS += $(CC_BITS)
206N/A
200N/ACONFIGURE_OPTIONS += --with-shared
206N/ACONFIGURE_OPTIONS += --with-normal
5852N/ACONFIGURE_OPTIONS += --enable-rpath
1625N/ACONFIGURE_OPTIONS += --enable-widec
5852N/ACONFIGURE_OPTIONS += --includedir=$(USRINCDIR)/ncurses
206N/ACONFIGURE_OPTIONS += --with-default-terminfo-dir=$(GNUSHARE)/terminfo
206N/A
5852N/A# Needed to pass -m32 or -m64 to the C/C++ compiler and linker.
5852N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
5852N/ACONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
5852N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
5852N/A
5852N/A# XXX: Ugly hack copied directly from the desktop SUNWncurses.spec file:
5852N/A# The sun-color terminfo included in ncurses does not work;
4203N/A# copying the one shipped with Sun's curses fixes it:
4203N/ACOMPONENT_POST_INSTALL_ACTION += \
4203N/A $(CP) /usr/share/lib/terminfo/s/sun-color \
3865N/A $(PROTO_DIR)$(GNUSHARE)/terminfo/s/
3865N/A
3865N/A# There is no master test file because tests are interactive and not
3865N/A# tied to the build.
5852N/ACOMPONENT_TEST_DIR = $(BUILD_DIR)/$(MACH$(BITS))/test
5852N/ACOMPONENT_TEST_TARGETS =
5852N/A
3865N/AASLR_MODE = $(ASLR_ENABLE)
3865N/A
3865N/A$(SKIP_TEST_AT_TOP_LEVEL)
7292N/A
7292N/A# common targets
3865N/Aconfigure: $(CONFIGURE_32_and_64)
5852N/A
5852N/Abuild: $(BUILD_32_and_64)
5852N/A
5852N/Ainstall: $(INSTALL_32_and_64)
5852N/A
5852N/Atest: $(TEST_32_and_64)
5852N/A
5852N/Asystem-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
5852N/A
5852N/A
5852N/AREQUIRED_PACKAGES += shell/bash
5852N/AREQUIRED_PACKAGES += system/library
3865N/A