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