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