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