Makefile revision 1258
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano#
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano# CDDL HEADER START
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano#
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano# The contents of this file are subject to the terms of the
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano# Common Development and Distribution License (the "License").
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano# You may not use this file except in compliance with the License.
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano#
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano# or http://www.opensolaris.org/os/licensing.
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano# See the License for the specific language governing permissions
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano# and limitations under the License.
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano#
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano# When distributing Covered Code, include this CDDL HEADER in each
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano# If applicable, add the following below this CDDL HEADER, with the
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano# fields enclosed by brackets "[]" replaced with your own identifying
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano# information: Portions Copyright [yyyy] [name of copyright owner]
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano#
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano# CDDL HEADER END
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano#
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano#
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakanoinclude ../../make-rules/shared-macros.mk
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo NakanoCOMPONENT_NAME= gd2
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo NakanoCOMPONENT_VERSION= 2.0.35
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo NakanoCOMPONENT_SRC_NAME= gd
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo NakanoCOMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION)
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo NakanoCOMPONENT_PROJECT_URL= http://www.libgd.org/
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo NakanoCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano# this is the hash of the payload because it appears to be re-compressed
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano# periodically causing it to have a new hash value.
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo NakanoCOMPONENT_ARCHIVE_HASH= \
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano sha256:44bd0819b64a2341fb800abbe99f23c7f6388327c71e1f5bd5ed7874a8cc0e49
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo NakanoCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)releases/$(COMPONENT_ARCHIVE)
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo NakanoCOMPONENT_BUGDB= library/gd2
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakanoinclude ../../make-rules/prep.mk
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakanoinclude ../../make-rules/configure.mk
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakanoinclude ../../make-rules/ips.mk
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakanoinclude ../../make-rules/lint-libraries.mk
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo NakanoPKG_CONFIG_PATH_32 = /usr/lib/pkgconfig
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo NakanoPKG_CONFIG_PATH_64 = /usr/lib/$(MACH64)/pkgconfig
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo NakanoPATCH_LEVEL = 0
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo NakanoCFLAGS += $(CPP_LARGEFILES)
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo NakanoCPPFLAGS += $(CPP_LARGEFILES)
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo NakanoCONFIGURE_ENV += CFLAGS="$(CFLAGS)"
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo NakanoCONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)"
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo NakanoCONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH_$(BITS))"
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo NakanoCONFIGURE_OPTIONS += --includedir=$(CONFIGURE_INCLUDEDIR)/gd2
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo NakanoCONFIGURE_OPTIONS += --disable-static
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo NakanoCONFIGURE_OPTIONS += --disable-rpath
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo NakanoCONFIGURE_OPTIONS += --with-x
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo NakanoCONFIGURE_OPTIONS += --with-pic
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo NakanoCOMPONENT_PREP_ACTION = (cd $(@D) ; autoreconf -if)
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakanobuild: $(BUILD_32_and_64)
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakanoinstall: $(INSTALL_32_and_64)
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakanotest: $(NO_TESTS)
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano @echo "There is no test harness for libgd2."
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano @echo "Test programs must be run manually and their output"
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano @echo "should be visually inspected."
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo NakanoBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakanoinclude ../../make-rules/depend.mk
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano
5fbb8099f56d8d460ea0bd3efafc8211fafb75f2Nobutomo Nakano