5729N/A#
5729N/A# CDDL HEADER START
5729N/A#
5729N/A# The contents of this file are subject to the terms of the
5729N/A# Common Development and Distribution License (the "License").
5729N/A# You may not use this file except in compliance with the License.
5729N/A#
5729N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5729N/A# or http://www.opensolaris.org/os/licensing.
5729N/A# See the License for the specific language governing permissions
5729N/A# and limitations under the License.
5729N/A#
5729N/A# When distributing Covered Code, include this CDDL HEADER in each
5729N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5729N/A# If applicable, add the following below this CDDL HEADER, with the
5729N/A# fields enclosed by brackets "[]" replaced with your own identifying
5729N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5729N/A#
5729N/A# CDDL HEADER END
5729N/A#
5730N/A# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
5729N/A#
5729N/Ainclude ../../make-rules/shared-macros.mk
5729N/A
5729N/ACOMPONENT_NAME= mrtg
5730N/ACOMPONENT_VERSION= 2.17.4
5729N/ACOMPONENT_PROJECT_URL= http://oss.oetiker.ch/mrtg
5729N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
5729N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
5729N/ACOMPONENT_ARCHIVE_HASH= \
5730N/A sha256:5efa7fae8040159208472e5f889be5b41d8c8a2ea6b31616f0f75cc7f48d2365
5729N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/pub/$(COMPONENT_ARCHIVE)
5729N/ACOMPONENT_BUGDB= utility/mrtg
5729N/A
5730N/ATPNO= 25709
5729N/A
5729N/Ainclude $(WS_MAKE_RULES)/prep.mk
5730N/Ainclude $(WS_MAKE_RULES)/configure.mk
5729N/Ainclude $(WS_MAKE_RULES)/ips.mk
5729N/A
5729N/ACONFIGURE_OPTIONS += --with-gd-inc=/usr/include/gd2
5729N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -I$(BUILD_DIR_64)/bin"
5729N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS) $(CC_BITS)"
5729N/A
5729N/ACONFIGURE_BINDIR.64 = $(USRBINDIR)
5729N/ACONFIGURE_LIBDIR.64 = $(USRLIBDIR)
5729N/A
5729N/A# Build process expects a bin directory in compilation area.
5729N/ACOMPONENT_PRE_BUILD_ACTION=(cd $(@D) ; mkdir -p bin)
5729N/A
5729N/A# Enable ASLR for this component
5729N/AASLR_MODE = $(ASLR_ENABLE)
5729N/A
5729N/Aconfigure: $(CONFIGURE_64)
5729N/A
5729N/Abuild: $(BUILD_64)
5729N/A
5729N/Ainstall: $(INSTALL_64)
5729N/A
5729N/Atest: $(NO_TESTS)
5729N/A
5729N/AREQUIRED_PACKAGES += library/gd
5729N/AREQUIRED_PACKAGES += runtime/perl-512
5729N/AREQUIRED_PACKAGES += system/library
5729N/AREQUIRED_PACKAGES += system/library/math