Makefile revision 4337
ae5c8b8ed5feb9a47c5007c986ce01ea39b5075fSerge Hallyn# CDDL HEADER START
8cd80b50efe2107ac351bfd0285050dd183398e7Stéphane Graber# The contents of this file are subject to the terms of the
ae5c8b8ed5feb9a47c5007c986ce01ea39b5075fSerge Hallyn# Common Development and Distribution License (the "License").
ae5c8b8ed5feb9a47c5007c986ce01ea39b5075fSerge Hallyn# You may not use this file except in compliance with the License.
ae5c8b8ed5feb9a47c5007c986ce01ea39b5075fSerge Hallyn# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ae5c8b8ed5feb9a47c5007c986ce01ea39b5075fSerge Hallyn# See the License for the specific language governing permissions
ae5c8b8ed5feb9a47c5007c986ce01ea39b5075fSerge Hallyn# and limitations under the License.
ae5c8b8ed5feb9a47c5007c986ce01ea39b5075fSerge Hallyn# When distributing Covered Code, include this CDDL HEADER in each
ae5c8b8ed5feb9a47c5007c986ce01ea39b5075fSerge Hallyn# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ae5c8b8ed5feb9a47c5007c986ce01ea39b5075fSerge Hallyn# If applicable, add the following below this CDDL HEADER, with the
ae5c8b8ed5feb9a47c5007c986ce01ea39b5075fSerge Hallyn# fields enclosed by brackets "[]" replaced with your own identifying
ae5c8b8ed5feb9a47c5007c986ce01ea39b5075fSerge Hallyn# information: Portions Copyright [yyyy] [name of copyright owner]
948955a2d6f8e4e28bceada9666c5831de4a6bb8Stéphane Graber# CDDL HEADER END
ae5c8b8ed5feb9a47c5007c986ce01ea39b5075fSerge Hallyn# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
ae5c8b8ed5feb9a47c5007c986ce01ea39b5075fSerge Hallyn# Built in SFW with gcc and builds cleanly now only with gcc
ae5c8b8ed5feb9a47c5007c986ce01ea39b5075fSerge HallynCOMPONENT_SRC= $(COMPONENT_SRC_NAME)_$(COMPONENT_VERSION)
ae5c8b8ed5feb9a47c5007c986ce01ea39b5075fSerge Hallyn sha256:3c28820c981b30c50df8ac2a4a238e5813454fa3ed2ad530bc7948a282846474
ae5c8b8ed5feb9a47c5007c986ce01ea39b5075fSerge HallynCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE)
2acf77955239ec0046451fa16812d2884e6bd19bDwight EngenCOMPONENT_SRC_1= $(COMPONENT_NAME_1)_$(COMPONENT_VERSION)
2acf77955239ec0046451fa16812d2884e6bd19bDwight Engen sha256:85b1b2a1011fc01af550f1fe9e5a599a4c5f2a35d264d2804af1d05590a857c3
2acf77955239ec0046451fa16812d2884e6bd19bDwight EngenCOMPONENT_ARCHIVE_URL_1= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE_1)
2acf77955239ec0046451fa16812d2884e6bd19bDwight Engen# HTML documentation
2acf77955239ec0046451fa16812d2884e6bd19bDwight EngenCOMPONENT_SRC_2= $(COMPONENT_NAME_2)_$(COMPONENT_VERSION)
2acf77955239ec0046451fa16812d2884e6bd19bDwight Engen sha256:baba1d373c1faacf4a1a6ec1220d57d0cb2b977edb74f32cd58dc786361c6cf5
2acf77955239ec0046451fa16812d2884e6bd19bDwight EngenCOMPONENT_ARCHIVE_URL_2= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE_2)
2acf77955239ec0046451fa16812d2884e6bd19bDwight EngenCONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS) -I/usr/include/gd2"
2acf77955239ec0046451fa16812d2884e6bd19bDwight Engen# The HiPE portion is a bit sensitive, and only seems to work 64-bit on
2acf77955239ec0046451fa16812d2884e6bd19bDwight Engen# amd64 (thus the variant.arch tagging in erlang.p5m). erts/config.log
2acf77955239ec0046451fa16812d2884e6bd19bDwight Engen# can be very interesting if issues occur.
2acf77955239ec0046451fa16812d2884e6bd19bDwight EngenCONFIGURE_OPTIONS.64 += LDFLAGS="$(LDFLAGS) -m64"
ae5c8b8ed5feb9a47c5007c986ce01ea39b5075fSerge Hallyn# Needed for 'set name=info.source-url' action in erlang-doc.p5m
1f845c396fc102951cc250d75f6f2bbfcb321aa0Dwight EngenPKG_MACROS += COMPONENT_ARCHIVE_URL_2=$(COMPONENT_ARCHIVE_URL_2)
1f845c396fc102951cc250d75f6f2bbfcb321aa0Dwight Engen# Use cp(1) instead of cloney because erlang's 'install' target uses 'tar'
2acf77955239ec0046451fa16812d2884e6bd19bDwight Engen# to copy files and our tar doesn't handle long links by default. Between
ae5c8b8ed5feb9a47c5007c986ce01ea39b5075fSerge Hallyn# the use of 'tar' and 'ld', a path adjustment wasn't an option due to the
1f845c396fc102951cc250d75f6f2bbfcb321aa0Dwight Engen# need for /usr/bin/ld and /usr/gnu/bin/tar. This is still the case with
33ad9f1ab13de51d28aecbcbdac086ea009a1740Christian Seiler# erlang version 17.5.
1f845c396fc102951cc250d75f6f2bbfcb321aa0Dwight Engen# Always show the build and link lines for easier debugging.
2acf77955239ec0046451fa16812d2884e6bd19bDwight EngenCOMPONENT_INSTALL_ARGS += INSTALL_PREFIX=$(PROTO_DIR)
2acf77955239ec0046451fa16812d2884e6bd19bDwight Engen# Remove the two lines which contains the tester's username.
2acf77955239ec0046451fa16812d2884e6bd19bDwight Engen '-e "s|/ldisk/tests|XXX_UID_XXX|g" ' \
2acf77955239ec0046451fa16812d2884e6bd19bDwight Engen '-e "/XXX_UID_XXX/d" '
2acf77955239ec0046451fa16812d2884e6bd19bDwight Engen # remove INSTALL_PREFIX from path
2acf77955239ec0046451fa16812d2884e6bd19bDwight Engen $(PROTO_DIR)/usr/lib/$(MACH64)/erlang/bin/erl \