components/convmv/Makefile
author Craig Mohrman <craig.mohrman@oracle.com>
Mon, 21 Mar 2016 13:57:26 -0700
changeset 5638 b88b6c00208e
parent 5550 ffe5f5eac3f7
child 5682 94c0ca64c022
permissions -rw-r--r--
22970244 userland should build with perl 5.22 as the default
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
308
35685f1e88a1 7054848 Move convmv to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
#
35685f1e88a1 7054848 Move convmv to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
35685f1e88a1 7054848 Move convmv to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
#
35685f1e88a1 7054848 Move convmv to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
35685f1e88a1 7054848 Move convmv to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
35685f1e88a1 7054848 Move convmv to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
35685f1e88a1 7054848 Move convmv to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
#
35685f1e88a1 7054848 Move convmv to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
35685f1e88a1 7054848 Move convmv to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
35685f1e88a1 7054848 Move convmv to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
35685f1e88a1 7054848 Move convmv to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
35685f1e88a1 7054848 Move convmv to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
#
35685f1e88a1 7054848 Move convmv to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
35685f1e88a1 7054848 Move convmv to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
35685f1e88a1 7054848 Move convmv to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
35685f1e88a1 7054848 Move convmv to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
35685f1e88a1 7054848 Move convmv to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
35685f1e88a1 7054848 Move convmv to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    18
#
35685f1e88a1 7054848 Move convmv to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
35685f1e88a1 7054848 Move convmv to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    20
#
35685f1e88a1 7054848 Move convmv to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    21
35685f1e88a1 7054848 Move convmv to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    22
#
5550
ffe5f5eac3f7 22853197 Update convmv to version 2.0
Rich Burridge <rich.burridge@oracle.com>
parents: 5017
diff changeset
    23
# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
308
35685f1e88a1 7054848 Move convmv to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    24
#
35685f1e88a1 7054848 Move convmv to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    25
35685f1e88a1 7054848 Move convmv to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
35685f1e88a1 7054848 Move convmv to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
35685f1e88a1 7054848 Move convmv to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		convmv
5550
ffe5f5eac3f7 22853197 Update convmv to version 2.0
Rich Burridge <rich.burridge@oracle.com>
parents: 5017
diff changeset
    29
COMPONENT_VERSION=	2.0
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 308
diff changeset
    30
COMPONENT_PROJECT_URL=	http://www.j3e.de/linux/convmv/
308
35685f1e88a1 7054848 Move convmv to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    31
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
35685f1e88a1 7054848 Move convmv to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 775
diff changeset
    33
COMPONENT_ARCHIVE_HASH=	\
5550
ffe5f5eac3f7 22853197 Update convmv to version 2.0
Rich Burridge <rich.burridge@oracle.com>
parents: 5017
diff changeset
    34
    sha256:170cf675be1fca77868ff472e9340ca828b1463865a63d4f4b7b3bf4053db93f
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 308
diff changeset
    35
COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)$(COMPONENT_ARCHIVE)
1058
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 800
diff changeset
    36
COMPONENT_BUGDB=	utility/convmv
308
35685f1e88a1 7054848 Move convmv to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    37
5550
ffe5f5eac3f7 22853197 Update convmv to version 2.0
Rich Burridge <rich.burridge@oracle.com>
parents: 5017
diff changeset
    38
TPNO=			27095
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1480
diff changeset
    39
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    40
include $(WS_MAKE_RULES)/prep.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    41
include $(WS_MAKE_RULES)/justmake.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    42
include $(WS_MAKE_RULES)/ips.mk
308
35685f1e88a1 7054848 Move convmv to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    43
35685f1e88a1 7054848 Move convmv to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    44
PATCH_LEVEL=0
35685f1e88a1 7054848 Move convmv to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    45
5550
ffe5f5eac3f7 22853197 Update convmv to version 2.0
Rich Burridge <rich.burridge@oracle.com>
parents: 5017
diff changeset
    46
COMPONENT_TEST_TRANSFORMS += \
ffe5f5eac3f7 22853197 Update convmv to version 2.0
Rich Burridge <rich.burridge@oracle.com>
parents: 5017
diff changeset
    47
	'-e "s/ in [0-9][0-9]*\.*[0-9]* seconds.//" ' \
