Makefile revision 5052
1N/A#
1N/A# CDDL HEADER START
1N/A#
1N/A# The contents of this file are subject to the terms of the
1N/A# Common Development and Distribution License (the "License").
1N/A# You may not use this file except in compliance with the License.
1N/A#
1N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1N/A# or http://www.opensolaris.org/os/licensing.
1N/A# See the License for the specific language governing permissions
1N/A# and limitations under the License.
1N/A#
1N/A# When distributing Covered Code, include this CDDL HEADER in each
1N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1N/A# If applicable, add the following below this CDDL HEADER, with the
1N/A# fields enclosed by brackets "[]" replaced with your own identifying
1N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1N/A#
1N/A# CDDL HEADER END
1N/A#
1N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
1N/A#
1N/Ainclude ../../make-rules/shared-macros.mk
1N/A
1N/ACOMPONENT_NAME= gd2
1N/ACOMPONENT_VERSION= 2.0.35
1N/ACOMPONENT_SRC_NAME= gd
1N/ACOMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION)
1N/ACOMPONENT_PROJECT_URL= http://www.libgd.org/
1N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
1N/A# this is the hash of the payload because it appears to be re-compressed
1N/A# periodically causing it to have a new hash value.
1N/ACOMPONENT_ARCHIVE_HASH= \
1N/A sha256:44bd0819b64a2341fb800abbe99f23c7f6388327c71e1f5bd5ed7874a8cc0e49
1N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)releases/$(COMPONENT_ARCHIVE)
1N/ACOMPONENT_BUGDB= library/gd2
1N/A
1N/ATPNO= 8786
1N/A
1N/Ainclude $(WS_MAKE_RULES)/prep.mk
1N/Ainclude $(WS_MAKE_RULES)/configure.mk
1N/Ainclude $(WS_MAKE_RULES)/ips.mk
1N/Ainclude $(WS_MAKE_RULES)/lint-libraries.mk
1N/A
1N/APKG_CONFIG_PATH_32 = /usr/lib/pkgconfig
1N/APKG_CONFIG_PATH_64 = /usr/lib/$(MACH64)/pkgconfig
1N/A
1N/APATCH_LEVEL = 0
1N/A
1N/ACFLAGS += $(CPP_LARGEFILES)
1N/ACPPFLAGS += $(CPP_LARGEFILES)
1N/A
1N/A# Needed for "gmake test" to work.
1N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
1N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
1N/A
1N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
1N/ACONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)"
1N/ACONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH_$(BITS))"
1N/A
1N/ACONFIGURE_OPTIONS += --includedir=$(CONFIGURE_INCLUDEDIR)/gd2
1N/ACONFIGURE_OPTIONS += --disable-static
1N/ACONFIGURE_OPTIONS += --disable-rpath
1N/ACONFIGURE_OPTIONS += --with-x
1N/ACONFIGURE_OPTIONS += --with-pic
1N/A
1N/ACOMPONENT_PREP_ACTION = (cd $(@D) ; autoreconf -if)
1N/A
1N/ACOMPONENT_TEST_CMD = \
1N/A cmake -DBUILD_TEST=1 .; \
1N/A (cd $(@D)/tests; gmake); \
1N/A ctest .
1N/ACOMPONENT_TEST_TARGETS =
1N/ACOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
1N/ACOMPONENT_TEST_TRANSFORMS += \
1N/A '-e "s|\(^.*32 Test.*Passed\).*|\1|" ' \
1N/A '-e "s|\(^.*32 Test.*Failed\).*|\1|" ' \
1N/A '-e "s|\(^Total Test time (real) =\).*|\1|" ' \
1N/A '-e "s|^make.*: Leaving directory.*$$|XXX_CC_XXX|g" ' \
1N/A '-e "s|^make.*: Entering directory.*$$|XXX_CC_XXX|g" ' \
1N/A '-e "/^XXX_CC_XXX$$/d" '
1N/A
1N/AASLR_MODE = $(ASLR_ENABLE)
configure: $(CONFIGURE_32_and_64)
build: $(BUILD_32_and_64)
install: $(INSTALL_32_and_64)
test: $(TEST_32_and_64)
system-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
REQUIRED_PACKAGES += image/library/libjpeg
REQUIRED_PACKAGES += image/library/libpng
REQUIRED_PACKAGES += library/zlib
REQUIRED_PACKAGES += shell/ksh93
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/library/fontconfig
REQUIRED_PACKAGES += system/library/freetype-2
REQUIRED_PACKAGES += system/library/math
REQUIRED_PACKAGES += x11/library/libx11
REQUIRED_PACKAGES += x11/library/libxpm