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