Makefile revision 6406
98N/A#
98N/A# CDDL HEADER START
98N/A#
98N/A# The contents of this file are subject to the terms of the
935N/A# Common Development and Distribution License (the "License").
98N/A# You may not use this file except in compliance with the License.
98N/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
919N/A#
919N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
919N/A#
98N/ABUILD_BITS= 64_and_32
98N/Ainclude ../../../make-rules/shared-macros.mk
98N/A
235N/ACOMPONENT_NAME= poppler
156N/ACOMPONENT_VERSION= 0.33.0
156N/ACOMPONENT_PROJECT_URL= http://poppler.freedesktop.org/
156N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
156N/ACOMPONENT_ARCHIVE_HASH= \
98N/A sha256:a5fa6d7f7dc5382b48caca82b147c54bdffda02698611af76db5326ba64995a6
98N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)$(COMPONENT_ARCHIVE)
98N/ACOMPONENT_BUGDB= library/poppler
98N/ATPNO_POPPLER= 25617
493N/A
493N/ACOMPONENT_NAME_1= poppler-data
98N/ACOMPONENT_VERSION_1= 0.4.7
911N/ACOMPONENT_SRC_1= $(COMPONENT_NAME_1)-$(COMPONENT_VERSION_1)
952N/ACOMPONENT_ARCHIVE_1= $(COMPONENT_SRC_1).tar.gz
952N/ACOMPONENT_ARCHIVE_HASH_1= \
911N/A sha256:e752b0d88a7aba54574152143e7bf76436a7ef51977c55d6bd9a48dccde3a7de
98N/ACOMPONENT_ARCHIVE_URL_1= $(COMPONENT_PROJECT_URL)$(COMPONENT_ARCHIVE_1)
235N/ATPNO_POPPLER_DATA= 25618
493N/A
98N/ATEST_TARGET= $(NO_TESTS)
916N/A
916N/A# This version of poppler only works with the new version of evince.
916N/Aifeq ($(BUILD_TYPE), evaluation)
916N/ABUILD_32_and_64=
970N/AINSTALL_32_and_64=
970N/APUBLISH_STAMP=
970N/Aendif
970N/A
970N/Ainclude $(WS_MAKE_RULES)/common.mk
970N/A
970N/ACOMPONENT_PREP_ACTION = \
970N/A (cd $(@D) ; \
970N/A aclocal -I . ; \
970N/A libtoolize --force --copy ; \
970N/A autoheader ; \
970N/A automake -a -c -f ; \
970N/A autoconf )
970N/A
970N/A# For now, all things built for C++11 require gcc.
970N/A# (Poppler provides a C++ wrapper.)
970N/ACOMPILER=gcc
970N/A# Uses strcpy_s, etc. c11 functions.
970N/ACFLAGS += -std=c11
970N/ACXXFLAGS += -std=c++11 -D__STDC_WANT_LIB_EXT1__=1
970N/A
970N/A# Reduce build time dependencies since we don't ship this and can't run as an
970N/A# automated test.
970N/ACONFIGURE_OPTIONS += --disable-gtk-test
970N/ACONFIGURE_OPTIONS += --disable-poppler-qt4
970N/ACONFIGURE_OPTIONS += --disable-poppler-qt5
98N/ACONFIGURE_OPTIONS += --disable-static
98N/A# --enable-zlib not recommended by developers?
98N/ACONFIGURE_OPTIONS += --disable-zlib
606N/ACONFIGURE_OPTIONS += --enable-cairo-output
98N/ACONFIGURE_OPTIONS += --enable-cms=lcms2
98N/A# Required for other components.
98N/ACONFIGURE_OPTIONS += --enable-introspection
606N/ACONFIGURE_OPTIONS += --enable-largefile
606N/ACONFIGURE_OPTIONS += --enable-libcurl
98N/ACONFIGURE_OPTIONS += --enable-libjpeg
493N/ACONFIGURE_OPTIONS += --enable-libpng
98N/ACONFIGURE_OPTIONS += --enable-libtiff
970N/ACONFIGURE_OPTIONS += --enable-poppler-cpp
970N/ACONFIGURE_OPTIONS += --enable-poppler-glib
970N/ACONFIGURE_OPTIONS += --enable-shared
970N/ACONFIGURE_OPTIONS += --enable-splash-output
970N/ACONFIGURE_OPTIONS += --enable-xpdf-headers
970N/ACONFIGURE_OPTIONS += --with-font-configuration=fontconfig
970N/ACONFIGURE_OPTIONS += --with-pic
1003N/ACONFIGURE_OPTIONS += --with-x
1003N/A# XXX clone test repo? ick.
1003N/A#CONFIGURE_OPTIONS += --with-testdatadir=
1003N/A
98N/A# Install the poppler data files.
98N/ACOMPONENT_POST_BUILD_ACTION = \
970N/A (cd $(COMPONENT_DIR)/$(COMPONENT_SRC_1); \
98N/A $(GMAKE) prefix=$(CONFIGURE_PREFIX) DESTDIR=$(PROTO_DIR) install)
908N/A
591N/A# Always show the build and link lines for easier debugging.
493N/ACOMPONENT_BUILD_ARGS += V=1
493N/A
493N/AASLR_MODE = $(ASLR_ENABLE)
493N/A
493N/AREQUIRED_PACKAGES += image/library/libjpeg
493N/AREQUIRED_PACKAGES += image/library/libpng
493N/AREQUIRED_PACKAGES += image/library/libtiff
493N/AREQUIRED_PACKAGES += image/library/openjpeg2
493N/AREQUIRED_PACKAGES += library/desktop/cairo
705N/AREQUIRED_PACKAGES += library/desktop/gdk-pixbuf
493N/AREQUIRED_PACKAGES += library/desktop/gtk2
557N/AREQUIRED_PACKAGES += library/glib2
557N/AREQUIRED_PACKAGES += library/lcms2
493N/AREQUIRED_PACKAGES += library/libxml2
493N/AREQUIRED_PACKAGES += library/zlib
965N/AREQUIRED_PACKAGES += system/library/c++-runtime
965N/AREQUIRED_PACKAGES += system/library/fontconfig
965N/AREQUIRED_PACKAGES += system/library/freetype-2
606N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
606N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
851N/AREQUIRED_PACKAGES += system/library/math
851N/AREQUIRED_PACKAGES += web/curl
851N/A