Andreas Wacknitz
2024-03-29 3296e902f426b9e786e53827839e07edca40a5c9
commit | author | age
f7e71f 1 #
DD 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 #
cf4b61 23 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
bc9540 24 # Copyright 2023 Friedrich Kink
f7e71f 25 #
DD 26
d770ec 27 USE_PARALLEL_BUILD= yes
02b2f2 28 include ../../../make-rules/shared-macros.mk
f7e71f 29
d3eb36 30 COMPONENT_NAME=            graphviz
d770ec 31 COMPONENT_VERSION=        10.0.1
3296e9 32 COMPONENT_REVISION=        1
d3eb36 33 COMPONENT_DESCRIPTION=    The Graphviz layout programs take descriptions of graphs in a \
bc9540 34             simple text language, and make diagrams in useful formats, such as images and SVG \
F 35             for web pages, PDF or PostScript for inclusion in other documents; or display in an \
36             interactive graph browser.  Graphviz has many useful features for concrete diagrams, \
37             such as options for colors, fonts, tabular node layouts, line styles, hyperlinks, \
38             and custom shapes.
d3eb36 39 COMPONENT_SUMMARY=        Graph visualization software
AW 40 COMPONENT_PROJECT_URL=    https://www.graphviz.org/
41 COMPONENT_SRC=            $(COMPONENT_NAME)-$(COMPONENT_VERSION)
42 COMPONENT_ARCHIVE=        $(COMPONENT_SRC).tar.xz
d770ec 43 COMPONENT_ARCHIVE_HASH= sha256:7bd8064a94bc178862aa0fbb0ed2236f49c188b2fd656487247c58db3019fe21
AW 44 COMPONENT_ARCHIVE_URL=    https://gitlab.com/api/v4/projects/4207231/packages/generic/graphviz-releases/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
d3eb36 45 COMPONENT_FMRI=            image/graphviz
AW 46 COMPONENT_CLASSIFICATION=    Applications/System Utilities
47 COMPONENT_LICENSE=        EPL1.0
48 COMPONENT_LICENSE_FILE=    COPYING
f7e71f 49
777cce 50 # no usable tests available
AW 51 TEST_TARGET= $(NO_TESTS)
43ab92 52 include $(WS_MAKE_RULES)/common.mk
f7e71f 53
777cce 54 RUBY_VERSION= 3.2
AW 55 RUBY= /usr/bin/ruby32
72eca8 56
777cce 57 COMPONENT_PREP_ACTION= ( \
AW 58     cd $(@D) && libtoolize -cf && \
59     aclocal && \
60     autoconf -f -I m4 && \
61     autoheader && \
62     automake --add-missing)
524c98 63
43ab92 64 # configure
d770ec 65 CONFIGURE_ENV += LIBPOSTFIX="/$(MACH64)"
43ab92 66 # --with-javaincludedir allows for only one directory and we need two
d770ec 67 CONFIGURE_ENV += JAVA_INCLUDES="-I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/solaris"
AW 68 CONFIGURE_ENV += PERL=$(PERL)
69 CONFIGURE_ENV += PYTHON=$(PYTHON)
70 CONFIGURE_ENV += RUBY=$(RUBY)
71 CONFIGURE_ENV += RUBY_VER=$(RUBY_VERSION)
777cce 72
d770ec 73 CONFIGURE_OPTIONS += --disable-dependency-tracking
AW 74 CONFIGURE_OPTIONS += --disable-man-pdfs
75 CONFIGURE_OPTIONS += --disable-sharp
76 #CONFIGURE_OPTIONS += --disable-go
77 CONFIGURE_OPTIONS += --disable-ocaml
78 CONFIGURE_OPTIONS += --enable-php
79 CONFIGURE_OPTIONS += --disable-python
80 CONFIGURE_OPTIONS += --enable-python3
81 CONFIGURE_OPTIONS += --disable-r
82 CONFIGURE_OPTIONS += --enable-lefty
83 CONFIGURE_OPTIONS += --without-included-ltdl
84 CONFIGURE_OPTIONS += --without-devil
85 CONFIGURE_OPTIONS += --without-visio
86 CONFIGURE_OPTIONS += --without-lasi
87 CONFIGURE_OPTIONS += --without-gtkgl
88 CONFIGURE_OPTIONS += --without-gtkglext
89 CONFIGURE_OPTIONS += --without-ann
90 CONFIGURE_OPTIONS += --without-qt
91 CONFIGURE_OPTIONS += --without-smyrna
f7e71f 92
43ab92 93 # fix java, lua, ocaml, python, ruby man pages
MT 94 COMPONENT_POST_INSTALL_ACTION += \
95     cd $(PROTOUSRSHAREMAN3DIR) ; \
f95c8c 96     for e in java lua ocaml python ruby guile go php perl; do \
43ab92 97         for f in *.3$$e ; do \
MT 98             $(MV) $$f $${f%.3$$e}-$$e.3 ; \
99         done ; \
100     done ;
765543 101
43ab92 102 # fix tcl man pages
MT 103 COMPONENT_POST_INSTALL_ACTION += \
104     cd $(PROTOUSRSHAREMAN3DIR) ; \
105     $(RM) -r ../man3tcl ; \
106     $(MKDIR) ../man3tcl ; \
107     for f in *.3tcl ; do \
108         $(MV) $$f ../man3tcl ; \
109         $(SYMLINK) ../man3tcl/$$f $${f%.3tcl}-tcl.3 ; \
110     done ;
765543 111
43ab92 112 # python vendor-packages
MT 113 COMPONENT_POST_INSTALL_ACTION += \
114     cd $(PROTOUSRLIBDIR)/python$(PYTHON_VERSION) ; \
115     $(RM) -r vendor-packages ; \
116     $(MV) site-packages vendor-packages ;
f7e71f 117
43ab92 118 # various build dependencies not detected automatically
b1995b 119 REQUIRED_PACKAGES += runtime/java/openjdk17
4c7d46 120 #REQUIRED_PACKAGES += runtime/ocaml
43ab92 121 REQUIRED_PACKAGES += runtime/tcl-8
d770ec 122 REQUIRED_PACKAGES += web/php-82
b1995b 123 REQUIRED_PACKAGES += developer/golang
f7e71f 124
0f1810 125 # Auto-generated dependencies
bc9540 126 PERL_REQUIRED_PACKAGES += runtime/perl
43ab92 127 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
MT 128 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
72eca8 129 REQUIRED_PACKAGES += image/library/librsvg
AP 130 REQUIRED_PACKAGES += library/desktop/cairo
131 REQUIRED_PACKAGES += library/desktop/gdk-pixbuf
132 REQUIRED_PACKAGES += library/desktop/gtk2
133 REQUIRED_PACKAGES += library/desktop/pango
134 REQUIRED_PACKAGES += library/expat
135 REQUIRED_PACKAGES += library/gd
136 REQUIRED_PACKAGES += library/glib2
4c7d46 137 REQUIRED_PACKAGES += library/guile
72eca8 138 REQUIRED_PACKAGES += library/libpoppler
AP 139 REQUIRED_PACKAGES += library/libtool/libltdl
43ab92 140 REQUIRED_PACKAGES += library/libwebp
72eca8 141 REQUIRED_PACKAGES += library/math/gts
AP 142 REQUIRED_PACKAGES += library/zlib
143 REQUIRED_PACKAGES += print/filter/ghostscript
0f1810 144 REQUIRED_PACKAGES += runtime/lua
4c7d46 145 REQUIRED_PACKAGES += runtime/ruby-32
43ab92 146 REQUIRED_PACKAGES += shell/ksh93
72eca8 147 REQUIRED_PACKAGES += system/library
AP 148 REQUIRED_PACKAGES += system/library/math
149 REQUIRED_PACKAGES += x11/library/libx11