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 |
|
22 # |
21 # Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
23 # Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
22 # |
24 # |
23 |
25 BUILD_BITS= 64 |
24 COMPILER = gcc |
26 COMPILER= gcc |
25 |
|
26 include ../../make-rules/shared-macros.mk |
27 include ../../make-rules/shared-macros.mk |
27 |
28 |
28 COMPONENT_NAME= augeas |
29 COMPONENT_NAME= augeas |
29 COMPONENT_VERSION= 1.3.0 |
30 COMPONENT_VERSION= 1.3.0 |
30 COMPONENT_PROJECT_URL= http://www.augeas.net/ |
31 COMPONENT_PROJECT_URL= http://www.augeas.net/ |
31 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
32 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
33 COMPONENT_ARCHIVE_HASH= \ |
32 COMPONENT_ARCHIVE_HASH= \ |
34 sha256:80763031af76515a8ea66013ddc3c466742a15d2e907c7c8e2e3b7410262e2af |
33 sha256:80763031af76515a8ea66013ddc3c466742a15d2e907c7c8e2e3b7410262e2af |
35 COMPONENT_ARCHIVE_URL= http://download.augeas.net/$(COMPONENT_ARCHIVE) |
34 COMPONENT_ARCHIVE_URL= http://download.augeas.net/$(COMPONENT_ARCHIVE) |
36 COMPONENT_BUGDB= utility/augeas |
|
37 |
35 |
38 TPNO= 21660 |
36 TPNO= 21660 |
39 |
37 |
40 include $(WS_MAKE_RULES)/prep.mk |
38 include $(WS_MAKE_RULES)/common.mk |
41 include $(WS_MAKE_RULES)/configure.mk |
|
42 include $(WS_MAKE_RULES)/ips.mk |
|
43 |
|
44 CONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin |
|
45 |
39 |
46 COMPONENT_PRE_CONFIGURE_ACTION = \ |
40 COMPONENT_PRE_CONFIGURE_ACTION = \ |
47 ($(CLONEY) $(SOURCE_DIR) $(@D)) |
41 ($(CLONEY) $(SOURCE_DIR) $(@D)) |
48 |
42 |
49 CONFIGURE_PREFIX = /usr |
|
50 CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR) |
43 CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR) |
51 CONFIGURE_OPTIONS += --disable-dependency-tracking |
44 CONFIGURE_OPTIONS += --disable-dependency-tracking |
52 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
|
53 |
45 |
54 COMPONENT_TEST_ARGS = -k |
46 COMPONENT_TEST_ARGS = -k |
55 COMPONENT_TEST_TRANSFORMS += \ |
47 COMPONENT_TEST_TRANSFORMS += \ |
56 '-n ' \ |
48 '-n ' \ |
57 '-e "/passed/p" ' \ |
49 '-e "/passed/p" ' \ |
63 '-e "/Failure expected/p" ' \ |
55 '-e "/Failure expected/p" ' \ |
64 '-e "/SKIP/p" ' \ |
56 '-e "/SKIP/p" ' \ |
65 '-e "/PASS/p" ' \ |
57 '-e "/PASS/p" ' \ |
66 '-e "/FAIL/p" ' |
58 '-e "/FAIL/p" ' |
67 |
59 |
|
60 # XXX why does this coredump without the workaround? |
68 # Fixes coredump in gnulib-test/test-localename test |
61 # Fixes coredump in gnulib-test/test-localename test |
69 CONFIGURE_OPTIONS += ac_cv_func_newlocale=no |
62 CONFIGURE_OPTIONS += ac_cv_func_newlocale=no |
70 |
|
71 ASLR_MODE = $(ASLR_ENABLE) |
|
72 |
63 |
73 # Needed for "gmake test" to work. |
64 # Needed for "gmake test" to work. |
74 # SHELLOPTS is exported via make-rules/shared-macros.mk, |
65 # SHELLOPTS is exported via make-rules/shared-macros.mk, |
75 # causing the braceexpand option to be set. |
66 # causing the braceexpand option to be set. |
76 # This option causes "$1: unbound variable" errors during the check-TESTS, |
67 # This option causes "$1: unbound variable" errors during the check-TESTS, |
77 # and the gnulib-tests don't even run at all. |
68 # and the gnulib-tests don't even run at all. |
78 # Note that the below unexports SHELLOPTS, even for targets |
69 # Note that the below unexports SHELLOPTS, even for targets |
79 # other than "test." |
70 # other than "test." |
80 unexport SHELLOPTS |
71 unexport SHELLOPTS |
81 |
72 |
82 # common targets |
|
83 configure: $(CONFIGURE_64) |
|
84 |
|
85 build: $(BUILD_64) |
|
86 |
|
87 install: $(INSTALL_64) |
|
88 |
|
89 test: $(TEST_64) |
|
90 |
|
91 REQUIRED_PACKAGES += system/library |
|
92 REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime |
73 REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime |
93 REQUIRED_PACKAGES += library/libxml2 |
74 REQUIRED_PACKAGES += library/libxml2 |
94 REQUIRED_PACKAGES += library/readline |
75 REQUIRED_PACKAGES += library/readline |
95 REQUIRED_PACKAGES += library/ncurses |
76 REQUIRED_PACKAGES += library/ncurses |