Makefile revision 3477
276e28f813ffef042d5a6e9f3373ef4e2ad37996Mark Andrews# CDDL HEADER START
250ed9e230b3903b1b264dd1ed2f691fc7cd2f8fAndreas Gustafsson# The contents of this file are subject to the terms of the
848dcebe28e032abfc66e7f10686e1b04a8516feMark Andrews# Common Development and Distribution License (the "License").
848dcebe28e032abfc66e7f10686e1b04a8516feMark Andrews# You may not use this file except in compliance with the License.
848dcebe28e032abfc66e7f10686e1b04a8516feMark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
58f7af60e79a5aaf58f6a8861c306d4c617fb1d1Mukund Sivaraman# See the License for the specific language governing permissions
848dcebe28e032abfc66e7f10686e1b04a8516feMark Andrews# and limitations under the License.
848dcebe28e032abfc66e7f10686e1b04a8516feMark Andrews# When distributing Covered Code, include this CDDL HEADER in each
848dcebe28e032abfc66e7f10686e1b04a8516feMark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
848dcebe28e032abfc66e7f10686e1b04a8516feMark Andrews# If applicable, add the following below this CDDL HEADER, with the
848dcebe28e032abfc66e7f10686e1b04a8516feMark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
bcf15a19ae0efa72a22cdfb50666a3c6ce39eb9fTinderbox User# information: Portions Copyright [yyyy] [name of copyright owner]
848dcebe28e032abfc66e7f10686e1b04a8516feMark Andrews# CDDL HEADER END
848dcebe28e032abfc66e7f10686e1b04a8516feMark Andrews# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
848dcebe28e032abfc66e7f10686e1b04a8516feMark AndrewsPATH=$(SPRO_VROOT)/bin:$(JAVA_HOME)/bin:/usr/bin
848dcebe28e032abfc66e7f10686e1b04a8516feMark Andrews# IPS_COMPONENT_VERSION needs update whenever this is changed
848dcebe28e032abfc66e7f10686e1b04a8516feMark AndrewsCOMPONENT_VERSION= R$(COMPONENT_VERSION_MAJOR)$(COMPONENT_VERSION_MINOR)$(COMPONENT_VERSION_MICRO)
848dcebe28e032abfc66e7f10686e1b04a8516feMark AndrewsCOMPONENT_SRC= $(COMPONENT_SRC_NAME)_$(COMPONENT_VERSION)
848dcebe28e032abfc66e7f10686e1b04a8516feMark Andrews sha256:4bccac86dd76aec050252e44276a0283a0df9218e6470cf042a9b9f9dfc9476c
848dcebe28e032abfc66e7f10686e1b04a8516feMark AndrewsCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE)
fc74b733bf679e1b3fb1599e32d445dffe325208Tinderbox UserCOMPONENT_SRC_1= $(COMPONENT_NAME_1)_$(COMPONENT_VERSION)
848dcebe28e032abfc66e7f10686e1b04a8516feMark AndrewsCOMPONENT_ARCHIVE_1= $(COMPONENT_SRC_1)-1.tar.gz
09d72af3e9961c210d7baa6179165b6cd81e8dd0Tinderbox User sha256:07980d8014c7cf8194b7078c137353f5083992add4663ced3dcba2ff91f228d8
848dcebe28e032abfc66e7f10686e1b04a8516feMark AndrewsCOMPONENT_ARCHIVE_URL_1= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE_1)
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic Updater# HTML documentation
848dcebe28e032abfc66e7f10686e1b04a8516feMark AndrewsCOMPONENT_SRC_2= $(COMPONENT_NAME_2)_$(COMPONENT_VERSION)
67adc03ef81fb610f8df093b17f55275ee816754Evan Hunt sha256:d06f580f11d1303217a5c1cf8d68a98d7e01c535be934dcd430ecdc254f7572e
848dcebe28e032abfc66e7f10686e1b04a8516feMark AndrewsCOMPONENT_ARCHIVE_URL_2= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE_2)
848dcebe28e032abfc66e7f10686e1b04a8516feMark Andrews# IPS_COMPONENT_VERSION is by default set to $(COMPONENT_VERSION) but it is not
a3edcadfffbe617a419cdbe1bebb95f68a0eda1eMark Andrews# enough for us. We need to include the $(COMPONENT_SUBVERSION) somehow.
a3edcadfffbe617a419cdbe1bebb95f68a0eda1eMark Andrews# Because the IPS_COMPONENT_VERSION cannot contain letters or leading zeroes
848dcebe28e032abfc66e7f10686e1b04a8516feMark Andrews# we use mapping:
a3edcadfffbe617a419cdbe1bebb95f68a0eda1eMark Andrews# R(major)(minor)(micro) - (major).(minor as number).(micro)
a3edcadfffbe617a419cdbe1bebb95f68a0eda1eMark AndrewsIPS_COMPONENT_VERSION= $(COMPONENT_VERSION_MAJOR).2.3
848dcebe28e032abfc66e7f10686e1b04a8516feMark Andrews# Built in SFW with gcc and builds cleanly now only with gcc
67adc03ef81fb610f8df093b17f55275ee816754Evan HuntCONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS) -I/usr/include/gd2"
67adc03ef81fb610f8df093b17f55275ee816754Evan Hunt# The HiPE portion is a bit sensitive, and only seems to work 64-bit on
848dcebe28e032abfc66e7f10686e1b04a8516feMark Andrews# amd64 (thus the variant.arch tagging in erlang.p5m). erts/config.log
67adc03ef81fb610f8df093b17f55275ee816754Evan Hunt# can be very interesting if issues occur.
36da16fa31fa2a582afe67010ba449a57177fd2fAutomatic UpdaterCONFIGURE_OPTIONS += --enable-dynamic-ssl-lib
984c2e9f76e66e86f7d9aca99a774836ddf196eaAutomatic UpdaterCONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin
7a7a44400d49122d4cc207b43922a7b9c5afe443Automatic UpdaterCONFIGURE_OPTIONS.64 += LDFLAGS="$(LDFLAGS) -m64"
e2e4d321999340802f77adaacd19c797d04b4b95Automatic Updater# Needed for 'set name=info.source-url' action in erlang-doc.p5m
848dcebe28e032abfc66e7f10686e1b04a8516feMark AndrewsPKG_MACROS += COMPONENT_ARCHIVE_URL_2=$(COMPONENT_ARCHIVE_URL_2)
848dcebe28e032abfc66e7f10686e1b04a8516feMark Andrews# Use cp(1) instead of cloney because erlang's 'install' target uses 'tar'
a3edcadfffbe617a419cdbe1bebb95f68a0eda1eMark Andrews# to copy files and our tar doesn't handle long links by default. Between
848dcebe28e032abfc66e7f10686e1b04a8516feMark Andrews# the use of 'tar' and 'ld', a path adjustment wasn't an option due to the
7be2f6d5df28b207e3e385c555eb4f740150528dTinderbox User# need for /usr/bin/ld and /usr/gnu/bin/tar. Perhaps this can be looked
848dcebe28e032abfc66e7f10686e1b04a8516feMark Andrews# at when we upgrade to a more current version.
1879ff49326b49a9e4eadaca193c631409bf8575Tinderbox UserCOMPONENT_INSTALL_ARGS += INSTALL_PREFIX=$(PROTO_DIR)
afb33f777af856f8c3382604a7a8ffdfe2b512c5Automatic Updater# common targets
e334405421979688f2d838805ac67ee47bd62976Mark Andrews # Undelivered useless files:
e334405421979688f2d838805ac67ee47bd62976Mark Andrews # erlang/*/*.bat
e334405421979688f2d838805ac67ee47bd62976Mark Andrews # manpages: start.1 werl.1
65ad89971ee9973074cd11c207af92bf5440df01Automatic Updater $(MKDIR) documentation && cd documentation && \
65ad89971ee9973074cd11c207af92bf5440df01Automatic Updater $(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_1) && \
a3edcadfffbe617a419cdbe1bebb95f68a0eda1eMark Andrews $(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_2)
089c63b69cdf6803aa8901aae3f2fbae58969511Automatic Updater # remove INSTALL_PREFIX from path
db6353c9b89628e16f6e729ce57baabad3460c49Automatic Updater $(PROTO_DIR)/usr/lib/$(MACH64)/erlang/bin/erl \