Marcel Telka
2024-04-08 5d8bcb58722b250c296fc0324f9d06470fb3d7d0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2020, 2021, Andreas Wacknitz
#
 
BUILD_STYLE= cmake
USE_DEFAULT_TEST_TRANSFORMS= yes
include ../../../make-rules/shared-macros.mk
 
COMPONENT_NAME=            doxygen
COMPONENT_VERSION=        1.10.0
COMPONENT_VERSION_=        $(subst .,_,$(COMPONENT_VERSION))
COMPONENT_SUMMARY=        Doxygen - Source Code Documentation Tool 
COMPONENT_PROJECT_URL=    https://www.doxygen.nl
COMPONENT_FILE=            Release_$(COMPONENT_VERSION_)
COMPONENT_SRC=            $(COMPONENT_NAME)-$(COMPONENT_FILE)
COMPONENT_ARCHIVE=        $(COMPONENT_SRC).src.tar.gz
COMPONENT_ARCHIVE_HASH=    sha256:795692a53136ca9bb9a6cd72656968af7858a78be7d6d011e12ab1dce6b9533c
COMPONENT_ARCHIVE_URL=    https://github.com/doxygen/doxygen/archive/$(COMPONENT_FILE).tar.gz
COMPONENT_FMRI=            developer/documentation-tool/doxygen        
COMPONENT_CLASSIFICATION= Development/Distribution Tools
COMPONENT_LICENSE=        GPLv2
COMPONENT_LICENSE_FILE=    LICENSE
 
# Download the manual so that we don't have to keep updating it in the gate.
COMPONENT_ARCHIVE_1=    $(COMPONENT_NAME)_manual-$(COMPONENT_VERSION).pdf.zip
COMPONENT_ARCHIVE_HASH_1=    sha256:3c8ec42b37e5ff8b723fef4e9b1946721f5d71a3aa39f55369ba28f88ab75e63
COMPONENT_ARCHIVE_URL_1=    https://doxygen.nl/files/$(COMPONENT_ARCHIVE_1)
 
include $(WS_MAKE_RULES)/common.mk
 
PATH= $(PATH.gnu)
 
# Missing files in build dir for configure without this.
COMPONENT_PRE_CONFIGURE_ACTION= ($(CLONEY) $(SOURCE_DIR) $(@D))
 
CMAKE_OPTIONS += -G "Unix Makefiles"
CMAKE_OPTIONS += -DCMAKE_BUILD_TYPE=Release
 
ASLR_MODE= $(ASLR_ENABLE)
 
# Test 12 is a known failure (we don't have bibtex in Solaris).
COMPONENT_TEST_ENV=        PATH="$(PROTO_DIR)/usr/bin:$(PATH)"
COMPONENT_TEST_DIR=        $(BUILD_DIR_64)/testing
COMPONENT_TEST_TARGETS=    tests
 
# common targets
install:    $(INSTALL_64)
    $(UNPACK) $(USERLAND_ARCHIVES)$(COMPONENT_ARCHIVE_1) 
    [ -f $(PROTO_DIR)/doxygen_manual-$(IPS_COMPONENT_VERSION).pdf ] || \
      $(MV) doxygen_manual-$(IPS_COMPONENT_VERSION).pdf $(PROTO_DIR)
    $(INSTALL) -d $(PROTOUSRSHAREMAN1DIR)
    $(INSTALL) -vm644 $(SOURCE_DIR)/doc/*.1 $(PROTOUSRSHAREMAN1DIR)
 
# Build dependencies
REQUIRED_PACKAGES+= developer/lexer/flex
 
# Auto-generated dependencies
REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/library/math