Makefile revision 5237
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeney#
e0e25f8d302fa5ef03a5960832fd3eefec659ce3Matt Sweeney# CDDL HEADER START
e0e25f8d302fa5ef03a5960832fd3eefec659ce3Matt Sweeney#
e0e25f8d302fa5ef03a5960832fd3eefec659ce3Matt Sweeney# The contents of this file are subject to the terms of the
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeney# Common Development and Distribution License (the "License").
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeney# You may not use this file except in compliance with the License.
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeney#
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeney# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeney# or http://www.opensolaris.org/os/licensing.
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeney# See the License for the specific language governing permissions
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeney# and limitations under the License.
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeney#
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeney# When distributing Covered Code, include this CDDL HEADER in each
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeney# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeney# If applicable, add the following below this CDDL HEADER, with the
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeney# fields enclosed by brackets "[]" replaced with your own identifying
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeney# information: Portions Copyright [yyyy] [name of copyright owner]
90c2e60494a1efb7a25dd97066523a0d1890ace9Matt Sweeney#
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeney# CDDL HEADER END
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeney#
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeney# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeney#
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeneyinclude ../../make-rules/shared-macros.mk
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeney
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt SweeneyCOMPONENT_NAME= mrtg
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt SweeneyCOMPONENT_VERSION= 2.16.2
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt SweeneyCOMPONENT_PROJECT_URL= http://oss.oetiker.ch/mrtg
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt SweeneyCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
90c2e60494a1efb7a25dd97066523a0d1890ace9Matt SweeneyCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt SweeneyCOMPONENT_ARCHIVE_HASH= \
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeney sha256:ce9ec97bb6c8f94a8d8bb2d3cfa7e72b73754ed7a1081e7aca1c8cece5ce3385
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt SweeneyCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/pub/$(COMPONENT_ARCHIVE)
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt SweeneyCOMPONENT_BUGDB= utility/mrtg
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeney
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt SweeneyTPNO= 9225
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeney
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeneyinclude $(WS_MAKE_RULES)/prep.mk
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeneyinclude $(WS_MAKE_RULES)/configure-64.mk
b8307d4f04422e45ed2240b070dbfd46876f3c9eMatt Sweeneyinclude $(WS_MAKE_RULES)/ips.mk
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeney
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt SweeneyCONFIGURE_OPTIONS += --with-gd-inc=/usr/include/gd2
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt SweeneyCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -I$(BUILD_DIR_64)/bin"
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt SweeneyCONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS) $(CC_BITS)"
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeney
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt SweeneyCONFIGURE_BINDIR.64 = $(USRBINDIR)
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt SweeneyCONFIGURE_LIBDIR.64 = $(USRLIBDIR)
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeney
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeney# Build process expects a bin directory in compilation area.
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt SweeneyCOMPONENT_PRE_BUILD_ACTION=(cd $(@D) ; mkdir -p bin)
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeney
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeney# Enable ASLR for this component
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt SweeneyASLR_MODE = $(ASLR_ENABLE)
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeney
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeneyconfigure: $(CONFIGURE_64)
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeney
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeneybuild: $(BUILD_64)
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeney
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeneyinstall: $(INSTALL_64)
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeney
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeneytest: $(NO_TESTS)
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeney
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeneysystem-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeney
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt SweeneyREQUIRED_PACKAGES += library/gd
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt SweeneyREQUIRED_PACKAGES += runtime/perl-512
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt SweeneyREQUIRED_PACKAGES += system/library
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt SweeneyREQUIRED_PACKAGES += system/library/math
7b8680288e79cc11a4c20b66ce5c167619f1431fMatt Sweeney