components/aspell/Makefile
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Mon, 07 Nov 2016 16:32:57 -0800
changeset 7257 779372532897
parent 5682 94c0ca64c022
child 7687 1093e2a9adbd
permissions -rw-r--r--
Close of build 112.1.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4919
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
#
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
#
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
#
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
#
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    18
#
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    20
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5638
diff changeset
    21
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5638
diff changeset
    22
#
5343
48c162cab8f5 22541052 aspell, cppunit, openusb, and re2c shouldn't override gcc version
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 5066
diff changeset
    23
# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
4919
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    24
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5638
diff changeset
    25
BUILD_BITS= 64_and_32
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5638
diff changeset
    26
COMPILER= gcc
4919
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
include ../../make-rules/shared-macros.mk
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    28
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    29
COMPONENT_NAME=		aspell
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    30
COMPONENT_VERSION=	0.60.6.1
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    31
COMPONENT_PROJECT_URL=	http://aspell.net/
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE_HASH=	\
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    33
    sha256:f52583a83a63633701c5f71db3dc40aab87b7f76b29723aeb27941eff42df6e1
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    34
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    35
COMPONENT_NAME_1=	aspell6-en
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    36
COMPONENT_VERSION_1=	7.1-0
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    37
COMPONENT_SRC_1=	$(COMPONENT_NAME_1)-$(COMPONENT_VERSION_1)
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    38
COMPONENT_ARCHIVE_1=	$(COMPONENT_SRC_1).tar.bz2
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    39
COMPONENT_ARCHIVE_HASH_1= \
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    40
    sha256:ff9df3c2e8c5bb19c6a66078b36a0ef4c4dfb0fcb969e29f7b5345e26d748d0a
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    41
COMPONENT_ARCHIVE_URL_1= ftp://ftp.gnu.org/gnu/$(COMPONENT_NAME)/dict/en/$(COMPONENT_ARCHIVE_1)
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    42
SOURCE_DIR_1=		$(COMPONENT_DIR)/$(COMPONENT_SRC_1)
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    43
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    44
TPNO=			23575
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    45
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5638
diff changeset
    46
TEST_TARGET= $(NO_TESTS)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5638
diff changeset
    47
include $(WS_MAKE_RULES)/gnu-component.mk
4919
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    48
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5638
diff changeset
    49
ASPELL_BIN_DIR.32 =	$(PROTOUSRBINDIR)/$(MACH32)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5638
diff changeset
    50
ASPELL_BIN_DIR.64 =	$(PROTOUSRBINDIR)
4919
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    51
ASPELL_BIN_DIR =	$(ASPELL_BIN_DIR.$(BITS))
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    52
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    53
ASPELL_LIB_DIR.32 =	$(PROTOUSRLIBDIR)
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    54
ASPELL_LIB_DIR.64 =	$(PROTOUSRLIBDIR64)
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    55
ASPELL_LIB_DIR =	$(ASPELL_LIB_DIR.$(BITS))
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    56
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    57
# Needed to successfully find .../gen/mk-dirs_h.pl
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    58
COMPONENT_PRE_CONFIGURE_ACTION += ($(CLONEY) $(SOURCE_DIR) $(@D));
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    59
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    60
# Needed to configure, build and install the aspell English dictionary.
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    61
COMPONENT_POST_INSTALL_ACTION += \
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    62
	(cd $(SOURCE_DIR_1) ; \
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    63
		PATH="$(ASPELL_BIN_DIR):$(PATH)" \
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    64
		./configure --vars \
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    65
		    ASPELL_FLAGS=--data-dir=$(ASPELL_LIB_DIR)/aspell-0.60 \
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    66
		    DESTDIR=$(PROTO_DIR));
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    67
COMPONENT_POST_INSTALL_ACTION += \
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    68
	(cd $(SOURCE_DIR_1) ; \
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    69
		export LD_LIBRARY_PATH=$(ASPELL_LIB_DIR); \
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    70
		PATH="$(ASPELL_BIN_DIR):$(PATH)" \
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    71
		$(GMAKE) install);
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    72
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    73
CONFIGURE_ENV +=	LD_OPTIONS="$(LD_OPTIONS)"
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    74
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    75
CLEAN_PATHS +=		$(SOURCE_DIR_1)
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    76
PKG_PROTO_DIRS +=	$(SOURCE_DIR_1)
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    77
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    78
REQUIRED_PACKAGES += library/ncurses
5638
b88b6c00208e 22970244 userland should build with perl 5.22 as the default
Craig Mohrman <craig.mohrman@oracle.com>
parents: 5343
diff changeset
    79
REQUIRED_PACKAGES += $(PERL_PKG)
4919
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    80
REQUIRED_PACKAGES += shell/ksh93
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    81
REQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    82
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    83
REQUIRED_PACKAGES += system/library/math