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