3960N/A#
3960N/A# CDDL HEADER START
3960N/A#
3960N/A# The contents of this file are subject to the terms of the
3960N/A# Common Development and Distribution License (the "License").
3960N/A# You may not use this file except in compliance with the License.
3960N/A#
3960N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
3960N/A# or http://www.opensolaris.org/os/licensing.
3960N/A# See the License for the specific language governing permissions
3960N/A# and limitations under the License.
3960N/A#
3960N/A# When distributing Covered Code, include this CDDL HEADER in each
3960N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
3960N/A# If applicable, add the following below this CDDL HEADER, with the
3960N/A# fields enclosed by brackets "[]" replaced with your own identifying
3960N/A# information: Portions Copyright [yyyy] [name of copyright owner]
3960N/A#
3960N/A# CDDL HEADER END
3960N/A#
3960N/A
3960N/A#
5636N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3960N/A#
5680N/ABUILD_BITS= 64_and_32
3960N/Ainclude ../../make-rules/shared-macros.mk
3960N/A
3960N/ACOMPONENT_NAME= rrdtool
6431N/ACOMPONENT_VERSION= 1.6.0
6431N/ACOMPONENT_ARCHIVE_HASH= sha256:cd948e89cd2d8825fab4a6fb0323f810948d934af7d92c9ee8b5e9e1350e52d7
3960N/ACOMPONENT_ARCHIVE_URL= http://oss.oetiker.ch/rrdtool/pub/$(COMPONENT_ARCHIVE)
3960N/ACOMPONENT_PROJECT_URL= http://oss.oetiker.ch/rrdtool/
6431N/ATPNO= 29102
3960N/A
4603N/APYTHON_VERSION= 2.7
4603N/APYTHON_VERSIONS= 2.7
4603N/A
5680N/ATEST_TARGET= $(NO_TESTS)
6687N/A
6687N/A# Depends on newer cairo, which cannot be updated in S11.
6687N/Ainclude $(WS_MAKE_RULES)/no-evaluation.mk
6687N/A
6687N/Ainclude $(WS_MAKE_RULES)/common.mk
3960N/A
5680N/APATH=$(dir $(CC)):$(USRBINDIR):$(USRSBINDIR):$(GNUBIN)
3960N/A
3960N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
3960N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
3960N/A
3960N/ACOMPONENT_PREP_ACTION = ( cd $(@D); autoconf -f)
5680N/APERLVERDIR= $(USRDIR)/perl5/$(PERL_VERSION)
5680N/APERLBINDIR= $(PERLVERDIR)/bin
5680N/APERLLIBDIR= $(PERLVERDIR)/lib
3960N/A
4603N/ACONFIGURE_OPTIONS += --enable-python
3960N/ACONFIGURE_OPTIONS += --disable-ruby
3960N/ACONFIGURE_OPTIONS += --enable-tcl
5680N/ACONFIGURE_OPTIONS += --disable-static
3960N/ACONFIGURE_OPTIONS += CC="$(CC) $(CC_BITS)"
5680N/ACONFIGURE_OPTIONS += POD2MAN=$(PERLBINDIR)/pod2man
5680N/ACONFIGURE_OPTIONS += POD2HTML=$(PERLBINDIR)/pod2html
5636N/ACONFIGURE_OPTIONS += am_cv_python_pythondir=$(PYTHON_VENDOR_PACKAGES)
5636N/ACONFIGURE_OPTIONS += am_cv_python_pyexecdir=$(PYTHON_VENDOR_PACKAGES)
4603N/ACONFIGURE_OPTIONS += PYTHON=$(PYTHON.$(PYTHON_VERSION).$(BITS))
3960N/A
5680N/ACONFIGURE_OPTIONS.32 += --disable-perl
5680N/ACONFIGURE_OPTIONS.64 += --enable-perl
5680N/ACONFIGURE_OPTIONS.64 += LUARRDLIBDIR=64
5680N/ACONFIGURE_OPTIONS.64 += PERL=$(PERLBINDIR)/perl
5680N/ACONFIGURE_OPTIONS.64 += PERLCC="\"$(CC) $(CC_BITS)\""
5680N/ACONFIGURE_OPTIONS.64 += PERLCCFLAGS="\"$(CFLAGS)\""
5680N/ACONFIGURE_OPTIONS.64 += PERLLD="\"$(CC) $(CC_BITS)\""
5680N/ACONFIGURE_OPTIONS.64 += PERLLIB=$(PERLLIBDIR)
5680N/ACONFIGURE_OPTIONS.64 += PERLINSTALLMAN3DIR=$(USRSHAREMAN3DIR)
5680N/ACONFIGURE_OPTIONS.64 += PERLINSTALLSITEMAN3DIR=$(USRSHAREMAN3DIR)
5680N/ACONFIGURE_OPTIONS.64 += PERLINSTALLVENDORMAN3DIR=$(USRSHAREMAN3DIR)
3960N/A
4603N/APYTHON_ENV = CC="$(CC)"
4603N/APYTHON_ENV += CFLAGS="$(CFLAGS)"
4603N/ACOMPONENT_BUILD_ENV += $(PYTHON_ENV)
4603N/ACOMPONENT_INSTALL_ENV += $(PYTHON_ENV)
4603N/A
4603N/APKG_MACROS += PYVER=$(PYTHON_VERSION)
4603N/APKG_MACROS += PYV=$(shell echo $(PYTHON_VERSION) | tr -d .)
4603N/A
3960N/AREQUIRED_PACKAGES += image/library/libpng
3960N/AREQUIRED_PACKAGES += library/desktop/cairo
3960N/AREQUIRED_PACKAGES += library/desktop/pango
3960N/AREQUIRED_PACKAGES += library/glib2
3960N/AREQUIRED_PACKAGES += library/libxml2
3960N/AREQUIRED_PACKAGES += runtime/lua
3960N/AREQUIRED_PACKAGES += system/library/math
4603N/AREQUIRED_PACKAGES += runtime/python-27