author | jenny.yung@oracle.com <jenny.yung@oracle.com> |
Wed, 02 Dec 2015 16:35:50 -0800 | |
changeset 5143 | 9b4a483bf8d9 |
parent 4887 | 4db7e64f5de8 |
child 5585 | 2d9515d641e1 |
permissions | -rw-r--r-- |
1714 | 1 |
# |
2 |
# CDDL HEADER START |
|
3 |
# |
|
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. |
|
7 |
# |
|
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. |
|
12 |
# |
|
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] |
|
18 |
# |
|
19 |
# CDDL HEADER END |
|
20 |
# |
|
21 |
||
22 |
# |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
23 |
# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. |
1714 | 24 |
# |
25 |
||
26 |
include ../../make-rules/shared-macros.mk |
|
27 |
||
28 |
COMPONENT_NAME= xmlto |
|
4083
70f2f26368fe
20844430 Update xmlto to version 0.0.26
Rich Burridge <rich.burridge@oracle.com>
parents:
3817
diff
changeset
|
29 |
COMPONENT_VERSION= 0.0.26 |
1714 | 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= \ |
|
4083
70f2f26368fe
20844430 Update xmlto to version 0.0.26
Rich Burridge <rich.burridge@oracle.com>
parents:
3817
diff
changeset
|
34 |
sha256:cfd8d2a26077be1d5566dfe22dd66099ae4f4600dea97d6e113a2cc5b8708977 |
1714 | 35 |
COMPONENT_ARCHIVE_URL= https://fedorahosted.org/releases/x/m/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE) |
36 |
COMPONENT_BUGDB= utility/xmlto |
|
37 |
||
4083
70f2f26368fe
20844430 Update xmlto to version 0.0.26
Rich Burridge <rich.burridge@oracle.com>
parents:
3817
diff
changeset
|
38 |
TPNO= 22220 |
1948
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1714
diff
changeset
|
39 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
40 |
include $(WS_MAKE_RULES)/prep.mk |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
41 |
include $(WS_MAKE_RULES)/configure.mk |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
42 |
include $(WS_MAKE_RULES)/ips.mk |
1714 | 43 |
|
44 |
# These will be used by the xmlto script. |
|
45 |
CONFIGURE_ENV += FIND="/usr/gnu/bin/find" |
|
46 |
CONFIGURE_ENV += GETOPT="/usr/gnu/bin/getopt" |
|
47 |
CONFIGURE_ENV += GREP="/usr/gnu/bin/grep" |
|
48 |
CONFIGURE_ENV += TAIL="/usr/gnu/bin/tail" |
|
49 |
||
50 |
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
|
51 |
||
4559
b8f0fb772f16
21315323 Hookup system-tests for xmlto
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
52 |
# Strip compilation lines from test output |
b8f0fb772f16
21315323 Hookup system-tests for xmlto
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
53 |
COMPONENT_TEST_TRANSFORMS += \ |
b8f0fb772f16
21315323 Hookup system-tests for xmlto
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
54 |
'-e "s|^.*$(CC).*$$|XXX_CC_XXX|g" ' \ |
b8f0fb772f16
21315323 Hookup system-tests for xmlto
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
55 |
'-e "s|^.*source=.*libtool=no.*$$|XXX_CC_XXX|g" ' \ |
b8f0fb772f16
21315323 Hookup system-tests for xmlto
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
56 |
'-e "s|^.*DEPDIR=.deps.*$$|XXX_CC_XXX|g" ' \ |
b8f0fb772f16
21315323 Hookup system-tests for xmlto
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
57 |
'-e "s|^.*xmlif.l.*$$|XXX_CC_XXX|g" ' \ |
b8f0fb772f16
21315323 Hookup system-tests for xmlto
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
58 |
'-e "s|^make.*: Leaving directory.*$$|XXX_CC_XXX|g" ' \ |
b8f0fb772f16
21315323 Hookup system-tests for xmlto
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
59 |
'-e "s|^make.*: Entering directory.*$$|XXX_CC_XXX|g" ' \ |
b8f0fb772f16
21315323 Hookup system-tests for xmlto
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
60 |
'-e "/^XXX_CC_XXX$$/d" ' |
b8f0fb772f16
21315323 Hookup system-tests for xmlto
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
61 |
|
b8f0fb772f16
21315323 Hookup system-tests for xmlto
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
62 |
COMPONENT_SYSTEM_TEST_ENV += top_srcdir=$(SOURCE_DIR) |
b8f0fb772f16
21315323 Hookup system-tests for xmlto
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
63 |
COMPONENT_SYSTEM_TEST_ENV += top_builddir=$(BUILD_DIR) |
b8f0fb772f16
21315323 Hookup system-tests for xmlto
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
64 |
COMPONENT_PRE_SYSTEM_TEST_ACTION += \ |
b8f0fb772f16
21315323 Hookup system-tests for xmlto
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
65 |
$(GSED) -i -e "s|^XMLIF=.*$$|XMLIF=/usr/bin/xmlif|" \ |
b8f0fb772f16
21315323 Hookup system-tests for xmlto
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
66 |
$(SOURCE_DIR)/xmlif/test/run-test |
b8f0fb772f16
21315323 Hookup system-tests for xmlto
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
67 |
|
1714 | 68 |
ASLR_MODE = $(ASLR_ENABLE) |
69 |
||
2225
f064d3d3190d
20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents:
1948
diff
changeset
|
70 |
configure: $(CONFIGURE_64) |
f064d3d3190d
20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents:
1948
diff
changeset
|
71 |
|
1714 | 72 |
build: $(BUILD_64) |
73 |
||
74 |
install: $(INSTALL_64) |
|
75 |
||
76 |
test: $(TEST_64) |
|
77 |
||
4559
b8f0fb772f16
21315323 Hookup system-tests for xmlto
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
78 |
system-test: configure $(SYSTEM_TEST_64) |
4339
6501cf9c29f9
21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4083
diff
changeset
|
79 |
|
1714 | 80 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
81 |
REQUIRED_PACKAGES += file/gnu-coreutils |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
82 |
REQUIRED_PACKAGES += file/gnu-findutils |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
83 |
REQUIRED_PACKAGES += library/libxml2 |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
84 |
REQUIRED_PACKAGES += library/libxslt |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
85 |
REQUIRED_PACKAGES += shell/bash |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
86 |
REQUIRED_PACKAGES += shell/gnu-getopt |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
87 |
REQUIRED_PACKAGES += system/library |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
88 |
REQUIRED_PACKAGES += text/gnu-grep |
4887
4db7e64f5de8
21881935 xmlto shouldn't use w3m and should depend on lynx
Rich Burridge <rich.burridge@oracle.com>
parents:
4559
diff
changeset
|
89 |
REQUIRED_PACKAGES += web/browser/lynx |