Makefile revision 3661
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov#
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# CDDL HEADER START
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov#
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# The contents of this file are subject to the terms of the
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# Common Development and Distribution License (the "License").
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# You may not use this file except in compliance with the License.
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov#
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# or http://www.opensolaris.org/os/licensing.
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# See the License for the specific language governing permissions
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# and limitations under the License.
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov#
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# When distributing Covered Code, include this CDDL HEADER in each
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# If applicable, add the following below this CDDL HEADER, with the
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# fields enclosed by brackets "[]" replaced with your own identifying
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# information: Portions Copyright [yyyy] [name of copyright owner]
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov#
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# CDDL HEADER END
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov#
6398f22526303343193a18e514602f1af6fb29cbNikolai Kondrashov
6398f22526303343193a18e514602f1af6fb29cbNikolai Kondrashov#
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov#
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashovinclude ../../make-rules/shared-macros.mk
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai KondrashovCOMPONENT_NAME= ncurses
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai KondrashovCOMPONENT_VERSION= 5.7
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai KondrashovCOMPONENT_PROJECT_URL= http://www.gnu.org/software/ncurses/
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai KondrashovCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai KondrashovCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai KondrashovCOMPONENT_ARCHIVE_HASH= \
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov sha256:0a9bdea5c7de8ded5c9327ed642915f2cc380753f12d4ad120ef7da3ea3498f4
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai KondrashovCOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/pub/gnu/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai KondrashovCOMPONENT_BUGDB= library/ncurses
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai KondrashovTPNO= 5931
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashovinclude ../../make-rules/prep.mk
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashovinclude ../../make-rules/configure.mk
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashovinclude ../../make-rules/ips.mk
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# Needed to make "gmake test" work.
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai KondrashovCOMPONENT_PRE_CONFIGURE_ACTION = \
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov ($(CLONEY) $(SOURCE_DIR) $(@D))
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai KondrashovCONFIGURE_PREFIX = /usr/gnu
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# Needed to correctly build that 64-bit library.
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai KondrashovLDFLAGS += $(CC_BITS)
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai KondrashovCONFIGURE_OPTIONS += --with-shared
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai KondrashovCONFIGURE_OPTIONS += --with-normal
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai KondrashovCONFIGURE_OPTIONS += --enable-rpath
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai KondrashovCONFIGURE_OPTIONS += --enable-widec
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai KondrashovCONFIGURE_OPTIONS += --includedir=$(USRINCDIR)/ncurses
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# Needed to pass -m32 or -m64 to the C/C++ compiler and linker.
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai KondrashovCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai KondrashovCONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai KondrashovCONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# XXX: Ugly hack copied directly from the desktop SUNWncurses.spec file:
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# The sun-color terminfo included in ncurses does not work;
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# copying the one shipped with Sun's curses fixes it:
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai KondrashovCOMPONENT_POST_INSTALL_ACTION += \
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov $(CP) /usr/share/lib/terminfo/s/sun-color \
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov $(PROTO_DIR)$(GNULIB)/terminfo/s/
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov# common targets
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashovbuild: $(BUILD_32_and_64)
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashovinstall: $(INSTALL_32_and_64)
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashovtest: $(BUILD_32_and_64)
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov (cd $(BUILD_DIR)/$(MACH32)/test; $(GMAKE))
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov (cd $(BUILD_DIR)/$(MACH64)/test; $(GMAKE))
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai KondrashovBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashovinclude ../../make-rules/depend.mk
3ce85a5f5264e7118beb6524e120fd8b53a13da4Nikolai Kondrashov