components/desktop/libspectre/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Fri, 17 Mar 2017 12:10:26 -0700
changeset 7774 43e146eebb72
parent 7687 1093e2a9adbd
permissions -rw-r--r--
25702604 Update libspectre to version 0.2.8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5327
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
#
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
#
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
#
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
#
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    18
#
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    20
#
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    21
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    22
#
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 7122
diff changeset
    23
# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
5327
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    24
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5327
diff changeset
    25
BUILD_BITS= 64_and_32
5327
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    26
include ../../../make-rules/shared-macros.mk
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		libspectre
7774
43e146eebb72 25702604 Update libspectre to version 0.2.8
Rich Burridge <rich.burridge@oracle.com>
parents: 7687
diff changeset
    29
COMPONENT_VERSION=	0.2.8
5327
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    30
COMPONENT_PROJECT_URL=	http://libspectre.freedesktop.org
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    31
COMPONENT_ARCHIVE_HASH= \
7774
43e146eebb72 25702604 Update libspectre to version 0.2.8
Rich Burridge <rich.burridge@oracle.com>
parents: 7687
diff changeset
    32
    sha256:65256af389823bbc4ee4d25bfd1cc19023ffc29ae9f9677f2d200fa6e98bc7a8
5327
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    33
COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)/releases/$(COMPONENT_ARCHIVE)
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    34
COMPONENT_BUGDB=	library/libspectre
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 7122
diff changeset
    35
COMPONENT_ANITYA_ID=	1724
5327
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    36
7774
43e146eebb72 25702604 Update libspectre to version 0.2.8
Rich Burridge <rich.burridge@oracle.com>
parents: 7687
diff changeset
    37
TPNO=			34210
5327
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    38
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5327
diff changeset
    39
TEST_TARGET= $(NO_TESTS)
6491
1b7240d88fc0 24356599 do not publish libspectre when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6293
diff changeset
    40
1b7240d88fc0 24356599 do not publish libspectre when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6293
diff changeset
    41
# Forked from evince, which cannot be published => do-not-publish.
1b7240d88fc0 24356599 do not publish libspectre when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6293
diff changeset
    42
ifeq ($(BUILD_TYPE), evaluation)
1b7240d88fc0 24356599 do not publish libspectre when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6293
diff changeset
    43
BUILD_32_and_64=
1b7240d88fc0 24356599 do not publish libspectre when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6293
diff changeset
    44
INSTALL_32_and_64=
1b7240d88fc0 24356599 do not publish libspectre when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6293
diff changeset
    45
PUBLISH_STAMP=
1b7240d88fc0 24356599 do not publish libspectre when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6293
diff changeset
    46
endif
1b7240d88fc0 24356599 do not publish libspectre when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6293
diff changeset
    47
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5327
diff changeset
    48
include $(WS_MAKE_RULES)/common.mk
5327
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    49
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    50
COMPONENT_PREP_ACTION = \
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    51
	(cd $(@D) ; \
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    52
	aclocal -I . ; \
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    53
	libtoolize --force ; \
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    54
	autoheader ; \
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    55
	automake -a -c -f ; \
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    56
	autoconf )
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    57
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    58
CONFIGURE_OPTIONS +=	--disable-static
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    59
CONFIGURE_OPTIONS +=	--enable-shared
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    60
CONFIGURE_OPTIONS +=	--with-pic
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    61
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    62
# Always show the build and link lines for easier debugging.
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    63
COMPONENT_BUILD_ARGS += V=1
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    64
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    65
REQUIRED_PACKAGES += print/filter/ghostscript
7122
630f5a510c0a 24824548 ghostscript package breakup breaks graphviz/libspectre
Swaroop M S <swaroop.sadare@oracle.com>
parents: 6552
diff changeset
    66
REQUIRED_PACKAGES += print/filter/ghostscript-core