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