Makefile revision 135
729N/A#
729N/A# CDDL HEADER START
729N/A#
729N/A# The contents of this file are subject to the terms of the
943N/A# Common Development and Distribution License (the "License").
729N/A# You may not use this file except in compliance with the License.
729N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
919N/A#
919N/Ainclude ../../make-rules/shared-macros.mk
919N/A
729N/ACOMPONENT_NAME= gd
729N/ACOMPONENT_VERSION= 2.0.35
729N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
729N/ACOMPONENT_PROJECT_URL= http://www.libgd.org/
729N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
729N/A# this is the hash of the payload because it appears to be re-compressed
729N/A# periodically causing it to have a new hash value.
729N/ACOMPONENT_ARCHIVE_HASH= sha1:eaa077067945956930f6d9258e130f1e043d9b39
729N/ACOMPONENT_ARCHIVE_URL= http://www.libgd.org/releases/$(COMPONENT_ARCHIVE)
911N/A
911N/Ainclude ../../make-rules/prep.mk
911N/Ainclude ../../make-rules/configure.mk
911N/Ainclude ../../make-rules/ips.mk
729N/A
729N/ALIBNAME = gd
729N/ALINTOUT = lint.out
729N/A
729N/APKG_CONFIG_PATH_32 = /usr/lib/pkgconfig
729N/APKG_CONFIG_PATH_64 = /usr/lib/$(MACH64)/pkgconfig
729N/A
729N/APATCH_LEVEL = 0
729N/A
970N/ACFLAGS += $(CPP_LARGEFILES)
970N/ACPPFLAGS += $(CPP_LARGEFILES)
970N/A
970N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
970N/ACONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)"
970N/ACONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH_$(BITS))"
970N/A
970N/ACONFIGURE_OPTIONS += --includedir=$(CONFIGURE_INCLUDEDIR)/gd2
970N/ACONFIGURE_OPTIONS += --disable-static
970N/ACONFIGURE_OPTIONS += --disable-rpath
729N/ACONFIGURE_OPTIONS += --with-x
729N/ACONFIGURE_OPTIONS += --with-pic
729N/A
729N/APKG_PROTO_DIRS += $(COMPONENT_SRC)
851N/A
729N/ACOMPONENT_PREP_ACTION = (cd $(@D) ; autoconf)
729N/A
729N/ACOMPONENT_POST_BUILD_ACTION = \
729N/A (cd $(@D); $(LINT) -nsvx $(CC_BITS) -o $(LIBNAME) -I$(@D) \
851N/A -I$(COMPONENT_DIR)/$(COMPONENT_SRC) \
729N/A $(COMPONENT_DIR)/llib-l$(LIBNAME) > $(LINTOUT) 2>&1)
970N/A
970N/ACOMPONENT_POST_INSTALL_ACTION = \
970N/A (cd $(@D); $(INSTALL) llib-l$(LIBNAME).ln \
729N/A $(PROTO_DIR)/$(CONFIGURE_LIBDIR.$(BITS)))
729N/A
851N/APROTOUSRSHAREDOCDIR = $(PROTOUSRSHAREDIR)/doc/gd2/html
729N/A
729N/Abuild: $(BUILD_32_and_64)
729N/A
729N/AGSED = /usr/gnu/bin/sed
729N/A
851N/Ainclude ../../make-rules/shared-targets.mk
851N/A
963N/Ainstall: $(INSTALL_32_and_64)
851N/A
851N/Atest: $(BUILD_32_and_64)
851N/A @echo "There is no test harness for libgd2."
947N/A @echo "Test programs must be run manually and their output"
963N/A @echo "should be visually inspected."
963N/A
970N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
970N/A
970N/Ainclude ../../make-rules/depend.mk
970N/A
970N/A