7032N/A#
7032N/A# CDDL HEADER START
7032N/A#
7032N/A# The contents of this file are subject to the terms of the
7032N/A# Common Development and Distribution License (the "License").
7032N/A# You may not use this file except in compliance with the License.
7032N/A#
7032N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7032N/A# or http://www.opensolaris.org/os/licensing.
7032N/A# See the License for the specific language governing permissions
7032N/A# and limitations under the License.
7032N/A#
7032N/A# When distributing Covered Code, include this CDDL HEADER in each
7032N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7032N/A# If applicable, add the following below this CDDL HEADER, with the
7032N/A# fields enclosed by brackets "[]" replaced with your own identifying
7032N/A# information: Portions Copyright [yyyy] [name of copyright owner]
7032N/A#
7032N/A# CDDL HEADER END
7032N/A#
7032N/A
7032N/A#
7032N/A# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
7032N/A#
7032N/Ainclude ../../make-rules/shared-macros.mk
7032N/A
7032N/ACOMPONENT_NAME= yasm
7032N/ACOMPONENT_VERSION= 1.3.0
7032N/ACOMPONENT_PROJECT_URL= http://yasm.tortall.net/
7032N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
7032N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
7032N/ACOMPONENT_ARCHIVE_HASH= \
7032N/A sha256:3dce6601b495f5b3d45b59f7d2492a340ee7e84b5beca17e48f862502bd5603f
7032N/ACOMPONENT_ARCHIVE_URL= http://www.tortall.net/projects/$(COMPONENT_NAME)/releases/$(COMPONENT_ARCHIVE)
7032N/ACOMPONENT_BUGDB= utility/yasm
7032N/A
7032N/ATPNO= 23620
7032N/A
7032N/A# We're i386-only
7032N/Aifeq ($(MACH), sparc)
7032N/APUBLISH_STAMP=
7032N/Aendif
7032N/A
7032N/A# Enable ASLR for this component
7032N/AASLR_MODE = $(ASLR_ENABLE)
7032N/A
7032N/APYTHON_VERSIONS= 2.7
7032N/A
7032N/Ainclude $(WS_MAKE_RULES)/prep.mk
7032N/Ainclude $(WS_MAKE_RULES)/configure.mk
7032N/Ainclude $(WS_MAKE_RULES)/ips.mk
7032N/A
7032N/A# Adjust all the source files in all the Makefile.inc files to generate
7032N/A# shared libraries rather than a library archive.
7032N/A# Note that the version number (in the shared-libraries.patch file) should be
7032N/A# bumped anytime upstream makes an incompatible change (that we're aware of).
7032N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
7032N/A $(CLONEY) $(SOURCE_DIR) $(@D) ; \
7032N/A mlist=`/usr/bin/find $(SOURCE_DIR) -name 'Makefile.inc'` ; \
7032N/A for f in $$mlist ; do \
7032N/A $(GSED) -i -e 's|libyasm_a_SOURCES|libyasm_la_SOURCES|g' \
7032N/A -e 's|LDADD = libyasm.a|LDADD = libyasm.la|g' \
7032N/A $$f ; \
7032N/A done ; \
7032N/A (cd $(@D) ; \
7032N/A libtoolize --automake --copy ; \
7032N/A aclocal -I m4 ; \
7032N/A autoheader ; \
7032N/A automake --add-missing --copy ; \
7032N/A autoconf)
7032N/A
7032N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
7032N/ACONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
7032N/ACONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
7032N/A
7032N/ACONFIGURE_ENV += am_cv_python_pythondir=$(PYTHON_VENDOR_PACKAGES)
7032N/ACONFIGURE_ENV += am_cv_python_pyexecdir=$(PYTHON_VENDOR_PACKAGES)
7032N/A
7032N/ACONFIGURE_OPTIONS += --enable-python
7032N/ACONFIGURE_OPTIONS += --disable-python-bindings
7032N/A
7032N/A# Needed for "gmake test" to work successfully.
7032N/A# If SHELLOPTS is exported (as it is by the userland makefiles),
7032N/A# then all shell options get exported to child invocations of bash,
7032N/A# which results in test failures due to nounset and xtrace being
7032N/A# set unexpectedly, and errors such as "$1: unbound variable" and
7032N/A# diffs failing due to script tracing in output files.
7032N/Aunexport SHELLOPTS
7032N/A
7032N/Asparc:
7032N/A @echo "Not available."
7032N/A
7032N/Aconfigure_sparc: sparc
7032N/Abuild_sparc: sparc
7032N/Ainstall_sparc: sparc
7032N/Atest_sparc: sparc
7032N/A
7032N/Aconfigure_i386: $(CONFIGURE_32_and_64)
7032N/Abuild_i386: $(BUILD_32_and_64)
7032N/Ainstall_i386: $(INSTALL_32_and_64)
7032N/Atest_i386: $(TEST_32_and_64)
7032N/A
7032N/A# common targets. we're i386-only so we have to
7032N/A# be slightly tricky.
7032N/A
7032N/Aconfigure: configure_$(MACH)
7032N/A
7032N/Abuild: build_$(MACH)
7032N/A
7032N/Ainstall: install_$(MACH)
7032N/A
7032N/Atest: test_$(MACH)
7032N/A
7032N/A# Required for man pages.
7032N/AREQUIRED_PACKAGES += developer/documentation-tool/xmlto
7032N/AREQUIRED_PACKAGES += system/library