Makefile revision 4730
bcb4e51a409d94ae670de96afb8483a4f7855294Stephan Bosch#
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen# CDDL HEADER START
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen#
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen# The contents of this file are subject to the terms of the
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen# Common Development and Distribution License (the "License").
419be6cd72f6e11705576bbba683b29c32eaa762Timo Sirainen# You may not use this file except in compliance with the License.
dfa2201c6ac8ddb2d2798dee15662cfe774e644eMartti Rannanjärvi#
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
42abccd9b2a5a4190bd3c14ec2dcc10d51c0f491Timo Sirainen# or http://www.opensolaris.org/os/licensing.
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen# See the License for the specific language governing permissions
458acd7b39c84bae0d18c36ff9ddff9a49b4ae4aTimo Sirainen# and limitations under the License.
92c27c7db84150bff9e77271f19efc5aec4f214aTimo Sirainen#
eed56fe22f1fc61f2003d5e66373d03dacbc9aaaTimo Sirainen# When distributing Covered Code, include this CDDL HEADER in each
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0f72f253d5a117dad2f28b2ce336190a5e6b79c8Stephan Bosch# If applicable, add the following below this CDDL HEADER, with the
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen# fields enclosed by brackets "[]" replaced with your own identifying
458acd7b39c84bae0d18c36ff9ddff9a49b4ae4aTimo Sirainen# information: Portions Copyright [yyyy] [name of copyright owner]
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen#
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen# CDDL HEADER END
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen#
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen#
98720d3b830e8ec762e9bdde94a71c0ef184595dTimo Siraineninclude ../../make-rules/shared-macros.mk
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen
315ce5be539bfe8bc7777ab0654499c49583cea2Timo SirainenCOMPONENT_NAME= wdiff
315ce5be539bfe8bc7777ab0654499c49583cea2Timo SirainenCOMPONENT_VERSION= 1.2.2
d482079eb385cd071bbc9637cacee225e4aff968Timo SirainenCOMPONENT_PROJECT_URL= http://www.gnu.org/software/wdiff/
315ce5be539bfe8bc7777ab0654499c49583cea2Timo SirainenCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
725051a12a40625d79aada33f86993d7b8a18631Timo SirainenCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
4da8c6cdefabd31262318c32da3c13de1d9ea953Timo SirainenCOMPONENT_ARCHIVE_HASH= \
42abccd9b2a5a4190bd3c14ec2dcc10d51c0f491Timo Sirainen sha256:34ff698c870c87e6e47a838eeaaae729fa73349139fc8db12211d2a22b78af6b
315ce5be539bfe8bc7777ab0654499c49583cea2Timo SirainenCOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/wdiff/$(COMPONENT_ARCHIVE)
b73539ef2de3db3abc0ad5f729406e695e4cb76bStephan BoschCOMPONENT_BUGDB= utility/wdiff
b73539ef2de3db3abc0ad5f729406e695e4cb76bStephan Bosch
4df5abb0254e611264c801535a9a6cad8a6ac7b1Stephan BoschTPNO= 21556
4df5abb0254e611264c801535a9a6cad8a6ac7b1Stephan Bosch
4df5abb0254e611264c801535a9a6cad8a6ac7b1Stephan Boschinclude $(WS_MAKE_RULES)/prep.mk
4df5abb0254e611264c801535a9a6cad8a6ac7b1Stephan Boschinclude $(WS_MAKE_RULES)/configure.mk
4df5abb0254e611264c801535a9a6cad8a6ac7b1Stephan Boschinclude $(WS_MAKE_RULES)/ips.mk
4df5abb0254e611264c801535a9a6cad8a6ac7b1Stephan Bosch
4df5abb0254e611264c801535a9a6cad8a6ac7b1Stephan BoschCONFIGURE_OPTIONS += CC="$(CC) -m64"
4df5abb0254e611264c801535a9a6cad8a6ac7b1Stephan BoschCONFIGURE_OPTIONS += --enable-experimental
db693bf6fcae96d834567f1782257517b7207655Timo Sirainen
315ce5be539bfe8bc7777ab0654499c49583cea2Timo SirainenCFLAGS += -DDIFF_PROGRAM="/usr/gnu/bin/diff"
db693bf6fcae96d834567f1782257517b7207655Timo Sirainen
823802b00ed82188e8666ad980379070e89c9009Stephan BoschCOMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen
315ce5be539bfe8bc7777ab0654499c49583cea2Timo SirainenCOMPONENT_TEST_DIR = $(SOURCE_DIR)/tests
f40228208c910147bf972b98fcdc4b3a3f6d200cTimo SirainenCOMPONENT_TEST_CMD = ./testsuite
f40228208c910147bf972b98fcdc4b3a3f6d200cTimo SirainenCOMPONENT_TEST_ARGS = AUTOTEST_PATH="src"
f40228208c910147bf972b98fcdc4b3a3f6d200cTimo SirainenCOMPONENT_TEST_TARGETS =
f40228208c910147bf972b98fcdc4b3a3f6d200cTimo Sirainen
f40228208c910147bf972b98fcdc4b3a3f6d200cTimo SirainenCOMPONENT_SYSTEM_TEST_DIR = $(SOURCE_DIR)/tests
f40228208c910147bf972b98fcdc4b3a3f6d200cTimo SirainenCOMPONENT_SYSTEM_TEST_CMD = ./testsuite
f40228208c910147bf972b98fcdc4b3a3f6d200cTimo SirainenCOMPONENT_SYSTEM_TEST_ARGS = AUTOTEST_PATH="src"
a4804621ea31f573a68da297ee64bfe1f1d5d9b1Aki TuomiCOMPONENT_SYSTEM_TEST_TARGETS =
a4804621ea31f573a68da297ee64bfe1f1d5d9b1Aki Tuomi
a4804621ea31f573a68da297ee64bfe1f1d5d9b1Aki Tuomi# Get wdiff from /usr/bin
a4804621ea31f573a68da297ee64bfe1f1d5d9b1Aki TuomiCOMPONENT_SYSTEM_TEST_ENV += PATH="/usr/bin"
efe78d3ba24fc866af1c79b9223dc0809ba26cadStephan Bosch
a4804621ea31f573a68da297ee64bfe1f1d5d9b1Aki TuomiASLR_MODE = $(ASLR_ENABLE)
a4804621ea31f573a68da297ee64bfe1f1d5d9b1Aki Tuomi
f33cd5b8b44175256eb92bec51a60ad8fb98bbe0Timo Sirainenconfigure: $(CONFIGURE_64)
f33cd5b8b44175256eb92bec51a60ad8fb98bbe0Timo Sirainen
f33cd5b8b44175256eb92bec51a60ad8fb98bbe0Timo Sirainenbuild: $(BUILD_64)
816d20be0cf95fc4eb1a8aa716639e73b8ba525eMartti Rannanjärvi
f40228208c910147bf972b98fcdc4b3a3f6d200cTimo Siraineninstall: $(INSTALL_64)
f40228208c910147bf972b98fcdc4b3a3f6d200cTimo Sirainen
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainentest: $(TEST_64)
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen
2fb9ae42f9e36388ec6db24188b9108434043fd0Timo Sirainensystem-test: configure $(SYSTEM_TEST_64)
b73539ef2de3db3abc0ad5f729406e695e4cb76bStephan Bosch
b73539ef2de3db3abc0ad5f729406e695e4cb76bStephan Bosch
b73539ef2de3db3abc0ad5f729406e695e4cb76bStephan BoschREQUIRED_PACKAGES += system/library
b73539ef2de3db3abc0ad5f729406e695e4cb76bStephan BoschREQUIRED_PACKAGES += text/gnu-diffutils
b73539ef2de3db3abc0ad5f729406e695e4cb76bStephan Bosch