components/doxygen/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Tue, 02 May 2017 17:33:26 -0700
changeset 7964 d9801318ed3d
parent 7772 a5abee83989d
permissions -rw-r--r--
25981468 Build ilmbase and openexr with the GNU compilers
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
195
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
     1
#
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
     3
#
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
     7
#
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    12
#
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    18
#
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    20
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5665
diff changeset
    21
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5665
diff changeset
    22
#
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    23
# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
195
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    24
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5665
diff changeset
    25
BUILD_BITS= 64
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5665
diff changeset
    26
COMPILER= gcc
195
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    27
include ../../make-rules/shared-macros.mk
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    28
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    29
COMPONENT_NAME=		doxygen
7772
a5abee83989d 25674598 Update doxygen to version 1.8.13
Rich Burridge <rich.burridge@oracle.com>
parents: 7687
diff changeset
    30
COMPONENT_VERSION=	1.8.13
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 195
diff changeset
    31
COMPONENT_PROJECT_URL=	http://www.stack.nl/~dimitri/doxygen/index.html
195
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).src.tar.gz
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 746
diff changeset
    33
COMPONENT_ARCHIVE_HASH=	\
7772
a5abee83989d 25674598 Update doxygen to version 1.8.13
Rich Burridge <rich.burridge@oracle.com>
parents: 7687
diff changeset
    34
    sha256:af667887bd7a87dc0dbf9ac8d86c96b552dfb8ca9c790ed1cbffaa6131573f6b
195
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    35
COMPONENT_ARCHIVE_URL=	http://ftp.stack.nl/pub/users/dimitri/$(COMPONENT_ARCHIVE)
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    36
COMPONENT_ANITYA_ID=	457
195
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    37
746
67d8050c297a 7135985 Upgrade Doxygen to 1.7.6.1
Kevin Crowe <Kevin.Crowe@oracle.com>
parents: 609
diff changeset
    38
# Download the manual so that we don't have to keep updating it in the gate.
67d8050c297a 7135985 Upgrade Doxygen to 1.7.6.1
Kevin Crowe <Kevin.Crowe@oracle.com>
parents: 609
diff changeset
    39
COMPONENT_ARCHIVE_1 =	$(COMPONENT_NAME)_manual-$(COMPONENT_VERSION).pdf.zip
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 746
diff changeset
    40
COMPONENT_ARCHIVE_HASH_1 =	\
7772
a5abee83989d 25674598 Update doxygen to version 1.8.13
Rich Burridge <rich.burridge@oracle.com>
parents: 7687
diff changeset
    41
    sha256:efc4937cf13b2e74f50ad8806d9b900f3c5e3f987ed503d763180053ee677ecd
746
67d8050c297a 7135985 Upgrade Doxygen to 1.7.6.1
Kevin Crowe <Kevin.Crowe@oracle.com>
parents: 609
diff changeset
    42
COMPONENT_ARCHIVE_URL_1 =	ftp://ftp.stack.nl/pub/users/dimitri/$(COMPONENT_ARCHIVE_1)
67d8050c297a 7135985 Upgrade Doxygen to 1.7.6.1
Kevin Crowe <Kevin.Crowe@oracle.com>
parents: 609
diff changeset
    43
7772
a5abee83989d 25674598 Update doxygen to version 1.8.13
Rich Burridge <rich.burridge@oracle.com>
parents: 7687
diff changeset
    44
TPNO=			34098
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1394
diff changeset
    45
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5665
diff changeset
    46
BUILD_STYLE= cmake
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5665
diff changeset
    47
SYSTEM_TEST_TARGET= $(SYSTEM_TEST_64)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5665
diff changeset
    48
include $(WS_MAKE_RULES)/common.mk
3902
e9e957d48b8f 20633750 Adjust Userland doxygen build to use the GNU compilers
Rich Burridge <rich.burridge@oracle.com>
parents: 3883
diff changeset
    49
