gettext: 64-bit only
[unleashed-userland.git] / components / text / gettext / Makefile
blob0325ab6bc873191eed3f49f86989ccb0c5bbac18
2 # CDDL HEADER START
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.
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.
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]
19 # CDDL HEADER END
23 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
26 include ../../../make-rules/shared-macros.mk
28 COMPONENT_NAME= gettext
29 COMPONENT_VERSION= 0.19.7
30 IPS_PKG_NAME= text/gnu-gettext
31 COMPONENT_PROJECT_URL= http://www.gnu.org/software/gettext/
32 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
33 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
34 COMPONENT_ARCHIVE_HASH= \
35 sha256:378fa86a091cec3acdece3c961bb8d8c0689906287809a8daa79dc0c6398d934
36 COMPONENT_ARCHIVE_URL= http://ftp.gnu.org/pub/gnu/gettext/$(COMPONENT_ARCHIVE)
38 include $(WS_MAKE_RULES)/prep.mk
39 include $(WS_MAKE_RULES)/configure.mk
40 include $(WS_MAKE_RULES)/ips.mk
41 export UNAME_LEGACY=
43 CONFIGURE_OPTIONS += --disable-java
44 CONFIGURE_OPTIONS += --disable-libasprintf
45 CONFIGURE_OPTIONS += --without-emacs
46 CONFIGURE_OPTIONS += --disable-openmp
47 CONFIGURE_OPTIONS += --disable-static
48 #CONFIGURE_OPTIONS += --disable-shared
50 CONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin
52 # Fixes coredump in gnulib-test/test-localename test
53 CONFIGURE_OPTIONS += ac_cv_func_newlocale=no
55 # Tests should run in a clean environment
56 COMPONENT_TEST_ENV = -i
57 COMPONENT_TEST_ENV += PATH=${PATH}
59 # Strip compilation lines from test output
60 COMPONENT_TEST_TRANSFORMS += \
61 '-e "s|^.*$(CC).*$$|XXX_CC_XXX|g" ' \
62 '-e "s|^.*source=.*libtool=no.*$$|XXX_CC_XXX|g" ' \
63 '-e "s|^.*DEPDIR=.deps.*$$|XXX_CC_XXX|g" ' \
64 '-e "/^XXX_CC_XXX$$/d" '
67 # common targets
68 build: $(BUILD_64)
70 install: $(INSTALL_64)
72 test: $(TEST_64)
74 REQUIRED_PACKAGES += SUNWcs
75 REQUIRED_PACKAGES += library/libcroco
76 REQUIRED_PACKAGES += library/libxml2
77 REQUIRED_PACKAGES += library/ncurses
78 REQUIRED_PACKAGES += system/library
79 REQUIRED_PACKAGES += system/library/math