16 # fields enclosed by brackets "[]" replaced with your own identifying |
16 # fields enclosed by brackets "[]" replaced with your own identifying |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
18 # |
18 # |
19 # CDDL HEADER END |
19 # CDDL HEADER END |
20 # |
20 # |
21 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
21 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. |
22 # |
22 # |
23 include ../../make-rules/shared-macros.mk |
23 include ../../make-rules/shared-macros.mk |
24 |
24 |
25 COMPONENT_NAME= grep |
25 COMPONENT_NAME= grep |
26 COMPONENT_VERSION= 2.10 |
26 COMPONENT_VERSION= 2.14 |
27 COMPONENT_PROJECT_URL= http://gnu.org/software/grep/ |
27 COMPONENT_PROJECT_URL= http://gnu.org/software/grep/ |
28 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
28 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
29 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2 |
29 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz |
30 |
30 |
31 # Note that the 2.10 version of the compressed GNU grep tarball on |
|
32 # ftp.gnu.org is only available in .xz format. We cannot use this |
|
33 # as xz is not currently part of the Solaris 11 Update CBE. We |
|
34 # have recompressed that tarball as a .bz2 file and placed it in the |
|
35 # special Userland cache. The sha256 hash is for the payload .tar file. |
|
36 COMPONENT_ARCHIVE_HASH= \ |
31 COMPONENT_ARCHIVE_HASH= \ |
37 sha256:299d0ccb0238894cc674da3c5a6a6fb82c3d63286f7f127e448e2ff97d21e2fb |
32 sha256:e70e801d4fbb16e761654a58ae48bf5020621c95c8e35bd864742577685872e1 |
38 COMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/grep/$(COMPONENT_ARCHIVE) |
33 COMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/grep/$(COMPONENT_ARCHIVE) |
39 |
34 |
40 COMPONENT_BUGDB= utility/ggrep |
35 COMPONENT_BUGDB= utility/ggrep |
41 |
36 |
42 include ../../make-rules/prep.mk |
37 include ../../make-rules/prep.mk |
47 CFLAGS += $(studio_FEATURES_EXTENSIONS) |
42 CFLAGS += $(studio_FEATURES_EXTENSIONS) |
48 |
43 |
49 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
44 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
50 CONFIGURE_OPTIONS += --prefix=/usr |
45 CONFIGURE_OPTIONS += --prefix=/usr |
51 |
46 |
|
47 # Needed for "gmake test" to work. |
|
48 # SHELLOPTS is exported via make-rules/shared-macros.mk, |
|
49 # causing the braceexpand option to be set. |
|
50 # This option causes "$1: unbound variable" errors during the check-TESTS, |
|
51 # and the gnulib-tests don't even run at all. |
|
52 # Note that the below unexports SHELLOPTS, even for targets |
|
53 # other than "test." |
|
54 unexport SHELLOPTS |
|
55 |
52 # common targets |
56 # common targets |
53 build: $(BUILD_32) |
57 build: $(BUILD_32) |
54 |
58 |
55 install: $(INSTALL_32) |
59 install: $(INSTALL_32) |
56 |
60 |
|
61 # 3 expected failures in gnulib-tests: |
|
62 # test-mbrtowc3.sh, test-mbrtowc4.sh, test-mbsrtowcs4.sh |
57 test: $(TEST_32) |
63 test: $(TEST_32) |
58 |
64 |
59 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
65 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
60 |
66 |
61 include ../../make-rules/depend.mk |
67 include ../../make-rules/depend.mk |