#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
#
# Documentation sources
#
# Ocaml does not use a standard configure script, but has its own handwritten
# one. So we must specify the arguments it accepts by hand.
#
# Set up some environment variables to make things look nicer.
#
UL_OCAML_INCLUDES = -nostdlib -I stdlib -I utils -I parsing -I typing -I bytecomp -I asmcomp -I driver
# This action unpacks the additional tarballs and builds some additional
# useful programs. For example, the ocamlbyteinfo and ocamlplugininfo
# utilities are useful additions from Debian, and also included in RHEL.
#
-o ocamlplugininfo); \
-o objinfo config.cmx tools/objinfo.ml))
# This action moves additional files we want to install into the proto area.
# I prefer using "cp -R" for copying the documentation tarball and example
# contents since it will make it easier to see new files need to be packaged
# when Ocaml is updated.
#
cd $(@D); \
# ASLR should be enabled when 64-bit support is enabled, which is planned as
# a follow-on step.
#
# Files built in the COMPONENT_POST_INSTALL_ACTION are found by setting
# PKG_PROTO_DIRS as follows:
#