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