components/doxygen/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Wed, 04 Mar 2015 07:09:31 -0800
changeset 3902 e9e957d48b8f
parent 3883 1b46079cc49a
child 3904 7dda4f1294c8
permissions -rw-r--r--
20633750 Adjust Userland doxygen build to use 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
#
3643
1a4ba329c762 20371999 More Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 2225
diff changeset
    21
# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
195
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    22
#
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    23
include ../../make-rules/shared-macros.mk
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    24
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    25
COMPONENT_NAME=		doxygen
3883
1b46079cc49a 20555212 doxygen should be updated to version 1.8.9
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    26
COMPONENT_VERSION=	1.8.9
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
    27
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
    28
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    29
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
    30
COMPONENT_ARCHIVE_HASH=	\
3883
1b46079cc49a 20555212 doxygen should be updated to version 1.8.9
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    31
    sha256:f0dd662fb98c394c20deed5b00b29d73d9bee8ea1a52f7a687dd9b70f5444fc6
195
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE_URL=	http://ftp.stack.nl/pub/users/dimitri/$(COMPONENT_ARCHIVE)
1058
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 800
diff changeset
    33
COMPONENT_BUGDB=	utility/doxygen
195
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    34
746
67d8050c297a 7135985 Upgrade Doxygen to 1.7.6.1
Kevin Crowe <Kevin.Crowe@oracle.com>
parents: 609
diff changeset
    35
# 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
    36
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
    37
COMPONENT_ARCHIVE_HASH_1 =	\
3883
1b46079cc49a 20555212 doxygen should be updated to version 1.8.9
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    38
    sha256:33b12961db131c5cfea1b3d045a38b8f222bdd07bb04d1cd60f791ee86949b70
746
67d8050c297a 7135985 Upgrade Doxygen to 1.7.6.1
Kevin Crowe <Kevin.Crowe@oracle.com>
parents: 609
diff changeset
    39
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
    40
3883
1b46079cc49a 20555212 doxygen should be updated to version 1.8.9
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    41
TPNO=			21549
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1394
diff changeset
    42
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3643
diff changeset
    43
include $(WS_MAKE_RULES)/prep.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3643
diff changeset
    44
include $(WS_MAKE_RULES)/configure.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3643
diff changeset
    45
include $(WS_MAKE_RULES)/ips.mk
195
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    46
3902
e9e957d48b8f 20633750 Adjust Userland doxygen build to use the GNU compilers
Rich Burridge <rich.burridge@oracle.com>
parents: 3883
diff changeset
    47
COMPILER =		gcc
e9e957d48b8f 20633750 Adjust Userland doxygen build to use the GNU compilers
Rich Burridge <rich.burridge@oracle.com>
parents: 3883
diff changeset
    48
1394
5f86498eee95 16991973 some things ain't parfait'n
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 1361
diff changeset
    49
ifeq   ($(strip $(PARFAIT_BUILD)),yes)
3902
e9e957d48b8f 20633750 Adjust Userland doxygen build to use the GNU compilers
Rich Burridge <rich.burridge@oracle.com>
parents: 3883
diff changeset
    50
PATH=$(PARFAIT_TOOLS):$(GCC_ROOT)/bin:/usr/bin
1394
5f86498eee95 16991973 some things ain't parfait'n
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 1361
diff changeset
    51
endif
5f86498eee95 16991973 some things ain't parfait'n
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 1361
diff changeset
    52
195
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    53
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    54
# Missing files in build dir for configure without this.
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    55
COMPONENT_PRE_CONFIGURE_ACTION =	($(CLONEY) $(SOURCE_DIR) $(@D))
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    56
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    57
# Need to override default options since configure doesn't
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    58
# understand CC, CXX, etc.
3902
e9e957d48b8f 20633750 Adjust Userland doxygen build to use the GNU compilers
Rich Burridge <rich.burridge@oracle.com>
parents: 3883
diff changeset
    59
CONFIGURE_OPTIONS =	--platform solaris-g++
195
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    60
CONFIGURE_OPTIONS +=	--prefix /usr
2022
d590db614c66 PSARC 2014/156 doxygen version 1.8.7
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    61
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
    62
2022
d590db614c66 PSARC 2014/156 doxygen version 1.8.7
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    63
# 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
    64
# 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
    65
# 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
    66
# 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
    67
#
2022
d590db614c66 PSARC 2014/156 doxygen version 1.8.7
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    68
# 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
    69
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
    70
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
    71
COMPONENT_TEST_TARGETS =	tests
d590db614c66 PSARC 2014/156 doxygen version 1.8.7
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    72
3643
1a4ba329c762 20371999 More Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 2225
diff changeset
    73
# 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
    74
# 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
    75
COMPONENT_TEST_TRANSFORMS += \
1a4ba329c762 20371999 More Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 2225
diff changeset
    76
        '-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
    77
        '-e "s|\(test_output_012/indexpage.xml\).*|\1|" ' \
1a4ba329c762 20371999 More Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 2225
diff changeset
    78
        '-e "s|\(012/indexpage.xml\).*|\1|" '
1a4ba329c762 20371999 More Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 2225
diff changeset
    79
2022
d590db614c66 PSARC 2014/156 doxygen version 1.8.7
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    80
ASLR_MODE = $(ASLR_ENABLE)
1303
79b691ffbda3 16734056 Make antlr ASLR enabled
Brian Cameron <brian.cameron@oracle.com>
parents: 1058
diff changeset
    81
2225
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 2022
diff changeset
    82
configure:	$(CONFIGURE_64)
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 2022
diff changeset
    83
1303
79b691ffbda3 16734056 Make antlr ASLR enabled
Brian Cameron <brian.cameron@oracle.com>
parents: 1058
diff changeset
    84
build:		$(BUILD_64)
195
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    85
1303
79b691ffbda3 16734056 Make antlr ASLR enabled
Brian Cameron <brian.cameron@oracle.com>
parents: 1058
diff changeset
    86
install:	$(INSTALL_64)
3883
1b46079cc49a 20555212 doxygen should be updated to version 1.8.9
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    87
	cd $(PROTO_DIR) ; $(UNPACK) ../../../$(COMPONENT_ARCHIVE_1)
195
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    88
2022
d590db614c66 PSARC 2014/156 doxygen version 1.8.7
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    89
test:		$(TEST_64)
195
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    90
62e9499728a6 7036315 migrate doxygen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    91
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3643
diff changeset
    92
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
    93
REQUIRED_PACKAGES += developer/parser/bison
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3643
diff changeset
    94
REQUIRED_PACKAGES += system/library
3902
e9e957d48b8f 20633750 Adjust Userland doxygen build to use the GNU compilers
Rich Burridge <rich.burridge@oracle.com>
parents: 3883
diff changeset
    95
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
    96
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
    97
REQUIRED_PACKAGES += system/library/math