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