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#
5680N/A
130N/A#
5680N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
5680N/A#
5680N/ABUILD_BITS= 64_and_32
130N/Ainclude ../../make-rules/shared-macros.mk
130N/A
1244N/ACOMPONENT_NAME= gd2
130N/ACOMPONENT_VERSION= 2.0.35
1244N/ACOMPONENT_SRC_NAME= gd
130N/ACOMPONENT_PROJECT_URL= http://www.libgd.org/
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)
1258N/ACOMPONENT_BUGDB= library/gd2
130N/A
2899N/ATPNO= 8786
2899N/A
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
130N/A
130N/APATCH_LEVEL = 0
130N/A
130N/ACFLAGS += $(CPP_LARGEFILES)
130N/ACPPFLAGS += $(CPP_LARGEFILES)
130N/A
3536N/A# Needed for "gmake test" to work.
3536N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
3536N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
3536N/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
5680N/A# We only deliver 64-bit binaries and in /usr/bin.
5680N/ACOMPONENT_POST_INSTALL_ACTION.32 += \
5680N/A $(GSED) -i -e 's|$(USRBINDIR)/$(MACH32)|$(USRBINDIR)|' \
5680N/A $(PROTOUSRBINDIR)/$(MACH32)/gdlib-config;
5680N/A
3536N/ACOMPONENT_TEST_CMD = \
3536N/A cmake -DBUILD_TEST=1 .; \
3536N/A (cd $(@D)/tests; gmake); \
3536N/A ctest .
3536N/ACOMPONENT_TEST_TARGETS =
5052N/ACOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
5052N/ACOMPONENT_TEST_TRANSFORMS += \
5052N/A '-e "s|\(^.*32 Test.*Passed\).*|\1|" ' \
5052N/A '-e "s|\(^.*32 Test.*Failed\).*|\1|" ' \
5052N/A '-e "s|\(^Total Test time (real) =\).*|\1|" ' \
5052N/A '-e "s|^make.*: Leaving directory.*$$|XXX_CC_XXX|g" ' \
5052N/A '-e "s|^make.*: Entering directory.*$$|XXX_CC_XXX|g" ' \
5052N/A '-e "/^XXX_CC_XXX$$/d" '
3536N/A
3817N/AREQUIRED_PACKAGES += image/library/libjpeg
3817N/AREQUIRED_PACKAGES += image/library/libpng
3817N/AREQUIRED_PACKAGES += library/zlib
3817N/AREQUIRED_PACKAGES += shell/ksh93
3817N/AREQUIRED_PACKAGES += system/library/fontconfig
3817N/AREQUIRED_PACKAGES += system/library/freetype-2
3817N/AREQUIRED_PACKAGES += system/library/math
3817N/AREQUIRED_PACKAGES += x11/library/libx11
3817N/AREQUIRED_PACKAGES += x11/library/libxpm