Bump gawk to 4.2.0
[unleashed-userland.git] / components / text / gawk / Makefile
blobd4aae84c822a5f22dc5a270d993f735c4f1e031d
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
21 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
22 # Copyright (c) 2017, Aurelien Larcher
24 include ../../../make-rules/shared-macros.mk
26 COMPONENT_NAME= gawk
27 COMPONENT_VERSION= 4.2.0
28 COMPONENT_FMRI= text/gawk
29 COMPONENT_SUMMARY= GNU awk
30 COMPONENT_CLASSIFICATION= Applications/System Utilities
31 COMPONENT_PROJECT_URL= http://www.gnu.org/software/gawk/
32 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
33 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
34 COMPONENT_ARCHIVE_HASH= \
35 sha256:d4f3cd31c001fd0ed52832d4fbfbdfeaa38ad541c182f80ff8fdf87324a6a9f2
36 COMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/gawk/$(COMPONENT_ARCHIVE)
37 COMPONENT_LICENSE= GPLv3, FDLv1.3
39 include $(WS_MAKE_RULES)/prep.mk
40 include $(WS_MAKE_RULES)/configure.mk
41 include $(WS_MAKE_RULES)/ips.mk
43 CFLAGS+= -std=c99 $(CPP_XPG6MODE)
44 CFLAGS+= -I$(USRINCDIR)/mpfr -I$(USRINCDIR)/gmp
46 CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
47 CONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_LIBDIR.$(BITS))
48 CONFIGURE_OPTIONS += --with-mpfr=$(LIBDIR.$(BITS))
50 CONFIGURE_BINDIR.64 = $(CONFIGURE_BINDIR.32)
52 COMPONENT_TEST_ENV+= LANG=C LC_ALL=C
54 COMPONENT_TEST_TRANSFORMS += \
55 '-e "/\/usr\/gnu\/bin\/make/d" ' \
56 '-e "/^make/d" ' \
57 '-e "/^Making/d" ' \
58 '-e "/^--- _/d" ' \
59 '-e "s|\(\*\*\* \\$$(SOURCE_DIR)/test/[^[:space:]]*\).*|\1|g" '
61 # common targets
62 build: $(BUILD_64)
64 install: $(INSTALL_64)
66 test: $(TEST_64)
68 # Auto-generated dependencies
69 REQUIRED_PACKAGES += library/gmp
70 REQUIRED_PACKAGES += library/libsigsegv
71 REQUIRED_PACKAGES += library/mpfr
72 REQUIRED_PACKAGES += library/readline
73 REQUIRED_PACKAGES += SUNWcs
74 REQUIRED_PACKAGES += system/library
75 REQUIRED_PACKAGES += system/library/math