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