5126N/A#
5126N/A# CDDL HEADER START
5126N/A#
5126N/A# The contents of this file are subject to the terms of the
5126N/A# Common Development and Distribution License (the "License").
5126N/A# You may not use this file except in compliance with the License.
5126N/A#
5126N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5126N/A# or http://www.opensolaris.org/os/licensing.
5126N/A# See the License for the specific language governing permissions
5126N/A# and limitations under the License.
5126N/A#
5126N/A# When distributing Covered Code, include this CDDL HEADER in each
5126N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5126N/A# If applicable, add the following below this CDDL HEADER, with the
5126N/A# fields enclosed by brackets "[]" replaced with your own identifying
5126N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5126N/A#
5126N/A# CDDL HEADER END
5126N/A#
5680N/A
5126N/A#
5680N/A# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
5680N/A#
5680N/ABUILD_ARCH= i386
5680N/ABUILD_BITS= 64_and_32
5126N/Ainclude ../../make-rules/shared-macros.mk
5126N/A
5126N/ACOMPONENT_NAME= yasm
5126N/ACOMPONENT_VERSION= 1.3.0
5126N/ACOMPONENT_PROJECT_URL= http://yasm.tortall.net/
5126N/ACOMPONENT_ARCHIVE_HASH= \
5126N/A sha256:3dce6601b495f5b3d45b59f7d2492a340ee7e84b5beca17e48f862502bd5603f
5126N/ACOMPONENT_ARCHIVE_URL= http://www.tortall.net/projects/$(COMPONENT_NAME)/releases/$(COMPONENT_ARCHIVE)
5126N/A
5126N/ATPNO= 23620
5126N/A
5126N/APYTHON_VERSIONS= 2.7
5126N/A
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
5126N/A
5126N/A# Adjust all the source files in all the Makefile.inc files to generate
5126N/A# shared libraries rather than a library archive.
5126N/A# Note that the version number (in the shared-libraries.patch file) should be
5126N/A# bumped anytime upstream makes an incompatible change (that we're aware of).
5126N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
5126N/A $(CLONEY) $(SOURCE_DIR) $(@D) ; \
5126N/A mlist=`/usr/bin/find $(SOURCE_DIR) -name 'Makefile.inc'` ; \
5126N/A for f in $$mlist ; do \
5126N/A $(GSED) -i -e 's|libyasm_a_SOURCES|libyasm_la_SOURCES|g' \
5126N/A -e 's|LDADD = libyasm.a|LDADD = libyasm.la|g' \
5126N/A $$f ; \
5126N/A done ; \
5126N/A (cd $(@D) ; \
5126N/A libtoolize --automake --copy ; \
5126N/A aclocal -I m4 ; \
5126N/A autoheader ; \
5126N/A automake --add-missing --copy ; \
5126N/A autoconf)
5126N/A
5126N/ACONFIGURE_ENV += am_cv_python_pythondir=$(PYTHON_VENDOR_PACKAGES)
5126N/ACONFIGURE_ENV += am_cv_python_pyexecdir=$(PYTHON_VENDOR_PACKAGES)
5126N/A
5126N/ACONFIGURE_OPTIONS += --enable-python
5126N/ACONFIGURE_OPTIONS += --disable-python-bindings
5126N/A
5126N/A# Needed for "gmake test" to work successfully.
5126N/A# If SHELLOPTS is exported (as it is by the userland makefiles),
5126N/A# then all shell options get exported to child invocations of bash,
5126N/A# which results in test failures due to nounset and xtrace being
5126N/A# set unexpectedly, and errors such as "$1: unbound variable" and
5126N/A# diffs failing due to script tracing in output files.
5126N/Aunexport SHELLOPTS
5126N/A
5126N/ACOMPONENT_TEST_TRANSFORMS += \
5126N/A '-e "s|^.*$(CC).*$$|XXX_REMOVE_XXX|g" ' \
5126N/A '-e "s|^.*source=.*libtool=no.*$$|XXX_REMOVE_XXX|g" ' \
5126N/A '-e "s|^.*DEPDIR=.deps.*$$|XXX_REMOVE_XXX|g" ' \
5126N/A '-e "s|^make.*: Leaving directory.*$$|XXX_REMOVE_XXX|g" ' \
5126N/A '-e "s|^make.*: Entering directory.*$$|XXX_REMOVE_XXX|g" ' \
5126N/A '-e "s|^make.*: Nothing to be.*$$|XXX_REMOVE_XXX|g" ' \
5126N/A '-e "s|^.*warning:.*$$|XXX_REMOVE_XXX|g" ' \
5126N/A '-e "s|^.*s up to date.*$$|XXX_REMOVE_XXX|g" ' \
5126N/A '-e "/^XXX_REMOVE_XXX$$/d" '
5126N/A
5126N/ACOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
5126N/A
5126N/A# Required for man pages.
5126N/AREQUIRED_PACKAGES += developer/documentation-tool/xmlto