#
# 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
# or http://www.opensolaris.org/os/licensing.
# 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
#
# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#ident "@(#)Makefile.sfw 1.5 10/01/22 SMI"
JRUBY_VER=1.1.3
JRUBY_HOME=jruby-${JRUBY_VER}
include ../Makefile.cmd
clean:
rm -rf ${JRUBY_HOME}
all: ${JRUBY_HOME}
$(SRC)/tools/protofix --pkg SUNWjruby --write
(cd ${JRUBY_HOME}; env - \
JAVA_HOME=${JAVA_ROOT} \
PATH=${PATH} \
ant -lib .)
${JRUBY_HOME}:
gzip -dc jruby-src-${JRUBY_VER}.tar.gz | \
$(GTAR) xpf - --no-same-owner
$(GPATCH) -i build_xml.patch ${JRUBY_HOME}/build.xml
$(GPATCH) -i jruby.patch ${JRUBY_HOME}/bin/jruby
$(GPATCH) -u -p0 -d ./${JRUBY_HOME}<rb.patch
install: all
ksh93 ./install-jruby ${JRUBY_VER}
$(SRC)/tools/protofix --pkg SUNWjruby --perm
include ../Makefile.targ