components/aspell/Makefile
author Darren J Moffat <Darren.Moffat@Oracle.COM>
Tue, 23 Feb 2016 16:05:11 +0000
changeset 5488 b5f105d9ae8b
parent 5343 48c162cab8f5
child 5638 b88b6c00208e
permissions -rw-r--r--
PSARC/2015/354 libmcrypt EOF & Removal 20593571 EOF libmcrypt
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
#
5343
48c162cab8f5 22541052 aspell, cppunit, openusb, and re2c shouldn't override gcc version
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 5066
diff changeset
    21
# 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
    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
COMPILER =		gcc
48c162cab8f5 22541052 aspell, cppunit, openusb, and re2c shouldn't override gcc version
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 5066
diff changeset
    24
4919
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    25
include ../../make-rules/shared-macros.mk
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    26
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
COMPONENT_NAME=		aspell
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    28
COMPONENT_VERSION=	0.60.6.1
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    29
COMPONENT_PROJECT_URL=	http://aspell.net/
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    30
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    31
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
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
COMPONENT_ARCHIVE_URL=	ftp://ftp.gnu.org/gnu/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    35
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    36
COMPONENT_NAME_1=	aspell6-en
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    37
COMPONENT_VERSION_1=	7.1-0
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    38
COMPONENT_SRC_1=	$(COMPONENT_NAME_1)-$(COMPONENT_VERSION_1)
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    39
COMPONENT_ARCHIVE_1=	$(COMPONENT_SRC_1).tar.bz2
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    40
COMPONENT_ARCHIVE_HASH_1= \
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    41
    sha256:ff9df3c2e8c5bb19c6a66078b36a0ef4c4dfb0fcb969e29f7b5345e26d748d0a
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    42
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
    43
SOURCE_DIR_1=		$(COMPONENT_DIR)/$(COMPONENT_SRC_1)
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    44
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    45
COMPONENT_BUGDB=	utility/aspell
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    46
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    47
TPNO=			23575
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    48
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    49
include $(WS_MAKE_RULES)/prep.mk
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    50
include $(WS_MAKE_RULES)/configure.mk
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    51
include $(WS_MAKE_RULES)/ips.mk
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_BIN_DIR.32 =	$(PROTOUSRBINDIR)
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    54
ASPELL_BIN_DIR.64 =	$(PROTOUSRBINDIR64)
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    55
ASPELL_BIN_DIR =	$(ASPELL_BIN_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
ASPELL_LIB_DIR.32 =	$(PROTOUSRLIBDIR)
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    58
ASPELL_LIB_DIR.64 =	$(PROTOUSRLIBDIR64)
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    59
ASPELL_LIB_DIR =	$(ASPELL_LIB_DIR.$(BITS))
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    60
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    61
# Needed to successfully find .../gen/mk-dirs_h.pl
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    62
COMPONENT_PRE_CONFIGURE_ACTION += ($(CLONEY) $(SOURCE_DIR) $(@D));
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    63
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    64
# 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
    65
COMPONENT_POST_INSTALL_ACTION += \
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    66
	(cd $(SOURCE_DIR_1) ; \
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    67
		PATH="$(ASPELL_BIN_DIR):$(PATH)" \
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    68
		./configure --vars \
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    69
		    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
    70
		    DESTDIR=$(PROTO_DIR));
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    71
COMPONENT_POST_INSTALL_ACTION += \
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    72
	(cd $(SOURCE_DIR_1) ; \
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    73
		export LD_LIBRARY_PATH=$(ASPELL_LIB_DIR); \
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    74
		PATH="$(ASPELL_BIN_DIR):$(PATH)" \
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    75
		$(GMAKE) install);
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    76
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    77
CXX +=			$(CC_BITS)
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    78
CC +=			$(CC_BITS)
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    79
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    80
CONFIGURE_ENV +=	LD_OPTIONS="$(LD_OPTIONS)"
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    81
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    82
CLEAN_PATHS +=		$(SOURCE_DIR_1)
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    83
PKG_PROTO_DIRS +=	$(SOURCE_DIR_1)
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    84
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    85
ASLR_MODE = $(ASLR_ENABLE)
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    86
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    87
configure:	$(CONFIGURE_32_and_64)
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    88
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    89
build:		$(BUILD_32_and_64)
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    90
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    91
install:	$(INSTALL_32_and_64)
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    92
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    93
test:		$(NO_TESTS)
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    94
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    95
REQUIRED_PACKAGES += library/ncurses
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    96
REQUIRED_PACKAGES += runtime/perl-512
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    97
REQUIRED_PACKAGES += shell/ksh93
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    98
REQUIRED_PACKAGES += system/library
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    99
REQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   100
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
d8b2584438d0 PSARC 2015/228 GNU aspell
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   101
REQUIRED_PACKAGES += system/library/math