ffe5f5eac3f7 22853197 Update convmv to version 2.0
Rich Burridge <rich.burridge@oracle.com>
parents: 5017
diff changeset
    48
	'-e "/^unimplemented function: utime.*$$/d" '
ffe5f5eac3f7 22853197 Update convmv to version 2.0
Rich Burridge <rich.burridge@oracle.com>
parents: 5017
diff changeset
    49
ffe5f5eac3f7 22853197 Update convmv to version 2.0
Rich Burridge <rich.burridge@oracle.com>
parents: 5017
diff changeset
    50
COMPONENT_TEST_TARGETS=		test
5017
44d0e60f5210 22111917 hook up convmv system-test target
Michael Nestler <Michael.Nestler@Oracle.COM>
parents: 4746
diff changeset
    51
COMPONENT_SYSTEM_TEST_TARGETS=	test
44d0e60f5210 22111917 hook up convmv system-test target
Michael Nestler <Michael.Nestler@Oracle.COM>
parents: 4746
diff changeset
    52
COMPONENT_SYSTEM_TEST_ENV=	CONVMV=/usr/bin/convmv
308
35685f1e88a1 7054848 Move convmv to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    53
5550
ffe5f5eac3f7 22853197 Update convmv to version 2.0
Rich Burridge <rich.burridge@oracle.com>
parents: 5017
diff changeset
    54
# Adjust the '#!/usr/bin/perl' at the beginning of the convmv script to use
ffe5f5eac3f7 22853197 Update convmv to version 2.0
Rich Burridge <rich.burridge@oracle.com>
parents: 5017
diff changeset
    55
# '#!/usr/perl5/$(PERL_VERSION)/bin/perl'
ffe5f5eac3f7 22853197 Update convmv to version 2.0
Rich Burridge <rich.burridge@oracle.com>
parents: 5017
diff changeset
    56
COMPONENT_POST_INSTALL_ACTION += \
5638
b88b6c00208e 22970244 userland should build with perl 5.22 as the default
Craig Mohrman <craig.mohrman@oracle.com>
parents: 5550
diff changeset
    57
	$(GSED) -i -e 's?/usr/bin/perl?$(PERL)?' \
5550
ffe5f5eac3f7 22853197 Update convmv to version 2.0
Rich Burridge <rich.burridge@oracle.com>
parents: 5017
diff changeset
    58
		$(PROTOUSRBINDIR)/convmv;
ffe5f5eac3f7 22853197 Update convmv to version 2.0
Rich Burridge <rich.burridge@oracle.com>
parents: 5017
diff changeset
    59
1434
c782e620dd26 17296512 Add ASLR_NOT_APPLICABLE as an ASLR mode in Userland
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    60
ASLR_MODE = $(ASLR_NOT_APPLICABLE)
c782e620dd26 17296512 Add ASLR_NOT_APPLICABLE as an ASLR mode in Userland
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    61
1480
1d8d2e9374cc 17476375 argparse, convmv, meld, parallel and quilt should be "64-bit"
Rich Burridge <rich.burridge@oracle.com>
parents: 1434
diff changeset
    62
build:		$(BUILD_64)
308
35685f1e88a1 7054848 Move convmv to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    63
1480
1d8d2e9374cc 17476375 argparse, convmv, meld, parallel and quilt should be "64-bit"
Rich Burridge <rich.burridge@oracle.com>
parents: 1434
diff changeset
    64
install:	$(INSTALL_64)
308
35685f1e88a1 7054848 Move convmv to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    65
1480
1d8d2e9374cc 17476375 argparse, convmv, meld, parallel and quilt should be "64-bit"
Rich Burridge <rich.burridge@oracle.com>
parents: 1434
diff changeset
    66
test:		$(TEST_64)
308
35685f1e88a1 7054848 Move convmv to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    67
5017
44d0e60f5210 22111917 hook up convmv system-test target
Michael Nestler <Michael.Nestler@Oracle.COM>
parents: 4746
diff changeset
    68
system-test:    $(SYSTEM_TEST_64)
4339
6501cf9c29f9 21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents: 3817
diff changeset
    69
5638
b88b6c00208e 22970244 userland should build with perl 5.22 as the default
Craig Mohrman <craig.mohrman@oracle.com>
parents: 5550
diff changeset
    70
REQUIRED_PACKAGES += $(PERL_PKG)