#
# 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
#
#
#
# Create the tarball. It should contain the working directory of the repo at
# the desired revision, but not the .hg directory. Note that the digest will
# be different every time because .hg doesn't set the timestamps of the files
# in the working directory.
-e "s/^COMPONENT_ARCHIVE_HASH=.*/COMPONENT_ARCHIVE_HASH= sha256:$$digest/" \
# Only install the non-X variant. We will cherry-pick gvim out of the build
# directory to avoid re-installing everything.
# Necessary to pass 64-bit flags to the link stage.
# Necessary to pass 64-bit flags to the compilation stage.
# XXX Perl compilation fails, for some reason.
# - Perl_croak_nocontext is redefined (embed.h, line 5157), having something to
# do with PERL_IMPLICIT_CONTEXT, which is discussed in perlguts(1). This is
# just a warning, but looks like it might have nasty consequences.
# - The declaration of Perl_Gthr_key_ptr() has a problem with its argument of
# type pTHX. if_perl.xs defines that to void if it's not already defined,
# but perl.h probably does something else to it, not sure what yet. This
# also appears to have something to do with PERL_IMPLICIT_CONTEXT.
# CONFIGURE_OPTIONS += --enable-perlinterp=dynamic
# We build two variants: with and without X support.
# Vim's build is too smart for itself and configure can't run outside of a
# complete source tree.
COMPONENT_TEST_TARGETS = test
nawk '/begin of license/ {p=1; getline; next} /end of license/ {p=0} p == 1 {print}' $< > $@
# common targets
test: $(TEST_64)