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