20 # |
20 # |
21 |
21 |
22 # |
22 # |
23 # Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved. |
23 # Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved. |
24 # |
24 # |
25 |
25 BUILD_BITS= 64 |
26 include ../../make-rules/shared-macros.mk |
26 include ../../make-rules/shared-macros.mk |
27 |
27 |
28 COMPONENT_NAME= xmlto |
28 COMPONENT_NAME= xmlto |
29 COMPONENT_VERSION= 0.0.28 |
29 COMPONENT_VERSION= 0.0.28 |
30 COMPONENT_PROJECT_URL= https://fedorahosted.org/xmlto/ |
30 COMPONENT_PROJECT_URL= https://fedorahosted.org/xmlto/ |
31 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
32 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
33 COMPONENT_ARCHIVE_HASH= \ |
31 COMPONENT_ARCHIVE_HASH= \ |
34 sha256:2f986b7c9a0e9ac6728147668e776d405465284e13c74d4146c9cbc51fd8aad3 |
32 sha256:2f986b7c9a0e9ac6728147668e776d405465284e13c74d4146c9cbc51fd8aad3 |
35 COMPONENT_ARCHIVE_URL= https://fedorahosted.org/releases/x/m/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE) |
33 COMPONENT_ARCHIVE_URL= https://fedorahosted.org/releases/x/m/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE) |
36 COMPONENT_BUGDB= utility/xmlto |
|
37 |
34 |
38 TPNO= 27193 |
35 TPNO= 27193 |
39 |
36 |
40 include $(WS_MAKE_RULES)/prep.mk |
37 SYSTEM_TEST_TARGET= configure $(SYSTEM_TEST_64) |
41 include $(WS_MAKE_RULES)/configure.mk |
38 include $(WS_MAKE_RULES)/common.mk |
42 include $(WS_MAKE_RULES)/ips.mk |
|
43 |
39 |
44 # These will be used by the xmlto script. |
40 # These will be used by the xmlto script. |
45 CONFIGURE_ENV += FIND="/usr/gnu/bin/find" |
41 CONFIGURE_ENV += FIND="$(GNUBIN)/find" |
46 CONFIGURE_ENV += GETOPT="/usr/gnu/bin/getopt" |
42 CONFIGURE_ENV += GETOPT="$(GNUBIN)/getopt" |
47 CONFIGURE_ENV += GREP="/usr/gnu/bin/grep" |
43 CONFIGURE_ENV += GREP="$(GNUBIN)/grep" |
48 CONFIGURE_ENV += TAIL="/usr/gnu/bin/tail" |
44 CONFIGURE_ENV += TAIL="$(GNUBIN)/tail" |
49 |
|
50 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
|
51 |
45 |
52 # Strip compilation lines from test output |
46 # Strip compilation lines from test output |
53 COMPONENT_TEST_TRANSFORMS += \ |
47 COMPONENT_TEST_TRANSFORMS += \ |
54 '-e "s|^.*$(CC).*$$|XXX_CC_XXX|g" ' \ |
48 '-e "s|^.*$(CC).*$$|XXX_CC_XXX|g" ' \ |
55 '-e "s|^.*source=.*libtool=no.*$$|XXX_CC_XXX|g" ' \ |
49 '-e "s|^.*source=.*libtool=no.*$$|XXX_CC_XXX|g" ' \ |
63 COMPONENT_SYSTEM_TEST_ENV += top_builddir=$(BUILD_DIR) |
57 COMPONENT_SYSTEM_TEST_ENV += top_builddir=$(BUILD_DIR) |
64 COMPONENT_PRE_SYSTEM_TEST_ACTION += \ |
58 COMPONENT_PRE_SYSTEM_TEST_ACTION += \ |
65 $(GSED) -i -e "s|^XMLIF=.*$$|XMLIF=/usr/bin/xmlif|" \ |
59 $(GSED) -i -e "s|^XMLIF=.*$$|XMLIF=/usr/bin/xmlif|" \ |
66 $(SOURCE_DIR)/xmlif/test/run-test |
60 $(SOURCE_DIR)/xmlif/test/run-test |
67 |
61 |
68 ASLR_MODE = $(ASLR_ENABLE) |
62 # Used by this Makefile. |
69 |
63 REQUIRED_PACKAGES += text/gnu-sed |
70 configure: $(CONFIGURE_64) |
|
71 |
|
72 build: $(BUILD_64) |
|
73 |
|
74 install: $(INSTALL_64) |
|
75 |
|
76 test: $(TEST_64) |
|
77 |
|
78 system-test: configure $(SYSTEM_TEST_64) |
|
79 |
|
80 |
64 |
81 REQUIRED_PACKAGES += file/gnu-coreutils |
65 REQUIRED_PACKAGES += file/gnu-coreutils |
82 REQUIRED_PACKAGES += file/gnu-findutils |
66 REQUIRED_PACKAGES += file/gnu-findutils |
83 REQUIRED_PACKAGES += library/libxml2 |
67 REQUIRED_PACKAGES += library/libxml2 |
84 REQUIRED_PACKAGES += library/libxslt |
68 REQUIRED_PACKAGES += library/libxslt |
85 REQUIRED_PACKAGES += shell/bash |
69 REQUIRED_PACKAGES += shell/bash |
86 REQUIRED_PACKAGES += shell/gnu-getopt |
70 REQUIRED_PACKAGES += shell/gnu-getopt |
87 REQUIRED_PACKAGES += system/library |
|
88 REQUIRED_PACKAGES += text/gnu-grep |
71 REQUIRED_PACKAGES += text/gnu-grep |
89 REQUIRED_PACKAGES += web/browser/lynx |
72 REQUIRED_PACKAGES += web/browser/lynx |