components/gnome/gnome-calculator/Makefile
author Niveditha Rau <Niveditha.Rau@Oracle.COM>
Wed, 19 Apr 2017 21:56:10 +0000
changeset 7956 4f61047bec23
parent 7687 1093e2a9adbd
permissions -rw-r--r--
25920322 build gnome-calculator with mpfr
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6646
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     1
#
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     2
# CDDL HEADER START
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     3
#
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     7
#
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    11
# and limitations under the License.
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    12
#
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    18
#
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    19
# CDDL HEADER END
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    20
#
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    21
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    22
#
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 6646
diff changeset
    23
# Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
6646
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    24
#
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    25
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    26
BUILD_BITS =            64
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    27
COMPILER =              gcc
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    28
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    29
include ../../../make-rules/shared-macros.mk
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    30
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    31
COMPONENT_NAME=		gnome-calculator
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    32
COMPONENT_VERSION=	3.18.2
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    33
COMPONENT_PROJECT_URL=	https://wiki.gnome.org/Apps/Calculator
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    34
COMPONENT_ARCHIVE_HASH= \
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    35
        sha256:c86c5857409ce1d01896904e97ccf0a1a880f3dcf428a524e5c0fec27b274d64
7956
4f61047bec23 25920322 build gnome-calculator with mpfr
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 7687
diff changeset
    36
COMPONENT_BUGDB=        gnome/applications
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 6646
diff changeset
    37
COMPONENT_ANITYA_ID=	13126
6646
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    38
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    39
TPNO=			25268
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    40
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    41
# Needs updated glib2, not available on S11.
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    42
ifeq ($(BUILD_TYPE), evaluation)
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    43
BUILD_64=
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    44
INSTALL_64=
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    45
PUBLISH_STAMP=
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    46
endif
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    47
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    48
include $(WS_MAKE_RULES)/gnome-component.mk
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    49
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    50
CONFIGURE_OPTIONS += --disable-static
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    51
CONFIGURE_OPTIONS += --enable-shared
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    52
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    53
# Required due to patches.
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    54
COMPONENT_PREP_ACTION += (cd $(@D); autoreconf -fiv);
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    55
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    56
# Assumes GNU msgfmt in PATH.
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    57
CONFIGURE_ENV += PATH="$(GNUBIN):$(PATH)"
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    58
COMPONENT_BUILD_ENV += PATH="$(GNUBIN):$(PATH)"
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    59
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    60
unexport SHELLOPTS
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    61
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    62
COMPONENT_TEST_ARGS =   -k -i
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    63
COMPONENT_TEST_TRANSFORMS += \
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    64
        '-n ' \
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    65
        '-e "/TOTAL:/p" ' \
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    66
        '-e "/SKIP:/p" ' \
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    67
        '-e "/PASS:/p" ' \
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    68
        '-e "/FAIL:/p" ' \
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    69
        '-e "/ERROR:/p" '
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    70
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    71
REQUIRED_PACKAGES += developer/documentation-tool/gtk-doc
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    72
REQUIRED_PACKAGES += developer/vala
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    73
REQUIRED_PACKAGES += gnome/gsettings-desktop-schemas
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    74
REQUIRED_PACKAGES += library/desktop/atk
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    75
REQUIRED_PACKAGES += library/desktop/gtk3
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    76
REQUIRED_PACKAGES += library/desktop/gtksourceview3
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    77
REQUIRED_PACKAGES += library/desktop/pango
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    78
REQUIRED_PACKAGES += library/glib2
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    79
REQUIRED_PACKAGES += library/gmp
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    80
REQUIRED_PACKAGES += library/libxml2
7956
4f61047bec23 25920322 build gnome-calculator with mpfr
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 7687
diff changeset
    81
REQUIRED_PACKAGES += library/mpfr
6646
53d5ae9559e1 23245717 Move GNOME calculator to Userland and update to 3.18.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    82
REQUIRED_PACKAGES += system/library/math