1394
5f86498eee95 16991973 some things ain't parfait'n
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 1361
diff changeset
    50
ifeq   ($(strip $(PARFAIT_BUILD)),yes)
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5665
diff changeset
    51
PATH=$(PARFAIT_TOOLS):$(GCC_ROOT)/bin:$(USRBINDIR)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5665
diff changeset
    52
else
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5665
diff changeset
    53
# Necessary to find the right gcc during build
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5665
diff changeset
    54
PATH=$(GCC_ROOT)/bin:$(USRBINDIR)
1394
5f86498eee95 16991973 some things ain't parfait'n
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 1361
diff changeset
    55
endif
5f86498eee95 16991973 some things ain't parfait'n
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 1361
diff changeset
    56
195
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    57
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    58
# Missing files in build dir for configure without this.
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    59
COMPONENT_PRE_CONFIGURE_ACTION =	($(CLONEY) $(SOURCE_DIR) $(@D))
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    60
5125
34cc580c62c2 21029732 PKG_CONFIG_PATH should be included in CONFIGURE_ENV and BUILD_ENV
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4737
diff changeset
    61
CONFIGURE_OPTIONS +=	--platform solaris-g++
34cc580c62c2 21029732 PKG_CONFIG_PATH should be included in CONFIGURE_ENV and BUILD_ENV
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4737
diff changeset
    62
CONFIGURE_OPTIONS +=	--enable-langs=am,ar,br,ca,cn,cz,de,dk,en,eo,es,fa,fi,fr,gr,hr,hu,id,it,je,jp,ke,kr,lt,lv,mk,nl,no,pl,pt,ro,ru,sc,si,sk,sr,sv,tr,tw,ua,vi,za
195
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    63
2022
d590db614c66 PSARC 2014/156 doxygen version 1.8.7
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    64
# Tests not available from the top-level Makefile, nor via a standard target.
d590db614c66 PSARC 2014/156 doxygen version 1.8.7
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    65
# We need to add /usr/gnu/bin to the front of the PATH environment variable
d590db614c66 PSARC 2014/156 doxygen version 1.8.7
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    66
# for "diff -u" and we need to use our latest doxygen binary, not the one
d590db614c66 PSARC 2014/156 doxygen version 1.8.7
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    67
# installed on the system.
1361
01948c44fa6a 16863987 64-bit doxygen + studio 12.3 + aslr = boom
Brian Cameron <brian.cameron@oracle.com>
parents: 1303
diff changeset
    68
#
2022
d590db614c66 PSARC 2014/156 doxygen version 1.8.7
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    69
# Test 12 is a known failure (we don't have bibtex in Solaris).
d590db614c66 PSARC 2014/156 doxygen version 1.8.7
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    70
COMPONENT_TEST_ENV =		PATH="$(GNUBIN):$(PROTO_DIR)/usr/bin:$(PATH)"
d590db614c66 PSARC 2014/156 doxygen version 1.8.7
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    71
COMPONENT_TEST_DIR =		$(BUILD_DIR_64)/testing
d590db614c66 PSARC 2014/156 doxygen version 1.8.7
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    72
COMPONENT_TEST_TARGETS =	tests
d590db614c66 PSARC 2014/156 doxygen version 1.8.7
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    73
7772
a5abee83989d 25674598 Update doxygen to version 1.8.13
Rich Burridge <rich.burridge@oracle.com>
parents: 7687
diff changeset
    74
# Results differ between x86 and SPARC.
a5abee83989d 25674598 Update doxygen to version 1.8.13
Rich Burridge <rich.burridge@oracle.com>
parents: 7687
diff changeset
    75
COMPONENT_TEST_MASTER = \
a5abee83989d 25674598 Update doxygen to version 1.8.13
Rich Burridge <rich.burridge@oracle.com>
parents: 7687
diff changeset
    76
	$(COMPONENT_TEST_RESULTS_DIR)/results-$(BITS).$(MACH).master
