components/yasm/Makefile
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Thu, 16 Jun 2016 23:00:26 -0700
changeset 6236 9ecffda25374
parent 5682 94c0ca64c022
child 7687 1093e2a9adbd
permissions -rw-r--r--
Added tag s12-102 for changeset 309c116f1e44
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5128
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
#
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
#
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
#
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
#
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    18
#
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    20
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5128
diff changeset
    21
5128
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    22
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5128
diff changeset
    23
# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5128
diff changeset
    24
#
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5128
diff changeset
    25
BUILD_ARCH= i386
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5128
diff changeset
    26
BUILD_BITS= 64_and_32
5128
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
include ../../make-rules/shared-macros.mk
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    28
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    29
COMPONENT_NAME=		yasm
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    30
COMPONENT_VERSION=	1.3.0
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    31
COMPONENT_PROJECT_URL=	http://yasm.tortall.net/
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE_HASH=	\
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    33
    sha256:3dce6601b495f5b3d45b59f7d2492a340ee7e84b5beca17e48f862502bd5603f
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    34
COMPONENT_ARCHIVE_URL=	http://www.tortall.net/projects/$(COMPONENT_NAME)/releases/$(COMPONENT_ARCHIVE)
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    35
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    36
TPNO=			23620
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    37
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    38
PYTHON_VERSIONS= 2.7
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    39
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5128
diff changeset
    40
include $(WS_MAKE_RULES)/common.mk
5128
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    41
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    42
# Adjust all the source files in all the Makefile.inc files to generate
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    43
# shared libraries rather than a library archive.
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    44
# Note that the version number (in the shared-libraries.patch file) should be
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    45
# bumped anytime upstream makes an incompatible change (that we're aware of).
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    46
COMPONENT_PRE_CONFIGURE_ACTION = \
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    47
	$(CLONEY) $(SOURCE_DIR) $(@D) ; \
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    48
	mlist=`/usr/bin/find $(SOURCE_DIR) -name 'Makefile.inc'` ; \
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    49
	for f in $$mlist ; do \
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    50
	    $(GSED) -i -e 's|libyasm_a_SOURCES|libyasm_la_SOURCES|g' \
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    51
			-e 's|LDADD = libyasm.a|LDADD = libyasm.la|g' \
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    52
			$$f ; \
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    53
	done ; \
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    54
	(cd $(@D) ; \
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    55
	libtoolize --automake --copy ; \
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    56
	aclocal -I m4 ; \
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    57
	autoheader ; \
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    58
	automake --add-missing --copy ; \
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    59
	autoconf)
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    60
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    61
CONFIGURE_ENV += am_cv_python_pythondir=$(PYTHON_VENDOR_PACKAGES)
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    62
CONFIGURE_ENV += am_cv_python_pyexecdir=$(PYTHON_VENDOR_PACKAGES)
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    63
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    64
CONFIGURE_OPTIONS += --enable-python
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    65
CONFIGURE_OPTIONS += --disable-python-bindings
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    66
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    67
# Needed for "gmake test" to work successfully.
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    68
# If SHELLOPTS is exported (as it is by the userland makefiles),
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    69
# then all shell options get exported to child invocations of bash,
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    70
# which results in test failures due to nounset and xtrace being
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    71
# set unexpectedly, and errors such as "$1: unbound variable" and
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    72
# diffs failing due to script tracing in output files.
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    73
unexport SHELLOPTS
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    74
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    75
COMPONENT_TEST_TRANSFORMS += \
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    76
	'-e "s|^.*$(CC).*$$|XXX_REMOVE_XXX|g" ' \
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    77
	'-e "s|^.*source=.*libtool=no.*$$|XXX_REMOVE_XXX|g" ' \
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    78
	'-e "s|^.*DEPDIR=.deps.*$$|XXX_REMOVE_XXX|g" ' \
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    79
	'-e "s|^make.*: Leaving directory.*$$|XXX_REMOVE_XXX|g" ' \
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    80
	'-e "s|^make.*: Entering directory.*$$|XXX_REMOVE_XXX|g" ' \
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    81
	'-e "s|^make.*: Nothing to be.*$$|XXX_REMOVE_XXX|g" ' \
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    82
	'-e "s|^.*warning:.*$$|XXX_REMOVE_XXX|g" ' \
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    83
	'-e "s|^.*s up to date.*$$|XXX_REMOVE_XXX|g" ' \
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    84
	'-e "/^XXX_REMOVE_XXX$$/d" '
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    85
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    86
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    87
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    88
# Required for man pages.
218234c0062c PSARC 2015/316 The Yasm Modular Assembler Project
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    89
REQUIRED_PACKAGES += developer/documentation-tool/xmlto