12343c067e12be071a68bbb10d1d1c4870696769Tinderbox User#
6c2a76b3e2ccd32c35814b6e0f54da00190749d7Evan Hunt# CDDL HEADER START
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater#
c7fd128f8ea8a527fe27c1b95ab46df7155bc8e4Tinderbox User# The contents of this file are subject to the terms of the
c7fd128f8ea8a527fe27c1b95ab46df7155bc8e4Tinderbox User# Common Development and Distribution License (the "License").
ba9e87b35e561bc7354ce3f4b9685b747b7be507Tinderbox User# You may not use this file except in compliance with the License.
1f9754245cbd5eec2d2a667bb292f62f72386d4bMark Andrews#
59663800d2ec04777dae2791dd92aa563faf94c8Evan Hunt# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# or http://www.opensolaris.org/os/licensing.
1f9754245cbd5eec2d2a667bb292f62f72386d4bMark Andrews# See the License for the specific language governing permissions
59663800d2ec04777dae2791dd92aa563faf94c8Evan Hunt# and limitations under the License.
1ca2cf024391992fe14b2df7d3ae0f575d074452Evan Hunt#
0726d872f6f36901ea09321df57084614e5bb6faTinderbox User# When distributing Covered Code, include this CDDL HEADER in each
1ca2cf024391992fe14b2df7d3ae0f575d074452Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a2c370ca12bb0360ff7e969474ead3f788c65fffTinderbox User# If applicable, add the following below this CDDL HEADER, with the
8de3f14f1c300c3e1ed99084cc03485b42c92bf1Tinderbox User# fields enclosed by brackets "[]" replaced with your own identifying
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User# CDDL HEADER END
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#
2b7254075b883d70852a2757210793603085a0f1Tinderbox User
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
b91d11bfcc30b96f2c80f3a76d12e3dcc8597a68Mark Andrews#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsBUILD_BITS= 64_and_32
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsinclude ../../../make-rules/shared-macros.mk
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsCOMPONENT_NAME= evince
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsCOMPONENT_VERSION= 3.21.4
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCOMPONENT_PROJECT_URL= https://wiki.gnome.org/Apps/Evince
415d630b6309922caee8469384a6fab75cf05032Mark AndrewsCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCOMPONENT_ARCHIVE_HASH= \
415d630b6309922caee8469384a6fab75cf05032Mark Andrews sha256:12f0a411380b476a540a9e0629ca8ca938dad5e787e4ed1ff4f467e0356b1ffd
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark AndrewsCOMPONENT_ARCHIVE_URL= http://ftp.gnome.org/pub/GNOME/sources/$(COMPONENT_NAME)/3.21/$(COMPONENT_ARCHIVE)
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox UserCOMPONENT_BUGDB= gnome/evince
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsTPNO= 30508
415d630b6309922caee8469384a6fab75cf05032Mark Andrews
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsTEST_TARGET= $(NO_TESTS)
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrews
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User# Needs other components that are not available on S11.
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrewsifeq ($(BUILD_TYPE), evaluation)
415d630b6309922caee8469384a6fab75cf05032Mark AndrewsBUILD_32_and_64=
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsINSTALL_32_and_64=
415d630b6309922caee8469384a6fab75cf05032Mark AndrewsPUBLISH_STAMP=
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrewsendif
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrewsinclude $(WS_MAKE_RULES)/common.mk
015055b6e23f5c08f6a5b34726f90b62597e9e45Tinderbox User
7fcb9dbe08bc0111c5e03e953ba889f86a38b854Tinderbox User# Need to pick up the GNU version of xgettext.
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntPATH=$(GNUBIN):$(USRBINDIR)
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsCOMPONENT_PREP_ACTION = \
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt (cd $(@D) ; \
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews libtoolize --force --copy ; \
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews intltoolize --force --copy --automake ; \
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews aclocal -I . ; \
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt autoheader ; \
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews automake -a -c -f ; \
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews autoconf )
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# For now, all things built for C++11 require gcc.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Also, all components using gobject-introspection must be built with gcc as
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# gobject-introspection does not produce correct results when using Studio.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsCOMPILER=gcc
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCXXFLAGS += -std=c++11
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark AndrewsCPPFLAGS += "-I$(USRINCDIR)/libxml2"
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox UserLDFLAGS += $(CC_BITS) -lgmodule-2.0 -lm
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCONFIGURE_OPTIONS += --libexecdir="$(USRLIB)"
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCONFIGURE_OPTIONS += --sysconfdir="$(ETCDIR)"
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrews# Browser plugins of any form are obsolete at this point.
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox UserCONFIGURE_OPTIONS += --disable-browser-plugin
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# Requires djvulibre library.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsCONFIGURE_OPTIONS += --disable-djvu
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# Requires LaTeX libraries.
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark AndrewsCONFIGURE_OPTIONS += --disable-dvi
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCONFIGURE_OPTIONS += --disable-static
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark AndrewsCONFIGURE_OPTIONS += --enable-comics
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox UserCONFIGURE_OPTIONS += --enable-dbus
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# Required for other components.
015055b6e23f5c08f6a5b34726f90b62597e9e45Tinderbox UserCONFIGURE_OPTIONS += --enable-introspection
3ccf87473f7cf6d9faac156df38a935a238f96fdTinderbox UserCONFIGURE_OPTIONS += --enable-libgnome-desktop
fec6e13f2d1e69fe1c2b8fac36f732f124cf5398Mark Andrews# Re-enable when all of the new GNOME 3 desktop is integrated.
b378314925e78f21853a98cec924788ce1822c6cTinderbox UserCONFIGURE_OPTIONS += --disable-nautilus
ebe53509ca55a141131c104b6d722236b606e0efTinderbox UserCONFIGURE_OPTIONS += --enable-pdf
fec6e13f2d1e69fe1c2b8fac36f732f124cf5398Mark AndrewsCONFIGURE_OPTIONS += --enable-previewer
415d630b6309922caee8469384a6fab75cf05032Mark AndrewsCONFIGURE_OPTIONS += --enable-ps
2ae159b376dac23870d8005563c585acf85a4b5aEvan HuntCONFIGURE_OPTIONS += --enable-shared
415d630b6309922caee8469384a6fab75cf05032Mark AndrewsCONFIGURE_OPTIONS += --enable-t1lib
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark AndrewsCONFIGURE_OPTIONS += --enable-thumbnailer
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox UserCONFIGURE_OPTIONS += --enable-tiff
2ae159b376dac23870d8005563c585acf85a4b5aEvan HuntCONFIGURE_OPTIONS += --enable-viewer
7cc0a5d21ef046bfd630c4769943d896a7d7472cTinderbox UserCONFIGURE_OPTIONS += --enable-xps
3ccf87473f7cf6d9faac156df38a935a238f96fdTinderbox User
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Always show the build and link lines for easier debugging.
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox UserCOMPONENT_BUILD_ARGS += V=1
551e6d2414c4f47d58a9bb0b37f206f915a4f5acTinderbox User
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Needed to find GNU msgfmt.
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox UserCOMPONENT_BUILD_ENV += PATH="/usr/gnu/bin:$(PATH)"
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox UserREQUIRED_PACKAGES += archiver/unrar
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox UserREQUIRED_PACKAGES += desktop/pdf-viewer/poppler
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsREQUIRED_PACKAGES += gnome/file-manager/nautilus
51aeb0ae19596e99b029cfa933e73b76ebec480aTinderbox UserREQUIRED_PACKAGES += gnome/gsettings-desktop-schemas
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsREQUIRED_PACKAGES += gnome/theme/adwaita-icon-theme
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox UserREQUIRED_PACKAGES += image/library/libtiff
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox UserREQUIRED_PACKAGES += library/desktop/atk
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsREQUIRED_PACKAGES += library/desktop/cairo
415d630b6309922caee8469384a6fab75cf05032Mark AndrewsREQUIRED_PACKAGES += library/desktop/gdk-pixbuf
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonREQUIRED_PACKAGES += library/desktop/gstreamer-1
415d630b6309922caee8469384a6fab75cf05032Mark AndrewsREQUIRED_PACKAGES += library/desktop/gstreamer-1/gst-plugins-base
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark AndrewsREQUIRED_PACKAGES += library/desktop/gtk3
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox UserREQUIRED_PACKAGES += library/desktop/libgxps
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsREQUIRED_PACKAGES += library/desktop/pango
415d630b6309922caee8469384a6fab75cf05032Mark AndrewsREQUIRED_PACKAGES += library/glib2
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsREQUIRED_PACKAGES += library/gnome/gnome-desktop
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark AndrewsREQUIRED_PACKAGES += library/gnome/libsecret
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox UserREQUIRED_PACKAGES += library/libspectre
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsREQUIRED_PACKAGES += library/libxml2
415d630b6309922caee8469384a6fab75cf05032Mark AndrewsREQUIRED_PACKAGES += library/perl-5/xml-parser
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonREQUIRED_PACKAGES += library/zlib
415d630b6309922caee8469384a6fab75cf05032Mark AndrewsREQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark AndrewsREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox UserREQUIRED_PACKAGES += system/library/math
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsREQUIRED_PACKAGES += x11/library/libice
415d630b6309922caee8469384a6fab75cf05032Mark AndrewsREQUIRED_PACKAGES += x11/library/libsm
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonREQUIRED_PACKAGES += x11/library/libx11
415d630b6309922caee8469384a6fab75cf05032Mark Andrews