components/desktop/xdg-utils/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Thu, 23 Feb 2017 13:46:52 -0800
changeset 7687 1093e2a9adbd
parent 7421 ff501eb83f43
permissions -rw-r--r--
25590368 Userland components should include "upstream" release tracking information
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7037
680031ff5b57 23245496 Move xdg-utils 1.0.2 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
     1
#
680031ff5b57 23245496 Move xdg-utils 1.0.2 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
     2
# CDDL HEADER START
680031ff5b57 23245496 Move xdg-utils 1.0.2 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
     3
#
680031ff5b57 23245496 Move xdg-utils 1.0.2 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
680031ff5b57 23245496 Move xdg-utils 1.0.2 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
680031ff5b57 23245496 Move xdg-utils 1.0.2 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
680031ff5b57 23245496 Move xdg-utils 1.0.2 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
     7
#
680031ff5b57 23245496 Move xdg-utils 1.0.2 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
680031ff5b57 23245496 Move xdg-utils 1.0.2 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
680031ff5b57 23245496 Move xdg-utils 1.0.2 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
680031ff5b57 23245496 Move xdg-utils 1.0.2 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    11
# and limitations under the License.
680031ff5b57 23245496 Move xdg-utils 1.0.2 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    12
#
680031ff5b57 23245496 Move xdg-utils 1.0.2 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
680031ff5b57 23245496 Move xdg-utils 1.0.2 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
680031ff5b57 23245496 Move xdg-utils 1.0.2 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
680031ff5b57 23245496 Move xdg-utils 1.0.2 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
680031ff5b57 23245496 Move xdg-utils 1.0.2 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
680031ff5b57 23245496 Move xdg-utils 1.0.2 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    18
#
680031ff5b57 23245496 Move xdg-utils 1.0.2 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    19
# CDDL HEADER END
680031ff5b57 23245496 Move xdg-utils 1.0.2 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    20
#
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 7421
diff changeset
    21
# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
7037
680031ff5b57 23245496 Move xdg-utils 1.0.2 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    22
#
680031ff5b57 23245496 Move xdg-utils 1.0.2 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    23
680031ff5b57 23245496 Move xdg-utils 1.0.2 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    24
BUILD_BITS=		64
680031ff5b57 23245496 Move xdg-utils 1.0.2 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    25
include ../../../make-rules/shared-macros.mk
680031ff5b57 23245496 Move xdg-utils 1.0.2 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    26
680031ff5b57 23245496 Move xdg-utils 1.0.2 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    27
COMPONENT_NAME=		xdg-utils
7421
ff501eb83f43 24973726 Upgrade xdg-utils to 1.1.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 7037
diff changeset
    28
COMPONENT_VERSION=	1.1.1
ff501eb83f43 24973726 Upgrade xdg-utils to 1.1.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 7037
diff changeset
    29
COMPONENT_PROJECT_URL=	https://www.freedesktop.org/wiki/Software/xdg-utils/
7037
680031ff5b57 23245496 Move xdg-utils 1.0.2 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    30
COMPONENT_ARCHIVE_HASH= \
7421
ff501eb83f43 24973726 Upgrade xdg-utils to 1.1.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 7037
diff changeset
    31
	sha256:b0dd63a2576e0bb16f1aa78d6ddf7d6784784a098d4df17161cd6a17c7bc4125
ff501eb83f43 24973726 Upgrade xdg-utils to 1.1.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 7037
diff changeset
    32
COMPONENT_ARCHIVE_URL=	http://portland.freedesktop.org/download/$(COMPONENT_ARCHIVE)
ff501eb83f43 24973726 Upgrade xdg-utils to 1.1.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 7037
diff changeset
    33
COMPONENT_SIG_URL=      $(COMPONENT_ARCHIVE_URL).asc
7037
680031ff5b57 23245496 Move xdg-utils 1.0.2 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    34
COMPONENT_BUGDB=	gnome/interop
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 7421
diff changeset
    35
COMPONENT_ANITYA_ID=	5176
7037
680031ff5b57 23245496 Move xdg-utils 1.0.2 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    36
7421
ff501eb83f43 24973726 Upgrade xdg-utils to 1.1.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 7037
diff changeset
    37
