components/patchutils/Makefile
author Danek Duvall <danek.duvall@oracle.com>
Tue, 05 Jan 2016 13:09:17 -0800
changeset 5241 21a30e6ac5fd
child 5682 94c0ca64c022
permissions -rw-r--r--
22393841 migrate patchutils to Userland
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5241
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     1
#
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     3
#
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     7
#
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    12
#
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    18
#
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    20
#
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    21
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    22
#
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    23
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    24
#
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    25
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    27
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		patchutils
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    29
COMPONENT_VERSION=	0.3.1
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    30
IPS_PKG_NAME=		text/patchutils
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    31
COMPONENT_PROJECT_URL=	http://cyberelk.net/tim/patchutils/
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    32
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    33
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.bz2
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    34
COMPONENT_ARCHIVE_HASH=	\
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    35
    sha256:48d28d4a6fd9922e15ecfd8a152ba5aef6673842c8303337fcaa6b3bb2d129a2
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    36
COMPONENT_ARCHIVE_URL=	http://cyberelk.net/tim/data/patchutils/stable/$(COMPONENT_ARCHIVE)
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    37
COMPONENT_BUGDB=	utility/patchutils
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    38
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    39
TPNO=			9269
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    40
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    41
include $(WS_MAKE_RULES)/prep.mk
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    42
include $(WS_MAKE_RULES)/configure.mk
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    43
include $(WS_MAKE_RULES)/ips.mk
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    44
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    45
CONFIGURE_OPTIONS  +=		CFLAGS="$(CFLAGS)"
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    46
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    47
# Commands go under /usr/bin so set bindir correctly.
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    48
CONFIGURE_BINDIR.64 =	$(CONFIGURE_PREFIX)/bin
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    49
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    50
ASLR_MODE = $(ASLR_ENABLE)
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    51
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    52
# A couple of tests dump core, and the message contains the pid
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    53
# A number of failing tests operate on randomly named files
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    54
# Remove the make garbage from the test output
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    55
COMPONENT_TEST_TRANSFORMS += \
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    56
	'-e "/coredump/s/[0-9]*: Abort/XXXX: Abort/"' \
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    57
	'-e "s,\(/var/tmp//.*diff-1\.\)......,\1XXXXXX,"' \
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    58
	'-e "1,/^for test in/{N;d}"' \
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    59
	'-e "/^===/{N;N;q}"'
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    60
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    61
# common targets
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    62
configure:	$(CONFIGURE_64)
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    63
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    64
build:		$(BUILD_64)
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    65
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    66
install:	$(INSTALL_64)
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    67
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    68
# Note that the gendiff tests will fail on Solaris, because the gendiff utility
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    69
# is missing; this is delivered by rpm.
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    70
test:		$(TEST_64)
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    71
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    72
system-test:    $(SYSTEM_TESTS_NOT_IMPLEMENTED)
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    73
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    74
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    75
REQUIRED_PACKAGES += runtime/perl-512
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    76
REQUIRED_PACKAGES += system/library
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    77
REQUIRED_PACKAGES += text/gnu-diffutils
21a30e6ac5fd 22393841 migrate patchutils to Userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    78
REQUIRED_PACKAGES += text/gnu-patch