Makefile revision 5636
2N/A#
2N/A# CDDL HEADER START
2N/A#
2N/A# The contents of this file are subject to the terms of the
2N/A# Common Development and Distribution License (the "License").
2N/A# You may not use this file except in compliance with the License.
2N/A#
2N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A# or http://www.opensolaris.org/os/licensing.
2N/A# See the License for the specific language governing permissions
2N/A# and limitations under the License.
2N/A#
2N/A# When distributing Covered Code, include this CDDL HEADER in each
2N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A# If applicable, add the following below this CDDL HEADER, with the
2N/A# fields enclosed by brackets "[]" replaced with your own identifying
2N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2N/A#
2N/A# CDDL HEADER END
2N/A#
2N/A
2N/A#
2N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
2N/A#
2N/A
2N/Ainclude ../../make-rules/shared-macros.mk
2N/A
2N/ACOMPONENT_NAME= rrdtool
2N/ACOMPONENT_VERSION= 1.4.9
2N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
2N/ACOMPONENT_ARCHIVE_HASH= sha256:3e2826e0d60aaf85313da35b3c0d3a926748fe482b4ada766a325a83b60125cc
2N/ACOMPONENT_ARCHIVE_URL= http://oss.oetiker.ch/rrdtool/pub/$(COMPONENT_ARCHIVE)
2N/ACOMPONENT_PROJECT_URL= http://oss.oetiker.ch/rrdtool/
2N/ACOMPONENT_BUGDB= utility/rrdtool
2N/ATPNO= 21430
2N/A
2N/APYTHON_VERSION= 2.7
2N/APYTHON_VERSIONS= 2.7
2N/A
2N/Ainclude ../../make-rules/prep.mk
2N/Ainclude ../../make-rules/configure.mk
2N/Ainclude ../../make-rules/ips.mk
2N/A
2N/APATH=$(dir $(CC)):/usr/bin:/usr/sbin:/usr/gnu/bin
2N/A
2N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
2N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
2N/A
2N/ACOMPONENT_PREP_ACTION = ( cd $(@D); autoconf -f)
2N/A
2N/ACONFIGURE_OPTIONS += --enable-python
2N/ACONFIGURE_OPTIONS += --disable-ruby
2N/ACONFIGURE_OPTIONS += --enable-tcl
2N/ACONFIGURE_OPTIONS += --enable-static=no
2N/ACONFIGURE_OPTIONS += CC="$(CC) $(CC_BITS)"
2N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
2N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
2N/ACONFIGURE_OPTIONS += POD2MAN=/usr/perl5/$(PERL_VERSION)/bin/pod2man
2N/ACONFIGURE_OPTIONS += POD2HTML=/usr/perl5/$(PERL_VERSION)/bin/pod2html
2N/ACONFIGURE_OPTIONS += am_cv_python_pythondir=$(PYTHON_VENDOR_PACKAGES)
2N/ACONFIGURE_OPTIONS += am_cv_python_pyexecdir=$(PYTHON_VENDOR_PACKAGES)
2N/ACONFIGURE_OPTIONS += PYTHON=$(PYTHON.$(PYTHON_VERSION).$(BITS))
$(CONFIGURE_64): CONFIGURE_OPTIONS += LUARRDLIBDIR=64
$(CONFIGURE_32): CONFIGURE_OPTIONS += --disable-perl
$(CONFIGURE_64): CONFIGURE_OPTIONS += --enable-perl
$(CONFIGURE_64): CONFIGURE_OPTIONS += PERL=$(PERL)
$(CONFIGURE_64): CONFIGURE_OPTIONS += PERLCC="\"$(CC) $(CC_BITS)\""
$(CONFIGURE_64): CONFIGURE_OPTIONS += PERLCCFLAGS="\"$(CFLAGS)\""
$(CONFIGURE_64): CONFIGURE_OPTIONS += PERLLD="\"$(CC) $(CC_BITS)\""
$(CONFIGURE_64): CONFIGURE_OPTIONS += PERLLIB=/usr/perl5/$(PERL_VERSION)/lib
$(CONFIGURE_64): CONFIGURE_OPTIONS += PERLINSTALLMAN3DIR=$(USRSHAREMAN3DIR)
$(CONFIGURE_64): CONFIGURE_OPTIONS += PERLINSTALLSITEMAN3DIR=$(USRSHAREMAN3DIR)
$(CONFIGURE_64): CONFIGURE_OPTIONS += PERLINSTALLVENDORMAN3DIR=$(USRSHAREMAN3DIR)
PYTHON_ENV = CC="$(CC)"
PYTHON_ENV += CFLAGS="$(CFLAGS)"
COMPONENT_BUILD_ENV += $(PYTHON_ENV)
COMPONENT_INSTALL_ENV += $(PYTHON_ENV)
ASLR_MODE = $(ASLR_ENABLE)
PKG_MACROS += PYVER=$(PYTHON_VERSION)
PKG_MACROS += PYV=$(shell echo $(PYTHON_VERSION) | tr -d .)
configure: $(CONFIGURE_32_and_64)
build: $(BUILD_32_and_64)
install: $(INSTALL_32_and_64)
test: $(NO_TESTS)
system-test: $(NO_TESTS)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
REQUIRED_PACKAGES += image/library/libpng
REQUIRED_PACKAGES += library/desktop/cairo
REQUIRED_PACKAGES += library/desktop/pango
REQUIRED_PACKAGES += library/glib2
REQUIRED_PACKAGES += library/libxml2
REQUIRED_PACKAGES += runtime/lua
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/library/math
REQUIRED_PACKAGES += runtime/python-27