a5abee83989d 25674598 Update doxygen to version 1.8.13
Rich Burridge <rich.burridge@oracle.com>
parents: 7687
diff changeset
    77
3643
1a4ba329c762 20371999 More Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 2225
diff changeset
    78
# The additional doxygen specific set of transforms to be applied to the
1a4ba329c762 20371999 More Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 2225
diff changeset
    79
# test results to try to normalize them.
1a4ba329c762 20371999 More Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 2225
diff changeset
    80
COMPONENT_TEST_TRANSFORMS += \
5665
8f68cd0d0916 22965601 Update doxygen to version 1.8.11
Rich Burridge <rich.burridge@oracle.com>
parents: 5125
diff changeset
    81
	'-e "/^Scanning dependencies$$/d" ' \
3643
1a4ba329c762 20371999 More Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 2225
diff changeset
    82
        '-e "s|\(error opening bib\).*|\1|" ' \
1a4ba329c762 20371999 More Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 2225
diff changeset
    83
        '-e "s|\(test_output_012/indexpage.xml\).*|\1|" ' \
4737
844cca6e99f3 21549702 Yet more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    84
        '-e "s|\(012/indexpage.xml\).*|\1|" ' \
844cca6e99f3 21549702 Yet more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    85
	'-e "s|^\$$(@D)/|\.\.\./|g" ' \
844cca6e99f3 21549702 Yet more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    86
	'-e "s|^\$$(SOURCE_DIR)/|\.\.\./|g" ' \
844cca6e99f3 21549702 Yet more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    87
	'-e "s|^make.*: Leaving directory.*$$|XXX_CC_XXX|g" ' \
844cca6e99f3 21549702 Yet more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    88
	'-e "s|^make.*: Entering directory.*$$|XXX_CC_XXX|g" ' \
844cca6e99f3 21549702 Yet more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    89
	'-e "s|^make\[1\].*$$|XXX_CC_XXX|g" ' \
844cca6e99f3 21549702 Yet more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    90
	'-e "/^XXX_CC_XXX$$/d" '
844cca6e99f3 21549702 Yet more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    91
844cca6e99f3 21549702 Yet more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    92
COMPONENT_SYSTEM_TEST_ENV =	PATH="$(GNUBIN):$(PATH)"
844cca6e99f3 21549702 Yet more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    93
COMPONENT_SYSTEM_TEST_DIR =	$(SOURCE_DIR)/testing
844cca6e99f3 21549702 Yet more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    94
COMPONENT_SYSTEM_TEST_CMD =	perl
844cca6e99f3 21549702 Yet more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    95
COMPONENT_SYSTEM_TEST_ARGS =	runtests.pl --doxygen /usr/bin/doxygen
844cca6e99f3 21549702 Yet more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    96
COMPONENT_SYSTEM_TEST_TARGETS =
3643
1a4ba329c762 20371999 More Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 2225
diff changeset
    97
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5665
diff changeset
    98
COMPONENT_POST_INSTALL_ACTION += \
3883
1b46079cc49a 20555212 doxygen should be updated to version 1.8.9
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    99
	cd $(PROTO_DIR) ; $(UNPACK) ../../../$(COMPONENT_ARCHIVE_1)
195
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
   100
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3643
diff changeset
   101
REQUIRED_PACKAGES += developer/lexer/flex
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3643
diff changeset
   102
REQUIRED_PACKAGES += developer/parser/bison
3902
e9e957d48b8f 20633750 Adjust Userland doxygen build to use the GNU compilers
Rich Burridge <rich.burridge@oracle.com>
parents: 3883
diff changeset
   103
REQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
e9e957d48b8f 20633750 Adjust Userland doxygen build to use the GNU compilers
Rich Burridge <rich.burridge@oracle.com>
parents: 3883
diff changeset
   104
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3643
diff changeset
   105
REQUIRED_PACKAGES += system/library/math