Makefile revision 6406
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#
6406N/ABUILD_BITS= 64_and_32
5325N/Ainclude ../../../make-rules/shared-macros.mk
5325N/A
5325N/ACOMPONENT_NAME= evince
6406N/ACOMPONENT_VERSION= 3.16.0
5325N/ACOMPONENT_PROJECT_URL= https://wiki.gnome.org/Apps/Evince
6406N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
5325N/ACOMPONENT_ARCHIVE_HASH= \
6406N/A sha256:5138e2d05ccfe5e40df0c840b34f334c1f2bc03e5456aa954e64673d504ccd04
6406N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnome.org/pub/GNOME/sources/$(COMPONENT_NAME)/3.16/$(COMPONENT_ARCHIVE)
5375N/ACOMPONENT_BUGDB= gnome/evince
6406N/ATPNO= 25616
5325N/A
5680N/ATEST_TARGET= $(NO_TESTS)
6406N/A
6406N/A# Needs other components that are not available on S11.
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/A# Need to pick up the GNU version of xgettext.
5680N/APATH=$(GNUBIN):$(USRBINDIR)
5325N/A
5325N/ACOMPONENT_PREP_ACTION = \
5325N/A (cd $(@D) ; \
5680N/A libtoolize --force --copy ; \
5325N/A intltoolize --force --copy --automake ; \
5325N/A aclocal -I . ; \
5325N/A autoheader ; \
5325N/A automake -a -c -f ; \
5325N/A autoconf )
5325N/A
6406N/A# Prevent libtool from embedding runpath (via -R) and other such annoyances.
6406N/ACOMPONENT_POST_CONFIGURE_ACTION += \
6406N/A (cd $(BUILD_DIR_$(BITS)) ; \
6406N/A $(GSED) -i \
6406N/A -e 's|hardcode_into_libs=yes|hardcode_into_libs=no|g' \
6406N/A -e 's|hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
6406N/A -e 's|need_relink=yes|need_relink=not_on_solaris|g' \
6406N/A libtool)
6406N/A
6406N/A
6406N/A# For now, all things built for C++11 require gcc.
6406N/A# Also, all components using gobject-introspection must be built with gcc as
6406N/A# gobject-introspection does not produce correct results when using Studio.
6406N/ACOMPILER=gcc
6406N/ACXXFLAGS += -std=c++11
6406N/A
6406N/A# Delete this when build servers are installed with gnome-desktop
6406N/AGNOME-DESKTOP_BASE = $(WS_COMPONENTS)/gnome/gnome-desktop/build/prototype/$(MACH)
6406N/APKG_CONFIG_PATHS.32 += $(GNOME-DESKTOP_BASE)/usr/lib/pkgconfig
6406N/APKG_CONFIG_PATHS.64 += $(GNOME-DESKTOP_BASE)/usr/lib/$(MACH64)/pkgconfig/
6406N/APKG_CONFIG_PATHS += $(PKG_CONFIG_PATHS.$(BITS))
6406N/AGNOME-DESKTOP_LD_OPTIONS.32 += -L$(GNOME-DESKTOP_BASE)/usr/lib
6406N/AGNOME-DESKTOP_LD_OPTIONS.64 += -L$(GNOME-DESKTOP_BASE)/usr/lib/$(MACH64)
6406N/AGNOME-DESKTOP_LD_OPTIONS += $(GNOME-DESKTOP_LD_OPTIONS.$(BITS))
6406N/A
6406N/A# Delete this when build servers are installed with an updated libpoppler
6406N/APOPPLER_BASE = $(WS_COMPONENTS)/desktop/poppler/build/prototype/$(MACH)
6406N/APKG_CONFIG_PATHS.32 += $(POPPLER_BASE)/usr/lib/pkgconfig
6406N/APKG_CONFIG_PATHS.64 += $(POPPLER_BASE)/usr/lib/$(MACH64)/pkgconfig/
6406N/APKG_CONFIG_PATHS += $(PKG_CONFIG_PATHS.$(BITS))
6406N/APOPPLER_LD_OPTIONS.32 += -L$(POPPLER_BASE)/usr/lib
6406N/APOPPLER_LD_OPTIONS.64 += -L$(POPPLER_BASE)/usr/lib/$(MACH64)
6406N/APOPPLER_LD_OPTIONS += $(POPPLER_LD_OPTIONS.$(BITS))
6406N/A
6406N/ACPPFLAGS += "-I$(USRINCDIR)/libxml2"
5325N/ALDFLAGS += $(CC_BITS) -lgmodule-2.0 -lm
6406N/A
6406N/ACONFIGURE_ENV += LIBGNOME_DESKTOP_CFLAGS="-I$(GNOME-DESKTOP_BASE)/usr/include/gnome-desktop-3.0"
6406N/ACONFIGURE_ENV += LIBGNOME_DESKTOP_LIBS="$(GNOME-DESKTOP_LD_OPTIONS) -lgnome-desktop-3"
6406N/A
6406N/ACONFIGURE_ENV += POPPLER_CFLAGS="-I$(POPPLER_BASE)/usr/include/poppler/glib"
6406N/ACONFIGURE_ENV += POPPLER_LIBS="$(POPPLER_LD_OPTIONS) -lpoppler-glib"
5325N/A
5325N/ACONFIGURE_OPTIONS += --libexecdir="$(USRLIB)"
5325N/ACONFIGURE_OPTIONS += --sysconfdir="$(ETCDIR)"
6406N/A
6406N/A# Browser plugins of any form are obsolete at this point.
6406N/ACONFIGURE_OPTIONS += --disable-browser-plugin
6406N/A# Requires djvulibre library.
6406N/ACONFIGURE_OPTIONS += --disable-djvu
6406N/A# Requires LaTeX libraries.
6406N/ACONFIGURE_OPTIONS += --disable-dvi
6406N/ACONFIGURE_OPTIONS += --disable-static
6406N/ACONFIGURE_OPTIONS += --enable-comics
6406N/ACONFIGURE_OPTIONS += --enable-dbus
6406N/A# Required for other components.
6406N/ACONFIGURE_OPTIONS += --enable-introspection
6406N/ACONFIGURE_OPTIONS += --enable-libgnome-desktop
6406N/A# Re-enable when all of the new GNOME 3 desktop is integrated.
6406N/ACONFIGURE_OPTIONS += --disable-nautilus
6406N/ACONFIGURE_OPTIONS += --enable-pdf
6406N/ACONFIGURE_OPTIONS += --enable-previewer
6406N/ACONFIGURE_OPTIONS += --enable-ps
6406N/ACONFIGURE_OPTIONS += --enable-shared
6406N/ACONFIGURE_OPTIONS += --enable-t1lib
5680N/ACONFIGURE_OPTIONS += --enable-thumbnailer
6406N/ACONFIGURE_OPTIONS += --enable-tiff
6406N/ACONFIGURE_OPTIONS += --enable-viewer
6406N/ACONFIGURE_OPTIONS += --enable-xps
5325N/A
5325N/A# Always show the build and link lines for easier debugging.
5325N/ACOMPONENT_BUILD_ARGS += V=1
5325N/A
6406N/A# Needed to find GNU msgfmt.
6406N/ACOMPONENT_BUILD_ENV += PATH="/usr/gnu/bin:$(PATH)"
6406N/A
6406N/APOPPLER_LIBDIR.32 += $(POPPLER_BASE)/usr/lib
6406N/APOPPLER_LIBDIR.64 += $(POPPLER_BASE)/usr/lib/$(MACH64)
6406N/APOPPLER_LIBDIR += $(POPPLER_LIBDIR.$(BITS))
6406N/A
6406N/A# The poppler .la files in the poppler build prototype area have a libdir of
6406N/A# /usr/lib. This confuses linking things where we are trying to get the
6406N/A# poppler libraries from that prototype area.
6406N/ACOMPONENT_PRE_BUILD_ACTION += \
6406N/A $(RM) $(POPPLER_LIBDIR)/libpoppler.la \
6406N/A $(POPPLER_LIBDIR)/libpoppler-glib.la ;
6406N/A
6406N/AREQUIRED_PACKAGES += archiver/unrar
6406N/AREQUIRED_PACKAGES += desktop/pdf-viewer/poppler
5325N/AREQUIRED_PACKAGES += gnome/file-manager/nautilus
5325N/AREQUIRED_PACKAGES += image/library/libtiff
5325N/AREQUIRED_PACKAGES += library/desktop/atk
5325N/AREQUIRED_PACKAGES += library/desktop/cairo
5325N/AREQUIRED_PACKAGES += library/desktop/gdk-pixbuf
6406N/AREQUIRED_PACKAGES += library/desktop/gtk3
6406N/AREQUIRED_PACKAGES += library/desktop/libgxps
5325N/AREQUIRED_PACKAGES += library/desktop/pango
5325N/AREQUIRED_PACKAGES += library/glib2
6406N/AREQUIRED_PACKAGES += library/gnome/gnome-desktop
6406N/AREQUIRED_PACKAGES += library/gnome/libsecret
6406N/AREQUIRED_PACKAGES += library/libspectre
5325N/AREQUIRED_PACKAGES += library/libxml2
5795N/AREQUIRED_PACKAGES += library/perl-5/xml-parser
6406N/AREQUIRED_PACKAGES += library/zlib
6406N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
6406N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
5325N/AREQUIRED_PACKAGES += system/library/math
5325N/AREQUIRED_PACKAGES += x11/library/libice
5325N/AREQUIRED_PACKAGES += x11/library/libsm
5325N/AREQUIRED_PACKAGES += x11/library/libx11