5942N/A#
5942N/A# CDDL HEADER START
5942N/A#
5942N/A# The contents of this file are subject to the terms of the
5942N/A# Common Development and Distribution License (the "License").
5942N/A# You may not use this file except in compliance with the License.
5942N/A#
5942N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5942N/A# or http://www.opensolaris.org/os/licensing.
5942N/A# See the License for the specific language governing permissions
5942N/A# and limitations under the License.
5942N/A#
5942N/A# When distributing Covered Code, include this CDDL HEADER in each
5942N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5942N/A# If applicable, add the following below this CDDL HEADER, with the
5942N/A# fields enclosed by brackets "[]" replaced with your own identifying
5942N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5942N/A#
5942N/A# CDDL HEADER END
5942N/A#
5942N/A
5942N/A#
5942N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
5942N/A#
5942N/A
5942N/A# All components using gobject-introspection must be built with gcc as
5942N/A# gobject-introspection does not produce correct results when using Studio.
5942N/ACOMPILER= gcc
5942N/ABUILD_BITS = 32_and_64
5942N/Ainclude ../../../make-rules/shared-macros.mk
5942N/A
5942N/ACOMPONENT_NAME= gdk-pixbuf
5942N/ACOMPONENT_VERSION= 2.32.1
5942N/ACOMPONENT_PROJECT_URL= https://wiki.gnome.org/Projects/GdkPixbuf
5942N/ACOMPONENT_ARCHIVE_HASH= \
5942N/A sha256:4432b74f25538c7d6bcb3ca51adabdd666168955f25812a2568dc9637697f3bc
6394N/ACOMPONENT_BUGDB= gnome/libraries
5942N/A
5942N/ATPNO= 24751
5942N/A
6004N/A# Requires newer version of library/glib2 which we cannot build on 11.3, so
6004N/A# do not publish.
6004N/Aifeq ($(BUILD_TYPE), evaluation)
6004N/ABUILD_32_and_64=
6004N/AINSTALL_32_and_64=
6004N/APUBLISH_STAMP=
6004N/Aendif
6004N/A
5942N/ASYSTEM_TEST_TARGET= $(SYSTEM_TESTS_NOT_IMPLEMENTED)
5942N/Ainclude $(WS_MAKE_RULES)/gnome-component.mk
5942N/A
5942N/A# Requires a reconf due to patch to configure.ac.
5942N/ACOMPONENT_PREP_ACTION += (cd $(@D); autoreconf -fiv);
5942N/A
5942N/A# Requires gtk-doc >= 1.20, enable after that's available on build machines
5942N/A# CONFIGURE_OPTIONS += --enable-gtk-doc
5942N/A
5942N/A# Required for other components.
5942N/ACONFIGURE_OPTIONS += --enable-introspection
5942N/A
5942N/A# Build gdk-pixbuf-xlib required by xscreensaver & other software
5942N/ACONFIGURE_OPTIONS += --with-x11
5942N/A
5942N/A# Workaround for build failures due to gdk-pixbuf Makefiles not passing CFLAGS
5942N/A# or LDFLAGS, especially the -m32/64 flag, to g-ir-scanner
5942N/ACOMPONENT_BUILD_ENV += CFLAGS="$(strip $(CFLAGS))"
5942N/ACOMPONENT_BUILD_ENV += LDFLAGS="$(strip $(LDFLAGS))"
5942N/A
6004N/Aifneq ($(BUILD_TYPE), evaluation)
5942N/A# Generate and install architecture-specific configuration files that define
5942N/A# the set of plugins available.
5942N/APROTOLCACHEDIR.32= $(PROTO_DIR)/$(USRLIB.32)/gdk-pixbuf-2.0/2.10.0
5942N/APROTOLCACHEDIR.64= $(PROTO_DIR)/$(USRLIB.64)/gdk-pixbuf-2.0/2.10.0
5942N/APROTOLCACHECONF.32= $(PROTOLCACHEDIR.32)/loaders.cache
5942N/APROTOLCACHECONF.64= $(PROTOLCACHEDIR.64)/loaders.cache
5942N/A
5942N/A$(PROTOLCACHECONF.32):
5942N/A $(MKDIR) $(PROTOLCACHEDIR.32); \
5942N/A LD_LIBRARY_PATH="$(PROTO_DIR)/$(USRLIB.32):$(GLIB_LD_LIBRARY_PATH)" \
5942N/A $(PROTO_DIR)/$(USRBIN.32)/gdk-pixbuf-query-loaders \
5942N/A $(PROTOLCACHEDIR.32)/loaders/*.so | \
5942N/A $(GSED) -e "s#$(PROTO_DIR)/##" > $(PROTOLCACHECONF.32)
5942N/A
5942N/A$(PROTOLCACHECONF.64):
5942N/A $(MKDIR) $(PROTOLCACHEDIR.64); \
5942N/A LD_LIBRARY_PATH="$(PROTO_DIR)/$(USRLIB.64):$(GLIB_LD_LIBRARY_PATH)" \
5942N/A $(PROTO_DIR)/$(USRBIN.64)/gdk-pixbuf-query-loaders \
5942N/A $(PROTOLCACHEDIR.64)/loaders/*.so | \
5942N/A $(GSED) -e "s#$(PROTO_DIR)/##" > $(PROTOLCACHECONF.64)
5942N/A
5942N/Ainstall: $(PROTOLCACHECONF.32) $(PROTOLCACHECONF.64)
6004N/Aendif
5942N/A
5942N/A# Needed for "gmake test" to work successfully.
5942N/Aunexport SHELLOPTS
5942N/A
5942N/A# pixbuf-randomly-modified tests have a different random suffix each time,
5942N/A# so strip that out to allow repeatable comparisons
5942N/ACOMPONENT_TEST_TRANSFORMS += \
5942N/A '-e "s%/pixbuf/randomly-modified/.*%/pixbuf/randomly-modified/...%"'
5942N/A
5942N/A# Standard automake test framework results transform
5942N/ACOMPONENT_TEST_TRANSFORMS += \
5942N/A '-n ' \
5942N/A '-e "/TOTAL/p" ' \
5942N/A '-e "/SKIP/p" ' \
5942N/A '-e "/PASS/p" ' \
5942N/A '-e "/FAIL/p" ' \
5942N/A '-e "/ERROR/p" '
5942N/A
5942N/A# Requires >= 2.69 autoconf
5942N/AREQUIRED_PACKAGES += image/library/libjpeg
5942N/AREQUIRED_PACKAGES += image/library/libpng
5942N/AREQUIRED_PACKAGES += image/library/libtiff
5942N/AREQUIRED_PACKAGES += library/desktop/gobject/gobject-introspection
5942N/AREQUIRED_PACKAGES += library/glib2
5942N/AREQUIRED_PACKAGES += system/library/math
5942N/AREQUIRED_PACKAGES += x11/library/libx11