TPNO=			32590
7037
680031ff5b57 23245496 Move xdg-utils 1.0.2 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    38
680031ff5b57 23245496 Move xdg-utils 1.0.2 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    39
# Tests require a window system to be up and running
680031ff5b57 23245496 Move xdg-utils 1.0.2 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    40
TEST_TARGET = $(SKIP_TEST)
680031ff5b57 23245496 Move xdg-utils 1.0.2 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    41
680031ff5b57 23245496 Move xdg-utils 1.0.2 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    42
include $(WS_MAKE_RULES)/common.mk
680031ff5b57 23245496 Move xdg-utils 1.0.2 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    43
7421
ff501eb83f43 24973726 Upgrade xdg-utils to 1.1.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 7037
diff changeset
    44
# Replaces patches/0001-xdg-utils-01-bash.patch
ff501eb83f43 24973726 Upgrade xdg-utils to 1.1.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 7037
diff changeset
    45
COMPONENT_POST_UNPACK_ACTION += \
ff501eb83f43 24973726 Upgrade xdg-utils to 1.1.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 7037
diff changeset
    46
    $(GSED) -i -e 's,^\#!/bin/sh$$,\#!/usr/bin/bash,' $(@D)/scripts/*.in
ff501eb83f43 24973726 Upgrade xdg-utils to 1.1.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 7037
diff changeset
    47
ff501eb83f43 24973726 Upgrade xdg-utils to 1.1.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 7037
diff changeset
    48
# Cannot find desc/*.xml during build if tree isn't cloned
7037
680031ff5b57 23245496 Move xdg-utils 1.0.2 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    49
COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
680031ff5b57 23245496 Move xdg-utils 1.0.2 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    50
7421
ff501eb83f43 24973726 Upgrade xdg-utils to 1.1.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 7037
diff changeset
    51
# Use GNU awk & sed
ff501eb83f43 24973726 Upgrade xdg-utils to 1.1.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 7037
diff changeset
    52
CONFIGURE_ENV += PATH="$(GNUBIN):$(PATH)"
ff501eb83f43 24973726 Upgrade xdg-utils to 1.1.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 7037
diff changeset
    53
COMPONENT_BUILD_ENV += PATH="$(GNUBIN):$(PATH)"
ff501eb83f43 24973726 Upgrade xdg-utils to 1.1.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 7037
diff changeset
    54
ff501eb83f43 24973726 Upgrade xdg-utils to 1.1.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 7037
diff changeset
    55
# docbook-dtds, xsltproc, & xmlto are used to generate files during the build
ff501eb83f43 24973726 Upgrade xdg-utils to 1.1.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 7037
diff changeset
    56
REQUIRED_PACKAGES += data/docbook/docbook-dtds
ff501eb83f43 24973726 Upgrade xdg-utils to 1.1.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 7037
diff changeset
    57
REQUIRED_PACKAGES += developer/documentation-tool/xmlto
ff501eb83f43 24973726 Upgrade xdg-utils to 1.1.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 7037
diff changeset
    58
REQUIRED_PACKAGES += file/gnu-coreutils
ff501eb83f43 24973726 Upgrade xdg-utils to 1.1.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 7037
diff changeset
    59
REQUIRED_PACKAGES += gnome/config/gconf
ff501eb83f43 24973726 Upgrade xdg-utils to 1.1.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 7037
diff changeset
    60
REQUIRED_PACKAGES += gnome/zenity
ff501eb83f43 24973726 Upgrade xdg-utils to 1.1.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 7037
diff changeset
    61
REQUIRED_PACKAGES += library/gnome/gvfs
ff501eb83f43 24973726 Upgrade xdg-utils to 1.1.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 7037
diff changeset
    62
REQUIRED_PACKAGES += library/libxslt
7037
680031ff5b57 23245496 Move xdg-utils 1.0.2 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    63
REQUIRED_PACKAGES += shell/bash
7421
ff501eb83f43 24973726 Upgrade xdg-utils to 1.1.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 7037
diff changeset
    64
REQUIRED_PACKAGES += system/library/dbus
ff501eb83f43 24973726 Upgrade xdg-utils to 1.1.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 7037
diff changeset
    65
REQUIRED_PACKAGES += text/gawk
ff501eb83f43 24973726 Upgrade xdg-utils to 1.1.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 7037
diff changeset
    66
REQUIRED_PACKAGES += text/gnu-grep
ff501eb83f43 24973726 Upgrade xdg-utils to 1.1.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 7037
diff changeset
    67
REQUIRED_PACKAGES += text/gnu-sed
ff501eb83f43 24973726 Upgrade xdg-utils to 1.1.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 7037
diff changeset
    68
REQUIRED_PACKAGES += x11/x11-server-utilities