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]
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
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
44 CFLAGS
+= -std
=c99
$(CPP_XPG6MODE
)
45 CFLAGS
+= -I
$(USRINCDIR
)/mpfr
-I
$(USRINCDIR
)/gmp
47 CONFIGURE_OPTIONS
+= --infodir=$(CONFIGURE_INFODIR
)
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" ' \
59 '-e "s|\(\*\*\* \\$$(SOURCE_DIR)/test/[^[:space:]]*\).*|\1|g" '
64 install: $(INSTALL_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