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