components/pkg-config/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Mon, 02 Feb 2015 11:55:58 -0800
changeset 3716 a2629a2cf270
parent 2225 f064d3d3190d
child 3817 30b42c38bbc4
permissions -rw-r--r--
20451511 Yet more Userland components should have master test results to compare against
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1359
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
     1
#
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
     3
#
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
     7
#
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    12
#
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    18
#
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    20
#
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    21
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    22
#
3716
a2629a2cf270 20451511 Yet more Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 2225
diff changeset
    23
# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
1359
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    24
#
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    25
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    27
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		pkg-config
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    29
COMPONENT_VERSION=	0.23
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    30
COMPONENT_PROJECT_URL=	http://www.freedesktop.org/wiki/Software/pkg-config
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    31
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    33
COMPONENT_ARCHIVE_HASH= \
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    34
    sha256:08a0e072d6a05419a58124db864f0685e6ac96e71b2875bf15ac12714e983b53
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    35
COMPONENT_ARCHIVE_URL=	http://pkgconfig.freedesktop.org/releases/$(COMPONENT_ARCHIVE)
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    36
COMPONENT_BUGDB=	utility/pkg-config
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    37
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1381
diff changeset
    38
TPNO=			9421
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1381
diff changeset
    39
1359
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    40
include ../../make-rules/prep.mk
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    41
include ../../make-rules/configure.mk
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    42
include ../../make-rules/ips.mk
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    43
1381
15aec33b84fa 17052472 pkg-config breaks sane-frontends build in 25
Brian Cameron <brian.cameron@oracle.com>
parents: 1359
diff changeset
    44
# otherwise our default PKG_CONFIG_PATH will change to the 64-bit libdir
15aec33b84fa 17052472 pkg-config breaks sane-frontends build in 25
Brian Cameron <brian.cameron@oracle.com>
parents: 1359
diff changeset
    45
CONFIGURE_LIBDIR.64 =   $(CONFIGURE_PREFIX)/lib
15aec33b84fa 17052472 pkg-config breaks sane-frontends build in 25
Brian Cameron <brian.cameron@oracle.com>
parents: 1359
diff changeset
    46
1359
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    47
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" 
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    48
COMPONENT_TEST_ENV += PATH=/usr/gnu/bin:/usr/bin
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    49
ASLR_MODE = $(ASLR_ENABLE)
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    50
3716
a2629a2cf270 20451511 Yet more Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 2225
diff changeset
    51
# The additional pkg-config specific set of transforms to be applied to the
a2629a2cf270 20451511 Yet more Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 2225
diff changeset
    52
# test results to try to normalize them.
a2629a2cf270 20451511 Yet more Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 2225
diff changeset
    53
COMPONENT_TEST_TRANSFORMS += \
a2629a2cf270 20451511 Yet more Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 2225
diff changeset
    54
	'-e "/^+ sed -e /d" '
a2629a2cf270 20451511 Yet more Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 2225
diff changeset
    55
1359
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    56
# common targets
2225
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 1948
diff changeset
    57
configure:	$(CONFIGURE_64)
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 1948
diff changeset
    58
1359
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    59
build:		$(BUILD_64)
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    60
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    61
install:	$(INSTALL_64)
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    62
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    63
test:		$(TEST_64)
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    64
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    65
BUILD_PKG_DEPENDENCIES =        $(BUILD_TOOLS)
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    66
0d0ad1e7bd3f 16851071 Move pkg-config from Desktop consolidation to Userland
Brian Cameron <brian.cameron@oracle.com>
parents:
diff changeset
    67
include ../../make-rules/depend.mk