components/desktop/libspectre/Makefile
author John Beck <John.Beck@Oracle.COM>
Tue, 26 Jul 2016 14:42:11 -0700
changeset 6491 1b7240d88fc0
parent 6293 f3245760f53f
child 6552 402379bc1b60
permissions -rw-r--r--
24356599 do not publish libspectre when BUILD_TYPE=evaluation
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
#
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    23
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
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
6293
f3245760f53f PSARC 2016/321 Update evince, poppler, poppler-data and libspectre
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    29
COMPONENT_VERSION=	0.2.7
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= \
6293
f3245760f53f PSARC 2016/321 Update evince, poppler, poppler-data and libspectre
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    32
	sha256:e81b822a106beed14cf0fec70f1b890c690c2ffa150fa2eee41dc26518a6c3ec
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
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    35
6293
f3245760f53f PSARC 2016/321 Update evince, poppler, poppler-data and libspectre
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    36
TPNO=			25619
5327
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    37
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5327
diff changeset
    38
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
    39
1b7240d88fc0 24356599 do not publish libspectre when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6293
diff changeset
    40
# 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
    41
ifeq ($(BUILD_TYPE), evaluation)
1b7240d88fc0 24356599 do not publish libspectre when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6293
diff changeset
    42
BUILD_32_and_64=
1b7240d88fc0 24356599 do not publish libspectre when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6293
diff changeset
    43
INSTALL_32_and_64=
1b7240d88fc0 24356599 do not publish libspectre when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6293
diff changeset
    44
PUBLISH_STAMP=
1b7240d88fc0 24356599 do not publish libspectre when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6293
diff changeset
    45
endif
1b7240d88fc0 24356599 do not publish libspectre when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6293
diff changeset
    46
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5327
diff changeset
    47
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
    48
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    49
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
    50
	(cd $(@D) ; \
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    51
	aclocal -I . ; \
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    52
	libtoolize --force ; \
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    53
	autoheader ; \
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    54
	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
    55
	autoconf )
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    56
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    57
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
    58
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
    59
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
    60
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    61
# 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
    62
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
    63
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    64
ASLR_MODE = $(ASLR_ENABLE)
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    65
e8b0f6b16632 PSARC 2016/025 Move evince, poppler, poppler-data and libspectre to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    66
REQUIRED_PACKAGES += print/filter/ghostscript