components/wdiff/Makefile
author Lukas Rovensky <Lukas.Rovensky@oracle.com>
Fri, 16 Oct 2015 04:21:46 -0700
changeset 4951 8ac3d1ff666a
parent 4732 d072001cb0ea
child 5682 94c0ca64c022
permissions -rw-r--r--
22040704 update COMPONENT_BUGDB in components/proftpd/Makefile
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1062
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
#
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
#
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
#
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
#
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    18
#
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    20
#
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    21
# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
1062
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    22
#
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    23
include ../../make-rules/shared-macros.mk
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    24
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    25
COMPONENT_NAME=		wdiff
3889
6d2b22b9de00 20555330 wdiff should be updated to version 1.2.2
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    26
COMPONENT_VERSION=	1.2.2
1062
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
COMPONENT_PROJECT_URL=	http://www.gnu.org/software/wdiff/
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    28
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    29
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    30
COMPONENT_ARCHIVE_HASH=	\
3889
6d2b22b9de00 20555330 wdiff should be updated to version 1.2.2
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    31
    sha256:34ff698c870c87e6e47a838eeaaae729fa73349139fc8db12211d2a22b78af6b
1062
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE_URL=	http://ftp.gnu.org/gnu/wdiff/$(COMPONENT_ARCHIVE)
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    33
COMPONENT_BUGDB=	utility/wdiff
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    34
3889
6d2b22b9de00 20555330 wdiff should be updated to version 1.2.2
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    35
TPNO=			21556
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1191
diff changeset
    36
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    37
include $(WS_MAKE_RULES)/prep.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    38
include $(WS_MAKE_RULES)/configure.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    39
include $(WS_MAKE_RULES)/ips.mk
1062
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    40
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    41
CONFIGURE_OPTIONS +=	CC="$(CC) -m64"
1076
aa4e6bad6e1d PSARC 2012/363 GNU wdiff 1.1.2
Rich Burridge <rich.burridge@oracle.com>
parents: 1062
diff changeset
    42
CONFIGURE_OPTIONS +=	--enable-experimental
1062
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    43
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    44
CFLAGS +=	-DDIFF_PROGRAM="/usr/gnu/bin/diff"
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    45
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    46
COMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    47
4732
d072001cb0ea 21540785 Some more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    48
COMPONENT_TEST_DIR =		$(SOURCE_DIR)/tests
d072001cb0ea 21540785 Some more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    49
COMPONENT_TEST_CMD =		./testsuite
d072001cb0ea 21540785 Some more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    50
COMPONENT_TEST_ARGS =		AUTOTEST_PATH="src"
d072001cb0ea 21540785 Some more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    51
COMPONENT_TEST_TARGETS =
d072001cb0ea 21540785 Some more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    52
d072001cb0ea 21540785 Some more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    53
COMPONENT_SYSTEM_TEST_DIR =	$(SOURCE_DIR)/tests
d072001cb0ea 21540785 Some more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    54
COMPONENT_SYSTEM_TEST_CMD =	./testsuite
d072001cb0ea 21540785 Some more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    55
COMPONENT_SYSTEM_TEST_ARGS =	AUTOTEST_PATH="src"
d072001cb0ea 21540785 Some more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    56
COMPONENT_SYSTEM_TEST_TARGETS =
d072001cb0ea 21540785 Some more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    57
d072001cb0ea 21540785 Some more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    58
# Get wdiff from /usr/bin
d072001cb0ea 21540785 Some more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    59
COMPONENT_SYSTEM_TEST_ENV +=   PATH="/usr/bin"
d072001cb0ea 21540785 Some more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    60
1191
3bdf33525a13 16426977 Numerous components in Userland need to have ASLR enabled.
Rich Burridge <rich.burridge@oracle.com>
parents: 1076
diff changeset
    61
ASLR_MODE = $(ASLR_ENABLE)
3bdf33525a13 16426977 Numerous components in Userland need to have ASLR enabled.
Rich Burridge <rich.burridge@oracle.com>
parents: 1076
diff changeset
    62
2225
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 1948
diff changeset
    63
configure:	$(CONFIGURE_64)
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 1948
diff changeset
    64
1062
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    65
build:		$(BUILD_64)
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    66
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    67
install:	$(INSTALL_64)
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    68
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    69
test:		$(TEST_64)
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    70
4732
d072001cb0ea 21540785 Some more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    71
system-test:    configure $(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: 3889
diff changeset
    72
1062
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    73
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    74
REQUIRED_PACKAGES += system/library
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    75
REQUIRED_PACKAGES += text/gnu-diffutils