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