components/ncurses/Makefile
author James Chang <james.c.chang@Oracle.COM>
Tue, 03 Mar 2015 12:59:51 -0800
changeset 3899 aa25d29e7836
parent 3817 30b42c38bbc4
child 4339 6501cf9c29f9
permissions -rw-r--r--
20460852 NCURSES doesn't need master test results to compare against 20460346 LIBGDBM doesn't need master test results to compare against
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1089
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
#
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
#
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
#
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
#
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    18
#
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    20
#
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    21
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    22
#
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    23
# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
1089
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    24
#
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    25
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		ncurses
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    29
COMPONENT_VERSION=	5.7
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    30
COMPONENT_PROJECT_URL=	http://www.gnu.org/software/ncurses/
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    31
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    33
COMPONENT_ARCHIVE_HASH= \
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    34
    sha256:0a9bdea5c7de8ded5c9327ed642915f2cc380753f12d4ad120ef7da3ea3498f4
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    35
COMPONENT_ARCHIVE_URL=	http://ftp.gnu.org/pub/gnu/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
1114
5398cc32c3a8 16098241 TPNO adjustments for libtool and links for Solaris 12
Rich Burridge <rich.burridge@oracle.com>
parents: 1089
diff changeset
    36
COMPONENT_BUGDB=	library/ncurses
1089
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    37
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1575
diff changeset
    38
TPNO=			5931
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1575
diff changeset
    39
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    40
include $(WS_MAKE_RULES)/prep.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    41
include $(WS_MAKE_RULES)/configure.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    42
include $(WS_MAKE_RULES)/ips.mk
1089
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    43
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    44
# Needed to make "gmake test" work.
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    45
COMPONENT_PRE_CONFIGURE_ACTION = \
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    46
	($(CLONEY) $(SOURCE_DIR) $(@D))
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    47
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    48
CONFIGURE_PREFIX =	/usr/gnu
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    49
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    50
# Needed to correctly build that 64-bit library.
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    51
LDFLAGS += $(CC_BITS)
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    52
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    53
CONFIGURE_OPTIONS +=	--with-shared
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    54
CONFIGURE_OPTIONS +=	--with-normal
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    55
CONFIGURE_OPTIONS +=	--enable-rpath
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    56
CONFIGURE_OPTIONS +=	--enable-widec
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    57
CONFIGURE_OPTIONS +=	--includedir=$(USRINCDIR)/ncurses
1575
4e52e4728eda 17849875 Compilation fails when user has TERMINFO environment variable set
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 1223
diff changeset
    58
CONFIGURE_OPTIONS +=	--with-default-terminfo-dir=$(GNUSHARE)/terminfo
1089
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    59
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    60
# Needed to pass -m32 or -m64 to the C/C++ compiler and linker.
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    61
CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS)"
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    62
CONFIGURE_OPTIONS +=	CXXFLAGS="$(CXXFLAGS)"
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    63
CONFIGURE_OPTIONS +=	LDFLAGS="$(LDFLAGS)"
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    64
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    65
# XXX: Ugly hack copied directly from the desktop SUNWncurses.spec file:
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    66
# The sun-color terminfo included in ncurses does not work;
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    67
# copying the one shipped with Sun's curses fixes it:
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    68
COMPONENT_POST_INSTALL_ACTION += \
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    69
	$(CP) /usr/share/lib/terminfo/s/sun-color \
1575
4e52e4728eda 17849875 Compilation fails when user has TERMINFO environment variable set
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 1223
diff changeset
    70
	$(PROTO_DIR)$(GNUSHARE)/terminfo/s/
1089
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    71
3899
aa25d29e7836 20460852 NCURSES doesn't need master test results to compare against
James Chang <james.c.chang@Oracle.COM>
parents: 3817
diff changeset
    72
# There is no master test file because tests are interactive and not
aa25d29e7836 20460852 NCURSES doesn't need master test results to compare against
James Chang <james.c.chang@Oracle.COM>
parents: 3817
diff changeset
    73
# tied to the build.
2164
b580bc10e31a 19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    74
COMPONENT_TEST_DIR =		$(BUILD_DIR)/$(MACH$(BITS))/test
b580bc10e31a 19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    75
COMPONENT_TEST_TARGETS =
b580bc10e31a 19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    76
1223
28d011526d15 16419497 ASLR should be enabled for lftp, m4, ncurses, stunnel, tcpdump, and top
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1114
diff changeset
    77
ASLR_MODE = $(ASLR_ENABLE)
28d011526d15 16419497 ASLR should be enabled for lftp, m4, ncurses, stunnel, tcpdump, and top
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1114
diff changeset
    78
3899
aa25d29e7836 20460852 NCURSES doesn't need master test results to compare against
James Chang <james.c.chang@Oracle.COM>
parents: 3817
diff changeset
    79
$(SKIP_TEST_AT_TOP_LEVEL)
aa25d29e7836 20460852 NCURSES doesn't need master test results to compare against
James Chang <james.c.chang@Oracle.COM>
parents: 3817
diff changeset
    80
1089
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    81
# common targets
2225
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 2164
diff changeset
    82
configure:	$(CONFIGURE_32_and_64)
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 2164
diff changeset
    83
1089
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    84
build:          $(BUILD_32_and_64)
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    85
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    86
install:        $(INSTALL_32_and_64)
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    87
2164
b580bc10e31a 19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    88
test:           $(TEST_32_and_64)
1089
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    89
2a15dc132359 15820213 SUNBT7202653 Move ncurses from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    90
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    91
REQUIRED_PACKAGES += shell/bash
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    92
REQUIRED_PACKAGES += system/library