Makefile revision 1273
2058N/A#
2058N/A# CDDL HEADER START
2058N/A#
2058N/A# The contents of this file are subject to the terms of the
2058N/A# Common Development and Distribution License (the "License").
2058N/A# You may not use this file except in compliance with the License.
2058N/A#
2058N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2058N/A# or http://www.opensolaris.org/os/licensing.
2058N/A# See the License for the specific language governing permissions
2058N/A# and limitations under the License.
2058N/A#
2058N/A# When distributing Covered Code, include this CDDL HEADER in each
2058N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2058N/A# If applicable, add the following below this CDDL HEADER, with the
2058N/A# fields enclosed by brackets "[]" replaced with your own identifying
2058N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2058N/A#
2058N/A# CDDL HEADER END
2058N/A#
2058N/A# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
2058N/A#
3996N/Ainclude ../../make-rules/shared-macros.mk
2058N/A
2058N/ACOMPONENT_NAME= gd2
2058N/ACOMPONENT_VERSION= 2.0.35
2058N/ACOMPONENT_SRC_NAME= gd
2058N/ACOMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION)
2058N/ACOMPONENT_PROJECT_URL= http://www.libgd.org/
2058N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
2058N/A# this is the hash of the payload because it appears to be re-compressed
2058N/A# periodically causing it to have a new hash value.
2058N/ACOMPONENT_ARCHIVE_HASH= \
2058N/A sha256:44bd0819b64a2341fb800abbe99f23c7f6388327c71e1f5bd5ed7874a8cc0e49
2058N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)releases/$(COMPONENT_ARCHIVE)
2058N/ACOMPONENT_BUGDB= library/gd2
2058N/A
3661N/Ainclude ../../make-rules/prep.mk
3661N/Ainclude ../../make-rules/configure.mk
3996N/Ainclude ../../make-rules/ips.mk
3996N/Ainclude ../../make-rules/lint-libraries.mk
3996N/A
2058N/APKG_CONFIG_PATH_32 = /usr/lib/pkgconfig
2058N/APKG_CONFIG_PATH_64 = /usr/lib/$(MACH64)/pkgconfig
2058N/A
2058N/APATCH_LEVEL = 0
2058N/A
2058N/ACFLAGS += $(CPP_LARGEFILES)
2058N/ACPPFLAGS += $(CPP_LARGEFILES)
2058N/A
2058N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
2058N/ACONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)"
2058N/ACONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH_$(BITS))"
2058N/A
2058N/ACONFIGURE_OPTIONS += --includedir=$(CONFIGURE_INCLUDEDIR)/gd2
2058N/ACONFIGURE_OPTIONS += --disable-static
2058N/ACONFIGURE_OPTIONS += --disable-rpath
2058N/ACONFIGURE_OPTIONS += --with-x
2058N/ACONFIGURE_OPTIONS += --with-pic
2058N/A
3996N/ACOMPONENT_PREP_ACTION = (cd $(@D) ; autoreconf -if)
3996N/A
build: $(BUILD_32_and_64)
install: $(INSTALL_32_and_64)
test: $(NO_TESTS)
@echo "There is no test harness for libgd2."
@echo "Test programs must be run manually and their output"
@echo "should be visually inspected."
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk