Makefile revision 3090
ee7189b4bbce2f62ff79e8261cb28379ea84d3b9jerenkrantz# CDDL HEADER START
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# The contents of this file are subject to the terms of the
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# Common Development and Distribution License (the "License").
45740d5cd30d22f067c05b95f04f866abd7ebed8jwoolley# You may not use this file except in compliance with the License.
0bd0176ce9f4321eeb506aa372d0bcc84befbf4cstriker# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c25203fdca093d4504c51b4cd974ff60d5aa4fb1wrowe# See the License for the specific language governing permissions
c25203fdca093d4504c51b4cd974ff60d5aa4fb1wrowe# and limitations under the License.
d89c116f82699294ca744125723651c554bc5925wrowe# When distributing Covered Code, include this CDDL HEADER in each
4214e98fc9045e5010e66f9a967bd6d68f40d342aaron# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8721697e2aece27b0e738519329f7976c72b27bfjerenkrantz# If applicable, add the following below this CDDL HEADER, with the
c25203fdca093d4504c51b4cd974ff60d5aa4fb1wrowe# fields enclosed by brackets "[]" replaced with your own identifying
91cacb801f6c0215b38322f6d2fc58cbfedfecfbjerenkrantz# information: Portions Copyright [yyyy] [name of copyright owner]
df14f0d3a5191cdd7c4bb5b03acd135d43a6f51brbb# CDDL HEADER END
571760de5e60c0b459cb11be45507b923cd023eejwoolley# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
6f6f4a4bca281779d196acbdd5c017bb90858305trawick# IPS_COMPONENT_VERSION needs update whenever this is changed
8dd4618c4709236b4ea297d7250d282e463ce2d8rbbCOMPONENT_VERSION= R$(COMPONENT_VERSION_MAJOR)$(COMPONENT_VERSION_MINOR)$(COMPONENT_VERSION_MICRO)
bd929c73ef04789b7183b840d8db6e01d03a4d86rbbCOMPONENT_SRC= $(COMPONENT_SRC_NAME)_$(COMPONENT_VERSION)
af4c982a7cf4515f124935f99a329744035fc699slive sha256:4bccac86dd76aec050252e44276a0283a0df9218e6470cf042a9b9f9dfc9476c
af4c982a7cf4515f124935f99a329744035fc699sliveCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE)
af4c982a7cf4515f124935f99a329744035fc699sliveCOMPONENT_SRC_1= $(COMPONENT_NAME_1)_$(COMPONENT_VERSION)
5ca8e11fadb6f7a8d9d0367c1800205c99d4bcd6jerenkrantz sha256:07980d8014c7cf8194b7078c137353f5083992add4663ced3dcba2ff91f228d8
5ca8e11fadb6f7a8d9d0367c1800205c99d4bcd6jerenkrantzCOMPONENT_ARCHIVE_URL_1= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE_1)
dbec4658981e4f9127e8676457c28d42932be7cdtrawick# HTML documentation
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantzCOMPONENT_SRC_2= $(COMPONENT_NAME_2)_$(COMPONENT_VERSION)
f17588e04d2412bf1345783ed1d173322d728d6ftrawick sha256:d06f580f11d1303217a5c1cf8d68a98d7e01c535be934dcd430ecdc254f7572e
f17588e04d2412bf1345783ed1d173322d728d6ftrawickCOMPONENT_ARCHIVE_URL_2= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE_2)
2fb49a1d25f38421a68d31b4cbb5d9293fdeafbewrowe# IPS_COMPONENT_VERSION is by default set to $(COMPONENT_VERSION) but it is not
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz# enough for us. We need to include the $(COMPONENT_SUBVERSION) somehow.
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz# Because the IPS_COMPONENT_VERSION cannot contain letters or leading zeroes
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz# we use mapping:
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz# R(major)(minor)(micro) - (major).(minor as number).(micro)
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantzIPS_COMPONENT_VERSION= $(COMPONENT_VERSION_MAJOR).2.3
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz# Built in SFW with gcc and builds cleanly now only with gcc
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantzCONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS) -I/usr/include/gd2"
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz# The HiPE portion is a bit sensitive, and only seems to work 64-bit on
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz# amd64 (thus the variant.arch tagging in erlang.p5m). erts/config.log
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz# can be very interesting if issues occur.
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantzCONFIGURE_OPTIONS.64 += LDFLAGS="$(LDFLAGS) -m64"
ee7189b4bbce2f62ff79e8261cb28379ea84d3b9jerenkrantz# Needed for 'set name=info.source-url' action in erlang-doc.p5m
ee7189b4bbce2f62ff79e8261cb28379ea84d3b9jerenkrantzPKG_MACROS += COMPONENT_ARCHIVE_URL_2=$(COMPONENT_ARCHIVE_URL_2)
ee7189b4bbce2f62ff79e8261cb28379ea84d3b9jerenkrantz# Use cp(1) instead of cloney because erlang's 'install' target uses 'tar'
ee7189b4bbce2f62ff79e8261cb28379ea84d3b9jerenkrantz# to copy files and our tar doesn't handle long links by default. Between
ee7189b4bbce2f62ff79e8261cb28379ea84d3b9jerenkrantz# the use of 'tar' and 'ld', a path adjustment wasn't an option due to the
45740d5cd30d22f067c05b95f04f866abd7ebed8jwoolley# need for /usr/bin/ld and /usr/gnu/bin/tar. Perhaps this can be looked
45740d5cd30d22f067c05b95f04f866abd7ebed8jwoolley# at when we upgrade to a more current version.
45740d5cd30d22f067c05b95f04f866abd7ebed8jwoolleyCOMPONENT_INSTALL_ARGS += INSTALL_PREFIX=$(PROTO_DIR)
45740d5cd30d22f067c05b95f04f866abd7ebed8jwoolley# common targets
630f5fc1277582643fe0f831a4830e15127bd047jwoolley # Undelivered useless files:
56b2562cb4041a21bc313fde3204beabdb758800jwoolley # erlang/*/*.bat
56b2562cb4041a21bc313fde3204beabdb758800jwoolley # manpages: start.1 werl.1
b05930e6008f69bd323abe0c10f81f40ffd27983brianp $(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_1) && \
b05930e6008f69bd323abe0c10f81f40ffd27983brianp # remove INSTALL_PREFIX from path