components/wdiff/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Mon, 02 Mar 2015 18:06:32 -0800
changeset 3889 6d2b22b9de00
parent 3817 30b42c38bbc4
child 4339 6501cf9c29f9
permissions -rw-r--r--
20555330 wdiff should be updated to version 1.2.2
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
1191
3bdf33525a13 16426977 Numerous components in Userland need to have ASLR enabled.
Rich Burridge <rich.burridge@oracle.com>
parents: 1076
diff changeset
    48
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
    49
2225
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 1948
diff changeset
    50
configure:	$(CONFIGURE_64)
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 1948
diff changeset
    51
1062
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    52
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
    53
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    54
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
    55
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    56
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
    57
3e8044c3a700 PSARC 2012/001 wdiff version 1.1.0 - GNU word comparison utility
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    58
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    59
REQUIRED_PACKAGES += system/library
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    60
REQUIRED_PACKAGES += text/gnu-diffutils