Makefile revision 618
48ccad955951b585e83d2cfcb3a1b566741d954cboli#
48ccad955951b585e83d2cfcb3a1b566741d954cboli# CDDL HEADER START
48ccad955951b585e83d2cfcb3a1b566741d954cboli#
48ccad955951b585e83d2cfcb3a1b566741d954cboli# The contents of this file are subject to the terms of the
48ccad955951b585e83d2cfcb3a1b566741d954cboli# Common Development and Distribution License (the "License").
48ccad955951b585e83d2cfcb3a1b566741d954cboli# You may not use this file except in compliance with the License.
48ccad955951b585e83d2cfcb3a1b566741d954cboli#
48ccad955951b585e83d2cfcb3a1b566741d954cboli# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac# or http://www.opensolaris.org/os/licensing.
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac# See the License for the specific language governing permissions
48ccad955951b585e83d2cfcb3a1b566741d954cboli# and limitations under the License.
48ccad955951b585e83d2cfcb3a1b566741d954cboli#
48ccad955951b585e83d2cfcb3a1b566741d954cboli# When distributing Covered Code, include this CDDL HEADER in each
48ccad955951b585e83d2cfcb3a1b566741d954cboli# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac# If applicable, add the following below this CDDL HEADER, with the
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac# fields enclosed by brackets "[]" replaced with your own identifying
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac# information: Portions Copyright [yyyy] [name of copyright owner]
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac#
48ccad955951b585e83d2cfcb3a1b566741d954cboli# CDDL HEADER END
48ccad955951b585e83d2cfcb3a1b566741d954cboli#
48ccad955951b585e83d2cfcb3a1b566741d954cboli# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
48ccad955951b585e83d2cfcb3a1b566741d954cboli#
48ccad955951b585e83d2cfcb3a1b566741d954cboliinclude ../../make-rules/shared-macros.mk
05b42f00b813c3dc70cbb80d62089f9cc0f6f549ludovicp
c45e84b49268666e618909b5a58389239a8f3a7eludoCOMPONENT_NAME= gd
48ccad955951b585e83d2cfcb3a1b566741d954cboliCOMPONENT_VERSION= 2.0.35
48ccad955951b585e83d2cfcb3a1b566741d954cboliCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
48ccad955951b585e83d2cfcb3a1b566741d954cboliCOMPONENT_PROJECT_URL= http://www.libgd.org/
53247d28ba99538f841a13ea2cde01c3faa3ef36kenneth_suterCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
c45e84b49268666e618909b5a58389239a8f3a7eludo# this is the hash of the payload because it appears to be re-compressed
c45e84b49268666e618909b5a58389239a8f3a7eludo# periodically causing it to have a new hash value.
c45e84b49268666e618909b5a58389239a8f3a7eludoCOMPONENT_ARCHIVE_HASH= sha1:eaa077067945956930f6d9258e130f1e043d9b39
c45e84b49268666e618909b5a58389239a8f3a7eludoCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)releases/$(COMPONENT_ARCHIVE)
c45e84b49268666e618909b5a58389239a8f3a7eludo
c45e84b49268666e618909b5a58389239a8f3a7eludoinclude ../../make-rules/prep.mk
c45e84b49268666e618909b5a58389239a8f3a7eludoinclude ../../make-rules/configure.mk
48ccad955951b585e83d2cfcb3a1b566741d954cboliinclude ../../make-rules/ips.mk
48ccad955951b585e83d2cfcb3a1b566741d954cboliinclude ../../make-rules/lint-libraries.mk
48ccad955951b585e83d2cfcb3a1b566741d954cboli
48ccad955951b585e83d2cfcb3a1b566741d954cboliPKG_CONFIG_PATH_32 = /usr/lib/pkgconfig
48ccad955951b585e83d2cfcb3a1b566741d954cboliPKG_CONFIG_PATH_64 = /usr/lib/$(MACH64)/pkgconfig
48ccad955951b585e83d2cfcb3a1b566741d954cboli
c45e84b49268666e618909b5a58389239a8f3a7eludoPATCH_LEVEL = 0
c45e84b49268666e618909b5a58389239a8f3a7eludo
c45e84b49268666e618909b5a58389239a8f3a7eludoCFLAGS += $(CPP_LARGEFILES)
c45e84b49268666e618909b5a58389239a8f3a7eludoCPPFLAGS += $(CPP_LARGEFILES)
48ccad955951b585e83d2cfcb3a1b566741d954cboli
48ccad955951b585e83d2cfcb3a1b566741d954cboliCONFIGURE_ENV += CFLAGS="$(CFLAGS)"
48ccad955951b585e83d2cfcb3a1b566741d954cboliCONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)"
48ccad955951b585e83d2cfcb3a1b566741d954cboliCONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH_$(BITS))"
24d6db06810f2ea747f6dff60d483e4fca3aaa13davidely
48ccad955951b585e83d2cfcb3a1b566741d954cboliCONFIGURE_OPTIONS += --includedir=$(CONFIGURE_INCLUDEDIR)/gd2
48ccad955951b585e83d2cfcb3a1b566741d954cboliCONFIGURE_OPTIONS += --disable-static
48ccad955951b585e83d2cfcb3a1b566741d954cboliCONFIGURE_OPTIONS += --disable-rpath
48ccad955951b585e83d2cfcb3a1b566741d954cboliCONFIGURE_OPTIONS += --with-x
48ccad955951b585e83d2cfcb3a1b566741d954cboliCONFIGURE_OPTIONS += --with-pic
48ccad955951b585e83d2cfcb3a1b566741d954cboli
48ccad955951b585e83d2cfcb3a1b566741d954cboliCOMPONENT_PREP_ACTION = (cd $(@D) ; autoconf)
48ccad955951b585e83d2cfcb3a1b566741d954cboli
48ccad955951b585e83d2cfcb3a1b566741d954cbolibuild: $(BUILD_32_and_64)
48ccad955951b585e83d2cfcb3a1b566741d954cboli
48ccad955951b585e83d2cfcb3a1b566741d954cboliinstall: $(INSTALL_32_and_64)
48ccad955951b585e83d2cfcb3a1b566741d954cboli
48ccad955951b585e83d2cfcb3a1b566741d954cbolitest: $(NO_TESTS)
48ccad955951b585e83d2cfcb3a1b566741d954cboli @echo "There is no test harness for libgd2."
48ccad955951b585e83d2cfcb3a1b566741d954cboli @echo "Test programs must be run manually and their output"
48ccad955951b585e83d2cfcb3a1b566741d954cboli @echo "should be visually inspected."
48ccad955951b585e83d2cfcb3a1b566741d954cboli
48ccad955951b585e83d2cfcb3a1b566741d954cboliBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
48ccad955951b585e83d2cfcb3a1b566741d954cboli
48ccad955951b585e83d2cfcb3a1b566741d954cboliinclude ../../make-rules/depend.mk
53247d28ba99538f841a13ea2cde01c3faa3ef36kenneth_suter
48ccad955951b585e83d2cfcb3a1b566741d954cboli