#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
#
BUILD_BITS= 64_and_32
COMPILER= gcc
include ../../../make-rules/shared-macros.mk
COMPONENT_NAME= libwebp
COMPONENT_VERSION= 0.4.3
COMPONENT_PROJECT_URL= http://www.webmproject.org/
COMPONENT_ARCHIVE_HASH= \
sha256:efbe0d58fda936f2ed99d0b837ed7087d064d6838931f282c4618d2a3f7390c4
COMPONENT_ARCHIVE_URL= http://downloads.webmproject.org/releases/webp/$(COMPONENT_ARCHIVE)
COMPONENT_BUGDB= library/libwebp
TPNO= 25769
# Required for 64-bit builds.
LDFLAGS += $(CC_BITS)
TEST_TARGET= $(NO_TESTS)
include $(WS_MAKE_RULES)/common.mk
# needs libgif, so disabling for now
CONFIGURE_OPTIONS += --disable-gif
CONFIGURE_OPTIONS += --disable-static
CONFIGURE_OPTIONS += --enable-gl
CONFIGURE_OPTIONS += --enable-threading
CONFIGURE_OPTIONS += --enable-png
CONFIGURE_OPTIONS += --enable-jpeg
CONFIGURE_OPTIONS += --enable-tiff
CONFIGURE_OPTIONS += --enable-everything
CONFIGURE_OPTIONS += --enable-shared
CONFIGURE_OPTIONS += --with-pic
REQUIRED_PACKAGES += image/library/libjpeg
REQUIRED_PACKAGES += image/library/libpng
REQUIRED_PACKAGES += image/library/libtiff
REQUIRED_PACKAGES += service/opengl/ogl-select
REQUIRED_PACKAGES += system/library/math
REQUIRED_PACKAGES += x11/library/freeglut
REQUIRED_PACKAGES += x11/library/mesa