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