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