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.
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.
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]
23 # Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved.
24 # Copyright 2017, Aurelien Larcher.
25 # Copyright 2021, Andreas Wacknitz
28 include ..
/..
/..
/make-rules
/shared-macros.mk
30 COMPONENT_NAME
= gnuplot
31 COMPONENT_VERSION
= 6.0.1
32 COMPONENT_SUMMARY
= gnuplot
- plotting utility
33 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
34 COMPONENT_PROJECT_URL
= http
://www.gnuplot.
info/
35 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
36 COMPONENT_ARCHIVE_HASH
= sha256
:e85a660c1a2a1808ff24f7e69981ffcbac66a45c9dcf711b65610b26ea71379a
37 COMPONENT_ARCHIVE_URL
= https
://sourceforge.net
/projects
/$(COMPONENT_NAME
)/files
/$(COMPONENT_NAME
)/$(COMPONENT_VERSION
)/$(COMPONENT_ARCHIVE
)/download
38 COMPONENT_FMRI
= image
/gnuplot
39 COMPONENT_CLASSIFICATION
= Applications
/Graphics and Imaging
40 COMPONENT_LICENSE
= gnuplot License
42 COMPONENT_BUILD_TARGETS
= all info
44 include $(WS_MAKE_RULES
)/common.mk
46 COMPONENT_PREP_ACTION
= (cd
$(@D
) && autoreconf
-fi
)
48 CPPFLAGS
+= -I
/usr
/include/gd2
50 CONFIGURE_ENV
+= CPPFLAGS
="$(CPPFLAGS)"
52 PATH
= $(PATH.gnu
):$(QT5_BINDIR
)
53 PKG_CONFIG_PATH
=$(PKG_CONFIG_PATH.
$(BITS
)):$(QT5_PKG_CONFIG_PATH
)
54 LD_OPTIONS
+= -L
$(QT5_LIBDIR
) -R
$(QT5_LIBDIR
)
56 #CONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_LIBDIR.64)
57 CONFIGURE_OPTIONS
+= --sysconfdir
=$(ETCDIR
)/gnu
58 CONFIGURE_OPTIONS
+= --infodir=$(CONFIGURE_INFODIR
)
59 CONFIGURE_OPTIONS
+= --x-libraries
=$(CONFIGURE_LIBDIR
.64)
60 CONFIGURE_OPTIONS
+= --without-libcerf
61 CONFIGURE_OPTIONS
+= --with-qt
=qt5
62 CONFIGURE_OPTIONS
+= --enable-year2038
63 CONFIGURE_OPTIONS
+= CFLAGS
="$(CFLAGS)"
64 CONFIGURE_OPTIONS
+= CXXFLAGS
="$(CXXFLAGS)"
66 # We want to deploy the demo files
67 DEMOSOURCES
= $(SOURCE_DIR
)/demo
68 DEMODEST
= $(PROTO_DIR
)/usr
/demo
/gnuplot
70 COMPONENT_POST_INSTALL_ACTION
+= \
71 $(MKDIR
) $(DEMODEST
) && \
72 $(CP
) -Rp
$(DEMOSOURCES
)/* $(DEMODEST
)/
74 # Manually added dependencies
75 REQUIRED_PACKAGES
+= editor
/gnu-emacs
76 TEST_REQUIRED_PACKAGES
+= system
/font
/truetype
/liberation
78 # Auto-generated dependencies
79 REQUIRED_PACKAGES
+= $(GCC_RUNTIME_PKG
)
80 REQUIRED_PACKAGES
+= $(GXX_RUNTIME_PKG
)
81 REQUIRED_PACKAGES
+= $(READLINE_PKG
)
82 REQUIRED_PACKAGES
+= library
/desktop
/cairo
83 REQUIRED_PACKAGES
+= library
/desktop
/gtk2
84 REQUIRED_PACKAGES
+= library
/desktop
/pango
85 REQUIRED_PACKAGES
+= library
/gd
86 REQUIRED_PACKAGES
+= library
/glib2
87 REQUIRED_PACKAGES
+= library
/graphics
/wxwidgets-3
88 REQUIRED_PACKAGES
+= library
/libwebp
89 REQUIRED_PACKAGES
+= library
/qt5
90 REQUIRED_PACKAGES
+= runtime
/lua
91 REQUIRED_PACKAGES
+= system
/library
92 REQUIRED_PACKAGES
+= system
/library
/math
93 REQUIRED_PACKAGES
+= x11
/library
/libx11