components/gettext/Makefile
author Norm Jacobs <Norm.Jacobs@Oracle.COM>
Thu, 09 Apr 2015 16:20:21 -0500
changeset 4095 6a425e7ae1fc
parent 3873 03a07a0b1e90
child 4339 6501cf9c29f9
permissions -rw-r--r--
20861235 gettext Makefile missing clisp dependency for test
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
166
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
     1
#
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
     3
#
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
     7
#
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    12
#
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    18
#
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    20
#
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    21
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    22
#
3728
7b7ba595a151 15556327 SUNBT6830494 Update GNU gettext to version 0.19.3
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 2225
diff changeset
    23
# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
166
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    24
#
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    25
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    27
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		gettext
3728
7b7ba595a151 15556327 SUNBT6830494 Update GNU gettext to version 0.19.3
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 2225
diff changeset
    29
COMPONENT_VERSION=	0.19.3
166
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    30
IPS_PKG_NAME=		text/gnu-gettext
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 181
diff changeset
    31
COMPONENT_PROJECT_URL=	http://www.gnu.org/software/gettext/
166
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    32
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
3728
7b7ba595a151 15556327 SUNBT6830494 Update GNU gettext to version 0.19.3
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 2225
diff changeset
    33
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.xz
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 609
diff changeset
    34
COMPONENT_ARCHIVE_HASH=	\
3728
7b7ba595a151 15556327 SUNBT6830494 Update GNU gettext to version 0.19.3
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 2225
diff changeset
    35
    sha256:f6fdb29c9ee8ce85c7e574f60ff64fa91cf0f4f018437dfe800227d15595db46
166
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    36
COMPONENT_ARCHIVE_URL=	http://ftp.gnu.org/pub/gnu/gettext/$(COMPONENT_ARCHIVE)
1058
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 800
diff changeset
    37
COMPONENT_BUGDB=	utility/gnu-gettext
166
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    38
3728
7b7ba595a151 15556327 SUNBT6830494 Update GNU gettext to version 0.19.3
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 2225
diff changeset
    39
TPNO=			20141
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1058
diff changeset
    40
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3730
diff changeset
    41
include $(WS_MAKE_RULES)/prep.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3730
diff changeset
    42
include $(WS_MAKE_RULES)/configure.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3730
diff changeset
    43
include $(WS_MAKE_RULES)/ips.mk
166
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    44
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    45
CONFIGURE_OPTIONS  +=		--disable-java
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    46
CONFIGURE_OPTIONS  +=		--disable-libasprintf
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    47
CONFIGURE_OPTIONS  +=		--without-emacs
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    48
CONFIGURE_OPTIONS  +=		--disable-openmp
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    49
CONFIGURE_OPTIONS  +=		--disable-static
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    50
CONFIGURE_OPTIONS  +=		--disable-shared
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    51
CONFIGURE_OPTIONS  +=		CFLAGS="$(CFLAGS)"
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    52
3728
7b7ba595a151 15556327 SUNBT6830494 Update GNU gettext to version 0.19.3
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 2225
diff changeset
    53
# Fixes coredump in gnulib-test/test-localename test
7b7ba595a151 15556327 SUNBT6830494 Update GNU gettext to version 0.19.3
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 2225
diff changeset
    54
CONFIGURE_OPTIONS  +=		ac_cv_func_newlocale=no
7b7ba595a151 15556327 SUNBT6830494 Update GNU gettext to version 0.19.3
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 2225
diff changeset
    55
3873
03a07a0b1e90 20603649 gettext version 0.19.3 cause usr/src/cmd/gui-install not to compile
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3817
diff changeset
    56
# Commands go under /usr/bin so set bindir correctly.
3728
7b7ba595a151 15556327 SUNBT6830494 Update GNU gettext to version 0.19.3
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 2225
diff changeset
    57
CONFIGURE_BINDIR.64 =	$(CONFIGURE_PREFIX)/bin
7b7ba595a151 15556327 SUNBT6830494 Update GNU gettext to version 0.19.3
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 2225
diff changeset
    58
7b7ba595a151 15556327 SUNBT6830494 Update GNU gettext to version 0.19.3
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 2225
diff changeset
    59
# Tests should run in a clean environment
7b7ba595a151 15556327 SUNBT6830494 Update GNU gettext to version 0.19.3
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 2225
diff changeset
    60
COMPONENT_TEST_ENV =	-i
7b7ba595a151 15556327 SUNBT6830494 Update GNU gettext to version 0.19.3
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 2225
diff changeset
    61
