Makefile revision 3536
3e14f97f673e8a630f076077de35afdd43dc1587Roger A. Faulkner#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# CDDL HEADER START
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# The contents of this file are subject to the terms of the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Common Development and Distribution License (the "License").
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# You may not use this file except in compliance with the License.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# or http://www.opensolaris.org/os/licensing.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# See the License for the specific language governing permissions
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# and limitations under the License.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# When distributing Covered Code, include this CDDL HEADER in each
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# If applicable, add the following below this CDDL HEADER, with the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# fields enclosed by brackets "[]" replaced with your own identifying
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# information: Portions Copyright [yyyy] [name of copyright owner]
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# CDDL HEADER END
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininclude ../../make-rules/shared-macros.mk
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_NAME= gd2
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_VERSION= 2.0.35
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_SRC_NAME= gd
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_PROJECT_URL= http://www.libgd.org/
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# this is the hash of the payload because it appears to be re-compressed
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# periodically causing it to have a new hash value.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_ARCHIVE_HASH= \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin sha256:44bd0819b64a2341fb800abbe99f23c7f6388327c71e1f5bd5ed7874a8cc0e49
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)releases/$(COMPONENT_ARCHIVE)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_BUGDB= library/gd2
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinTPNO= 8786
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininclude ../../make-rules/prep.mk
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininclude ../../make-rules/configure.mk
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininclude ../../make-rules/ips.mk
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininclude ../../make-rules/lint-libraries.mk
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinPKG_CONFIG_PATH_32 = /usr/lib/pkgconfig
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinPKG_CONFIG_PATH_64 = /usr/lib/$(MACH64)/pkgconfig
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinPATCH_LEVEL = 0
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCFLAGS += $(CPP_LARGEFILES)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCPPFLAGS += $(CPP_LARGEFILES)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Needed for "gmake test" to work.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_PRE_CONFIGURE_ACTION = \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin ($(CLONEY) $(SOURCE_DIR) $(@D))
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCONFIGURE_ENV += CFLAGS="$(CFLAGS)"
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)"
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH_$(BITS))"
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCONFIGURE_OPTIONS += --includedir=$(CONFIGURE_INCLUDEDIR)/gd2
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCONFIGURE_OPTIONS += --disable-static
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCONFIGURE_OPTIONS += --disable-rpath
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCONFIGURE_OPTIONS += --with-x
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCONFIGURE_OPTIONS += --with-pic
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_PREP_ACTION = (cd $(@D) ; autoreconf -if)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_TEST_CMD = \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin cmake -DBUILD_TEST=1 .; \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin (cd $(@D)/tests; gmake); \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin ctest .
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCOMPONENT_TEST_TARGETS =
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinASLR_MODE = $(ASLR_ENABLE)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinconfigure: $(CONFIGURE_32_and_64)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinbuild: $(BUILD_32_and_64)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininstall: $(INSTALL_32_and_64)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chintest: $(TEST_32_and_64)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininclude ../../make-rules/depend.mk
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin