Makefile revision 3873
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews#
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# CDDL HEADER START
04428429c4e689333e3ef8d19a2debeb20d4d15dMark Andrews#
e999539fb3e45b2617571e0e3ecd651992291701Mark Andrews# The contents of this file are subject to the terms of the
e999539fb3e45b2617571e0e3ecd651992291701Mark Andrews# Common Development and Distribution License (the "License").
2a40fdc2d34adb8a5c72a748449699666032d461Mark Andrews# You may not use this file except in compliance with the License.
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews#
a3b428812703d22a605a9f882e71ed65f0ffdc65Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# or http://www.opensolaris.org/os/licensing.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# See the License for the specific language governing permissions
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# and limitations under the License.
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews#
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# When distributing Covered Code, include this CDDL HEADER in each
d56e188030368b835122d759ebbf8d9613c166f4Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews# If applicable, add the following below this CDDL HEADER, with the
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews#
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews# CDDL HEADER END
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews#
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrewsinclude ../../make-rules/shared-macros.mk
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCOMPONENT_NAME= gettext
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCOMPONENT_VERSION= 0.19.3
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsIPS_PKG_NAME= text/gnu-gettext
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCOMPONENT_PROJECT_URL= http://www.gnu.org/software/gettext/
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
a3b428812703d22a605a9f882e71ed65f0ffdc65Mark AndrewsCOMPONENT_ARCHIVE_HASH= \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews sha256:f6fdb29c9ee8ce85c7e574f60ff64fa91cf0f4f018437dfe800227d15595db46
c718d15a9a95054ee3c71540c02335426071fc6dMark AndrewsCOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/pub/gnu/gettext/$(COMPONENT_ARCHIVE)
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark AndrewsCOMPONENT_BUGDB= utility/gnu-gettext
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c718d15a9a95054ee3c71540c02335426071fc6dMark AndrewsTPNO= 20141
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c069a20053d41ae299eb9457e50ea44ae9f73ed2Mark Andrewsinclude $(WS_MAKE_RULES)/prep.mk
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrewsinclude $(WS_MAKE_RULES)/configure.mk
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsinclude $(WS_MAKE_RULES)/ips.mk
605bd686e437162b5ab65ac4e7c1be0bba1886ddMark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCONFIGURE_OPTIONS += --disable-java
3f6174bffe227be44e241a29d186add00c032ff6Mark AndrewsCONFIGURE_OPTIONS += --disable-libasprintf
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark AndrewsCONFIGURE_OPTIONS += --without-emacs
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCONFIGURE_OPTIONS += --disable-openmp
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCONFIGURE_OPTIONS += --disable-static
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCONFIGURE_OPTIONS += --disable-shared
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews# Fixes coredump in gnulib-test/test-localename test
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCONFIGURE_OPTIONS += ac_cv_func_newlocale=no
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# Commands go under /usr/bin so set bindir correctly.
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# Tests should run in a clean environment
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCOMPONENT_TEST_ENV = -i
26a77b80bb7ee886c6fa704348d5e80a011d8811Mark AndrewsCOMPONENT_TEST_ENV += PATH=${PATH}:$(SPRO_VROOT)/bin
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
6f046a065e5543f8cd7e2f24991c65d2372f4c8dMark Andrews# Strip compilation lines from test output
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark AndrewsCOMPONENT_TEST_TRANSFORMS += \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews '-e "s|^.*$(CC).*$$|XXX_CC_XXX|g" ' \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews '-e "s|^.*source=.*libtool=no.*$$|XXX_CC_XXX|g" ' \
62ee2c9f460d2e2e45dcf1abc8b4b4a4a43f5618Mark Andrews '-e "s|^.*DEPDIR=.deps.*$$|XXX_CC_XXX|g" ' \
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews '-e "/^XXX_CC_XXX$$/d" '
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark AndrewsASLR_MODE = $(ASLR_ENABLE)
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews# common targets
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrewsconfigure: $(CONFIGURE_64)
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonbuild: $(BUILD_64)
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrewsinstall: $(INSTALL_64)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrewstest: $(TEST_64)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonREQUIRED_PACKAGES += developer/icu
45eca3a5d46ed15aee14d81f6cb6c9fb6f365344Mark AndrewsREQUIRED_PACKAGES += developer/vala
80f9a970ae6681c08529ef209eaabbe078c27ca3Mark AndrewsREQUIRED_PACKAGES += library/expat
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark AndrewsREQUIRED_PACKAGES += library/icu
46e873c835bf7d9ec3e1097e0aceb8db5b1ae93aMark AndrewsREQUIRED_PACKAGES += library/libcroco
46e873c835bf7d9ec3e1097e0aceb8db5b1ae93aMark AndrewsREQUIRED_PACKAGES += library/libxml2
dd9ad704c3800e3ab07ede8595871eac79984871Mark AndrewsREQUIRED_PACKAGES += library/ncurses
605bd686e437162b5ab65ac4e7c1be0bba1886ddMark AndrewsREQUIRED_PACKAGES += shell/ksh93
45eca3a5d46ed15aee14d81f6cb6c9fb6f365344Mark AndrewsREQUIRED_PACKAGES += source/locale/localedef
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark AndrewsREQUIRED_PACKAGES += system/library
ab81f57ca0c3addfec3df3babdcea9644757cf23Mark AndrewsREQUIRED_PACKAGES += system/library/math
605bd686e437162b5ab65ac4e7c1be0bba1886ddMark AndrewsREQUIRED_PACKAGES += system/locale/extra
6b5c57e52ac8c3e0af1547be3140ebbfb41a85b3Mark Andrews