make-rules/gnome-component.mk
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Thu, 26 Jan 2017 16:44:14 -0800
changeset 7617 14b1a4293086
parent 6911 7b878dfe6f0d
permissions -rw-r--r--
Close of build 117.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5891
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     1
#
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     2
# CDDL HEADER START
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     3
#
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     7
#
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    11
# and limitations under the License.
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    12
#
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    18
#
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    19
# CDDL HEADER END
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    20
#
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    21
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    22
#
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    23
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    24
#
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    25
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    26
#
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    27
# This file sets up the standard, default options and base requirements for
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    28
# GNOME userland components.
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    29
#
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    30
COMPONENT_PROJECT_URL ?=	https://www.gnome.org/
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    31
COMPONENT_MAJOR_MINOR ?=	$(basename $(COMPONENT_VERSION))
6911
7b878dfe6f0d 24661161 COMPONENT_SRC and COMPONENT_ARCHIVE are un-overridable in prep-*.mk
Danek Duvall <danek.duvall@oracle.com>
parents: 6389
diff changeset
    32
COMPONENT_ARCHIVE     ?=	$(COMPONENT_SRC).tar.xz
5891
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    33
COMPONENT_ARCHIVE_URL ?=	https://download.gnome.org/sources/$(COMPONENT_NAME)/$(COMPONENT_MAJOR_MINOR)/$(COMPONENT_ARCHIVE)
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    34
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    35
PKGMOGRIFY_TRANSFORMS += $(WS_TOP)/transforms/gnome-incorporation
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    36
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    37
include $(WS_MAKE_RULES)/common.mk
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    38
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    39
CONFIGURE_OPTIONS += --libexecdir="$(USRLIB)"
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    40
CONFIGURE_OPTIONS += --localstatedir="$(VARDIR)"
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    41
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    42
# Some components require an architecture-specific directory for their
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    43
# configuration, so these are specified per-bits.
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    44
ETCDIR.32 ?= $(ETCDIR)
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    45
ETCDIR.64 ?= $(ETCDIR)
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    46
CONFIGURE_OPTIONS += --sysconfdir="$(ETCDIR.$(BITS))"
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    47
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    48
# configure generally requires GNU make explicitly.
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    49
CONFIGURE_ENV += MAKE=$(MAKE)
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    50
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    51
CONFIGURE_ENV += INTLTOOL_PERL="$(PERL)"
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    52
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    53
# Tell g-ir-scanner not to cache results in homedir of user running the build
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    54
COMPONENT_BUILD_ENV += GI_SCANNER_DISABLE_CACHE=""
196a7310cc4d 23169139 Move glib to Userland and update to 2.46.0
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    55