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#
3996N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
130N/A#
130N/Ainclude ../../make-rules/shared-macros.mk
130N/A
1273N/ACOMPONENT_NAME= gd2
130N/ACOMPONENT_VERSION= 2.0.35
1273N/ACOMPONENT_SRC_NAME= gd
1273N/ACOMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION)
130N/ACOMPONENT_PROJECT_URL= http://www.libgd.org/
130N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
135N/A# this is the hash of the payload because it appears to be re-compressed
135N/A# periodically causing it to have a new hash value.
844N/ACOMPONENT_ARCHIVE_HASH= \
844N/A sha256:44bd0819b64a2341fb800abbe99f23c7f6388327c71e1f5bd5ed7874a8cc0e49
618N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)releases/$(COMPONENT_ARCHIVE)
1273N/ACOMPONENT_BUGDB= library/gd2
130N/A
3661N/ATPNO= 8786
3661N/A
3996N/Ainclude $(WS_MAKE_RULES)/prep.mk
3996N/Ainclude $(WS_MAKE_RULES)/configure.mk
3996N/Ainclude $(WS_MAKE_RULES)/ips.mk
3996N/Ainclude $(WS_MAKE_RULES)/lint-libraries.mk
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
729N/ACOMPONENT_PREP_ACTION = (cd $(@D) ; autoreconf -if)
130N/A
130N/Abuild: $(BUILD_32_and_64)
130N/A
130N/Ainstall: $(INSTALL_32_and_64)
130N/A
181N/Atest: $(NO_TESTS)
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
3996N/A
130N/A
3996N/AREQUIRED_PACKAGES += image/library/libjpeg
3996N/AREQUIRED_PACKAGES += image/library/libpng
3996N/AREQUIRED_PACKAGES += library/zlib
3996N/AREQUIRED_PACKAGES += shell/ksh93
3996N/AREQUIRED_PACKAGES += system/library
3996N/AREQUIRED_PACKAGES += system/library/fontconfig
3996N/AREQUIRED_PACKAGES += system/library/freetype-2
3996N/AREQUIRED_PACKAGES += system/library/math
3996N/AREQUIRED_PACKAGES += x11/library/libx11
3996N/AREQUIRED_PACKAGES += x11/library/libxpm