Makefile revision 4248
369N/A#
369N/A# CDDL HEADER START
369N/A#
369N/A# The contents of this file are subject to the terms of the
369N/A# Common Development and Distribution License (the "License").
369N/A# You may not use this file except in compliance with the License.
369N/A#
369N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
369N/A# or http://www.opensolaris.org/os/licensing.
369N/A# See the License for the specific language governing permissions
369N/A# and limitations under the License.
369N/A#
369N/A# When distributing Covered Code, include this CDDL HEADER in each
369N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
369N/A# If applicable, add the following below this CDDL HEADER, with the
369N/A# fields enclosed by brackets "[]" replaced with your own identifying
369N/A# information: Portions Copyright [yyyy] [name of copyright owner]
369N/A#
369N/A# CDDL HEADER END
369N/A#
5680N/A
5680N/A#
5345N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
369N/A#
5706N/A
5680N/Ainclude ../../make-rules/shared-macros.mk
369N/A
369N/ACOMPONENT_NAME= rrdtool
369N/ACOMPONENT_VERSION= 1.4.9
5706N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
844N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
5706N/ACOMPONENT_ARCHIVE_HASH= sha256:3e2826e0d60aaf85313da35b3c0d3a926748fe482b4ada766a325a83b60125cc
5622N/ACOMPONENT_ARCHIVE_URL= http://oss.oetiker.ch/rrdtool/pub/$(COMPONENT_ARCHIVE)
369N/ACOMPONENT_PROJECT_URL= http://oss.oetiker.ch/rrdtool/
5680N/ACOMPONENT_BUGDB= utility/rrdtool
369N/ATPNO= 21430
5680N/A
369N/Ainclude ../../make-rules/prep.mk
5706N/Ainclude ../../make-rules/configure.mk
4659N/Ainclude ../../make-rules/ips.mk
369N/A
369N/APATH=$(dir $(CC)):/usr/bin:/usr/sbin:/usr/gnu/bin
369N/A
369N/APERL_VERSION.32 = 5.12
369N/APERL_VERSION.64 = 5.16
5680N/APERL_VERSION = $(PERL_VERSION.$(BITS))
5345N/A
5680N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
5706N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
369N/A
369N/ACOMPONENT_PREP_ACTION = ( cd $(@D); autoconf -f)
369N/A
369N/ACONFIGURE_OPTIONS += --enable-perl
369N/ACONFIGURE_OPTIONS += --disable-python
369N/ACONFIGURE_OPTIONS += --disable-ruby
369N/ACONFIGURE_OPTIONS += --enable-tcl
369N/ACONFIGURE_OPTIONS += --enable-static=no
369N/ACONFIGURE_OPTIONS += CC="$(CC) $(CC_BITS)"
369N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
369N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
369N/ACONFIGURE_OPTIONS += PERL=/usr/perl5/$(PERL_VERSION)/bin/perl
369N/ACONFIGURE_OPTIONS += POD2MAN=/usr/perl5/$(PERL_VERSION)/bin/pod2man
369N/ACONFIGURE_OPTIONS += POD2HTML=/usr/perl5/$(PERL_VERSION)/bin/pod2html
369N/ACONFIGURE_OPTIONS += PERLCC="\"$(CC) $(CC_BITS)\""
369N/ACONFIGURE_OPTIONS += PERLCCFLAGS="\"$(CFLAGS)\""
369N/ACONFIGURE_OPTIONS += PERLLD="\"$(CC) $(CC_BITS)\""
369N/ACONFIGURE_OPTIONS += PERLLIB=/usr/perl5/$(PERL_VERSION)/lib
369N/ACONFIGURE_OPTIONS += PERLINSTALLMAN3DIR=/usr/share/man/man3
369N/ACONFIGURE_OPTIONS += PERLINSTALLSITEMAN3DIR=/usr/share/man/man3
369N/ACONFIGURE_OPTIONS += PERLINSTALLVENDORMAN3DIR=/usr/share/man/man3
369N/A
369N/A$(CONFIGURE_64): CONFIGURE_OPTIONS += LUARRDLIBDIR=64
369N/A
369N/APKG_MACROS += P_ARCH=$(shell arch)
5680N/A
5680N/AASLR_MODE = $(ASLR_ENABLE)
5680N/A
5680N/A# common targets
5680N/Aconfigure: $(CONFIGURE_32_and_64)
5680N/A
5680N/Abuild: $(BUILD_32_and_64)
5680N/A
5680N/Ainstall: $(INSTALL_32_and_64)
5680N/A
5680N/Atest: $(NO_TESTS)
5680N/A
5680N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
5680N/A
369N/AREQUIRED_PACKAGES += image/library/libpng
369N/AREQUIRED_PACKAGES += library/desktop/cairo
369N/AREQUIRED_PACKAGES += library/desktop/pango
369N/AREQUIRED_PACKAGES += library/glib2
369N/AREQUIRED_PACKAGES += library/libxml2
369N/AREQUIRED_PACKAGES += runtime/lua
369N/AREQUIRED_PACKAGES += system/library
369N/AREQUIRED_PACKAGES += system/library/math
369N/A