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, 2015, Oracle and/or its affiliates. All rights reserved. |
21 |
22 # |
22 # |
|
23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
|
24 # |
|
25 BUILD_BITS= 64 |
23 include ../../make-rules/shared-macros.mk |
26 include ../../make-rules/shared-macros.mk |
24 |
27 |
25 COMPONENT_NAME= gperf |
28 COMPONENT_NAME= gperf |
26 COMPONENT_VERSION= 3.0.3 |
29 COMPONENT_VERSION= 3.0.3 |
27 COMPONENT_PROJECT_URL= http://www.gnu.org/software/gperf/ |
|
28 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
29 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
30 COMPONENT_ARCHIVE_HASH= \ |
30 COMPONENT_ARCHIVE_HASH= \ |
31 sha256:63287527c8d9e27e801cf0804436f3494bd569db05d49dcdd2a942ae72fa9055 |
31 sha256:63287527c8d9e27e801cf0804436f3494bd569db05d49dcdd2a942ae72fa9055 |
32 COMPONENT_ARCHIVE_URL= http://ftp.gnu.org/pub/gnu/gperf/$(COMPONENT_ARCHIVE) |
|
33 COMPONENT_BUGDB= utility/gperf |
|
34 |
32 |
35 TPNO= 8589 |
33 TPNO= 8589 |
36 |
34 |
37 include $(WS_MAKE_RULES)/prep.mk |
35 # must build tests before use |
38 include $(WS_MAKE_RULES)/configure.mk |
36 SYSTEM_TEST_TARGET= build $(SYSTEM_TEST_64) |
39 include $(WS_MAKE_RULES)/ips.mk |
37 include $(WS_MAKE_RULES)/gnu-component.mk |
40 |
|
41 CONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin |
|
42 |
38 |
43 CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR) |
39 CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR) |
44 CONFIGURE_OPTIONS += --docdir=/usr/share/doc/gperf |
40 CONFIGURE_OPTIONS += --docdir=$(USRSHAREDOCDIR)/gperf |
45 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
|
46 CONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)" |
|
47 |
|
48 ASLR_MODE = $(ASLR_ENABLE) |
|
49 |
41 |
50 # test/system-test is tricky. |
42 # test/system-test is tricky. |
51 # Reason being is this component bundles! test results |
43 # Reason being is this component bundles! test results |
52 # with the source and those results are compared against |
44 # with the source and those results are compared against |
53 # generated results. |
45 # generated results. |
63 # modify bundled test results for system-test |
55 # modify bundled test results for system-test |
64 COMPONENT_PRE_SYSTEM_TEST_ACTION = \ |
56 COMPONENT_PRE_SYSTEM_TEST_ACTION = \ |
65 ($(GSED) -i -e "s|../src/gperf|/usr/bin/gperf|" \ |
57 ($(GSED) -i -e "s|../src/gperf|/usr/bin/gperf|" \ |
66 $(SOURCE_DIR)/tests/*.exp) |
58 $(SOURCE_DIR)/tests/*.exp) |
67 |
59 |
68 COMPONENT_SYSTEM_TEST_ARGS = GPERF=/usr/bin/gperf |
60 COMPONENT_SYSTEM_TEST_ARGS = GPERF=$(USRBINDIR)/gperf |
69 |
61 |
70 # normalize the name of gperf |
62 # normalize the name of gperf |
71 # remove compilation lines |
63 # remove compilation lines |
72 COMPONENT_TEST_TRANSFORMS += \ |
64 COMPONENT_TEST_TRANSFORMS += \ |
73 '-e "s|../src/gperf|gperf|g" ' \ |
65 '-e "s|../src/gperf|gperf|g" ' \ |
74 '-e "s|/usr/bin/gperf|gperf|g" ' \ |
66 '-e "s|/usr/bin/gperf|gperf|g" ' \ |
75 '-e "s|^.*$(CC).*$$|XXX_CC_XXX|g" ' \ |
67 '-e "s|^.*$(CC).*$$|XXX_CC_XXX|g" ' \ |
76 '-e "/^XXX_CC_XXX$$/d" ' |
68 '-e "/^XXX_CC_XXX$$/d" ' |
77 |
69 |
78 |
|
79 configure: $(CONFIGURE_64) |
|
80 |
|
81 build: $(BUILD_64) |
|
82 |
|
83 install: $(INSTALL_64) |
|
84 |
|
85 test: $(TEST_64) |
|
86 |
|
87 # must build tests before use |
|
88 system-test: build $(SYSTEM_TEST_64) |
|
89 |
|
90 |
|
91 REQUIRED_PACKAGES += system/library |
|
92 REQUIRED_PACKAGES += system/library/c++-runtime |
70 REQUIRED_PACKAGES += system/library/c++-runtime |
93 REQUIRED_PACKAGES += system/library/math |
71 REQUIRED_PACKAGES += system/library/math |