COMPONENT_TEST_ENV +=	PATH=${PATH}:$(SPRO_VROOT)/bin
2225
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 1948
diff changeset
    62
3730
1a0ba9b9e274 20460355 GNU-GETTEXT should have some master test results to compare against (normalize results)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3728
diff changeset
    63
# Strip compilation lines from test output
1a0ba9b9e274 20460355 GNU-GETTEXT should have some master test results to compare against (normalize results)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3728
diff changeset
    64
COMPONENT_TEST_TRANSFORMS += \
1a0ba9b9e274 20460355 GNU-GETTEXT should have some master test results to compare against (normalize results)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3728
diff changeset
    65
    '-e "s|^.*$(CC).*$$|XXX_CC_XXX|g" ' \
1a0ba9b9e274 20460355 GNU-GETTEXT should have some master test results to compare against (normalize results)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3728
diff changeset
    66
    '-e "s|^.*source=.*libtool=no.*$$|XXX_CC_XXX|g" ' \
1a0ba9b9e274 20460355 GNU-GETTEXT should have some master test results to compare against (normalize results)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3728
diff changeset
    67
    '-e "s|^.*DEPDIR=.deps.*$$|XXX_CC_XXX|g" ' \
1a0ba9b9e274 20460355 GNU-GETTEXT should have some master test results to compare against (normalize results)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3728
diff changeset
    68
    '-e "/^XXX_CC_XXX$$/d" '
1a0ba9b9e274 20460355 GNU-GETTEXT should have some master test results to compare against (normalize results)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3728
diff changeset
    69
3728
7b7ba595a151 15556327 SUNBT6830494 Update GNU gettext to version 0.19.3
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 2225
diff changeset
    70
ASLR_MODE = $(ASLR_ENABLE)
7b7ba595a151 15556327 SUNBT6830494 Update GNU gettext to version 0.19.3
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 2225
diff changeset
    71
7b7ba595a151 15556327 SUNBT6830494 Update GNU gettext to version 0.19.3
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 2225
diff changeset
    72
# common targets
7b7ba595a151 15556327 SUNBT6830494 Update GNU gettext to version 0.19.3
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 2225
diff changeset
    73
configure:	$(CONFIGURE_64)
166
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    74
3728
7b7ba595a151 15556327 SUNBT6830494 Update GNU gettext to version 0.19.3
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 2225
diff changeset
    75
build:		$(BUILD_64)
166
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    76
3728
7b7ba595a151 15556327 SUNBT6830494 Update GNU gettext to version 0.19.3
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 2225
diff changeset
    77
install:	$(INSTALL_64)
7b7ba595a151 15556327 SUNBT6830494 Update GNU gettext to version 0.19.3
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 2225
diff changeset
    78
7b7ba595a151 15556327 SUNBT6830494 Update GNU gettext to version 0.19.3
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 2225
diff changeset
    79
test:		$(TEST_64)
166
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    80
db8a55996482 6979538 /usr/share/gettext/po/Rules-quot contains garbage
Marcel Telka <marcel.telka@oracle.com>
parents:
diff changeset
    81
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3730
diff changeset
    82
REQUIRED_PACKAGES += developer/icu
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3730
diff changeset
    83
REQUIRED_PACKAGES += developer/vala
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3730
diff changeset
    84
REQUIRED_PACKAGES += library/expat
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3730
diff changeset
    85
REQUIRED_PACKAGES += library/icu
3873
03a07a0b1e90 20603649 gettext version 0.19.3 cause usr/src/cmd/gui-install not to compile
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3817
diff changeset
    86
REQUIRED_PACKAGES += library/libcroco
03a07a0b1e90 20603649 gettext version 0.19.3 cause usr/src/cmd/gui-install not to compile
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3817
diff changeset
    87
REQUIRED_PACKAGES += library/libxml2
03a07a0b1e90 20603649 gettext version 0.19.3 cause usr/src/cmd/gui-install not to compile
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3817
diff changeset
    88
REQUIRED_PACKAGES += library/ncurses
4095
6a425e7ae1fc 20861235 gettext Makefile missing clisp dependency for test
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3873
diff changeset
    89
REQUIRED_PACKAGES += runtime/clisp
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3730
diff changeset
    90
REQUIRED_PACKAGES += shell/ksh93
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3730
diff changeset
    91
REQUIRED_PACKAGES += source/locale/localedef
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3730
diff changeset
    92
REQUIRED_PACKAGES += system/library
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3730
diff changeset
    93
REQUIRED_PACKAGES += system/library/math
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3730
diff changeset
    94
REQUIRED_PACKAGES += system/locale/extra