5325N/A#
5325N/A# CDDL HEADER START
5325N/A#
5325N/A# The contents of this file are subject to the terms of the
5325N/A# Common Development and Distribution License (the "License").
5325N/A# You may not use this file except in compliance with the License.
5325N/A#
5325N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5325N/A# or http://www.opensolaris.org/os/licensing.
5325N/A# See the License for the specific language governing permissions
5325N/A# and limitations under the License.
5325N/A#
5325N/A# When distributing Covered Code, include this CDDL HEADER in each
5325N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5325N/A# If applicable, add the following below this CDDL HEADER, with the
5325N/A# fields enclosed by brackets "[]" replaced with your own identifying
5325N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5325N/A#
5325N/A# CDDL HEADER END
5325N/A#
5325N/A
5325N/A#
5325N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
5325N/A#
5680N/ABUILD_BITS= 64_and_32
5325N/Ainclude ../../../make-rules/shared-macros.mk
5325N/A
5325N/ACOMPONENT_NAME= poppler
6406N/ACOMPONENT_VERSION= 0.33.0
5325N/ACOMPONENT_PROJECT_URL= http://poppler.freedesktop.org/
6406N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
5325N/ACOMPONENT_ARCHIVE_HASH= \
6406N/A sha256:a5fa6d7f7dc5382b48caca82b147c54bdffda02698611af76db5326ba64995a6
5325N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)$(COMPONENT_ARCHIVE)
5325N/ACOMPONENT_BUGDB= library/poppler
6406N/ATPNO_POPPLER= 25617
5325N/A
5325N/ACOMPONENT_NAME_1= poppler-data
6406N/ACOMPONENT_VERSION_1= 0.4.7
5325N/ACOMPONENT_SRC_1= $(COMPONENT_NAME_1)-$(COMPONENT_VERSION_1)
5325N/ACOMPONENT_ARCHIVE_1= $(COMPONENT_SRC_1).tar.gz
5325N/ACOMPONENT_ARCHIVE_HASH_1= \
6406N/A sha256:e752b0d88a7aba54574152143e7bf76436a7ef51977c55d6bd9a48dccde3a7de
5325N/ACOMPONENT_ARCHIVE_URL_1= $(COMPONENT_PROJECT_URL)$(COMPONENT_ARCHIVE_1)
6406N/ATPNO_POPPLER_DATA= 25618
5325N/A
5680N/ATEST_TARGET= $(NO_TESTS)
6406N/A
6406N/A# This version of poppler only works with the new version of evince.
6406N/Aifeq ($(BUILD_TYPE), evaluation)
6406N/ABUILD_32_and_64=
6406N/AINSTALL_32_and_64=
6406N/APUBLISH_STAMP=
6406N/Aendif
6406N/A
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
5325N/A
5325N/ACOMPONENT_PREP_ACTION = \
5325N/A (cd $(@D) ; \
5325N/A aclocal -I . ; \
5325N/A libtoolize --force --copy ; \
5325N/A autoheader ; \
5325N/A automake -a -c -f ; \
5325N/A autoconf )
5325N/A
6406N/A# For now, all things built for C++11 require gcc.
6406N/A# (Poppler provides a C++ wrapper.)
6406N/ACOMPILER=gcc
6406N/A# Uses strcpy_s, etc. c11 functions.
6406N/ACFLAGS += -std=c11
6406N/ACXXFLAGS += -std=c++11 -D__STDC_WANT_LIB_EXT1__=1
5325N/A
5325N/A# Reduce build time dependencies since we don't ship this and can't run as an
5325N/A# automated test.
5325N/ACONFIGURE_OPTIONS += --disable-gtk-test
6406N/ACONFIGURE_OPTIONS += --disable-poppler-qt4
6406N/ACONFIGURE_OPTIONS += --disable-poppler-qt5
6406N/ACONFIGURE_OPTIONS += --disable-static
6406N/A# --enable-zlib not recommended by developers?
6406N/ACONFIGURE_OPTIONS += --disable-zlib
6406N/ACONFIGURE_OPTIONS += --enable-cairo-output
6406N/ACONFIGURE_OPTIONS += --enable-cms=lcms2
6406N/A# Required for other components.
6406N/ACONFIGURE_OPTIONS += --enable-introspection
6406N/ACONFIGURE_OPTIONS += --enable-largefile
6406N/ACONFIGURE_OPTIONS += --enable-libcurl
6406N/ACONFIGURE_OPTIONS += --enable-libjpeg
6406N/ACONFIGURE_OPTIONS += --enable-libpng
6406N/ACONFIGURE_OPTIONS += --enable-libtiff
6406N/ACONFIGURE_OPTIONS += --enable-poppler-cpp
5325N/ACONFIGURE_OPTIONS += --enable-poppler-glib
6406N/ACONFIGURE_OPTIONS += --enable-shared
6406N/ACONFIGURE_OPTIONS += --enable-splash-output
5325N/ACONFIGURE_OPTIONS += --enable-xpdf-headers
6406N/ACONFIGURE_OPTIONS += --with-font-configuration=fontconfig
6406N/ACONFIGURE_OPTIONS += --with-pic
6406N/ACONFIGURE_OPTIONS += --with-x
6406N/A# XXX clone test repo? ick.
6406N/A#CONFIGURE_OPTIONS += --with-testdatadir=
5325N/A
5325N/A# Install the poppler data files.
5325N/ACOMPONENT_POST_BUILD_ACTION = \
5325N/A (cd $(COMPONENT_DIR)/$(COMPONENT_SRC_1); \
5325N/A $(GMAKE) prefix=$(CONFIGURE_PREFIX) DESTDIR=$(PROTO_DIR) install)
5325N/A
5325N/A# Always show the build and link lines for easier debugging.
5325N/ACOMPONENT_BUILD_ARGS += V=1
5325N/A
5325N/AREQUIRED_PACKAGES += image/library/libjpeg
5325N/AREQUIRED_PACKAGES += image/library/libpng
6406N/AREQUIRED_PACKAGES += image/library/libtiff
6406N/AREQUIRED_PACKAGES += image/library/openjpeg2
5325N/AREQUIRED_PACKAGES += library/desktop/cairo
5325N/AREQUIRED_PACKAGES += library/desktop/gdk-pixbuf
5386N/AREQUIRED_PACKAGES += library/desktop/gtk2
5325N/AREQUIRED_PACKAGES += library/glib2
6406N/AREQUIRED_PACKAGES += library/lcms2
5325N/AREQUIRED_PACKAGES += library/libxml2
5325N/AREQUIRED_PACKAGES += library/zlib
5325N/AREQUIRED_PACKAGES += system/library/c++-runtime
5325N/AREQUIRED_PACKAGES += system/library/fontconfig
5325N/AREQUIRED_PACKAGES += system/library/freetype-2
6406N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
6406N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
5325N/AREQUIRED_PACKAGES += system/library/math
6406N/AREQUIRED_PACKAGES += web/curl