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