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