author | Girish Moodalbail <Girish.Moodalbail@oracle.COM> |
Wed, 01 Jul 2015 10:21:52 -0700 | |
changeset 4582 | cfdc60640ff6 |
parent 4339 | 6501cf9c29f9 |
child 4768 | 36f47c0b202b |
permissions | -rw-r--r-- |
1510
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
1 |
# |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
3 |
# |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
7 |
# |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
12 |
# |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
18 |
# |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
20 |
# |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
21 |
|
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
22 |
# |
3588
c7ba860a6ef7
20309782 asciidoc should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
23 |
# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved. |
1510
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
24 |
# |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
25 |
|
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
26 |
include ../../make-rules/shared-macros.mk |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
27 |
|
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
28 |
COMPONENT_NAME= asciidoc |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
29 |
COMPONENT_VERSION= 8.6.8 |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
30 |
COMPONENT_PROJECT_URL= http://www.methods.co.nz/asciidoc/ |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
31 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
32 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
33 |
COMPONENT_ARCHIVE_HASH= \ |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
34 |
sha256:ffb67f59dccaf6f15db72fcd04fdf21a2f9b703d31f94fcd0c49a424a9fcfbc4 |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
35 |
COMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/project/$(COMPONENT_NAME)/$(COMPONENT_NAME)/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE) |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
36 |
COMPONENT_BUGDB= utility/asciidoc |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
37 |
|
1948
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1510
diff
changeset
|
38 |
TPNO= 14505 |
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1510
diff
changeset
|
39 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3588
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:
3588
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:
3588
diff
changeset
|
42 |
include $(WS_MAKE_RULES)/ips.mk |
1510
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
43 |
|
2188
bbabf4f00a89
19925601 "gmake test" failures for asciidoc
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
44 |
PATCH_LEVEL = 0 |
bbabf4f00a89
19925601 "gmake test" failures for asciidoc
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
45 |
|
1510
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
46 |
# AsciiDoc configuration and data files belong in /usr/share, not /etc based |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
47 |
# on discussion from ARC pre-review. |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
48 |
# |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
49 |
CONFIGURE_OPTIONS += --sysconfdir=/usr/share |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
50 |
|
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
51 |
# pkgdepend doesn't like the first line of a Python script to be: |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
52 |
# '#!/usr/bin/env python' so turn it into '#!/usr/bin/python$(PYTHON_VERSION)' |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
53 |
# |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
54 |
COMPONENT_POST_INSTALL_ACTION += \ |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
55 |
$(GSED) -i -e 's?env python?python$(PYTHON_VERSION)?' \ |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
56 |
$(PROTOUSRBINDIR64)/asciidoc.py; |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
57 |
COMPONENT_POST_INSTALL_ACTION += \ |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
58 |
$(GSED) -i -e 's?env python?python$(PYTHON_VERSION)?' \ |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
59 |
$(PROTOUSRBINDIR64)/a2x.py; |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
60 |
|
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
61 |
COMPONENT_PRE_CONFIGURE_ACTION = \ |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
62 |
($(CLONEY) $(SOURCE_DIR) $(@D)) |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
63 |
|
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
64 |
ASLR_MODE = $(ASLR_ENABLE) |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
65 |
|
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
66 |
# common targets |
2225
f064d3d3190d
20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents:
2188
diff
changeset
|
67 |
configure: $(CONFIGURE_64) |
f064d3d3190d
20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents:
2188
diff
changeset
|
68 |
|
1510
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
69 |
build: $(BUILD_64) |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
70 |
|
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
71 |
install: $(INSTALL_64) |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
72 |
|
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
73 |
# Tests require image/graphviz to be installed. Some tests also want to run |
2188
bbabf4f00a89
19925601 "gmake test" failures for asciidoc
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
74 |
# programs which are not automatically available on Solaris (latex, abc2ly |
bbabf4f00a89
19925601 "gmake test" failures for asciidoc
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
75 |
# and lilypad), so these tests will output messages of the form: |
bbabf4f00a89
19925601 "gmake test" failures for asciidoc
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
76 |
# latex2png.py: failed command: latex ... |
bbabf4f00a89
19925601 "gmake test" failures for asciidoc
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
77 |
# music2png.py: failed command: abc2ly ... |
bbabf4f00a89
19925601 "gmake test" failures for asciidoc
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
78 |
# music2png.py: failed command: lilypond ... |
1510
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
79 |
COMPONENT_PRE_TEST_ACTION = \ |
2188
bbabf4f00a89
19925601 "gmake test" failures for asciidoc
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
80 |
(cd $(@D); ln -s asciidoc.py asciidoc) |
bbabf4f00a89
19925601 "gmake test" failures for asciidoc
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
81 |
|
bbabf4f00a89
19925601 "gmake test" failures for asciidoc
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
82 |
COMPONENT_TEST_DIR = $(@D)/tests |
bbabf4f00a89
19925601 "gmake test" failures for asciidoc
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
83 |
COMPONENT_TEST_ENV_CMD = |
bbabf4f00a89
19925601 "gmake test" failures for asciidoc
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
84 |
COMPONENT_TEST_ENV = export PATH=$(@D):$$PATH; |
bbabf4f00a89
19925601 "gmake test" failures for asciidoc
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
85 |
COMPONENT_TEST_CMD = \ |
bbabf4f00a89
19925601 "gmake test" failures for asciidoc
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
86 |
python$(PYTHON_VERSION) ./asciidocapi.py; \ |
bbabf4f00a89
19925601 "gmake test" failures for asciidoc
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
87 |
if [ $$? -eq 0 ] ; \ |
bbabf4f00a89
19925601 "gmake test" failures for asciidoc
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
88 |
then print "asciidocapi test passed"; \ |
bbabf4f00a89
19925601 "gmake test" failures for asciidoc
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
89 |
else print "asciidocapi test failed"; \ |
bbabf4f00a89
19925601 "gmake test" failures for asciidoc
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
90 |
fi; \ |
bbabf4f00a89
19925601 "gmake test" failures for asciidoc
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
91 |
python$(PYTHON_VERSION) ./testasciidoc.py update; \ |
bbabf4f00a89
19925601 "gmake test" failures for asciidoc
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
92 |
python$(PYTHON_VERSION) ./testasciidoc.py run |
bbabf4f00a89
19925601 "gmake test" failures for asciidoc
Rich Burridge <rich.burridge@oracle.com>
parents:
1948
diff
changeset
|
93 |
COMPONENT_TEST_TARGETS = |
3588
c7ba860a6ef7
20309782 asciidoc should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
94 |
COMPONENT_POST_TEST_ACTION = \ |
c7ba860a6ef7
20309782 asciidoc should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
95 |
(cd $(@D); rm asciidoc) |
c7ba860a6ef7
20309782 asciidoc should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
96 |
|
c7ba860a6ef7
20309782 asciidoc should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
97 |
# The additional asciidoc specific set of transforms to be applied to the |
c7ba860a6ef7
20309782 asciidoc should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
98 |
# test results to try to normalize them. |
c7ba860a6ef7
20309782 asciidoc should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
99 |
COMPONENT_TEST_TRANSFORMS += \ |
c7ba860a6ef7
20309782 asciidoc should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
100 |
'-e "s|/tmp......|/tmpxxxxxx|g" ' |
1510
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
101 |
|
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
102 |
test: $(TEST_64) |
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
103 |
|
4339
6501cf9c29f9
21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents:
3817
diff
changeset
|
104 |
system-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED) |
6501cf9c29f9
21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents:
3817
diff
changeset
|
105 |
|
1510
2a70db54adec
PSARC 2013/268 AsciiDoc
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
106 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3588
diff
changeset
|
107 |
REQUIRED_PACKAGES += library/libxml2 |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3588
diff
changeset
|
108 |
REQUIRED_PACKAGES += library/libxslt |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3588
diff
changeset
|
109 |
REQUIRED_PACKAGES += runtime/python-26 |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3588
diff
changeset
|
110 |
REQUIRED_PACKAGES += web/browser/lynx |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3588
diff
changeset
|
111 |
REQUIRED_PACKAGES += web/browser/w3m |