|
1 # |
|
2 # CDDL HEADER START |
|
3 # |
|
4 # The contents of this file are subject to the terms of the |
|
5 # Common Development and Distribution License (the "License"). |
|
6 # You may not use this file except in compliance with the License. |
|
7 # |
|
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
9 # or http://www.opensolaris.org/os/licensing. |
|
10 # See the License for the specific language governing permissions |
|
11 # and limitations under the License. |
|
12 # |
|
13 # When distributing Covered Code, include this CDDL HEADER in each |
|
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
15 # If applicable, add the following below this CDDL HEADER, with the |
|
16 # fields enclosed by brackets "[]" replaced with your own identifying |
|
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
|
18 # |
|
19 # CDDL HEADER END |
|
20 # |
|
21 |
|
22 # |
|
23 # Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. |
|
24 # |
|
25 |
|
26 include ../../make-rules/shared-macros.mk |
|
27 |
|
28 COMPONENT_NAME= ncurses |
|
29 COMPONENT_VERSION= 5.7 |
|
30 COMPONENT_PROJECT_URL= http://www.gnu.org/software/ncurses/ |
|
31 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
32 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
33 COMPONENT_ARCHIVE_HASH= \ |
|
34 sha256:0a9bdea5c7de8ded5c9327ed642915f2cc380753f12d4ad120ef7da3ea3498f4 |
|
35 COMPONENT_ARCHIVE_URL= http://ftp.gnu.org/pub/gnu/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE) |
|
36 COMPONENT_BUGDB= library/libxml |
|
37 |
|
38 include ../../make-rules/prep.mk |
|
39 include ../../make-rules/configure.mk |
|
40 include ../../make-rules/ips.mk |
|
41 |
|
42 # Needed to make "gmake test" work. |
|
43 COMPONENT_PRE_CONFIGURE_ACTION = \ |
|
44 ($(CLONEY) $(SOURCE_DIR) $(@D)) |
|
45 |
|
46 CONFIGURE_PREFIX = /usr/gnu |
|
47 |
|
48 # Needed to correctly build that 64-bit library. |
|
49 LDFLAGS += $(CC_BITS) |
|
50 |
|
51 CONFIGURE_OPTIONS += --with-shared |
|
52 CONFIGURE_OPTIONS += --with-normal |
|
53 CONFIGURE_OPTIONS += --enable-rpath |
|
54 CONFIGURE_OPTIONS += --enable-widec |
|
55 CONFIGURE_OPTIONS += --includedir=$(USRINCDIR)/ncurses |
|
56 |
|
57 # Needed to pass -m32 or -m64 to the C/C++ compiler and linker. |
|
58 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
|
59 CONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)" |
|
60 CONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)" |
|
61 |
|
62 # XXX: Ugly hack copied directly from the desktop SUNWncurses.spec file: |
|
63 # The sun-color terminfo included in ncurses does not work; |
|
64 # copying the one shipped with Sun's curses fixes it: |
|
65 COMPONENT_POST_INSTALL_ACTION += \ |
|
66 $(CP) /usr/share/lib/terminfo/s/sun-color \ |
|
67 $(PROTO_DIR)$(GNULIB)/terminfo/s/ |
|
68 |
|
69 # common targets |
|
70 build: $(BUILD_32_and_64) |
|
71 |
|
72 install: $(INSTALL_32_and_64) |
|
73 |
|
74 test: $(BUILD_32_and_64) |
|
75 (cd $(BUILD_DIR)/$(MACH32)/test; $(GMAKE)) |
|
76 (cd $(BUILD_DIR)/$(MACH64)/test; $(GMAKE)) |
|
77 |
|
78 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
|
79 |
|
80 include ../../make-rules/depend.mk |